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 !
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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) :
I wasn't sure if I should open a new thread or not. So I attached to this old one, sorry for that. I have a Raspberry 2 with PiCan v2 revB like the previous speakers. I have worked through all the steps and I can't get the bus running, see picture. I hope someone can help me.
For me it looks like the can bus resistors are missing or no slave is connected or wrong baudrate...the driver seems to work if you get these messages.
BR
Edwin
Last edit: eschwellinger 2020-09-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Resistors are installed, an i have a Wago 750-338 with 8 inputs and 8 outputs connected.
The configuration shoud be ok. The PiCAN works fine on System Level or with a Python script.
I use CoDeSys 3.5 SP15 Patch4.
BR
Timo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !
more posts ...
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
Thank you very much! The problem seems to have been solved! And I'll test it in detail later.
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!!
Hello everybody,
I wasn't sure if I should open a new thread or not. So I attached to this old one, sorry for that. I have a Raspberry 2 with PiCan v2 revB like the previous speakers. I have worked through all the steps and I can't get the bus running, see picture. I hope someone can help me.
Many greetings
Crazy
Last edit: crazy-sonic82 2020-09-04
For me it looks like the can bus resistors are missing or no slave is connected or wrong baudrate...the driver seems to work if you get these messages.
BR
Edwin
Last edit: eschwellinger 2020-09-05
Hi Edwin,
The Resistors are installed, an i have a Wago 750-338 with 8 inputs and 8 outputs connected.
The configuration shoud be ok. The PiCAN works fine on System Level or with a Python script.
I use CoDeSys 3.5 SP15 Patch4.
BR
Timo