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
pcan err=-28
Re: pcan err=-28
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
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