0

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

Community
  • 1
  • 1
linjunhalida
  • 4,538
  • 6
  • 44
  • 64

4 Answers4

1

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
  • 3,705
  • 24
  • 37
0

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
  • 5,215
  • 4
  • 28
  • 35
0

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
  • 54,973
  • 13
  • 116
  • 224
0

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/

Ken Tindell
  • 343
  • 4
  • 7