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.
UNIT 0x00transmitting only device: mandatory.
UNIT 0x01: repeating device
- Uni-directional network: Each unit can only receive message from
UNIT_ID - 1(previous unit)
UINT nreceiving only device
LAST_UNIT: mandatory; prints payload onto UART.
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 to
UNIT_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 overhead
MAX_TX_ATTEMPTS: Count of transmit retries permitted
SPREADING_FACTORLoRa configuration of datarate
CF_MHZ: Operating radio frequency
Duration of retry interval is auto-calculated from LoRa modem configuration (bandwidth/sf) and
Take care that
TX_INTERVAL_US value is appropriate relative to total retry interval (interval *
Revisions of main.cpp
|5:62c9ddaa5ea6||2019-09-16||use latest mbed-os. Add deep sleep.||File Diff Annotate|
|4:f272bf72893a||2018-12-14||move analog read from isr to main loop||File Diff Annotate|
|3:a78a70af3403||2018-11-25||add PA disable option from user-button||File Diff Annotate|
|2:534be88a25dc||2018-07-16||update to work with current sx12xx_hal||File Diff Annotate|
|1:7dbf0926e146||2018-07-05||use sx12xx_hal||File Diff Annotate|
|0:d88677306896||2018-06-13||initial commit||File Diff Annotate|