All of lore.kernel.org
 help / color / mirror / Atom feed
* Peak PCAN USB question
@ 2012-04-25  7:37 Heinz-Jürgen Oertel
  2012-04-25  8:20 ` Wolfgang Grandegger
  2012-04-25  8:31 ` Marc Kleine-Budde
  0 siblings, 2 replies; 5+ messages in thread
From: Heinz-Jürgen Oertel @ 2012-04-25  7:37 UTC (permalink / raw)
  To: linux-can

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 USB Interface?

Regards
 Heinz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Peak PCAN USB question
  2012-04-25  7:37 Peak PCAN USB question Heinz-Jürgen Oertel
@ 2012-04-25  8:20 ` Wolfgang Grandegger
  2012-04-25  8:43   ` AW: " Heinz-Jürgen Oertel
  2012-04-25  8:31 ` Marc Kleine-Budde
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Grandegger @ 2012-04-25  8:20 UTC (permalink / raw)
  To: Heinz-Jürgen Oertel; +Cc: linux-can

On 04/25/2012 09:37 AM, Heinz-Jürgen 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 USB Interface?

Looking to the driver: can_get_berr_counter() is not supported but
can_get_state() should work. And bus error reporting is also not supported.

Wolfgang.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Peak PCAN USB question
  2012-04-25  7:37 Peak PCAN USB question Heinz-Jürgen Oertel
  2012-04-25  8:20 ` Wolfgang Grandegger
@ 2012-04-25  8:31 ` Marc Kleine-Budde
  1 sibling, 0 replies; 5+ messages in thread
From: Marc Kleine-Budde @ 2012-04-25  8:31 UTC (permalink / raw)
  To: Heinz-Jürgen Oertel; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

On 04/25/2012 09:37 AM, Heinz-Jürgen 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 USB Interface?

can_get_berr_counter ends up in the do_get_berr_counter callback, which
isn't implemented in the peak drivers.

grep -R do_get_berr_counter drivers/net/can/usb/peak_usb/

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* AW: Peak PCAN USB question
  2012-04-25  8:20 ` Wolfgang Grandegger
@ 2012-04-25  8:43   ` Heinz-Jürgen Oertel
  2012-04-25  8:53     ` Wolfgang Grandegger
  0 siblings, 1 reply; 5+ messages in thread
From: Heinz-Jürgen Oertel @ 2012-04-25  8:43 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linux-can


________________________________________
Von: Wolfgang Grandegger [wg@grandegger.com]
Gesendet: Mittwoch, 25. April 2012 10:20
Bis: Heinz-Jürgen Oertel
Cc: linux-can@vger.kernel.org
Betreff: Re: Peak PCAN USB question

On 04/25/2012 09:37 AM, Heinz-Jürgen 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 USB Interface?

Looking to the driver: can_get_berr_counter() is not supported but
can_get_state() should work. And bus error reporting is also not supported.

Wolfgang.

This call:
 ret = can_get_state(canh_dev_to_name(dev), &sct_state);
    if(ret == -1) {
	perror("libsocketcan can_get_state");
prints out:
 libsocketcan can_get_state: Resource temporarily unavailable

It works perfectly with EMS CPC-PCI boards.


Is it pcan_netdev.c where I have to look, peak version 7.4 ?

Regards
    Heinz

PS: I still don't know how to quote emails correctly using Outlook :-)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: AW: Peak PCAN USB question
  2012-04-25  8:43   ` AW: " Heinz-Jürgen Oertel
@ 2012-04-25  8:53     ` Wolfgang Grandegger
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Grandegger @ 2012-04-25  8:53 UTC (permalink / raw)
  To: Heinz-Jürgen Oertel; +Cc: linux-can

On 04/25/2012 10:43 AM, Heinz-Jürgen Oertel wrote:
> 
> ________________________________________
> Von: Wolfgang Grandegger [wg@grandegger.com]
> Gesendet: Mittwoch, 25. April 2012 10:20
> Bis: Heinz-Jürgen Oertel
> Cc: linux-can@vger.kernel.org
> Betreff: Re: Peak PCAN USB question
> 
> On 04/25/2012 09:37 AM, Heinz-Jürgen 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 USB Interface?
> 
> Looking to the driver: can_get_berr_counter() is not supported but
> can_get_state() should work. And bus error reporting is also not supported.
> 
> Wolfgang.
> 
> This call:
>  ret = can_get_state(canh_dev_to_name(dev), &sct_state);
>     if(ret == -1) {
> 	perror("libsocketcan can_get_state");
> prints out:
>  libsocketcan can_get_state: Resource temporarily unavailable
> 
> It works perfectly with EMS CPC-PCI boards.
> 
> 
> 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 do
not support pcan_netdev.c.

Wolfgang.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-25  8:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25  7:37 Peak PCAN USB question Heinz-Jürgen Oertel
2012-04-25  8:20 ` Wolfgang Grandegger
2012-04-25  8:43   ` AW: " Heinz-Jürgen Oertel
2012-04-25  8:53     ` Wolfgang Grandegger
2012-04-25  8:31 ` Marc Kleine-Budde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.