Hi All!
I am experimenting with a MODBUS sensor and I can not receive it's answer to my request.
I am able to send the request message through the MAX485 module ( I can see it with my oscilloscope), the sensor is sending the requested data (I can see it with my scope too). But I get no data in the MEGA.
The problem is - I think:
The signal (between the MEGA and the MAX485 module) is too "weak": about 0,5V (HIGH: 4,675V, LOW: 4,253V).
I attached a picture of the scope - the blue signal is the MODBUS A+ line. The first transmission is the request, the second is the data from the sensor. The red signal is the RX line between the MEGA and the MAX485 module, where the "reply" transmission is present - but the signal is not "high" enough.
The setup:
Arduino MEGA Serial1 --> MAX485 --> Sensor RS485 (MODBUS)
I think the problem is not in the code - so I did not post it yet.
I already set up this communication with an MKR1310 and an MKR MAX485 module, whitout any problem.
Thanks for any help.
Gergo