串口调试例子:
程序先打印字符输出,等待有输入后打印输入内容结束。
通信速率115200位/秒
参考:http://maker.zlgmcu.com/forum.php?mod=viewthread&tid=391189&highlight=%E4%B8%B2%E5%8F%A3
关于串口示例无法设置波特率的问题说明
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/wait.h>
#include <sys/socket.h>
#inc