Skip to content

connect two socketcand #73

Open
Open

Description

@Cosik

Hi,

I start thinking if there is possibility and anyone think about connecting two devices with socketcand?

I wonder if there is possibility to get something like can <-> eth <-> eth <-> can

Activity

  1. Kimmax commented on Aug 3, 2025

    @Kimmax

    Not in the scope of socketcand currently, but you can easily use python-can on the other end to connect to the remote and proxy the traffic to/from any other local interface, for example a socketcan virtual interface

  2. hartkopp commented on Aug 4, 2025

    @hartkopp
    Member

    The socketcand was intended for interactive control of CAN data from a host that wants to access CAN interfaces remotely.

    A more efficient SocketCAN tunneling is provided by the https://github.com/mguentner/cannelloni project.

    If your only use case is to see CAN traffic from another Linux host, e.g. on your local virtual CAN interfaces, you can get this traffic via ssh command option like this:

    ssh root@remote-host candump -L can0 can1 | canplayer vcan0=can0 vcan1=can1

    or e.g. create a CAN logfile on your local host with remove traffic:

    ssh root@remote-host candump -L any > remote-candump.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions