monupal
Hi everyone,
I am using OpenPLC Runtime on an ESP32-S3 and I have a question regarding simultaneous communication.
My setup is:
- Native USB (GPIO19 = D-, GPIO20 = D+) used for debugging (Serial / USB CDC)
- Modbus RTU (RS485) running on UART (GPIO43 = TX, GPIO44 = RX)
I want to know:
Is it possible to run Modbus communication and USB debugging at the same time on ESP32-S3 using OpenPLC?
Currently, I want to:
- Monitor/debug variables via USB Serial
- Run continuous Modbus RTU communication in parallel
Are there any limitations, performance issues, or configuration requirements for this setup?
Thanks in advance.
Reply 0 0
thiagoralves
Debugging uses Modbus, and you can select only one interface to use with Modbus. So you will either have to run both Modbus RTU and debugging over UART or over USB CDC
Reply 0 0
thiagoralves
Alternatively you can enable both Modbus RTU and Modbus TCP (over WiFi) and then debug over WiFi using the Modbus TCP channel and have the Modbus RTU running over UART
Reply 0 0
Programador s7
You could use serial1, which are GPIO17 and 18, for your RS485 and thus debug via USB.
Reply 0 0
Reply