Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

串口返回发生分段问题 #11

Open
KeaPin opened this issue May 18, 2018 · 1 comment
Open

串口返回发生分段问题 #11

KeaPin opened this issue May 18, 2018 · 1 comment

Comments

@KeaPin
Copy link

KeaPin commented May 18, 2018

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

@BDZNH
Copy link

BDZNH commented Apr 22, 2020

SerialPortReadThread这里

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

1024改成更大的数值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants