Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable LIN inactive frame

Hello,

First let me say that I am not using Labview for my LIN programming - I am using Visual C++. The NI forum wouldn't let me specify a version for VC++ and hence would not let me continue ... (BUG?)

Note: I am using the NI Visual C++ examples as a base for my software development along with the NI USB-8476 LIN Interface.

My question is: How do I disable the LIN bus "inactive frame" from being entered onto the read queue?

Presently, after four seconds of inactivity - an inactive frame is placed on the read queue.

The NI CAN/LIN Manual says:
"Regardless of whether the LIN interface is acting as a master or slave
device, a bus inactive frame will always be loaded into the read queue after
four seconds of bus inactivity. ... The NI-CAN Frame API for LIN
provides the option of ignoring the bus inactive frame or sleep request, or
placing the interface into sleep mode by setting the sleep attribute to true."

I don't want to put any devices into sleep mode (ever) - but I do want to ignore inactive frames.

Any further information would be appreciated.

Kind regards,
Terry


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

Hi Terry,

Unfortunately... it cannot be disabled with set attribute... You will have to filter out that frame type in your app if you want to ignore it.

DirkW

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