I looking for drivers and way of implementing MODBUS RTU (485) + MODBUS TCP using Chipkit Max32 as my prototyping platform. Target is to take in data from a legacy system via RS232 (Around 250, 16 bit values), parse it and convert into MODBUS so that clients can connect and read the data via RS485 or TCP interfaces. For the TCP, I intend to use the Wiznet W5500 so that all the stack runs off the PIC32.
Idea is to use Arduino as a startup Proof Of Concept for the MODBUS then convert it into a MPLABX project (using the the importer) for production application development.
So I would highly appreciate any pointers, guidelines and caution if somebody has worked on this before.
Please guide me with the following:
- Which W5500 driver to use. Adafruit Arduino Ethernet2 ??
- How to extend the W5500 Tx/Rx buffer with the PIC32 internal memory ??
- Can I use all the 8 sockets of the W5500 on port 502 ??