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
mConnection.requestWait() block when data length==32 #331
Comments
Do you use |
I tried to set timeout like I still don't know why... |
I could not reproduce this issue with my CH34x test devices, there was no problem with length=32. |
Maybe, I am the only one with this problem, so I think it is not representative. You can close this problem if If you think it is necessary. Thank you all the same~~ 💯 |
I have the same issue, it block at mConnection.requestWait(), and after close the port, it receive the data from onNewData(). |
now I could reproduce the issue. I can only speculate about the reason:
The issue did not occur with other device types (FTDI, Prolific, ...) |
THX@kai-morich Finally I used the driver which provid by the original factory, I will try it again next time when I use ch34X chip. THX all the same! |
for SerialInputOutputManager fixed with 848d4e7 |
i have the same issue, when i send "11111111111111111111111111111111111111111111112",the "2" is not receive,then i try to send "111111111111111111111111111111111111111111111122",data is full receive,i do not know how to resolve,can you help me? |
when using SerialInputOutputManager you do not have to set the buffer size any more, as it already sets the optimal size = 32. |
we have resolved yesterday,cause write data timeout is too short,we have increased timeout, finally it works well |
Hi,
I used usb-serial-for-android lib with a ch340 hardware, it recieve data from ch340, when the data length is not 32 or 32 * n, it works well, but it DOS NOT work when the data length is 32 or 32*n like "hellohellohellohellohellohellohe" (length = 32) or "hellohellohellohellohellohellohehellohellohellohellohellohellohe"(length = 64) . I debug it, found it block at
mConnection.requestWait()
.And I set
usbSerialPort.setParameters(115200, 8, UsbSerialPort.STOPBITS_1, UsbSerialPort.PARITY_NONE);
Very strange problem, anyone can help?
Thank U very much!
The text was updated successfully, but these errors were encountered: