With your LoRa network running, start the sniffer sketch and start collecting.We frequently need to invent new things to test our products; when we create a test fixture that we think oth.That is what this project is all about, turning an Arduino into a LoRa radio packet sniffer.With this in your toolbox you will be able to see the traffic between two or more LoRa radio nodes, which will help you troubleshoot the applications your developing as they communicate across a LoRa network.
By example: while developing our LoRa Gateway product, we wanted to more easily examine the effects of different type of performance tuning changes. We could use traditional programming tools such as breakpoints or debugprint statements, but these techniques have side affects and alter the system being adjusted by their presence. Arduino Wifi Sniffer Software Performing TheBy using a network probe or packet sniffer such as shown here, you can monitor the device communications without changing the software performing the communications. For the system I wish to test, I am using a Raspberry PI 3 running gateway software and an Adafruit Feather M0 with RFM95 LoRa Radio (900MHz for North America) as the end-node sensor device. As I make adjustments to the gateway or device software, the LoRa packet sniffer allows me to see timing (using millis()) and contents of LoRa packets traversing the network. Add Tip Ask Question Comment Download Step 1: Step 1: Select Your Arduino I am using the Adafruit Feather M0 with RFM95 LoRa Radio as the basis for my packet sniffer. I choose this device for the project because everything I needed are on one circuit board. But, this project can be built with other ArduinoArduino-like development boards. In the INO file we have included GPIO settings for other boards (thank you Adafruit); this includes the Feather M0 with integrated LoRa radio, Feather 32u4 with integrated LoRa radio, Arduino with a Adafruit breakout board or the Feather 32u4, Feather M0 or Teensy 3.x using the LoRa Feather Wing. Make sure if you purchase a new LoRa device that you select the correct frequency band; choose the correct frequency for your geographic region and to match your existing devices that you wish to monitor. Arduino Wifi Sniffer Code From TheAdafruit Feather M0 with RFM95 LoRa Radio Adafruit LoRa RFM95 Breakout Adafruit LoRa Radio FeatherWing - RFM95W 900 MHz Add Tip Ask Question Comment Download Step 2: Step 2: Download the Radio Head Library You will need two pieces of code from the Internet to build this project, both are open-source and free. RadioHead RF Library (AirSpacye Ltd.) The INO for the packet sniffer application. AirSpayce has developed the RadioHead Packet Radio library for embedded microprocessors that supports the RF95 radio (from HopeRF). This is an excellent library that supports the Arduino type boards mentioned in Step 1. Arduino Wifi Sniffer Download The LibraryYou most likely are already using the Radio Head library in your project, but if you dont already have it, download the library from the Radio Head website. Radio Head library site Once downloaded put the entire contents of the Radio Head (RH) library (zip) in a folder below your Arduino IDE libraries folder. Add Tip Ask Question Comment Download Step 3: Step 3: Copy the Code Into a New INO You can download the sniffer sketch from the LooUQ GitHub site. Output mode: verbose or delimited If you are set for delimited output, you may want to change the delimiter character (default is ) Define your desired output format here OutputMode mode delimited; define DELIMETERCHAR end output format defintion The default frequency for the radio is set to 915 MHz, you may need to change this based on your location and the frequency of your other radios (at about line 65). Change to 434.0 or other frequency, must match RXs freq define RF95FREQ 915.0 Add Tip Ask Question Comment Download Step 4: Step 4: Analyze Your Network Traffic Start your network.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |