Moheeb Zarabenstr πŸš€
Published © MIT

Cellular Wardriving and Other IoT Shenanigans

A guide for the Hologram.io Arduino MKR 1400 GSM workshop for IoTDevFest PHX 2019.

BeginnerFull instructions provided2 hours7,996
Cellular Wardriving and Other IoT Shenanigans

Things used in this project

Hardware components

Arduino MKR GSM 1400
Arduino MKR GSM 1400
×1
1500 mah LiPo
×1
Micro-USB to USB Cable (Generic)
Micro-USB to USB Cable (Generic)
×1
Hologram Global IoT SIM Card
Hologram Global IoT SIM Card
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

changeBand function

Arduino
Call changeBand(GSM_MODE_GSM850_PCS); in setup to change band.
void changeBand(String newBandName) {
  // Use GSM_MODE_GSM850_PCS for USA

  GSMBand band;
  
  Serial.println("Restarting modem...");
  band.begin();
  Serial.println("Modem restarted.");

  String bandName = band.getBand(); // Get and print band name
  Serial.print("Current band:");
  Serial.println(bandName);

  delay(200);
  
  bool operationSuccess;
  operationSuccess = band.setBand(newBandName);
 
  if (operationSuccess) {
    Serial.println("Success");
    String bandName = band.getBand(); // Get and print band name
    Serial.print("New band:");
    Serial.println(bandName);
  } else {
    Serial.println("Error while changing band");
  }
}

Code Examples

This includes the Wardriving and MQTT examples

Credits

Moheeb Zara

Moheeb Zara

39 projects β€’ 136 followers
Developer Advocate at EMQ Technologies - . Co-founder - South West Maker Festival. Hardware hacker, artist, robots, HeatSync Labs
benstr πŸš€

benstr πŸš€

5 projects β€’ 115 followers
πŸ‘‹ Managing Director of Hackster. Please reach out when you have thoughts on how to make Hackster more awesome πŸ“§ ben.s@hackster.io

Comments