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

    Uniquely identifying a M5stack with a physical connection

    Scheduled Pinned Locked Moved PROJECTS
    3 Posts 2 Posters 4.2k Views 1 Watching
    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.
    • S Offline
      sofortune
      last edited by

      I am working on a project where i would like to plug in an m5 stack to a physical connection (RJ45 or Serial), have some kind of config file that uniquely identifies that particular m5stack, and be able to report it back where it's been connected to.

      Imagine there are 20 M5Stacks in positions 1-20, i would basically like to be able to know exactly which M5stack is in which position. Is this possible?

      m5stackM 1 Reply Last reply Reply Quote 0
      • m5stackM Offline
        m5stack @sofortune
        last edited by m5stack

        @sofortune multi serial device commuication , you could use “Modbus” function.

        in this page bottom, have UIFlow modbus use tutorial.
        https://docs.m5stack.com/#/en/uiflow/advanced?id=modbus-master

        1 Reply Last reply Reply Quote 0
        • S Offline
          sofortune
          last edited by

          Thanks, but i should have mentioned the idea is that if i move one of the m5stacks around, connecting it into a different position 1-20 it would be able to report back its position.

          Modbus concept actually is realy close, but seems that when one of the devices is detached the others become undetectable.

          Anything else similar to this?

          At one point i considered using a 2 layer switch with associationg each position with a port on the switch, but was wondering if there's a more cost effective method using serial.

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post