element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experimenting with Extreme Environments
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Extreme Environments
  • More
  • Cancel
Experimenting with Extreme Environments
Blog Extreme Environment Wardriving and Wireless Network Analysis - Summary Blog
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experimenting with Extreme Environments to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: MarioPJ98
  • Date Created: 20 Jun 2024 11:41 PM Date Created
  • Views 627 views
  • Likes 9 likes
  • Comments 1 comment
  • wifi
  • python
  • compute module 4
  • winners
  • Pi4 Compute Module
  • wardriving
  • raspberry pi
  • Experimenting with Extreme Environments
  • IP68 Enclosure
Related
Recommended

Extreme Environment Wardriving and Wireless Network Analysis - Summary Blog

MarioPJ98
MarioPJ98
20 Jun 2024

Introduction


Wardriving in extreme environmental conditions serves several important purposes and offers unique advantages such as assessing the coverage and reliability of wireless networks in areas that may not have reliable infrastructure. Also, wardriving allows for the identification of existing wireless networks and potential alternative communication channels that can be utilized for emergency communication and response efforts. With the proliferation of IoT devices, there is a growing need for connectivity in various environments, including extreme ones such as rural areas, wilderness, or industrial sites. Wardriving helps in identifying suitable locations for deploying IoT devices and assessing the feasibility of wireless connectivity in these environments.

Goal

I aim to investigate the feasibility and effectiveness of wardriving in extreme environmental conditions with a focus on the unpredictable weather patterns of my city in Germany, where frequent rain and snow pose challenges to wireless networks. Wardriving is the practice of surveying and mapping wireless networks while in motion (usually in a car and that is the reason it is called wardriving).


During this project I will develop an extreme environment proof wardriving system capable of operating effectively in Germany's unpredictable weather conditions. The system will consist of PI4 Compute Module, RF antenna, alphanumeric display, and IP68-rated enclosures to ensure resilience against moisture, dust, and impacts. By integrating advanced sensor technology and wireless communication capabilities, the system should scan and map wireless networks, including WiFi, Bluetooth, Zigbee, and other protocols. It should also collect environmental data such as temperature, humidity, and precipitation with sensors got from other Element14’s giveaway.


I will conduct field experiments in various area around my city and outside to evaluate the system's performance under different weather conditions. I will use my bike since I don’t have a car (so it is important the system is shock resistant). Also, I can test it while taking the public transportation. I will analyze the data to identify patterns, trends, and potential areas for network optimization or infrastructure improvement. There are already existing projects to convert a Raspberry Pi into a wardriving unit. I will follow the instructions in this GitHub repository and I will try to add the function to collect other data like temperature and humidity. I like the idea I can connect the RP4 module to my smartphone via SSH and read data from there as well.


https://github.com/evilbyt3/warpi

Materials

  • Pi 4 Compute Module I/O Board
  • Raspberry Pi4 8Gb (for comparison)
  • IP68 Enclosure
  • Antenna
  • USB GPS Dongle (for method 2) https://www.amazon.de/dp/B07MY2VD3H?psc=1&ref=ppx_yo2ov_dt_b_product_details
  • GPS Module (for method 1) https://www.amazon.de/dp/B08R5ZQX4L?psc=1&ref=ppx_yo2ov_dt_b_product_details
  • USB to DC cable

image

Method #1

I tried to follow the instructions for manually installing the setup to convert the raspberry pi into a wardriving machine like in the Github but there were several problems. I will explain how I fixed them rather than explaining step by step how to install it to not repeat the Github. First of all, the custom image didn’t work so I had to manually install it.

For this method, I used Raspberry Pi OS 64 bit from the Raspberry Pi Imager.I suggest you to use nano to edit the files since it is easier than vim and you don’t need to install it.

I am not sure why but the schematic to connect the GPS module is completely wrong in the Github. The Rx pin of the GPS module should be connected to the Tx module of the Raspberry Pi4. I found this guide very good. This tutorial mentions to read data from ttyS0 but for me ttyAMA0 was working.

https://defcon007.medium.com/using-a-gps-module-neo-7m-with-raspberry-pi-3-45100bc0bb41

image

For installing Kismet, I was having troubles with the tutorial since some dependencies were not installed and I didn’t know how to install them. I was successful installing Kismet by using the Kali linux packages from the Kismet website. https://www.kismetwireless.net/packages/

