RSSI Custom Service

Hi,

I am developing the nRF52833 DK with NCS 2.00.

I have successfully implemented a service to print the RSSI on the Android nRF Connect application. I use the function, read_conn_rssi, taken from the Bluetooth sample, Bluetooth: HCI Power Control. I have setup the service according to the instructions provided by Nordic here. I have two questions please:

1. The service and characteristic name come up as 'Unknown Service' and 'Unknown Characteristic' on the nRF Connect app. How can I change these names to custom names?

2. The RSSI value are being displayed in the log (in the nRF Connect app) in hexadecimal - I have confirmed that these values are correct when converted to signed integers. How do I change the values in the log to be printed in decimal?

Thanks,

Adam

Parents
  • Hi Adam. 

    #1 

    The reason the service is unknown from the smartphone side (nRF Connect for Mobile) is that the UUID is not defined in the database. Service UUIDs that the smartphone app has in it's database (such as predefined Bluetooth SIG names) will show the service name, but custom services will be displayed as "Unknown Service".

    I don't think there is a lot of option in order to change this. You may be able to edit this name locally in the app. But this won't be synchronized across any devices, so I guess this won't change much.

    #2

    I'll check with out mobile developers if you can change the way it's displayed. 

    Br, 
    Joakim

Reply
  • Hi Adam. 

    #1 

    The reason the service is unknown from the smartphone side (nRF Connect for Mobile) is that the UUID is not defined in the database. Service UUIDs that the smartphone app has in it's database (such as predefined Bluetooth SIG names) will show the service name, but custom services will be displayed as "Unknown Service".

    I don't think there is a lot of option in order to change this. You may be able to edit this name locally in the app. But this won't be synchronized across any devices, so I guess this won't change much.

    #2

    I'll check with out mobile developers if you can change the way it's displayed. 

    Br, 
    Joakim

Children
Related