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

Can't detect EddyStone URL advertisement with 5.0 kernel #24

Closed
yphus opened this issue Jul 22, 2019 · 7 comments
Closed

Can't detect EddyStone URL advertisement with 5.0 kernel #24

yphus opened this issue Jul 22, 2019 · 7 comments

Comments

@yphus
Copy link

yphus commented Jul 22, 2019

aioblescan can't detect EddyStone URL advertisement with 5.0 kernel.

We could see "Bluetooth: hci0: advertising data len corrected" is received in dmesg, however, aioblescan can't detect the advertisement.

See the code below:

class HCI_LE_Meta_Event(Packet):
def decode(self,data):
...
if code.val==b"\x02":
ev=RepeatedField("Adv Report", HCI_LEM_Adv_Report)
data=ev.decode(data)
self.payload.append(ev)
else:
...
`

aioblescan supports only the "legacy" LE Advertising report(0x2).

Need to implement corresponding handling code based on BLUETOOTH CORE SPECIFICATION Version 5.1, section 7.7.65.13 LE Extended Advertising Report event (code 0xd).

@frawau
Copy link
Owner

frawau commented Jul 25, 2019

Sorry, I am currently vacationing in France. Will have a look at it when I am back home, mid Aug.

@yphus
Copy link
Author

yphus commented Jul 25, 2019

Thanks for the reply (I'll do the same next week)
Enjoy your holidays.

Sylvain PINEAU

@yphus
Copy link
Author

yphus commented Oct 22, 2019

Hi, have you been able to reproduce the issue? I can help providing more data from the system where it happens.

@frawau
Copy link
Owner

frawau commented Oct 25, 2019

Sorry, I have not had time yet. I am about to move to a new house and it is taking more of my time than I expected. But please send me the setup you use to reproduce the problem.

Cheers
François

vicamo added a commit to vicamo/aioblescan that referenced this issue Nov 25, 2019
See BLUETOOTH CORE SPECIFICATION Version 5.1, Vol 2: Core System
Package, Part E Host Controller Interface Functional Specification,
section 7.7.65.13 LE Extended Advertising Report event.

Closes: frawau#24
vicamo added a commit to vicamo/aioblescan that referenced this issue Nov 25, 2019
See BLUETOOTH CORE SPECIFICATION Version 5.1, Vol 2: Core System
Package, Part E Host Controller Interface Functional Specification,
section 7.7.65.13 LE Extended Advertising Report event.

Closes: frawau#24
@vicamo
Copy link
Contributor

vicamo commented Nov 25, 2019

Proposed #27 to fix this issue.

@frawau frawau closed this as completed in 2595091 Nov 27, 2019
@vicamo
Copy link
Contributor

vicamo commented Nov 27, 2019

@frawau will we have a new release for this? I've tried this against EddyStone beacon I got, but maybe you have also other hw to test against as well.

@frawau
Copy link
Owner

frawau commented Nov 27, 2019

I will check with my Ruuvi devices first. Not sure when but soon I hope

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

3 participants