作者: yunnlai (none) 2020-03-15 04:33:00
看波形, baud rate 应是 9600 bps. parity/stop bit 是 ?试试看 none parity.又,因packet间隔短(0.3ms),且是连续回8Byte-间隔-9Byte,程式最底层读取 UART port 是用 polling 或 interrupt ?建议用 Interrupt 收回传值. 因4000元模组读得到, 推测UART port FIFO 应有 8byte以上(概估).简言之,用中断(background)收资料,收到程式(F/W)的Queue(通常是宣告array),在Foreground的程式读queue,再解析之.