Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a full frame to a slave in lin network.

Hi,

 

I am using a usb 8476 to communicate to a slave in a lin network. I need to send a comand to light up the leds in the slave, but i am not sure how this can be done. As far as i knw, master can send only header frames in a lin network. Can anyone tell me how i can do this. If you have any examples for this please share it here. 

 

I am using "LIN master send full frame and data.vi" from the labview examples. Can anyone please tell me, what is the data suppose to be in the code . I am not able to understand what this data is suppose to be ? Is the master suppose to this data or the slave updates this data ?  I dont get anything in this data frame. As i understand, in ncWRITEnet.vi if the isremote is 17, then the data is ignored, and if the isremote is 18 the data is published, but i am not getting anything when i make isremote 18. I get the error 10 40 01 02.

 

I get an error 10 40 01 02, this comes initially when i start to run the code for the first time, also if the bus is inactive and i start to send header frame first i get this error and then it will give me the correct output from the slave. I could not find this error in the ni can driver manual.What could be the reason for this error ? I use labview 8 and ni can 2.5.2

 

I am attaching the code i am using, and also a screen shot of the error i am getting.

 

Can anyone tell me how i can solve this ?

 

Thank you.

 

0 Kudos
Message 1 of 2
(6,550 Views)

10 40 error is a timeout on the sync byte. You did not self-receive a sync byte.

 

The last error you were getting was not self-receiving a break byte and that turned out to be your slave. I would look at a similar cause here. 

 

The example code generates viable code for a LIN network, so you are already on the right track for communicating to your device. 

0 Kudos
Message 2 of 2
(6,540 Views)