HCL:Dragino LoRa Shield
The Dragino LoRa Shield is an Arduino compatible Shield with a LoRa transceiver.
Technical data
- HopeRF RFM95W / RFM98W LoRa module (SPI)
- Semtech SX1276 / SX1278 LoRa transceiver
Setup
Raspberry Pi 2 via ARPI600
load mmc 0:2 $fdt_addr_r boot/dtb/$fdtfile fdt addr $fdt_addr_r
setenv gpio /soc/gpio@7e200000 setenv spi0 /soc/spi@7e204000 # Add GPIOs: 4 fdt set ${gpio}/gpioout brcm,pins '<4 6>' # Drop GPIOs: 4 fdt set ${gpio}/alt0 brcm,pins '<0 1 2 3 5 7 8 9 10 11 14 15 40 45>' fdt set ${spi0} status okay fdt mknode ${spi0} spidev@0 fdt set ${spi0}/spidev@0 compatible "spidev" fdt set ${spi0}/spidev@0 reg '<0>' fdt set ${spi0}/spidev@0 spi-max-frequency '<500000>' # RESET == D9 == P7 == 4 # DIO0 == D2 == P0 == 17 # DIO1 == D6 == P4 == 23 # DIO2 == D7 == P5 == 24 # DIO3 # DIO4 # DIO5 == D8 == P6 == 25
As alternative to spidev, an experimental driver for "semtech,sx1276" is available. You can use an overlay file:
load mmc 0:2 boot/bcm2836-rpi-2-b+arpi600.dtbo fdt apply $loadaddr load mmc 0:2 boot/bcm2836-rpi-2-b+arpi600+dragino-lora.dtbo fdt apply $loadaddr
load mmc 0:1 $kernel_addr_r EFI/BOOT/BOOTARM.EFI bootefi $kernel_addr_r $fdt_addr_r