The number in front of the semicolon is the number of bytes receives, the data after the semicolon is the data received. Obviously the bold data is an unwanted received datagram. The data is send by an FB:
The data is send from the PI to the slave. However ... it is still possible that the slave interpretes a spike as an SCL transition. But still I find this very strange since the hardware has undergone serious testing using a python program. Unless smbus uses lower bitrates than Codesys I2C master ...
Can the bitrate be changed in Codesys?
Koen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Maybe someone experiences the same behaviour and is able to suggest some fixes.
When using some homemade I/O for Codesys RPi I noticed unwanted spikes on the outputs that lasted for some milliseconds (ie. one PLC scan)
When I log the data that is received by an Arduino Slave device I notice:
The number in front of the semicolon is the number of bytes receives, the data after the semicolon is the data received. Obviously the bold data is an unwanted received datagram. The data is send by an FB:
I wrote a Python program to test the hardware, nothing unexpected shows up!
What could cause this? Any suggestions?
Kind regards,
Koen Kempeneers
Related
Talk.ru: 1
Talk.ru: 2
Talk.ru: 3
Sounds like an electronic problem.
https://www.i2c-bus.org/i2c-primer/anal ... -are-0xff/ m
No it does not ...
The data is send from the PI to the slave. However ... it is still possible that the slave interpretes a spike as an SCL transition. But still I find this very strange since the hardware has undergone serious testing using a python program. Unless smbus uses lower bitrates than Codesys I2C master ...
Can the bitrate be changed in Codesys?
Koen.
Hi,
this you need to set in the system independent from CODESYS
https://www.raspberrypi.org/forums/view ... p?t=219675
https://www.raspberrypi-spy.co.uk/2018/ ... bus-speed/
BR
Edwin