Skip to content

Instantly share code, notes, and snippets.

@Chamaeleon-
Last active May 23, 2019 13:38
Show Gist options
  • Save Chamaeleon-/b44b2c95c9e0b416f619f17e28d6d93c to your computer and use it in GitHub Desktop.
Save Chamaeleon-/b44b2c95c9e0b416f619f17e28d6d93c to your computer and use it in GitHub Desktop.
How to setup raspINGA with Raspberry Pi 3b

How to setup raspINGA with Raspberry Pi 3b

raspINGA is a shield for raspberry pi with a AT86RF231 IEEE802.15.4 radio

If you can use ATUSB and Ubuntu IoT 18.04 instead.

  • start with standard setup for Raspberry Pi 3b with Raspbian Stretch lite (kernel 4.14 2019-04-08) and update kernel
  • activate driver for AT86RF231 in the device tree overlay in /boot/config.txt
    • add dtoverlay=at86rf233, interrupt=25, reset=27, sleep=17
  • look with dmesg for "Detected at86rf231 chip version 2"
  • install wpan-tools via apt, the interface wpan0 should show up afterwards
    • sudo iwpan dev wpan0 set pan_id 0x23 to set PanID
    • sudo iwpan phy phy0 set channel 0 26 to set Channel
    • sudo ip link add link wpan0 name lowpan0 type lowpan to add 6LoWPAN interface onto wpan0
    • sudo ip link set wpan0 up
    • sudo ip link set lowpan0 up
  • if neighbor discovery is broken add neighbors with ip neigh add , see man-page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment