2022-04-11 06:58:53

by Paul Thomas

[permalink] [raw]
Subject: peak_usb: urb aborted

Folks,

I'm using a PCAN-USB adapter, and it seems to have a lot of trouble
under medium load. I'm getting these urb aborted messages.
[125054.082248] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-71)
[125077.886850] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-32)

Is there anything that can be done about this? This is very
frustrating because it makes the USB adapter very difficult to use as
a reliable partner of an embedded CAN device.

I'm using Ubuntu with 5.4.0-107-generic. Any help would be appreciated.

-Paul


2022-04-12 20:01:18

by Stéphane Grosjean

[permalink] [raw]
Subject: RE: peak_usb: urb aborted

Hi,

Thank you Oliver for taking care of this request.

These errors can also be caused by a lack of power being supplied to the device itself. Being connected to a USB hub with insufficient power can also be an explanation for these sporadic errors.

Regards,

-- Stephane


De : Oliver Hartkopp <[email protected]>
Envoy? : vendredi 8 avril 2022 20:45
? : Paul Thomas <[email protected]>; [email protected] <[email protected]>; St?phane Grosjean <[email protected]>
Cc : Wolfgang Grandegger <[email protected]>; Marc Kleine-Budde <[email protected]>; David S. Miller <[email protected]>; Jakub Kicinski <[email protected]>; [email protected] <[email protected]>; linux-kernel <[email protected]>; PEAK-System support <[email protected]>
Objet : Re: peak_usb: urb aborted



On 08.04.22 18:35, Paul Thomas wrote:
> Folks,
>
> I'm using a PCAN-USB adapter, and it seems to have a lot of trouble
> under medium load. I'm getting these urb aborted messages.
> [125054.082248] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-71)
> [125077.886850] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-32)

As I run the same hardware here it is very likely that you have a faulty
CAN bus setup with

- wrong bitrate setting / sample points / etc
- wrong or no termination
- missing or wrong configured (other) CAN nodes

I added the maintainer of the PEAK USB adapter (Stephane) to the
recipient list.

Having the linux-can mailing list and Stephane in the recipient list is
sufficient to answer the above details.

Regards,
Oliver

>
> Is there anything that can be done about this? This is very
> frustrating because it makes the USB adapter very difficult to use as
> a reliable partner of an embedded CAN device.
>
> I'm using Ubuntu with 5.4.0-107-generic. Any help would be appreciated.
>
> -Paul

--
PEAK-System Technik GmbH
Sitz der Gesellschaft Darmstadt - HRB 9183
Geschaeftsfuehrung: Alexander Gach / Uwe Wilhelm
Unsere Datenschutzerklaerung mit wichtigen Hinweisen
zur Behandlung personenbezogener Daten finden Sie unter
http://www.peak-system.com/Datenschutz.483.0.html

2022-04-12 23:01:01

by Oliver Hartkopp

[permalink] [raw]
Subject: Re: peak_usb: urb aborted



On 08.04.22 18:35, Paul Thomas wrote:
> Folks,
>
> I'm using a PCAN-USB adapter, and it seems to have a lot of trouble
> under medium load. I'm getting these urb aborted messages.
> [125054.082248] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-71)
> [125077.886850] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-32)

As I run the same hardware here it is very likely that you have a faulty
CAN bus setup with

- wrong bitrate setting / sample points / etc
- wrong or no termination
- missing or wrong configured (other) CAN nodes

I added the maintainer of the PEAK USB adapter (Stephane) to the
recipient list.

Having the linux-can mailing list and Stephane in the recipient list is
sufficient to answer the above details.

Regards,
Oliver

>
> Is there anything that can be done about this? This is very
> frustrating because it makes the USB adapter very difficult to use as
> a reliable partner of an embedded CAN device.
>
> I'm using Ubuntu with 5.4.0-107-generic. Any help would be appreciated.
>
> -Paul

2022-04-16 00:58:52

by Paul Thomas

[permalink] [raw]
Subject: Re: peak_usb: urb aborted

> On 08.04.22 18:35, Paul Thomas wrote:
> > Folks,
> >
> > I'm using a PCAN-USB adapter, and it seems to have a lot of trouble
> > under medium load. I'm getting these urb aborted messages.
> > [125054.082248] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-71)
> > [125077.886850] peak_usb 3-2.4.4:1.0 can0: Rx urb aborted (-32)
>
> As I run the same hardware here it is very likely that you have a faulty
> CAN bus setup with
>
> - wrong bitrate setting / sample points / etc
> - wrong or no termination
> - missing or wrong configured (other) CAN nodes
Thanks Oliver, this might have been it, I'm using 1Mbit (up from
100kbit) on a different board, and not getting those errors.

>
> I added the maintainer of the PEAK USB adapter (Stephane) to the
> recipient list.
>
> Having the linux-can mailing list and Stephane in the recipient list is
> sufficient to answer the above details.
>
> Regards,
> Oliver
>