Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Single LDF File for 6 Identical Sensors simultaneous Testing

Hi,

I am working on a Project that requires to control 6 identical sensors with LIN module 9866.The ldf file was provided by the manufacturer for 1 sensor.I programmed the sensor via XNET and it worked fine.Now the problem is that diagnosis on the ldf file to change the ID of five other sensors using the ldf file does not work as the sensors cannot save the new addresses in the memory.Is there any other way to test the 6 identical sensors simulatneously using a single VI or at least on the same PC?As I tried to test 2 sensor simultaneously and I always get error "You cannot open same frame twice".

0 Kudos
Message 1 of 3
(1,456 Views)

Hi,

Here are the  manual of Automotive Diagnostic Command Set User Manual ( see attachment) there you can find all commands that you need. 

 

If you will need help or any specific questions please let me know. 

 

 

 

bhovhann
0 Kudos
Message 2 of 3
(1,401 Views)

So I think I know what you are doing as I needed to do something similar.  You might be given a single LDF with IDs 0x100, 0x101, 0x102.  And you want to test 6 DUTs at the same time, on the same interface and each of the 6 DUTs has a different set of IDs.  DUT 2 has IDs 0x200, 0x201, 0x202, DUT 3 had IDs 0x300, 0x301, 0x302, and so forth.

 

You can absolutely get this to work but there will be limitations.  Obviously each DUT must have unique IDs and not overlap an existing DUT.  You will also only be able to read data at 1/6th the rate, compared to only testing 1 DUT.  This is because LIN is lossless and deterministic at 100% bus load, as apposed to CAN.  So if you need to read 6 times the data, you can only get a sample from 1 DUT 6 times slower than before.

 

If you are okay with this you can do this, but you will need to generate a new database dynamically at runtime based on the LDF provided.  You'll obviously need to duplicate the frames, and signals for each frame, but you'll also need to create a schedule that has these frames in it too.  Look at the Help >> Find Examples Dynamic Database Creation.  This is for CAN database generation but similar things can be used for generation of LIN database too.

 

Then after this database is generated you can that in code.

0 Kudos
Message 3 of 3
(1,392 Views)