From 926b3d604d2d41ea30c7d415354f290565bc2844 Mon Sep 17 00:00:00 2001 From: tanupoo Date: Mon, 31 Aug 2020 09:31:45 +0900 Subject: [PATCH] added example of the command line. --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df271f0..cffea60 100644 --- a/README.md +++ b/README.md @@ -100,10 +100,36 @@ Max Frames per day : 309 frames without the -v option, it simply shows the ToA. ``` -% python toa.py 12 64 +% toa.py 12 64 2793.472 ``` +There is an example of Semtech LoRa Caluculator Interface in the datasheet. +If the parameters in that picture apply to toa.py, below is the command line. + +``` +% toa.py 12 8 --band-width 500 --cr 1 --disable-auto-ldro --preamble 6 --disable-eh -v +PHY payload size : 8 Bytes +MAC payload size : 3 Bytes +Spreading Factor : 12 +Band width : 500 kHz +Low data rate opt. : disable +Explicit header : disable +CR (coding rate) : 1 (4/5) +Symbol Rate : 122.070 symbol/s +Symbol Time : 8.192 msec/symbol +Preamble size : 6 symbols +Packet symbol size : 13 symbols +Preamble ToA : 83.968 msec +Payload ToA : 106.496 msec +Time on Air : 190.464 msec +RAW data rate : 1171.875 bps +Duty Cycle : 1 % +Min span of a cycle : 19.046 sec +Max Frames per day : 4536 frames +``` + + ## graph_as923.py It makes a set of figures about Time on Air and PHYPayload size,