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

PI3 B+ MCP2515 CAN ERROR

Runtime
polygj
2018-01-08
2019-07-18
  • polygj

    polygj - 2018-01-08

    Can interface communication is all right in the terminal, but it is wrong in the codesys.
    I have configured the can interface in the way in the forum, but the problem couldn't be solved.
    I have no way to deal with the problem, please help !

    IMG: pic4.jpg

    IMG: pic5.jpg

    IMG: pic3.jpg

    IMG: pic2.jpg

    IMG: pic1.jpg

     
  • eschwellinger

    eschwellinger - 2018-01-09

    Hi,
    is this 3.5SP12 Version?
    Guess you need an entry in your /etc/CODESYSControl_User.cfg for example the following entry
    where the script is located (this is like it is the beaglebone black done) :

    [CmpSocketCanDrv]
    ScriptPath=/opt/codesys/scripts/
    ScriptName=rts_set_baud.sh

    BR
    Edwn

     
  • polygj

    polygj - 2018-01-09

    Thank you very much! The problem seems to have been solved! And I'll test it in detail later.

    IMG: pic1.jpg

     
  • Kalyani-K

    Kalyani-K - 2019-07-18

    Hi there!

    I am also trying to set up the same circuit as seen in the image attached by you.

    Can you please tell me the steps(commands) to be taken to be able to set up can1?

    I managed to set up can0 using the commands mentioned in the following link:
    https://www.raspberrypi.org/forums/viewtopic.php?t=141052

    I also changed the file pathway for the script as mentioned by Edwin.

    However, I am now blind to be able to set up can1, such that two MCPs can run on a single raspberry pi.

    It would be very helpful if you told me about what you did.

    PS: I am not from Linux background.

    Thanks again for your time!!

     

Log in to post a comment.