Components

cancel
Showing results for 
Search instead for 
Did you mean: 

SENT Reference API

Highlighted

Please post any comments, questions or feedback on the SENT Reference API in this thread.

 

SENT References:

NI Community: https://decibel.ni.com/content/docs/DOC-22370

Wikipedia: http://en.wikipedia.org/wiki/SENT_(protocol)

SAE Standard: http://standards.sae.org/j2716_201001/

Digi-Key article: http://www.digikey.com/en/articles/techzone/2011/may/digital-communication-for-smart-modern-sensors

 

 

 

 

authored by
Christian L, CLA
Applications Engineering Senior Manager - Automotive and Transportation
National Instruments - Austin, TX

  
0 Kudos
Message 1 of 11
(7,411 Views)
Highlighted

Hi,

I am using the following driver to read data from a sensor by SENT.

https://decibel.ni.com/content/docs/DOC-22370

I am able to read information but I have a problem with the CRC. The check is 90% wrong, even if the information is always right. Do I need to change something inside the CRC VI?

 

I have tried to use this library too (http://sine.ni.com/nips/cds/view/p/lang/en/nid/211171), but I couldn't find the CRC.

 

Thanks!

 

Davide

0 Kudos
Message 2 of 11
(6,585 Views)
Highlighted

Please post any comments, questions or feedback on the SENT Reference API in this thread.

 

SENT References:

NI Community: https://decibel.ni.com/content/docs/DOC-22370

Wikipedia SEOhttp://en.wikipedia.org/wiki/SENT_(protocol)

SAE Standard: http://standards.sae.org/j2716_201001/

Digi-Key article: http://www.digikey.com/en/articles/techzone/2011/may/digital-communication-for-smart-modern-sensors

 

 

 

 

Christian Loew, CLA
Principal Systems Engineer, National Instruments
Please tip your answer providers with kudos.

Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments.
You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 
I think there's a bug in the XML generation.
 
0 Kudos
Message 3 of 11
(6,134 Views)
Highlighted

Hi Christian, 

 

Can the SENT Driver API be used with the R series PXI FPGA cards? Looks like a total of 2 digital channels are needed - 1 to receive, and 1 to send. Thanks. 

--KT

Kalin T.
0 Kudos
Message 4 of 11
(5,623 Views)
Highlighted

The SENT communication example provided in https://decibel.ni.com/content/docs/DOC-22370 can be used with R series devices.

 

The SENT Driver API on the LabVIEW Tools Network (http://sine.ni.com/nips/cds/view/p/lang/en/nid/211171) is a different set of code, and I'm not very familiar with it. But after taking a look at it, I don't see why it wouldn't work with the R series as well.

authored by
Christian L, CLA
Applications Engineering Senior Manager - Automotive and Transportation
National Instruments - Austin, TX

  
0 Kudos
Message 5 of 11
(5,610 Views)
Highlighted

The CRC sub-vi does not seem to calculate the correct CRC value according to the SAE 2010 SENT protocol.

0 Kudos
Message 6 of 11
(4,439 Views)
Highlighted

By chance, would you have access to the CRC definition for the SENT protocol, that you could share with me, so that I can verify and correct the implementation?

authored by
Christian L, CLA
Applications Engineering Senior Manager - Automotive and Transportation
National Instruments - Austin, TX

  
0 Kudos
Message 7 of 11
(4,428 Views)
Highlighted

Sure, Christian:

 

Here are the taken from SAE_J2716_Jan2010:

SENT CRC1.JPG

 

SENT CRC2.JPG

 

SENT CRC3.JPG

 

 

SENT CRC example.JPG

It seems that the original vi used different CRC implementation.

Message 8 of 11
(4,426 Views)
Highlighted

Here is a LabVIEW implementation of the SAE 2010 SENT CRC code using the 5.4.2.2.2 16-element array implementation. I will include this in the example code next week, but wanted to share it with you so that you can use it before I have the chance to update the code. The default value for Initial CRC Value is 5 (binary 0101).This code tests successfully for all of the test cases in Table B.1-2.

 

SAE 2010 SENT CRC.png

authored by
Christian L, CLA
Applications Engineering Senior Manager - Automotive and Transportation
National Instruments - Austin, TX

  
Message 9 of 11
(4,418 Views)
Highlighted

Hi Christian,

 

I ´d like to use your API with the NI-9401 to test our sensors. Do you tests the API until 1us TickTimes of sensors?

In our tests we must check a amount of about 30 sensors. Is it possible with e.g. 4 modules of the NI 9401?

Do you have some VIs to build the slow message from the fast message?

 

Best regards Martin

0 Kudos
Message 10 of 11
(3,208 Views)