Ask Electronics
For questions about component-level electronic circuits, tools and equipment.
Rules
1: Be nice.
2: Be on-topic (eg: Electronic, not electrical).
3: No commercial stuff, buying, selling or valuations.
4: Be safe.
Thank you for your suggestions. Rs-485 seems to be what I was looking for. CAN could also work, but is it reasonably implementable? So far everyone who I spoke with about CAN said that it is a rather complex protocol with a lots of finicky details and an extra long standard. Perhaps I have just talked to the wrong people. I will look into it more thoroughly, and thanks again.
I might be a bit spoiled by the ESP32 and all its supported protocols.
Sounds like you want ethernet.
Hmmm... It does tick a lot of the boxes, but the ethernet protocol is way too complex with all of its layers and not reasonably implementable on a low-power microcontroller. Also it requires separate hubs for connecting multiple devices together unlike i2c, which is daisy chainable.
A lot of microcontrollers, ESP32 or STM32F4 to give two examples, have the PHY built in.
But if that's too much for your taste, then CAN bus might be what you're looking for.
CAN BUS is relatively easy to implement and ticks your boxes
Thank you for your suggestion. Is it really that easy to implement? So far the people I talked with irl told me otherwise, but I will look into it and judge myself whether I am up to the task.
Exactly, hard/easy depends on your background. It's been almost 20 years since I worked with it, I'm sure there are ready made libraries or chips implementing 99% of the protocol these days.
You could give PJON a try https://github.com/gioblu/PJON
This seems more than interesting. Will check it out in detail, since I haven't heard about it until now. Thanks for the suggestion!
MQTT?
MQTT isn't peer-to-peer, it requires a centralized broker that all devices connect to.
If OP were looking at network protocols, CoAP would be the right option, but it looks like they don't even want to bother with IP.
Indeed, I was looking for a simpler and lower level protocol. Thanks for mentioning the network protocol anyway, because I have never heard of CoAP until now. It may come in handy in the future (or maybe for someone else reading the post).