思路: 在rtk Service 中,开启 serialPortThread线程
2. 在子线程中,
通过serialPortUtil 打开串口 ,
在run方法中,处理从USB中读到的数据
通过回调函数,将数据抛到 rtk Service
09-26
1587
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-20
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
思路: 在rtk Service 中,开启 serialPortThread线程
2. 在子线程中,
通过serialPortUtil 打开串口 ,
在run方法中,处理从USB中读到的数据
通过回调函数,将数据抛到 rtk Service