Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow listening for wireless capture on serial interfaces #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mzealey
Copy link

@mzealey mzealey commented Sep 7, 2017

Protocol is to pass lines in the format of "mac_address rssi packet_count" at 115200bps.

I've not been able to test the significant refactoring of the Wifi capture but it should be functionally equivalent.

In my test device (C.H.I.P, which only has a single wifi connection), I've plugged in an ESP8266 which is just dumping captures in this protocol over the serial connection and it is working well. I will document this shortly on my blog.

Protocol is to pass lines in the format of "mac_address rssi packet_count" at 115200bps.
@schollz
Copy link
Owner

schollz commented Sep 8, 2017

@mzealey This looks fantastic! I'll have to wait to merge until I can test it myself. My Pi network is not setup at the moment so it might be a few days.

Please share with me the link to your blog, or send a pull request to add it to the README!

@mzealey
Copy link
Author

mzealey commented Sep 9, 2017

https://github.com/mzealey/ESP8266-WIFI-Scanner here is the code for the ESP8266

@saket424
Copy link

I tried out @mzealey pyserial solution and it works well. @schollz i request you to consider merging his PR

In my case I had to change the following line in scan.py for the flavor of linux (tinkerOS) on an ASUS tinkerboard where my esp8266 was /dev/ttyUSB0

< if args.interface.startswith("ttyS"):

if args.interface.startswith("ttyUSB"):

so just startswith("tty") should suffice and generalize to deal with both /dev/ttySx and /dev/ttyUSBx devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants