LINUX_CAN_Read_Timeout() gives CAN_ERR_OK without connectio

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
tymbusku
Posts: 1
Joined: Sat 16. Jun 2018, 10:42

LINUX_CAN_Read_Timeout() gives CAN_ERR_OK without connectio

Post by tymbusku » Sat 30. Jun 2018, 09:02

Hello,

I use PCAN-USB. When I plug in the USB-Adapter, but don't connect it via CAN-Bus with the motor, the linux function LINUX_CAN_Read_Timeout() sometimes gives me back CAN_ERR_OK anyhow.

Kernel is 2.6.23.1-42.fc8-i686
Driver version is 7.4

What cause could this have? Can I solve this somehow?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: LINUX_CAN_Read_Timeout() gives CAN_ERR_OK without connec

Post by PEAK-Support » Sun 1. Jul 2018, 11:58

CAN_ERR_OK
means that the function was called succesfully - so you should check the CAN Msg Structure which Data type you receicev (real CAN ot maybe a Status )
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply