point-2-point demo
radio chip selection
Radio chip driver is not included, because these 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.
TX trigger selection
Edit main.h
to define DIGITAL_TRIGGER
or ANALOG_TRIGGER
to chose whether transmit is initiated by digital pin (button/jumper) or analog pin(s) level change.
This project is intended to be used on two LoRa shields.
Each board sits in continuous RX mode, waiting for request packet.
If the received packet has good CRC, the packet is acknowledged along with read of ADC sample from the replying device.
The original request packet also contains instruction to set level of output pin.
Both sides of the link are running the same code, and each can initiate a transmission at any time.
No addressing is used, so only two nodes can operate on the radio channel.
History
move analog to separate source file
2018-08-01, by Wayne Roberts [Wed, 01 Aug 2018 15:04:11 -0700] rev 5
move analog to separate source file
use HAL to support all radio devices
2018-07-17, by Wayne Roberts [Tue, 17 Jul 2018 14:32:29 -0700] rev 4
use HAL to support all radio devices
add tx trigger on analog input change
2018-05-30, by Wayne Roberts [Wed, 30 May 2018 10:20:36 -0700] rev 3
add tx trigger on analog input change
add reception packet rssi and snr printing
2017-11-10, by dudmuck [Fri, 10 Nov 2017 17:42:50 +0000] rev 2
add reception packet rssi and snr printing
add pwm
2017-10-16, by dudmuck [Mon, 16 Oct 2017 11:20:25 -0700] rev 1
add pwm
simple point-to-point, between only two units
2017-10-05, by dudmuck [Thu, 05 Oct 2017 16:11:31 -0700] rev 0
simple point-to-point, between only two units