PCAN_ERROR_XMTFULL when sending first message
PCAN_ERROR_XMTFULL when sending first message
Hello,
i get the error PCAN_ERROR_XMTFULL, when sending the first message via the PCAN USB interface. I use the PCAN Basis API on a Xubuntu OS. Before I try to send the first message I have successfully called the methods CAN_Initialize and CAN_FilterMessages. Do you have an idea where my problem is?
Regards
Henning
i get the error PCAN_ERROR_XMTFULL, when sending the first message via the PCAN USB interface. I use the PCAN Basis API on a Xubuntu OS. Before I try to send the first message I have successfully called the methods CAN_Initialize and CAN_FilterMessages. Do you have an idea where my problem is?
Regards
Henning
Re: PCAN_ERROR_XMTFULL when sending first message
Hi,
please post the output of cat /proc/pcan
regards
Michael
please post the output of cat /proc/pcan
regards
Michael
Re: PCAN_ERROR_XMTFULL when sending first message
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) May 30 2016 15:13:37 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can0 ffffffff 000 0x001c 00000000 00000000 00000000 00000000 0x0000
*------------- Release_20150729_n (7.15.2) May 30 2016 15:13:37 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 1 interfaces @ major 249 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can0 ffffffff 000 0x001c 00000000 00000000 00000000 00000000 0x0000
Re: PCAN_ERROR_XMTFULL when sending first message
Hi,
you are using the netdev driver interface, see can0 in your output. To use the PCANBasic API, you need to build the driver with the chardev interface. Remove the driver again, and build it with the NET=NO option again.
regards
Michael
BTW: the Linux section will be a better place for this topic. [Already moved this topic
(M.Gerber)]
you are using the netdev driver interface, see can0 in your output. To use the PCANBasic API, you need to build the driver with the chardev interface. Remove the driver again, and build it with the NET=NO option again.
regards
Michael
BTW: the Linux section will be a better place for this topic. [Already moved this topic

Re: PCAN_ERROR_XMTFULL when sending first message
Thank you for your answer, I will try this.
Best Regards
Henning
Best Regards
Henning
Re: PCAN_ERROR_XMTFULL when sending first message
Unfortunately I still get the same error. The output of cat /proc/pcan is now:
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 13 2016 09:43:01 --------------
*------------- [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 00000003 00000000 0x0000
Re: PCAN_ERROR_XMTFULL when sending first message
Hi,
please send that output again, after you have used PCANBasic API with your application, to see the read, write and status of the hardware. Sure you have another CAN hardware and a terminated CAN cable connected to the PCAN-USB? Can you send messages with transmittest or echo "m s 0x11 2 0x12 0x13"> /dev/pcan32
regards
Michael
please send that output again, after you have used PCANBasic API with your application, to see the read, write and status of the hardware. Sure you have another CAN hardware and a terminated CAN cable connected to the PCAN-USB? Can you send messages with transmittest or echo "m s 0x11 2 0x12 0x13"> /dev/pcan32
regards
Michael
Re: PCAN_ERROR_XMTFULL when sending first message
That was already the output of after using the API. The methods CAN_Initialize, CAN_FilterMessages and CAN_Write have been called. Yes, I have other hardware and a terminated cable connected. If I call the exact same functions with the same parameters from my Windows program with the PCAN Basis API, everything works fine. The transmitest did run without any error messages. The output of cat /proc/pcan after transmitest is
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Jun 13 2016 09:43:01 --------------
*------------- [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 00000064 00000064 000fae7e 000e20aa 0x0000
Re: PCAN_ERROR_XMTFULL when sending first message
Hi,
which version of the PCANBasic API for Linux do you use? Can you please test with the examples (c++, Java, Python) we deliver with the API, to see if those applications will work on your system.
regards
Michael
BTW: there are a lot of errors visible in the output.
which version of the PCANBasic API for Linux do you use? Can you please test with the examples (c++, Java, Python) we deliver with the API, to see if those applications will work on your system.
regards
Michael
BTW: there are a lot of errors visible in the output.
Re: PCAN_ERROR_XMTFULL when sending first message
The test program pcanwrite works fine. The API version is 2.0.3.
Regards
Henning Petruck
Regards
Henning Petruck