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

Bluepy doesn't play well with Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP) #144

Open
sudoeste opened this issue Nov 15, 2023 · 10 comments

Comments

@sudoeste
Copy link

I'm trying to use this to capture some atc beacons from my LYWSD03MMC.py but it doesn't work when running with this bluetooth card com x86.

Using the script on a rpi works flawlessly. I've since changed my server to x86 and i'm missing this sensors.

I've noticed that Bluepy has some problems with my bluetooth card, but found aioblescan that can perfectly capture and decode the beacons.

Any chance to add aioblescan as a supported lib?

python3 -m aioblescan -A
Temperature info {'mac address': 'a4:c1:38:f0:xx:xx', 'temperature': 20.1, 'humidity': 65, 'battery': 53, 'battery_volts': 2.698, 'counter': 214, 'rssi': -26}
@JsBergbau
Copy link
Owner

I am not so much into bluetooth and compatibility. I'm using a 5 $ U-Green USB-Dongle on x86 which works fine with the Xiaomi devices.

Quickly I found this https://linux-hardware.org/?id=usb:8087-0aaa
When I interpret these reports right, there is some general compatibility problem with linux and this bluetooth card. So adding a new library seems not worth it.

@sudoeste
Copy link
Author

Went through all that. The truth is the aioblescan works perfectly although It just shows the value, can't send to mqtt

@sudoeste
Copy link
Author

BTW, that card is included in several intel nuc generations

@JsBergbau
Copy link
Owner

Went through all that. The truth is the aioblescan works perfectly although It just shows the value, can't send to mqtt

You mean you tried other bluetooth dongles?

@sudoeste
Copy link
Author

sudoeste commented Nov 17, 2023 via email

@lduesing
Copy link

Sorry, I have the same problem on multiple current Intel bluetooth devices:

  • Intel NUC as above
  • Intel Corp. AX201 Bluetooth
    On both aioblescan works.

@JsBergbau
Copy link
Owner

How do you want to process the temperature infos?

@sudoeste
Copy link
Author

Aioblescan had a decoder for some, but it /I smthibg it also just has the option of capture the raw beacon

@lduesing
Copy link

I'm not really sure, but it seems to boil down to that problem:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1870837/comments/35
browsing aioblescan it seems to read raw sockets, no usage of pybluez. Therefore, maybe, wontfix in the current bluepy.

@lduesing
Copy link

lduesing commented Nov 22, 2023

@sudoeste maybe try:
sudo hcitool lescan
If there is a problem, then it could be our problem.

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