Android-SerialPort-API
Android-SerialPort-API copied to clipboard
Fork自Google开源的Android串口通信Demo,修改成Android Studio项目
我发现这个库长时间运行后会出现无法读数据的情况。
为啥我从serialPort.getInputStream() 拿到的数据最多只能拿到32个字节 while (!isInterrupted()) { try { if (mInputStream == null) { return; } int available = mInputStream.available(); byte[] buffer = new byte[available]; int size = mInputStream.read(buffer); if (size >...
Added mark and space parity using the CMSPAR flag in combination with the PARODD flag. Added custom baudrate using the termios2 structure instead of the termios header. Added function to...

``su.waitFor()``阻塞了线程