I had read this: Simple serial point-to-point communication protocol
and I'm doing the same thing, and I don't want to reinvent wheel...
are there any API or sample code?
PS: code in C/C++, python...
I had read this: Simple serial point-to-point communication protocol
and I'm doing the same thing, and I don't want to reinvent wheel...
are there any API or sample code?
PS: code in C/C++, python...
See my answer , but go to Jeremy Bentham's TCP/IP Lean site
You can easily get it to speak normal IP protocols.
You could in a couple of days implement something like the Ash specification by Ember. It does address most of the issues pretty well.
APIs, implemented by software, are product-specific and/or O/S-specific.
On an embedded system (which is the kind of system where serial comms is most prevalent) you'd use (perhaps buy) a library.
Microcontroller Interconnect Network (MIN) code, written in 8-bit microcontroller embedded C and (for a PC etc.) also in Python:
https://github.com/min-protocol/min
Includes a "hello world" test program for an Arduino + PC described here:
https://kentindell.wordpress.com/2015/02/18/micrcontroller-interconnect-network-min-version-1-0/