HCL:LoRa click

Jump to: navigation, search

The MikroElektronika LoRa click and LoRa 2 click are mikroBUS compliant modules with a LoRa transceiver.

Technical data

  • Microchip RN2483 / RN2903 LoRaWAN module (UART)


Pine64 via Pi2 click shield

The Pine64 uses a different UART on the Pi connector (UART2) than for the serial console (UART0), so you can still use it headless with this daughterboard.

load mmc 0:2 $fdt_addr_r dtb/$fdtfile
fdt addr $fdt_addr_r

By default UART2 is not enabled - one way is via a Device Tree overlay, using u-boot-pine64plus v2017.05-rc1 or later:

load mmc 0:2 $kernel_addr_r sun50i-a64-pine64+pi2-click-shield.dtbo
fdt apply $kernel_addr_r

To manually set up the reset pin for click 1:

# echo 229 > /sys/class/gpio/export
# echo out > /sys/class/gpio/gpio229/direction
# echo 1   > /sys/class/gpio/gpio229/value

For click 2 it would be GPIO 73 instead.

With the module out of reset, you can interactively access the module via any terminal that can output CRLF line breaks.

$ picocom -b 57600 --omap crcrlf --echo /dev/ttyS1

On initial reset and when sending sys get ver followed by the enter key, you should see something like this:

RN2483 1.0.1 Dec 15 2015 09:38:09

Kernel 4.11 adds a serdev interface, and an experimental driver is in the works. An additional overlay file is available:

load mmc 0:2 $kernel_addr_r sun50i-a64-pine64+pi2-click-shield@1+lora.dtbo
fdt apply $kernel_addr_r
load mmc 0:1 efi/boot/bootaa64.efi
bootefi $kernel_addr_r $fdt_addr_r

See also