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

Allow duplicate entries to be discovered #6

Open
skreborn opened this issue Mar 6, 2020 · 3 comments
Open

Allow duplicate entries to be discovered #6

skreborn opened this issue Mar 6, 2020 · 3 comments

Comments

@skreborn
Copy link

skreborn commented Mar 6, 2020

I'm looking for a way to continually discover beacons that use simple advertising packets to emit telemetry data (among others). Is there a way to run discovery in a way that would allow me to capture and process all these packets, even if multiple packets are sent from the same device?

@laptou
Copy link
Owner

laptou commented Mar 6, 2020

I've never tried to do something like this myself. What's the current behaviour, and how is this stopping you from achieving your goal?

@dbrgn
Copy link

dbrgn commented Jun 5, 2020

Right now when starting discovery, a node that is broadcasting multiple advertisement frames with different data will only be discovered once. For using beacons as a means to transfer data, the user would need to see every advertisement frame.

Furthermore, right now discovery always seems to be active, while processing beacon data would only require passive scans.

The best interface in this case would probably be an event for every incoming raw (or parsed, but complete) advertisement frame. This way the user could process the advertisement data as appropriate.

I'm not sure if I overlooked it, but right now there's no such interface, right?

@oxc
Copy link
Contributor

oxc commented Sep 28, 2020

I believe you have to add the device using AddDevice with BackgroundScan action. Then you'll get a passive scan with multiple events.

Afaict, the kernel mgmt interface does not allow for explicitly starting a passive scan in any other way.

Please note that removing the device from the list is currently broken (#14).

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

4 participants