M5Station RS485 port
-
I am very disappointed to learn that the RS485 port on the M5Station is linked to UART0 GPIO1,GPIO3, so is shared with the USB.
For example I want to use the M5 station for industrial application that uses modbus, and I also need Serial 0 for debug.
So I can't do nothing now.. and I liked the device. -
Hello @luisgcu
you are correct the GPIO choice is a bit unfortunate.
That said it helps if you want to debug what's going on on the Modbus connection by using a Modbus sniffer. I've found this one and it decodes the RTU data nicely. See below:
captured packet 1: length = 8, CRC: 6F8C = 6F8C [OK] DUMP: 04 05 00 00 FF 00 8C 6FAs for ESP32 debug output. You can always setup
Serialto output debug onto a different GPIO.Thanks
Felix
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login