![]() | 1 elechi 1 天前 https://github.com/bugst/go-serial 没有完美的,这个相对还行,有啥问题自己 fork 后修改下 |
![]() | 2 elechi 1 天前 https://github.com/bugst/go-serial/issues/148 我使用中觉得不方便的就是这个问题,自己 fork 后修改下就行 |
4 ca2oh4 13 小时 47 分钟前 go 写嵌入式不觉得有点蹩脚吗,不如直接一步到位 用 rust |
![]() | 8 hmuhao 9 小时 34 分钟前 用 https://github.com/bugst/go-serial 这个包的话读串口可以考虑一个字节一个字节的读,直到 timeout 或者读到的数据长度为 0 ,就算读取完毕了,再校验数据包 |