🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Station RS485 port

    PRODUCTS
    2
    2
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      luisgcu
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by felmue

        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 6F
        

        As for ESP32 debug output. You can always setup Serial to output debug onto a different GPIO.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post