-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to receive advertising data on specific UUID? #57
Comments
@ethan8051 you can use scan filter to get only those devices which have this specific id in their advertising data |
Thank you for your response. I've attempted to implement a scan filter to capture broadcast data, but it appears to be ineffective for certain devices. I've verified using the nRF Connect app that these devices are indeed broadcasting packets. Furthermore, I have an additional question: Assuming I successfully obtain a list of devices based on the specified UUID, how can I extract the actual data content from the broadcast, rather than just the device information and UUID? I'm aiming to interface with this device's firmware: Any insights or guidance on these issues would be greatly appreciated. Thank you in advance for your help. |
@ethan8051 can you provide your minimum sample code, have you tried example app ? also it would be helpful to see the and for now you can obtains these information of a discovered device, you can let us know if something is missing in this |
@ethan8051 a quick thing to test, try to scan all devices without any filter, and print the BleDevice info of required device, and please share that, so that we can know if our plugin is discovering these required services in Advertising data |
@ethan8051 i just noticed that you have already mentioned the discovered device I/flutter ( 7465): name: ATC_DD7A81
I/flutter ( 7465): rssi: -36
I/flutter ( 7465): isPaired: false
I/flutter ( 7465): isSystemDevice: null
I/flutter ( 7465): manufacturerData: []
I/flutter ( 7465): manufacturerDataHead: []
I/flutter ( 7465): services: [] we can see that services list is empty, probably the platform on which you are trying to filter the device with this service on Which platform you are trying with UniversalBle and if both platforms are different, i would suggest to run the same code on the platform on which you are testing with NrfConnect app |
Thank you for your response. I scanned with filtering turned off. In addition, I have tried using ESP32 with Arduino + NimBLE to implement a device for broadcast testing. I set the broadcast service UUID to 181A and filled in fixed data for broadcasting. However, the result is still the same I am unable to obtain the data. |
@ethan8051 So when you start scan without filters, and you discover your device, and when you print it like this I/flutter ( 7465): name: ATC_DD7A81
I/flutter ( 7465): rssi: -36
I/flutter ( 7465): isPaired: false
I/flutter ( 7465): isSystemDevice: null
I/flutter ( 7465): manufacturerData: []
I/flutter ( 7465): manufacturerDataHead: []
I/flutter ( 7465): services: [] do you get services list empty in discovered BleDevice object ? and if the services list is empty in universalBle but not in nrf connect, then that might be a bug in plugin, |
@rohitsangwan01 Thank you for your response. The results of executing UniversalBle on Linux are as follows:
Additionally, I found that if I don't set any ScanFilter at all, the device won't appear in the list
I tried using Python + bleak to scan for devices, this is my source code.
Execution result, it is possible to successfully obtain the 181A ServiceData.:
|
@ethan8051 we are using but from your Bleak response, i can see that services are discovered in can you check if the Peripheral you are using can send services in UUIDs List as well ? |
You mean, only this device does not appear, or no device discovers without filter ? |
Hello,
I'm working on a Flutter project using the universal_ble package for Bluetooth Low Energy communication. I'm trying to figure out how to receive advertising data specifically for the UUID 0x181A
Does the universal_ble package support receiving advertising data for specific UUIDs?
I'd appreciate any guidance, code examples, or documentation references that could help me implement this functionality.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: