I'm working on a project that involves a good bit of data communication between a remote Arduino and a computer. The wireless connection is through a pair of XBees, so we have a RS232 link between the Arduino and the computer. For small amounts of data, it's easy enough to throw together some simple communication protocol. For larger projects, though, what are some good simple communication protocols?
I've looked at MODBUS, which seems like a viable option, but I wanted to see if there were other better options.
Answer
The O.P. asks for a serial protocol for a situation where "not a lot [of data] and speed isn't a huge issue". MODBUS is mentioned in the O.P. MODBUS over RS-485 is not a fast protocol. While this is not a spec, this gives an idea about the niche.
I can think of only two common standard protocols for this niche:
- NEMA 0183. Plain text ASCII protocol. Human readable. Point-to point only. Doesn't support multi-drop bus.
- MODBUS which was already mentioned in the O.P.
Very often, when the embedded programmers are in the situation like the O.P., they design their own serial communication protocols from scratch.
No comments:
Post a Comment