wget -O - https://www.kismetwireless.net/repos/kismet-release.gpg.key --quiet | gpg --dearmor | sudo tee /usr/share/keyrings/kismet-archive-keyring.gpg >/dev/null

echo 'deb [signed-by=/usr/share/keyrings/kismet-archive-keyring.gpg] https://www.kismetwireless.net/repos/apt/release/kali kali main' | sudo tee /etc/apt/sources.list.d/kismet.list >/dev/null

sudo apt update

sudo apt install kismet

Once Kismet was running, I tried collecting some wifi data but the NexmonFirmware Patches were not installed so I couldn’t use the antenna to get data. I tried following this tutorial:

https://pimylifeup.com/raspberry-pi-nexmon/

image

image

The only problem was that the kernel version was 6+ and not 4.9, 4.14, or 4.19. I found this tutorial to downgrade the kernel version of the Raspberry Pi OS but every time after restart the raspberry pi couldn’t detect the SD card so I had to restart from 0. Access the github link in the forum and scroll until you find the kernel version you want.

https://forums.raspberrypi.com/viewtopic.php?t=275321

I tried installing the drivers to use a wifi dongle. I followed this tutorial.

https://raspberrypi.stackexchange.com/questions/111359/how-to-install-tp-link-tl-wn823n-v2-on-rasperry-pi-2

image

The Kismet could detect the doggle but I still had the same problem of the nexmon patches.

Method #2

Since I couldn’t fix the problem of the nexmon patches, I decided to use Kali linux. I installed Kali linux through the Raspberry Pi Imager. Kali linux didn’t work on the Pi 4 module, it was always freezing at the log in so for this method I used my Raspberry Pi4 with 8Gb. Remember that Kali linux has pre-built an username and password which are “kali”.

Kismet is pre-built on Kali so no need for installation. You also don’t need to run as admin so you can just type

kismet -t <title>

image

This time I could read data from Kismet. The only problem I couldn’t read the GPS data from the module like before. There were not any tutorials online to use the module but only a dongle so I decided to buy one. Even though I made sure it was compatible to linux and raspberry pi, I still couldn’t read any GPS data from it. To make things worst, for the past weeks my wifi wasn’t working at all and I couldn’t do any work. My powerbank that used to supply 2A stopped working properly and column’t supply anymore 2A since my phone wasn’t charging at full speed and the raspberry pi4 wouldn’t turn on no more from the powerbank. I had that powerbank for almost a decade and it just decided to give up on me.

This method seemed to work more but I wasn’t able to combine kismet data with GPS data so the device could be used only stationary and not on the go. 

Future work

I will try to find if there are libraries to connect the GPS dongle to the raspberry pi running Kali both for the module and dongle. Once I figured that out, I will buy a new powerbank to supply 2A so the Raspberry Pi will turn on. I will create a case for the Raspberry Pi4 to stay in place inside the enclosure so while I am moving around it will not bounce around. Finally, I will go around the city to collect data and analyze it.

  • Sign in to reply
Parents
  • javagoza
    javagoza over 1 year ago

    Thank you for sharing about the problems with the GPS modules for your wardriving project! Great idea using GPS to map Wi-Fi, Bluetooth, Zigbee, and other networks using public transport. I completely understand the urge to solve problems independently, but the forums are a goldmine! They're a great space to get unstuck, learn from others' experiences with similar projects, and maybe even find inspiration for future network mapping endeavors. You might be surprised how a single question can spark a helpful conversation. If you ever get stuck in the future, feel free to ask! Looking forward to seeing your future projects and participating alongside you in the next challenge!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • javagoza
    javagoza over 1 year ago

    Thank you for sharing about the problems with the GPS modules for your wardriving project! Great idea using GPS to map Wi-Fi, Bluetooth, Zigbee, and other networks using public transport. I completely understand the urge to solve problems independently, but the forums are a goldmine! They're a great space to get unstuck, learn from others' experiences with similar projects, and maybe even find inspiration for future network mapping endeavors. You might be surprised how a single question can spark a helpful conversation. If you ever get stuck in the future, feel free to ask! Looking forward to seeing your future projects and participating alongside you in the next challenge!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube