pcan err=-28

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
isera
Posts: 1
Joined: Tue 26. Jun 2018, 14:15

pcan err=-28

Post by isera » Tue 26. Jun 2018, 14:23

Hi,

I am using the usb pcan to control a motor. Occasionally, I would get the err=-28 in dmesg terminal. Once this error appears, the motor would stop moving. The only way to make the motor to move again via pcan is hard reset the pcan.

The complete error is listed as follows:

pcan: pcan_xxxdev_rx(1) failed err=-28

May I know what does this error mean? I can't find the details in the user manual. Hope you could enlighten me.

Thanks.

David

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

Re: pcan err=-28

Post by M.Maidhof » Tue 26. Jun 2018, 15:31

Hi,

Err = -28 => not enough space to push the incoming frame into the Rx Queue.

Looks like your application did not read the RX queue fast enough.

As a workaround you could change the rxqsize parameter (default is 500) to (for example) 1000:

Add the following bold line to “/etc/modprobe.d/pcan.conf”

# pcan - automatic made entry, begin --------
# if required add options and remove comment
# options pcan type=isa,sp
options pcan rxqsize=1000

install pcan modprobe --ignore-install pcan
# pcan - automatic made entry, end ----------

regards
Michael

Post Reply