Protocols used to talk between an embedded CPU and a PC

前端 未结 8 1825
梦谈多话
梦谈多话 2021-01-31 20:21

I am building a small device with its own CPU (AVR Mega8) that is supposed to connect to a PC. Assuming that the physical connection and passing of bytes has been accomplished,

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 20:39

    Modbus might be what you are looking for. It was designed for exactly the type of problem you have. There is lots of code/tools out there and adherence to a standard could mean easy reuse later. It also support human readable ASCII so it is still easy to understand/test.

    See FreeModBus for windows and embedded source.

提交回复
热议问题