ISO RS485 on M5dial
-
Hi, So i have a ISO RS485 and i need to get modbus working on it. The primary problem im facing is that the module is UART based and by my understanding M5Dial has I2C and GPIO ports. Is it as simple as hardware serial and setting 1 and 2 pins to UART or is there something else to it
Also it would be great help if there are any modbus library that can be used.
Thank You -
@mukul_100_ what software you planning to use?
see uiflow2 init example
-
i am using platformio right now. thanks
-
Hello @mukul_100_
please find an example here with M5Dial and RS485 unit controlling an ACSSR relay via Modbus protocol.
Thanks
Felix -
@felmue hi felix sorry for the late reply, finally got a chance to get back to this
i studied the example but not sure if i understood how to implement the master slave concept through this and also there is a error thrown in
RS485Class RS485(Serial2, GPIO_NUM_1, GPIO_NUM_2, -1, -1);as there are only 4 arguments accepted by the class
also serial2 needs some tweaking for esp32 right?
thanks