Giter Site home page Giter Site logo

cangw setup wrong about can-utils HOT 6 CLOSED

nico0481 avatar nico0481 commented on July 16, 2024
cangw setup wrong

from can-utils.

Comments (6)

marckleinebudde avatar marckleinebudde commented on July 16, 2024 1

IC! That functionality was removed in a9985c7, as it's no longer needed with can-gw.

    candump: remove bridging functionality
    
    The tool 'candump' is used to dump CAN traffic to stdout or logfile.
    In early days where the in-kernel CAN gateway (can-gw) with the cangw tool was
    not yet implemented the bridging functionality allowed to send received (and
    filtered) CAN frames to another outgoing CAN interface.
    
    As we now have can-gw and sending CAN frames from a 'reading tool' seems wrong
    especially from the Unix philosophy "Write programs that do one thing and do
    it well." this patch removes the obsolete functionality from candump.
    
    Signed-off-by: Oliver Hartkopp <[email protected]>

from can-utils.

nico0481 avatar nico0481 commented on July 16, 2024 1

it works now, it was HW issue
Thanks

from can-utils.

marckleinebudde avatar marckleinebudde commented on July 16, 2024

candump doesn't have a -B option. What should it do?

from can-utils.

nico0481 avatar nico0481 commented on July 16, 2024

Earlier candump has options:
-b
(bridge mode - send received frames to )

   -B <can>
          (bridge mode - like '-b' with disabled loopback)

See: https://manpages.ubuntu.com/manpages/focal/en/man1/candump.1.html

I used this option to bridge can0 to can1
But since few updates, option doesn't exist anymore.

from can-utils.

hartkopp avatar hartkopp commented on July 16, 2024

I managed to use previously cangw on physical interfaces (can0&can1)with for instance:

        sudo modprobe can-gw
        sudo cangw -A -s can0 -d can1
        sudo cangw -A -s can1 -d can0

but can interfaces are not forwarded to each other. How can I set bridging between interfaces? What's wrong with my set up?

The setup is correct - but you likely do not see the outgoing traffic on your local machine as you did not enable the -e option to echo the sent traffic.

To have the -B can1 functionality invoke sudo cangw -A -s can0 -d can1 -e

Please also take a look what cangw -L tells you about the current can-gw routing jobs.

from can-utils.

hartkopp avatar hartkopp commented on July 16, 2024

Thanks!

from can-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.