Skip to content

Makerfabs/Project_WiFi-Statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiFi-Statistics

/*
Version:		V2.0
Author:			Vincent
Create Date:	2020/9/16
Note:
	V2.0 : Add IoT function, push data to ThingSpeak.com.
*/

main

[toc]

OVERVIEW

Intruduce

Makerfabs home page

Makerfabs Wiki

In fact ,this is a wifi sniffer. It sniffs out the wifi signals of smartphones in its range to make a rough count of traffic. Compared to the camera, or security door, smaller, hidden, easy to carry. This project is changed from ESP-EOS/ESP32-WiFi-Sniffer

Equipment list

SD card reader modules such as MakePython Audio are available, but require pin changes.

  • Micro SD Card

STEPS

Prepare And Burn

If you have any questions,such as how to install the development board, how to download the code, how to install the library. Please refer to :Makerfabs_FAQ

  • Connect ESP32 to PC .
  • Use Arduino upload .ino file in "/Project_WiFi-Statistics/wifi_probe".
  • Insert a micro SD card.
  • GPRS SIM Card.(If you need IoT function.)
  • Restart ESP32.
  • Wait a moment ,Lcd screen will show some data.

1

People Counting

  • Connect to mobile power/lithium battery.
  • If "Card Mount Failed" appears, you need to replug the SD Card and restart it.

1

  • If all goes well, the LCD screen displays detail data.

show

Analysis Data

  • Copy the SD card TXT file beginning with "log" into the project folder.
  • Use command line, run wifi_count.py.
  • A line diagram of the time and surrounding terminal relationships is displayed.

count

IoT Function

IoT funcgtion have now been added. Data can be transmitted to Internet of Things websites in real time. You can see historical traffic curves at ThingSpeak.com.

  • Get a ThingSpeak™ account.

account

  • Create a channel for collecting data.

create_channel

  • Set channel, like name and some params.

Set_channel

  • And system will give you two api_keys. Upload need write key.

aap_key

  • Change code, add your write api_key. Mine is "2ZOQP7ZGJ9OVGU6X".
String command = "AT+HTTPGET=\"http://api.thingspeak.com/update?api_key=2ZOQP7ZGJ9OVGU6X&field1=";
  • Uncomment “#define THINGSPEAK”
//#define THINGSPEAK

#ifdef THINGSPEAK

#define DEBUG true //true: debug on; false:debug off
bool SIM800C_ON = false;
int my_index = 0;

#define MP_RX1 21
#define MP_TX1 22

#define A9G_POWER 27
#define A9G_RST 33

#endif
  • Upload code to ESP32.
  • Insert a SIM card, need support GPRS.
  • Restart ESP32, wait a moment.
  • If upload successfully, webpage will show newest data.

web_ui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages