Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

CAN through SPI PI3?

2017-05-24
2017-11-19
  • johnfarrugia - 2017-05-24

    I am looking for a tutorial on how to configure a Pi3 to use Canbus through an MCP2515. Is there any available?

     
  • johnfarrugia - 2017-05-25

    anyone?

     
  • johnfarrugia - 2017-05-25

    Using the candump command, I am able to see the network Packets.
    However, I am still getting a bus failure in codesys

    IMG: Capture.JPG

    IMG: Capture.JPG

     
  • johnfarrugia - 2017-05-26

    I seem to be getting errors from the following script:

    sudo /root/rts_set_baud.sh

    #!/bin/sh
    BITRATE=expr $2 \\* 1000
    ifconfig $1 down
    echo ip link set $1 type can bitrate $BITRATE
    ip link set $1 type can bitrate $BITRATE
    ifconfig $1 up

    IMG: Capture.JPG

     
  • johnfarrugia - 2017-05-27

    Edwin? Can you help?

     
  • JoJo - 2017-08-08

    Hi,

    I'm having the same problem ... Do you know more about that ?

    Best Regards

     
  • klima - 2017-11-19

    Create rts_set_baud.sh file in /root/ and chmod it to 777.

     

Log in to post a comment.