Skip to contentSkip to conversation

PCAN USB Pro FD one-shot

DISCUSSION Stefan Tatschner 2 participants 4 messages Feb 18, 2016 CAN network drivers

lore
Share & tools
lore
#0 lore raw

Hey list,

I am currently working with the PCAN USB Pro FD device. I wanted to experiment with the "one-shot" mode, which is proposed by "ip":

    $ ip link set can0 type can help
    Usage: ip link set DEVICE type can
    (...)
        [ loopback { on | off } ]
        [ listen-only { on | off } ]
        [ triple-sampling { on | off } ]
        [ one-shot { on | off } ]
        [ berr-reporting { on | off } ]
        [ fd { on | off } ]
        [ fd-non-iso { on | off } ]
        [ presume-ack { on | off } ]
    (...)

Unfortunately this seems currently not supported by the SocketCAN driver. Do you have any more information on this topic?

Thanks in advance!

Stefan

#1 lore raw
Quoted 16 lines · Stefan Tatschner

I am currently working with the PCAN USB Pro FD device. I wanted to experiment with the "one-shot" mode, which is proposed by "ip":

    $ ip link set can0 type can help
    Usage: ip link set DEVICE type can
    (...)
        [ loopback { on | off } ]
        [ listen-only { on | off } ]
        [ triple-sampling { on | off } ]
        [ one-shot { on | off } ]
        [ berr-reporting { on | off } ]
        [ fd { on | off } ]
        [ fd-non-iso { on | off } ]
        [ presume-ack { on | off } ]
    (...)
Quoted 2 lines

Unfortunately this seems currently not supported by the SocketCAN driver. Do you have any more information on this topic?

Indeed it's not supported by the driver. Maybe Stephane can tell, if at least the hardware supports this feature.

Marc

Signature · 4 lines
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   |
#3 lore raw
Quoted 7 lines · Stefan Tatschner
Quoted 2 lines · Marc Kleine-Budde

Indeed it's not supported by the driver. Maybe Stephane can tell, if at least the hardware supports this feature.

I had emailed the support a while ago. The mode seems to be supported; but they call it "single shot" instead. I assume it is the same as "one-shot", see also [1].

Yes seems so. Maybe you can get a datasheet to implement theat feature in the linux driver.

Marc

Signature · 4 lines
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   |