- canlib.linlib.getChannelData(channel_number, item=ChannelData.CARD_FIRMWARE_REV)¶
This function can be used to retrieve certain pieces of information about a channel.
You must pass a channel number and not a channel handle.
Get the transceiver information for a CAN channel
The application typically uses this call to find out whether a particular CAN channel has a LIN interface connected to it. For a Kvaser LIN Leaf it retrieves the transceiver type and device information.
This function call will open the CAN channel, but no CAN messages are transmitted on it. In other words, it’s risk-free to use even if no LIN interface is connected, or if the channel is connected to a CAN system.
A LIN interface need not be powered for this call to succeed.
The information may not always be accurate. Especially after changing transceiver on a running LAPcan card, you should go on bus and off bus again to be sure the transceiver information is updated.
This function de-initializes the LIN library. After this function is called
linInitializeLibrarymust be called before any other LIN function is called.