lora_sx127/setup-lora_pi3.c

14 lines
261 B
C
Executable file

#!/usr/bin/env bash
set -e
modprobe regmap_spi
modprobe mac802154
insmod /home/loro/LoRo/LoRo/loro.ko
sleep 1
ip link set down wpan0
iwpan dev wpan0 set pan_id 0xbeef
ip link add link wpan0 name lowpan0 type lowpan
ip link set up wpan0
ip link set up lowpan0