stoprocent / noble

A Node.js BLE (Bluetooth Low Energy) central module
MIT License
11 stars 0 forks source link

Missing "service data" on Windows #11

Open spudwebb opened 1 month ago

spudwebb commented 1 month ago

It looks like on Windows the "service data" are not correctly parsed and passed back but these are required by the Matter standard. Using the same bluetooth dongle and the same Matter device, the "service data" are correctly reported on Linux.

Linux: 2024-10-08 14:48:59.885 DEBUG NobleBleClient Found peripheral 30:de:4b:db:7f:24 (undefined): {"localName":"undefined","txPowerLevel":"undefined","manufacturerData":"undefined","serviceData":[{"uuid":"fff6","data":{"type":"Buffer","data":[0,206,4,136,17,1,1,1]}}],"serviceUuids":["8641","fff6"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]}

Windows: 2024-10-08 15:13:19.756 DEBUG NobleBleClient Found peripheral 30:de:4b:db:7f:24 (): {"localName":"","txPowerLevel":0,"manufacturerData":{"type":"Buffer","data":[]},"serviceData":[],"serviceUuids":["8641","fff6"]}

Reference discussion with @Apollon77 : https://github.com/project-chip/matter.js/discussions/1241

stoprocent commented 1 month ago

What kind of BLE implementation you are using? Native windows or USB ?

spudwebb commented 1 month ago

I'm using a TP-Link UB500 USB adapter on my desktop PC

But I saw the exact same problem using the native BLE from my windows laptop.

stoprocent commented 1 month ago

I'm on a business trip right now. I will be back soon and I will have a look. No probs

leonardocavagnis commented 1 week ago

Hi @stoprocent, I'm experiencing the same issue. On macOS, service data is parsed correctly, but on Windows 10, it isn't.

@spudwebb Any updates?

spudwebb commented 1 week ago

No update on my side, but I would love to make this work.

@stoprocent , let us know how we can help to fix this.

stoprocent commented 1 week ago

Hi Guys I had a crazy time at work. I will try to look at this end of the current week. Stay tuned