timeout
Hi, When i communicate between a BeagleBoneBlack and an arduino with Serial Debug i received many "[Error: Packet timeout, transmit queue flushed.]"
how can i increase timeout value and how can i not stop receive on error?
Hi, sorry for the slow response.
This error indicates that the packet was not acknowledged by the other radio — perhaps it is not active, or too far away, etc. It is emitted on the stream for your open pipe, and there are a few options for dealing with it:
- the hardware-level timeout behavior can be configured via
radio.autoRetransmit. (You can refer to the datasheet around page 33 for details on how exactly thecount/delayvalues are used.) - in general though, even while increasing the number of retries may reduce unrecoverable packet loss, if you need reliable transmission you will want to handle error events for the opened stream — what you do
.on('error', …)is up to you, but in a sense it's a similar situation to a broken TCP/IP connection. - if you actually don't want reliable transmission, you can open the TX pipe with an
autoAck:falseoption [I plan to document the pipe options soon]. This makes the opened pipe behave more like a UDP socket.
Hope this helps?
Hi, thanks for your answer. My boths radios are active and at 10cm distance :-). the problem appear only when my arduino has serial debug active....
I'll tried your solution