LoRaWAN Hands-on
From Hackerspace Brussels
|
USE THIS PAD : http://piratepad.net/lorawanworkshop
Limited to 8 seats due to limited hardware.
Please add your name:
- friedger
- warddr
- ptr
- lrnt
- zoobab
- jg
- betz
- Ugo
notes[edit]
yeah lora wan - -long range wan by Semtech low power 1 msg every two minutes (2 secs to transmit a message, standard/legally specifies you should keep ther free for 99% of the time...) TO VERIFY : 12 byte header - 50 byte payload maximum packet length is 256 bytes (from Semtech FAQ) encryption : 2 layers MAC key PAYLOAD key 868.1 868.3 868.5 semtech RF chips -- http://www.semtech.com/wireless-rf/lora.html libellium has some fpga based high - low - high toggle on pin 12: start semtech transmitter nwkskey : network key 'mac key' app RN2483 http://ww1.microchip.com/downloads/en/DeviceDoc/50002366A.pdf (just blablah, no commands..) http://ww1.microchip.com/downloads/en/DeviceDoc/40001784B.pdf commands https://thinginnovations.uk/getting-started-with-microchip-rn2483-lorawan-modules FF080101 warddr FF080102 Koen FF080103 FF080104 FF080105 Friedger FF080106 FF080107 Ugo FF080108 FF080109 JG need board files for arduino IDE (8Mhz internal clock...) look around on this page : https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard http://piratepad.net/lorawanworkshop-code CNX article about the RN2483: http://www.cnx-software.com/2015/12/15/microchip-introduces-11-rn2483-rn2903-lora-modules-and-70-lora-evaluation-kits-for-iot-m2m-applications/ LORAWAN specification https://www.lora-alliance.org/portals/0/specs/LoRaWAN%20Specification%201R0.pdf List of hardware gateways https://loriot.io/lora-gateways.html RTL-SDR: https://hackaday.com/2016/01/31/hacking-the-internet-of-things-decoding-lora/ revspace page : https://revspace.nl/DecodingLora programmer: http://www.benl.ebay.be/itm/USBASP-USB-ISP-Programmer-10-Pin-Ribbon-Cable-6-Pin-Converter-AVR-ATMEL-/172106237918?hash=item281254c7de:g:qJkAAOSw1-RUacrB YOU HAVE TO OPEN IT TO PUT IT ON 3.3V Must do to play with a gateway, the single channel gateway: http://forum.thethingsnetwork.org/t/single-channel-gateway/798
#define loraSerial Serial void setup() { loraSerial.begin(57600); pinMode(12,OUTPUT); digitalWrite(12,HIGH); delay(1000); digitalWrite(12,LOW); delay(200); digitalWrite(12,HIGH); delay(1000); loraSerial.print("radio set pwr 15\r\n"); delay(500); loraSerial.print("mac set appskey 2B7E151628AED2A6ABF7158809CF4F3C\r\n"); delay(500); loraSerial.print("mac set nwkskey 2B7E151628AED2A6ABF7158809CF4F3C\r\n"); delay(500); loraSerial.print("mac set ch dcycle 0 9\r\n"); delay(500); loraSerial.print("mac set ch dcycle 1 9\r\n"); delay(500); loraSerial.print("mac set ch dcycle 2 9\r\n"); delay(500); loraSerial.print("mac set adr off\r\n"); delay(500); loraSerial.print("mac set devaddr FF080101\r\n"); delay(1000); loraSerial.print("mac set dr 0\r\n"); delay(500); loraSerial.print("mac set pwridx 1\r\n"); delay(500); loraSerial.print("mac save\r\n"); delay(5000); } void loop() { digitalWrite(12,LOW); delay(200); digitalWrite(12,HIGH); delay(1000); loraSerial.print("mac set dr 0\r\n"); delay(500); loraSerial.print("mac set pwridx 1\r\n"); delay(500); loraSerial.print("mac join abp\r\n"); delay(500); loraSerial.print("mac tx uncnf 1 85E965A4\r\n"); delay(60000); }