Modbus library
Posted: Thu Jul 23, 2020 2:24 pm
Hello people, I'm starting an IoT project and I've decided to use the NodeMCU board. The project consists of remote monitoring of electrical grids, so then it is composed of a module which takes a lot of data from a power grid analyzer and then sends that to a remote server through the internet. I decided to use NodeMCU because it has already implemented a WiFi interface and it's very cheap. However, I have realized I'm going to have problems with the communication with the power grid analyzer because that one has an RS485 interface and implements the Modbus protocol. There is no problem with the RS485 interface because I'm going to use an adaptor to UART, but I wasn't been able to find a Modbus library for MicroPython. I have just found these options:
https://pypi.org/project/uModbus/ (Intended for CPython not MicroPython)
https://github.com/techbase123/micropython-modbus (Intended justo for ESP32)
https://github.com/riptideio/pymodbus (I'm not sure if it's compatible with MicroPython and NodeMCU)
Do you know some Modbus library I can use? Or is it possible to adapt one of the mentioned library to MicroPython?
https://pypi.org/project/uModbus/ (Intended for CPython not MicroPython)
https://github.com/techbase123/micropython-modbus (Intended justo for ESP32)
https://github.com/riptideio/pymodbus (I'm not sure if it's compatible with MicroPython and NodeMCU)
Do you know some Modbus library I can use? Or is it possible to adapt one of the mentioned library to MicroPython?