Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB 8476 communication

Hi, I am trying to send an header message to a device with an NI USB 8476 using a Labview program found in this forum. I have readed the device's spesification but when I try to send a header message to the device I have a LIN BUS Error. I send attached the images of the spesification and the program. Someone know why I could have the BUS Error? 

0 Kudos
Message 1 of 11
(4,900 Views)

Page 10-102 of the manual describes the error codes shown in the shipping example. Bit 0 and 1 in your screen cap correspond to 0x8400 or LinBusErrorNoResponse. 

 

From what I can tell the header was sent out but no slave on the bus responded to it. This is most likely due to a problem with the slave ECU, not having the slave connected to the bus, or not powering the slave.

 

Jeff L
National Instruments
0 Kudos
Message 2 of 11
(4,877 Views)

I am still trying to send LIN message to the device. Finally I think I have send it something but I am not able to reproduce it another time. As you can see in to the picture after an error (10 80 02 00), a message with 4 bytes, I was able to send a LIN message with 8 bytes. Sameone know what could be or how can I reproduce it? Thanks.

Download All
0 Kudos
Message 3 of 11
(4,832 Views)

I found the error (10 80 02 00) happens because there is no voltage, so the device could be in a normal mode for a few second and then goes in a sleep mode? 

0 Kudos
Message 4 of 11
(4,821 Views)

The error code 1080 is indicative of a catastrophic bus failure such as the LIN bus being externally pulled dominant (low).

Jeff L
National Instruments
0 Kudos
Message 5 of 11
(4,801 Views)

Yes, I know, it is because I turn off the power, but after it, the device answere to a command as you can see. That vould be because lin device goes in sleep mode usually after 4 seconds.

0 Kudos
Message 6 of 11
(4,799 Views)

Neither the master nor the slave should ever hold the LIN line in a dominant state so this behavior is very strange. 

 

Per the LIN standard, slaves will typically put themselves to sleep after 4 seconds but should also release the LIN line so it can be pulled high. The NI-CAN master will indicate that it is "Asleep" but in reality the controller remains in a semi-awake state that allows it to respond to commands from the host PC. The master can be explicitly put to sleep if the user chooses to do so by sending a sleep command.

Jeff L
National Instruments
0 Kudos
Message 7 of 11
(4,791 Views)

Thanks for the answere; rarelly I am able to send a LIN full frame as you can see in to the picture. The problem is that most of the time not, and even if I send the message the slave doesn't responde.

I am able to send a LIN message when i send the same ID in to the "Slave Response Frame" and in the "ID for header", bur, most of the time when I try to send for example 3C ID to the Slave Reponse Frame, than I can't use the same 3C ID for the Header.

0 Kudos
Message 8 of 11
(4,773 Views)

Another problem I have is that in the specification I can't find the wakeup frame. Sameone know if there is a standard wakeup frame for LIN communication? Or where can I find it? Thanks.

0 Kudos
Message 9 of 11
(4,754 Views)

Sorry for many questions, it's my first time programming lin and using USB 8476. In the picture, in the red square should I see the device response right?

Because now I can send lin message with the USB as you can see but I don't recive any response. 

0 Kudos
Message 10 of 11
(4,745 Views)