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

Ideas on how to capture packet for Android handshake? #11

Open
vekexasia opened this issue May 10, 2024 · 4 comments
Open

Ideas on how to capture packet for Android handshake? #11

vekexasia opened this issue May 10, 2024 · 4 comments

Comments

@vekexasia
Copy link

Just as title says :)

@andyboeh
Copy link
Owner

It's not hard, but not trivial either. I can make the information from the README a bit clearer, but you will have to find your way through these instructions.

On Android:

  1. Enable Developer Options
  2. Enable Bluetooth HCI snoop log
  3. Toggle Bluetooth Off and On to start a fresh log file
  4. Do the handshake

On Computer:
5. Download the HCI log file (this varies by Android model)
6. Analyze the log file in Wireshark and extract your baby code

@vekexasia
Copy link
Author

hey @andyboeh , i was able to collect the wireshark readable log but I noticed only one device can read the d\data from the sense u unit at a time?

At least, it looks to me that when the esphome device is connected then the phone is not able to read and vice-versa!

@vekexasia
Copy link
Author

vekexasia commented May 14, 2024

I re-read the README and you clearly states "not simultaneously"... my bad I thought I could use both devices at the same time...

Anyways for those coming by and in need to get the code from wireshark... after collecting the log and opening into wireshark you could just search for 68 hex, skip the first 00 and keep the next 12 digits...

Example: if the wireshark Value is 680052030aa95ff6030000000000000000000000 then the code is 52030aa95ff6

@andyboeh
Copy link
Owner

Exactly - this is also explained here, last line of the grey box.

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

No branches or pull requests

2 participants