开发者

Simple serial point-to-point communication protocol ---- sample code

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