I had read this: http://stackoverflow.com/questions/815758/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: http://stackoverflow.com/questions/815758/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...
You could in a couple of days implement something like the Ash specification by Ember. It does address most of the issues pretty well.
See my answer , but go to Jeremy Bentham's TCP/IP Lean site
You can easily get it to speak normal IP protocols.
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.