In this class, you will create serial port to TCP converter using Arduino code running on ESP32 processor. We will use one of device which uses such processor: Moduino X ESP32. For TCP communication WiFi module will be used.
You will need:
- Moduino X2 (may be also X1) ESP32 device (check this website to find out more and this to by the device)
- PC with Linux operating system
- socat application
- RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter (for programmming and testing)
In our example data sent to serial port (which is used as terminal port in regular Micropython ESP32 device) will be send via WiFi using TCP protocol. It also decodes incomming TCP packets and writes them to serial port.Then virtual serial port can be opened for that TCP packets and perform serial communication.We will use socat application for that.
You can read the complete tutorial at Hackster.io: