摘要:
#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<sys/types.h>#include<sys/stat.h>#include<fcntl.h>#include<termios.h>#include<errno.h>#include<iconv.h> //编码转换#define STTY_DEV "/dev/ttyS0"#define BUFF_SIZE 512#define MSG_SIZ 阅读全文