REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    CANbus support?

    Bug reports, Feature requests
    2
    2
    317
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      enovikoff
      last edited by

      Has there been any thought given to CANbus support? Is there any advantage over Modbus that you know of?
      I'm operating in a very noisy environment and have to give up on Wifi, which doesn't work well on the Raspberry Pi anyway. So my choices are to use Modbus for device communication and wired LAN for inter-Pi communication, or to try to connect Pis with Modbus which I think will limit the design by restricting the speed and content that can be exchanged. I'm guessing you don't support it for lack of demand?

      1 Reply Last reply Reply Quote 0
      • jaroslav_sobotaJ
        jaroslav_sobota
        last edited by

        Hi Eric,
        you can use CANbus. See the blocks CanSend and CanRecv.

        There is also an example project 0406-01 included in REXYGEN Studio.

        For your experiments, you can use the 2-hour demo licence which covers CAN.

        The CANbus driver must be supported in the OS. As soon as the CAN device appears in the output of "ip link show", typically as can0, you should be fine.

        The baudrate is configured in /etc/rexcore/rexcore.env.d/80-candrvt.sh (uncomment the 2 lines) on your target device.

        Hope this helps, let me know.
        Jaroslav

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

        There is also an outdated REXYGEN community forum.

        Powered by NodeBB.