Skip to content

Add python script to make the output of serial debug analyzable through wireshark #137

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

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

polldo
Copy link
Contributor

@polldo polldo commented Nov 4, 2020

This python script allows to encode the Serial debug output into a format that can be analyzed by wireshark and hcidump

Steps to debug:

  • modify the sketch attaching Serial to BLE debug 'BLE.debug(Serial)'
  • execute the sketch and open the arduino serial monitor
  • save the content of the serial monitor in a file (here 'inputFile')
  • execute the script with the following arguments: -i to specify the input file, -o to specify the output file
    python your/script/path/arduino-ble-parser.py -i inputFile -o outputFile
  • using wireshark, simply open outputFile

…gh wireshark

This python script allows to encode the Serial debug output into a format that can be analyzed by wireshark and hcidump

Steps to debug:
- modify the sketch attaching Serial to BLE debug 'BLE.debug(Serial)'
- execute the sketch and open the arduino serial monitor
- save the content of the serial monitor in a file (here 'inputFile')
- execute the script with the following arguments: -i to specify the input file, -o to specify the output file
  'python your/script/path/arduino-ble-parser.py -i inputFile -o outputFile'
- using wireshark, simply open outputFile
@facchinm facchinm merged commit fb4ecf1 into arduino-libraries:master Nov 11, 2020
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.

2 participants