repeat message down a chain, adding to the payload at each repeating device
radio chip selection
Radio chip driver is not included, because options are available.
If you're using SX1272 or SX1276, then import sx127x driver into your program.
if you're using SX1261 or SX1262, then import sx126x driver into your program.
if you're using SX1280, then import sx1280 driver into your program.
If you're using NAmote72 or Murata discovery, then you must import only sx127x driver.
network architecture
UNIT 0x00
transmitting only device: mandatory.UNIT 0x01
: repeating device- Uni-directional network: Each unit can only receive message from
UNIT_ID - 1
(previous unit) UINT n
receiving only deviceLAST_UNIT
: mandatory; prints payload onto UART.
configuration
Each device in the network is uniquely identified by:
UNIT_ID
: ID byte designating address of this device.UNIT_LAST
: If defined, this device prints payload onto serial port instead of re-transmitting payload.
All devices in network must be configured identically with the following:
TX_INTERVAL_US
: how often to take measurement and send toUNIT_ID+1
(time of complete cycle).MAX_TX_LENGTH
: Maximum size of payload, in bytes. Payload is sent in fragments when exceeds this value; aka size of each fragment.TXRX_PADDING_US
: Time allotted for RX-TX turnaround and CPU overheadMAX_TX_ATTEMPTS
: Count of transmit retries permittedSPREADING_FACTOR
LoRa configuration of datarateCF_MHZ
: Operating radio frequency
Duration of retry interval is auto-calculated from LoRa modem configuration (bandwidth/sf) and MAX_TX_LENGTH
.
Take care that TX_INTERVAL_US
value is appropriate relative to total retry interval (interval * MAX_TX_ATTEMPTS
)
History
remove radio driver
2019-09-16, by Wayne Roberts [Mon, 16 Sep 2019 11:19:32 -0700] rev 6
remove radio driver
use latest mbed-os. Add deep sleep.
2019-09-16, by Wayne Roberts [Mon, 16 Sep 2019 11:18:01 -0700] rev 5
use latest mbed-os. Add deep sleep.
move analog read from isr to main loop
2018-12-14, by Wayne Roberts [Fri, 14 Dec 2018 14:41:38 -0800] rev 4
move analog read from isr to main loop
add PA disable option from user-button
2018-11-25, by Wayne Roberts [Sun, 25 Nov 2018 17:13:06 -0800] rev 3
add PA disable option from user-button
update to work with current sx12xx_hal
2018-07-16, by Wayne Roberts [Mon, 16 Jul 2018 11:20:20 -0700] rev 2
update to work with current sx12xx_hal
use sx12xx_hal
2018-07-05, by Wayne Roberts [Thu, 05 Jul 2018 17:43:35 -0700] rev 1
use sx12xx_hal
initial commit
2018-06-13, by Wayne Roberts [Wed, 13 Jun 2018 17:49:58 -0700] rev 0
initial commit