Skip to content

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