Skip to content

bradcar/macos_wifi_rssi_noise_snr_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS Wifi - RSSI, Noise, SNR

Accesses MacOS Wifi Paramters

MacOS-only Wifi Monitoring of RSSI, Noise, and SNR on en0. Currently, it just loops to shows ouput values. Also prints out the name of the en0 Wifi network it is monitoring. However, Python must be enabled in System Settings > Privacy & Security> Location Services.

TODO: Create Wifi locator using Yagi-Uda Antenna using RSSI, Noise, and SNR

  1. Hook Yagi-Uda directional antenna to Alfa external antenna
  2. Use the Output RSSI, Noise, and SNR (RSSI - Noise), to find Pico 2 W (2.4GHz Wifi).
  3. By moving Yagi-Uda Antenna shoud be able to use direction of antenna to locate a Raspberry Pi Pico 2 W.

Usage:

Simple output of results

python3 wifi_snr_rssi_noise.py

Or use program in terminal whicgh has curses output:

python3 curses_output.py

Sample Outputs

Home (desk on top of wifi):

  • RSSI: -30 dBm, 4 bars
  • Noise: -94 dBm, very low
  • SNR: 64 dB, very good

office environment:

  • RSSI: -45 dBm, 4 bars
  • Noise: -100 dBm, very low
  • SNR: 55 dB, very good

Install Prerequisites:

pip install pyobjc
pip install pyobjc-framework-CoreWLAN
# Python must be enabled in: System Settings > Privacy & Security > Location Services

Wifi Definitions

RSSI, higher is better:

  • > -50 dBm: 4 bars is excellent
  • -50 to -60 dBm: 3 bars is good
  • -60 to -70 dBm: 2 bars is ok
  • < -70 dBm: 1 bar is fair

Noise, lower is better:

  • -90 to -100 dBm: Extremely low noise levels, ideal for WiFi
  • -80 to -90 dBm: Low noise, still conducive to good WiFi
  • -70 to -80 dBm: Moderate noise starts to effect WiFi in crowed environments
  • -60 to -70 dBm: High noise, causes noticeable degradation
  • Above -60 dBm: Very high noise, often disconnects, slow speeds, & more errors

SNR (rssi - noise), higher is better:

  • Above 30 dB: Very good
  • 14 to 25 dB: Good
  • Below 14 dB: Bad

References

Very Practical Yagi-Uda design from Ham radio long-timer

Yagi-Uda principles

Connecting to Mac USB to external antenna with macOS support (I hope!?!)

My focus is 2.4GHz Wifi (Raspbery Pi Picc 2 W). The latest Wifi are at higher frequencies and I have not explored their use. 2.4 GHz Wifi Yagi-Uda 2.4 GHz directional Antenna that I will test, (will update this README.md on success!):

A 2.4 GHz half-wavelength is approximately 62.5 mm (about 2.46 inches) long. The full wavelength of a 2.4 GHz signal, which is about 125 mm, and then dividing it by two. In a Dipole antenna the length is split into two elements, each approximately 31.25 mm long. This all assumes perfect conditions, for example speed of light is slower in conductors and other factors will affect the length.

About

query MacOS for wifi rssi, noise, and snr to use with directional Yagi-Uda antenna

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages