AndroidSerialPort icon indicating copy to clipboard operation
AndroidSerialPort copied to clipboard

串口返回发生分段问题

Open KeaPin opened this issue 7 years ago • 1 comments

串口返回数据过长的时候会发生分两次返回,请问有什么好的办法解决呢

KeaPin avatar May 18 '18 04:05 KeaPin

SerialPortReadThread这里

    public SerialPortReadThread(InputStream inputStream) {
        mInputStream = inputStream;
        mReadBuffer = new byte[1024];
    }

1024改成更大的数值

BDZNH avatar Apr 22 '20 06:04 BDZNH