From c8f8247ac330c505c82c8635be9abaa459b7ea7c Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Sun, 3 Nov 2019 19:41:59 -0600 Subject: [PATCH] tweak --- doc/lorapipe.1.md | 14 ++++++++++++++ src/lorastik.rs | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/lorapipe.1.md b/doc/lorapipe.1.md index 9e358c8..512ae98 100644 --- a/doc/lorapipe.1.md +++ b/doc/lorapipe.1.md @@ -436,6 +436,20 @@ before the port and command on the command line. sending small packets. In my testing, with 100-byte packets, a txwait of 50 was generally sufficient. +**--txslot** TIME** +: The maximum of time in milliseconds for one end of the conversation + to continue transmitting without switching to receive mode. This + is useful for protocols such as TCP that expect periodic ACKs and + get perturbed when they are not delivered in a timely manner. If + **--txslot** is given, then after the given number of milliseconds + have elapsed, the next packet transmitted will signal to the other + end that it should take a turn. If the transmitter has more data + to send, it is sent with a special flag of 2 to request the other + end to immediately send back a frame - data if it has some, or a "I + don't have anything, continue" frame otherwise. After transmitting + flag 2, it will wait up to **txwait** seconds for the first packet + from the other end before continuing to transmit. + **--maxpacketsize** *BYTES* : The maximum frame size, in the range of 10 - 250. The actual frame transmitted over the air will be one byte larger due to diff --git a/src/lorastik.rs b/src/lorastik.rs index f36b2e8..802292a 100644 --- a/src/lorastik.rs +++ b/src/lorastik.rs @@ -327,7 +327,7 @@ impl LoraStik { let now = Instant::now(); if now >= delayend { // We're past the delay. Clear it and return. - debug!("txdelayrequired: past the required delay"); + debug!("txdelayrequired: {:?} past the required delay {:?}", now, delayend); self.txdelay = None; None } else {