参考文章: https://blog.csdn.net/kong_gu_you_lan/article/details/52302075?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166121823316781432990735%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=166121823316781432990735&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-2-52302075-null-null.142v42pc_rank_34,185v2control&utm_term=java%E5%AE%9E%E7%8E%B0%E4%B8%B2%E5%8F%A3%E9%80%9A%E4%BF%A1&spm=1018.2226.3001.4187 电脑上测试时可模拟出串口来 模拟虚拟串口的软件用: 串口调试助手建议使用: