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
)
Files at revision 6:63981d2f88a7
Name | Size | Actions |
---|---|---|
[up] | ||
main.cpp | 21718 | Revisions Annotate |
mbed-os.lib | 78 | Revisions Annotate |
mbed_app.json | 112 | Revisions Annotate |
sx12xx_hal.lib | 65 | Revisions Annotate |