Allow listening for wireless capture on serial interfaces#18
Open
mzealey wants to merge 1 commit intoschollz:masterfrom
Open
Allow listening for wireless capture on serial interfaces#18mzealey wants to merge 1 commit intoschollz:masterfrom
mzealey wants to merge 1 commit intoschollz:masterfrom
Conversation
Protocol is to pass lines in the format of "mac_address rssi packet_count" at 115200bps.
Owner
|
@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! |
Author
|
https://github.com/mzealey/ESP8266-WIFI-Scanner here is the code for the ESP8266 |
|
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"):
so just startswith("tty") should suffice and generalize to deal with both /dev/ttySx and /dev/ttyUSBx devices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.