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

HCI.py usage #205

Open
DrRob opened this issue Jun 15, 2023 · 3 comments
Open

HCI.py usage #205

DrRob opened this issue Jun 15, 2023 · 3 comments
Labels
question Further information is requested

Comments

@DrRob
Copy link

DrRob commented Jun 15, 2023

When I run "sudo python3 HCI.py --key <ADVERTISMENT_KEY>" on a Pi it outputs some debug info and then exits. Will the Pi continue to broadcast the advertisement after that or does it just broadcast once? If the latter, how often should the script be run? If the former, will it continue broadcasting after a reboot or does the script need to be run after each reboot?

@DrRob DrRob added the question Further information is requested label Jun 15, 2023
@Chacha1305Poly20
Copy link

Chacha1305Poly20 commented Oct 19, 2023

From reading and execution of the script, the broadcast will send continuously.

@DrRob
Copy link
Author

DrRob commented Oct 19, 2023

I wasn't sure if the Bluetooth stack on the Pi would repeat the broadcast autonomously.

Anyway, I tried calling the script once per minute, but could never get it to appear in the Find My app or trigger an Unknown tracker alert in my Android phone or be detected by the Apple Tracker Detect app. So I gave up with it, life's too short.

@Harvie
Copy link

Harvie commented Jun 24, 2024

Tried on my thinkpad and it did broadcasted even after the script exited. Running the script continuously might not be that great idea, because the script soft resets whole bluetooth interface (and related stack) each time you run it. That might interfere with broadcasts actualy being sent and any normal bluetooth use, since it obviously disconnects all devices as the interface goes down.

Although i had to install hcitool, which is deprecated and was no longer shipped in default bluez install.

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

No branches or pull requests

3 participants