PCAN_ERROR_XMTFULL when sending first message

This forum covers PCAN-Linux and Linux development issues concerning our products
HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Fri 10. Jun 2016, 11:06

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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN_ERROR_XMTFULL when sending first message

Post by M.Maidhof » Fri 10. Jun 2016, 12:10

Hi,

please post the output of cat /proc/pcan

regards

Michael

HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

Re: PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Fri 10. Jun 2016, 13:10

*------------- 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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN_ERROR_XMTFULL when sending first message

Post by M.Maidhof » Fri 10. Jun 2016, 14:56

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 :mrgreen: (M.Gerber)]

HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

Re: PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Fri 10. Jun 2016, 15:14

Thank you for your answer, I will try this.

Best Regards
Henning

HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

Re: PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Mon 13. Jun 2016, 10:00

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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN_ERROR_XMTFULL when sending first message

Post by M.Maidhof » Mon 13. Jun 2016, 11:01

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

HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

Re: PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Mon 13. Jun 2016, 11:44

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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN_ERROR_XMTFULL when sending first message

Post by M.Maidhof » Mon 13. Jun 2016, 12:32

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.

HPetruck
Posts: 10
Joined: Fri 10. Jun 2016, 10:57

Re: PCAN_ERROR_XMTFULL when sending first message

Post by HPetruck » Mon 13. Jun 2016, 14:23

The test program pcanwrite works fine. The API version is 2.0.3.

Regards
Henning Petruck

Post Reply