Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Esp32 simple wifi channel load monitor, advice appreciated
Post Body

Hello!
I want partly to present my project and to get some ideas for one specific improvement.
(sorry from start, English is not my first language)
The goal was to get something close to the utility of Wifi Analyser but instead of viewing networks (network beacon signal strength and channel), to get actual relative traffic on each of them. I figured that a strong beacon without actual traffic does not mean that a channel is congested and this is not something that Wifi Analyser can help with.

Here is a more feature rich version as mine that I used as a base
https://github.com/spacehuhn/PacketMonitor32
And this
https://github.com/spacehuhn/ArduinoPcap

I stripped the code that did any saving of packets and modified to work with my SSD1306 display, also some changes to get a better view of all channels compared.

Here is the code
http://codepad.org/InyMxubn

The board is ESP WROOM 32, and an 128x32 oled display
Pin 18, 19 to buttons, D21,D22 to SCL,SDA of display, a capacitor to power because I had some brownout serial errors while trying Bluetooth on the board.

Lower down photos and a clip in action.

The thing is, it's OK but when I generate traffic, by running speed test, torrent client or streaming 4K video on wifi I dont get more than 30~40 packets per monitoring cycle (400ms). It might be possible that the micro is too busy "chewing" on a packet that it misses the next ones?
PacketMonitor32 uses some multi core features of the micro, I thought that it would give better numbers but gives similar output to.
I'm thinking that maybe storing the packet in buffer takes too much time but is it possible to just count it and maybe get it's size without storing?

https://reddit.com/link/amfkl6/video/jbav34izi6e21/player

https://preview.redd.it/lew9ny0wi6e21.jpg?width=3024&format=pjpg&auto=webp&v=enabled&s=ff8a586c0e080746e15ab0f5a480435629dca4f3

https://preview.redd.it/da7gi00wi6e21.jpg?width=4032&format=pjpg&auto=webp&v=enabled&s=2e2c15445593d7bb1ae4754328bec925b5d3823e

https://preview.redd.it/00ttu10wi6e21.jpg?width=4032&format=pjpg&auto=webp&v=enabled&s=2d838a04427b80da54c8c1353fd5d9a6952aa901

Author
Account Strength
50%
Account Age
15 years
Verified Email
No
Verified Flair
No
Total Karma
236
Link Karma
21
Comment Karma
215
Profile updated: 3 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago