Uniquely identifying a M5stack with a physical connection
-
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?
-
@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 -
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.
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