11-10-2015 02:44 AM
Can anybody explain me this misunderstand about LIN protocol (LIN 1.3)
My entry Frame is:
Sync break field : 0x00
Sync field out: 0x55
Identifier: 0x50
Data 1: 0x00
Data 2: 0x32
Data 3: 0x00
Data 4: 0x00
Checksum: 0x00
My request frame is:
Sync break field : 0x00
Sync field out: 0x55
Identifier: 0x1F
My answer frame must be:
Sync break field : 0x00
Sync field out: 0x55
Identifier: 0x50
Data 1: 0x??
Data 2: 0x??
Data 3: 0x??
Data 4: 0x??
Checksum: 0x00
What is wrong with my program in LV, please find attached picture.
11-10-2015 04:00 AM
Hi,
How i know LIN protocol in LabVIEW works with DB. and You must at start do initialization fo all IDs which You will use, first idea that can help You is this. check are You initialize both IDs or no?
Please in feature if it is possible shear code for have more detailed information.
With Best Regards
11-10-2015 04:45 AM
What is mean DB?
How can initialize both ID?
Please find attached LV code, along with code I'm using NI USB-8476.
Best regards,
11-10-2015
05:42 AM
- last edited on
08-14-2024
11:27 AM
by
Content Cleaner
DB Database
I use LIN interface with NI-XNET drivers, and how I am reading Your device documentation, there also uses NI-XNET.
Look at NI_XNET help and examples. NI-XNET use DB for transfer and receive data.
I finde this 2 links, which can help You in this situation, if I will find other information I will write You.
With Bets Regards
11-10-2015
05:45 AM
- last edited on
08-14-2024
11:29 AM
by
Content Cleaner
Also this link:
https://www.ni.com/docs/en-US/bundle/veristand/page/xnet-overview.html
With Best Regards
11-10-2015 06:07 AM
Try this, I write this for me, sorry can not give You source....
You must at first install NI-XNET drivers.
With Best Regards
11-10-2015 07:08 AM
When I run your sub VI from project is appears error below, I think that you can resolve it.
11-10-2015 11:25 PM
You must run in LV2013, I have that version, and build this with LV2013.
or after 1 days I can give You with LV2014 version.
With Bets Regards
11-11-2015 12:36 AM
Hrachya, I am afraid that this is not solution for my LIN communication problem, because I am using NI USB-8476 adapter.
11-11-2015 01:18 AM
Do You try this? or You think?
Because this is from worked project, and it works corect.
With Best Regards