This commit is contained in:
John Goerzen 2019-11-03 19:31:51 -06:00
parent 9f7426741e
commit 9630e07db9
2 changed files with 11 additions and 4 deletions

View File

@ -403,6 +403,14 @@ before the port and command on the command line.
logged with **lorapipe**'s logging facility, and are therefore only
visible if **--debug** is also used.
**--pack**
: Attempt to pack as many bytes into each transmitted frame as
possible. Ordinarily, the **pipe** and **kiss** commands attempt
-- though do not guarantee -- to preserve original framing from the
operating system. With **--pack**, instead the effort is made to
absolutely minimize the number of transmitted frames by putting as
much data as possible into each.
**-V**, **--version**
: Display the version number of **lorapipe**.
@ -433,8 +441,7 @@ before the port and command on the command line.
transmitted over the air will be one byte larger due to
**lorapipe** collision mitigation as described above.
Experimentation myself, and reports from others, suggests that LoRa
works best when this is 100 or less. Valid only for **kiss** and
**pipe** commands; ignored for all others.
works best when this is 100 or less.
*PORT*
: The name of the serial port to which the radio is attached.

View File

@ -116,7 +116,7 @@ impl LoraStik {
/// parameters after a read.
pub fn new(ser: LoraSer, readqual: bool, txwait: u64, eotwait: u64, maxpacketsize: usize, pack: bool, txslot: u64) -> (LoraStik, crossbeam_channel::Receiver<ReceivedFrames>) {
let (readerlinestx, readerlinesrx) = crossbeam_channel::unbounded();
let (txblockstx, txblocksrx) = crossbeam_channel::bounded(3);
let (txblockstx, txblocksrx) = crossbeam_channel::bounded(2);
let (readeroutput, readeroutputreader) = crossbeam_channel::unbounded();
let ser2 = ser.clone();