Comments (6)
Hi, it should work with the 16-bit UUID in adv packet. I have an example here where the device advertises with Complete list of 16-bit Service UUIDs: 0x180D, 0x180F, 0x180A and is being find in the HRM profile. I can connect to it as well. Could you send the adv packet log from the nRF MCP app? (long click the device and select Share action in the menu).
from android-nrf-toolbox.
Hi @philips77, thank you for your help. The advertising packet log is:
Name: nRF
Address: F6:38:A9:EB:AC:44
RSSI: -74
Last advertisement packet:
Raw data: 0x02010608084D545374726170
from android-nrf-toolbox.
You need to add the 0x180D service to the adv packet in order to make it visible in the scanner dialog in HRM profile. Add the following bytes to your adv packet:
0x02010608084D54537472617003030D18
These means:
03 - length: 3 bytes
03 - type: Complete List of 16-bit Service Class UUIDs
0D18 - UUID in the Little Endian (180D = HRS)
from android-nrf-toolbox.
I see. And why does it work with the UART service? Its UUID is 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
and it is not on the adv packet, isn't it?
from android-nrf-toolbox.
No, in the DFU and UART profiles the scanner does not filter out any devices. These services are not something you should announce, as they are used for development/firmware update. But HR service is a good example of such that helps to filter devices which makes the user experience better.
If you program different applications on the same device you may need to clear the service cache on Android. The easiest way is to connect to such device with nRF MCP and disconnect (if Refresh cache option is set to Always in the settings) or connect and select Refresh services in the menu.
from android-nrf-toolbox.
It makes sense. I'll try your solution but for now we can consider this issue closed.
Thank you very much.
from android-nrf-toolbox.
Related Issues (20)
- Cycling Power Measurement HOT 1
- In Consistence BLE Connection time on different devices.
- Connection state change error: 133 newState: 0
- issue in implementing scanner
- DFU failing because of connection timeout, but works on iOS
- Bonding Fails and Device is not discoverable if Pairing dialog does not appear twice HOT 1
- build failed. Unresolved reference: theme HOT 2
- nRF Toolbox compatible with other devices HOT 1
- Danalock V3 Smart Lock nRF DFU firmware rewrite twice
- The project is using an incompatible version (AGP 7.4.0-alpha05) of the Android Gradle plugin. Latest supported version is AGP 7.2.0
- Log 2023-01-24 16_05_26.txt
- UART console log should automatically scroll
- Build.gradle.kts plugins can not be called
- Dependency Dashboard
- Nordic
- CONFIG_BRIDGE_BLE_ENABLE
- 5f4d1626be7e1307706f338c3a46903286eeb075
- Navigation issue
- cal. verif. number.
- API documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-nrf-toolbox.