licheedev / Android-SerialPort-API

Fork自Google开源的Android串口通信Demo,修改成Android Studio项目
https://code.google.com/archive/p/android-serialport-api/
Apache License 2.0
1.3k stars 374 forks source link

多个线程打开多个串口,关闭其中一个串口,其余串口也没响应 #41

Open eddyyuen opened 2 years ago

eddyyuen commented 2 years ago

在使用安卓8.1 开发串口应用,有3个串口设备,使用多个线程进行串口操作。 任意调用 serialport.close() 关闭一个串口,其它串口都不能正常工作了。 通过日志可见只是关闭了其中一个串口的。

请问这个是什么原因?