Coder Social home page Coder Social logo

Comments (6)

philips77 avatar philips77 commented on May 27, 2024

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.

crespum avatar crespum commented on May 27, 2024

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.

philips77 avatar philips77 commented on May 27, 2024

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.

crespum avatar crespum commented on May 27, 2024

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.

philips77 avatar philips77 commented on May 27, 2024

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.

crespum avatar crespum commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.