described SIZE in detail.

master
Shoichi Sakane 2018-06-03 12:29:27 +09:00
parent 18dd0c15cb
commit fb1ed3b47b
1 changed files with 7 additions and 2 deletions

View File

@ -108,8 +108,13 @@ if __name__ == "__main__" :
p.add_argument("n_sf", metavar="SF", type=int,
help="Spreading Factor. It should be from 7 to 12.")
p.add_argument("n_size", metavar="SIZE", type=int,
help="""PHY payload size in byte. It's equal to the MAC payload + 5
(MHDR + MIC). e.g. 23 as Join Request.""")
help="""PHY payload size in byte.
Remember that PHY payload (i.e. MAC frame) is consist of
MHDR(1) + MAC payload + MIC(4), or
MHDR(1) + FHDR(7) + FPort(1) + APP + MIC(4).
For example, SIZE for Join Request is going to be 23.
If the size of an application message (APP) is
12, SIZE is going to be 25. """)
p.add_argument("--band-width", action="store", dest="n_bw", type=int,
default=125, metavar="NUMBER",
help="bandwidth in kHz. default is 125 kHz.")