Re: I connect my device to a truck's can port (J1939) , the truck present an error .
"Kees Zagers" <[email protected]>
| Newsgroups | gmane.comp.hardware.bus.can |
|---|---|
| Organization | SI-Kwadraat |
| Message-ID | <[email protected]> |
Nice to hear. Success with the project! Kees ----- Original Message ----- From: c yl To: [email protected] ; [email protected] Sent: Monday, February 02, 2015 2:21 AM Subject: Re: [CANLIST] I connect my device to a truck's can port (J1939) , the truck present an error . Hi It's my application's problem. I use the interfaces in a wrong way . I fixed it and now it works with no problems . Thanks for everyone! On Monday, January 26, 2015 3:35 PM, "[email protected]" <[email protected]> wrote: Your conclusions are right. Like I said before, if e.g. your cable is too long, it is possible that messages from certain ECU's are seen correctly, but from others not. If in active state and sending an errorframe, the sending node will generate also its active tx errorframe and increment its tx errorcounter. Even if it does not go bus off, it can be delayed so much, that your system will generate a timeout error. If your node works in listen-only mode, your cable and node can still influence the behaviour of the bus in principle. However the chance that it goes wrong is much lower now. If it seems to work correctly now, you will still have two problems: the messages coming from the node(s) causing the problem will not be seen by your node. It will still generate passive errorframes (not influencing the bus) and the respective messages are not registered in the buffer. Also you are not able to send any message on the bus and as I understood before, that is what you want to do. Kees c yl schreef op 26.01.2015 06:17: > Hi > > The speed is right, I have already got some right frames etc 18FEEE00 > (coolant temperature)18FEF200(instantaneous fuel consumption) > > I'll go to the port two days later, but I don't have an oscilloscope > there, I can only try a better cable and check my rx/tx error > counters. > > I'm not familiar with can bus much. Is the error probably like this: > My node which works at error active mode at the beginning found an > error (which is not true), then he add 1 to his rx error counter, but > the node who sent the frame increases his tx error counter by 8. > sometimes later the node's tx error counter is more than 255, and he > close himself ? > > ps: Whatif I force my node works at a error passive mode? Will the can > bus not be corrupted? > > Thanks! > Best Regards! > > On Thursday, January 22, 2015 6:30 PM, Anry A. Kischka > <[email protected]> wrote: > > Hi again, > so... NXP TJA1040 is canonical driver and good choice for developing > in > your serial device. Ok, next... are you sure that stacker used J1939 > specification and CAN speed which did you choice for connecting is > right!? > May be I've mistake, but when I connect to unknown CANbus, i use this > Bit > timing calculator and for this way not always guarantee, thats my > choice > BT for this speed is right. > Can you attach part of log from this CANbus and screenshots from > oscilloscope when your device is/no connect (if this possible) > Thank you! > > P.S. I'm not sure that you get Fuel Consumption parameters from engine > of > this stacker. Try request 18EA00xx (when xx - source address from > 00..FA) > good luck :) > > c yl пишет: > // OK1, The truck I'm working with is a Kalmar reach stacker > // (DRF450/DCT450-60S5K). 2, I will go to the truck's place next week > to > // check it . And check my rx/tx error counters.3, The physical chip > is a > // TJA1040. > // Best regards. > // > // On Thursday, January 22, 2015 3:23 PM, Anry A. Kischka > // <[email protected]> wrote: > // > // > // Hi, > // Can you answer me step-by-step, please. > // So... > // 1. What truck model you try to connect? > // 2. What faults (SPN, FMI) you get when connect your device (in > normal > // mode)to truck and what in unit (ECU, EBS, Gear and etc)? > // 3. And what physical CAN driver you used in device!? > // thanks! > // > // c yl пишет: > // // Hi > // // My rx/tx error counter is in the GSR (globle status) register. > They are > // // initialized to 0/127 . If I initialize them to more than 128 and > I > // make > // // sure they always bigger than 128 (for example set them to > 150/150 in > // rx/tx > // // routines), will my device works always at a error passive mode? > So it > // // won't corrupt the bus . > // // > // // On Wednesday, January 21, 2015 7:55 PM, Anry A. Kischka > // // <[email protected]> wrote: > // // > // // > // // Thank you! I understand that's embedded OS, but to topic starter > i > // told > // // about physical CAN driver. > // // > // // I think that no matter what OS used in MCU for connecting and > working > // with > // // CANbus line... > // // > // // Heinz-Jürgen Oertel пишет: > // // // > // // // Am Mittwoch, 21. Januar 2015, 12:55:41 schrieb Anry A. > Kischka: > // // //> What is ECOS system!? I'm not understood you. Can you give > me link > // to > // // //> datasheet? > // // // > // // // > // // // https://ru.wikipedia.org/wiki/ECos [1] > // // // https://en.wikipedia.org/wiki/ECos [2] > // // // > // // // > // // // -- > // // // mit freundlichen Grüßen > // // // Heinz-Jürgen Oertel > // // // emtas GmbH > // // // -- > // // // Archives and useful links: > http://groups.yahoo.com/group/CANbus [3] > // // // Subscribe and unsubscribe at www.vector.com/canlist/ > // // // Report any problems to <[email protected]> > // // // > // // > // // > // // -- > // // With best regards, Anry. > > // // > // // -- > // // Archives and useful links: http://groups.yahoo.com/group/CANbus > [3] > // // Subscribe and unsubscribe at www.vector.com/canlist/ > // // Report any problems to <[email protected]> > // // > // // > // // > // > // > // -- > // With best regards, Anry. > // > // -- > // Archives and useful links: http://groups.yahoo.com/group/CANbus [3] > // Subscribe and unsubscribe at www.vector.com/canlist/ > // Report any problems to <[email protected]> > // > // > // > > -- > With best regards, Anry. > > -- > Archives and useful links: http://groups.yahoo.com/group/CANbus [3] > Subscribe and unsubscribe at www.vector.com/canlist/ > Report any problems to <[email protected]> > > > > Links: > ------ > [1] https://ru.wikipedia.org/wiki/ECos > [2] https://en.wikipedia.org/wiki/ECos > [3] http://groups.yahoo.com/group/CANbus -- Archives and useful links: http://groups.yahoo.com/group/CANbus Subscribe and unsubscribe at www.vector.com/canlist/ Report any problems to <[email protected]>