Has anyone been able to get the WaveShare RS485/CAN Cape to work? I followed Edwins BB setup instructions, by:
1. Installing the RT kernel (4.18.16-bone-rt-r15)
2. Enabling the cape id BB-CAN1 in the /boot/uEnv.txt file. (Is this the right name for this cape?)
3. Editing /etc/init.d/cpufrequtils Governor to "performance"
I checked the salve device's baud rate (125kB) and device ID's are correct (id1). If I right-click on the CANopen Manager and scan for devices, it locks up Codesys.
CANbus is green, but the CANopen Manager never starts and stays orange. Device is always red.
On the device (WAGO 750-347 coupler) If I unplug the slave's cable I get the expected TX/RX error lights, but otherwise if I reboot slave after master is running, the RUN light blinks green slowly indicating pre-operational state. I believe it is seeing CAN messages otherwise it would not be in pre-operational state.
Any ideas what I'm doing wrong?
Here is a screenshot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, I have completed those steps, here are the results;
When I put the wrong NodeID (intentionally) it gives the error wrong NodeID, which tells me CANopen messages are being sent. With the right NodeID, I get a SDO Read error. Below are my Slave devices SDOs, I do not see object 16#1000:16#00 mapped.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I tried cansend can0 123#12 again. I have an o-scope attached to the TX pin, and see a flatline.
Does not appear to record any packets transmitted either, so must be a problem with this cape (which has very limited and old documentation)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: dosnova
I've contacted Logic Supply. CAN/serial cape has been discontinued. Any alternative produc to implement CAN with Codesys in a reliable way??
Hi,
http://www.waveshare.com/rs485-can-cape.htm
BR
Edwin
Has anyone been able to get the WaveShare RS485/CAN Cape to work? I followed Edwins BB setup instructions, by:
1. Installing the RT kernel (4.18.16-bone-rt-r15)
2. Enabling the cape id BB-CAN1 in the /boot/uEnv.txt file. (Is this the right name for this cape?)
3. Editing /etc/init.d/cpufrequtils Governor to "performance"
I checked the salve device's baud rate (125kB) and device ID's are correct (id1). If I right-click on the CANopen Manager and scan for devices, it locks up Codesys.
CANbus is green, but the CANopen Manager never starts and stays orange. Device is always red.
On the device (WAGO 750-347 coupler) If I unplug the slave's cable I get the expected TX/RX error lights, but otherwise if I reboot slave after master is running, the RUN light blinks green slowly indicating pre-operational state. I believe it is seeing CAN messages otherwise it would not be in pre-operational state.
Any ideas what I'm doing wrong?
Here is a screenshot.
Hi Kurt,
two things to check:
1. does cansend / work under Linux (login by ssh)
and check the plclogger for more information?
BR
Edwin
Thank you, I have completed those steps, here are the results;
When I put the wrong NodeID (intentionally) it gives the error wrong NodeID, which tells me CANopen messages are being sent. With the right NodeID, I get a SDO Read error. Below are my Slave devices SDOs, I do not see object 16#1000:16#00 mapped.
Hi,
what happens if you do a slave 'scan' by rightclick on the CANopen Manager?
BR
Edwin
It locks up Codesys when I try to scan.
Hi,
check if from Linux cansend and receive work like expected with SocketCAN.
If this is the case the CODESYS side should work too.
BR
Edwin
Hello, I tried cansend can0 123#12 again. I have an o-scope attached to the TX pin, and see a flatline.
Does not appear to record any packets transmitted either, so must be a problem with this cape (which has very limited and old documentation)