Operation timeout when being sent 64-byte packet. #261
Unanswered
alecct-exi
asked this question in
Q&A
Replies: 1 comment
-
Hello @alecct-exi, it sounds a bit strange to me that that no data will be received at all - but I'm sure we'll get to the bottom of this and I've got a bunch of questions for you:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using serialport-rs for a host-side application communicating to an embedded device and I'm unsure on whether the cause of my bug is my host-side configuration or something I'm doing on the device side (in which case this question will be irrelevant).
When I write packets from the device that are less than 64 bytes long the host receives them fine, with the read function returning Ok(n) where n is the correct number of bytes I sent from the device.
The problem is when I try to write a whole 64-byte packet from the device, the read function always times out returning a timeout message wrapped in the Err return type, no matter how long I set the timeout to be in the serial port's configuration, nor when setting a significant delay before reading. This issue remains when passing the read function an array(or vector) to read into which has a size greater than 64 bytes.
Does anyone have a suggestion for what I might be doing wrong or might it be the device side that is the cause of this bug?
Beta Was this translation helpful? Give feedback.
All reactions