I have RS485 sensor and i needed to be able to read and write to registers with arduino
i got Maxim MAX485 chip and trying to connect it to the Mega,
But i can't find or figure out how to connect the chip and what i need to be able to send and receive through the chip Hex frames like
Address Code Function Code Start Address Data Length CRC_L CRC_H
(0x01 0x03 0x00 0x02 0x00 0x02 0x65 0xCB)
I have RS485 sensor and i needed to be able to read and write to registers with arduino
RS485 is a physical interface. If you write about registers, is it possible that you run some protocol on RS485 as probably Modbus RTU? Post a link to the manual of your sensor!
pylon:
RS485 is a physical interface. If you write about registers, is it possible that you run some protocol on RS485 as probably Modbus RTU? Post a link to the manual of your sensor!
Use a library like the ModbusMaster library (available in the IDE library manager) to access your sensor. Don't use the SimpleModbusMaster library, despite it's name it's not simpler to use and provides no details in case of an error.
pylon:
Use a library like the ModbusMaster library (available in the IDE library manager) to access your sensor. Don't use the SimpleModbusMaster library, despite it's name it's not simpler to use and provides no details in case of an error.