tags:

views:

166

answers:

3

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...

A: 

You could in a couple of days implement something like the Ash specification by Ember. It does address most of the issues pretty well.

MandoMando
+1  A: 

See my answer , but go to Jeremy Bentham's TCP/IP Lean site

You can easily get it to speak normal IP protocols.

Tim Williscroft
Second this. Most of the API and libraries wrappers of varying thickness around Good old berkley sockets anyway.
James Anderson
A: 

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.

ChrisW