No incoming messages with PCANBasic
Posted: Tue 14. Jun 2016, 11:15
Hello,
currently I am porting a Windows application to Ubuntu, with both Operating Systems I am using the PCAN Basic API and the PEAK USB CAN Adapter. But under Linux I am not receiving any messages, the same method calls work fine in Windows.
The tranmitest and receivetest from the linux driver yield the following output of cat /proc/pcan:
The pcanwrite test program from the API seems to work fine:
The pcanread test program does not read any messages:
Now at the first application start (the application basically sends one message to a robot and waits for the answer at the start) I receive one confusing message with the message type 0x60 and the data bytes: 0x0 0x0 0x0 0x8 0x0 0x0 0x0 0x0. The output of cat /proc/pcan is:
At all further runs no messages are received, even after minutes of periodically calling CAN_Read:
The same code works find with Windows, the robot is plugged it with the same CAN Cable terminated at both ends. With windows I receive the correct answer of the robot at the first call of CAN_Read.
Regards
Henning
currently I am porting a Windows application to Ubuntu, with both Operating Systems I am using the PCAN Basic API and the PEAK USB CAN Adapter. But under Linux I am not receiving any messages, the same method calls work fine in Windows.
The tranmitest and receivetest from the linux driver yield the following output of cat /proc/pcan:
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 14 2016 08:44:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 0000f965 0001a25c 0001c2e4 0000a897 0x0000
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 14 2016 08:44:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 00000000 0000a75c 000002f7 00000000 0x0000
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 14 2016 08:44:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 00000000 00000000 00000014 00000000 0x0000
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 14 2016 08:44:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 00000001 00000001 00000038 00000000 0x0000
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 14 2016 08:44:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 00000000 00000001 0000003c 00000000 0x0000
Regards
Henning