From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Subject: Re: AW: Peak PCAN USB question Date: Wed, 25 Apr 2012 10:53:02 +0200 Message-ID: <4F97BB6E.5050609@grandegger.com> References: <77D4E1B1D8549C4388FD52C58AC24547053FE38D@SBSPORT2.portnet.local>,<4F97B3E5.3060603@grandegger.com> <77D4E1B1D8549C4388FD52C58AC24547053FE3DA@SBSPORT2.portnet.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from ngcobalt02.manitu.net ([217.11.48.102]:33199 "EHLO ngcobalt02.manitu.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752790Ab2DYIxF (ORCPT ); Wed, 25 Apr 2012 04:53:05 -0400 In-Reply-To: <77D4E1B1D8549C4388FD52C58AC24547053FE3DA@SBSPORT2.portnet.local> Sender: linux-can-owner@vger.kernel.org List-ID: To: =?ISO-8859-1?Q?Heinz-J=FCrgen_Oertel?= Cc: "linux-can@vger.kernel.org" On 04/25/2012 10:43 AM, Heinz-J=FCrgen Oertel wrote: >=20 > ________________________________________ > Von: Wolfgang Grandegger [wg@grandegger.com] > Gesendet: Mittwoch, 25. April 2012 10:20 > Bis: Heinz-J=FCrgen Oertel > Cc: linux-can@vger.kernel.org > Betreff: Re: Peak PCAN USB question >=20 > On 04/25/2012 09:37 AM, Heinz-J=FCrgen Oertel wrote: >> I'm working on a project where the application has to use can4linux = and SocketCAN. >> Mainly because can4linux has no USB support yet. >> For some requests to the SocketCAN layer I use libsocketcan. >> Can someone confirm that can_get_berr_counter(), can_get_state() >> and may be some more functions are not working with the Peak PCAN US= B Interface? >=20 > Looking to the driver: can_get_berr_counter() is not supported but > can_get_state() should work. And bus error reporting is also not supp= orted. >=20 > Wolfgang. >=20 > This call: > ret =3D can_get_state(canh_dev_to_name(dev), &sct_state); > if(ret =3D=3D -1) { > perror("libsocketcan can_get_state"); > prints out: > libsocketcan can_get_state: Resource temporarily unavailable >=20 > It works perfectly with EMS CPC-PCI boards. >=20 >=20 > Is it pcan_netdev.c where I have to look, peak version 7.4 ? Ah, oh, we only speak about native support in the mainline kernel. We d= o not support pcan_netdev.c. Wolfgang.