Hi,
this the answer from SDK LINStack expert...
Currently, the LinStack doesn’t support this feature and from what I know, the Lin specification also doesn’t mention it.
With the current SDK LinStack the lindriver will call function CallbackHandler of the file “D:\SDK\code_base\SDK_codebase\middleware\lin\lowlevel\lin.c” to inform LinStack if:
- PID receive ok or error
- Frame send/receive success
- Error(eg : framing error, checksum error,…….)
And the current Stack doesn’t have the method to share with the application these above information.
The LinStack just have two method(Which mention in the Lin Specification) to monitor the error in Lin bus and the LinStack of SDK have already support it.
- Status byte : the slave will report error for master note by ERR[2:0] – Error Field of status byte (first byte in all frame send from slave to master). Please see chapter 5.8.6 Status byte of Lin J2602 specification for more information.
- l_ifc_read_status(Please see Lin2.0 or Lin 2.2A specification).
BR, Petr