This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unable to read Battery service and Device Info Service in Mobile App

Hi, I am developing the project where to read the sensor data and send the values to the mobile application as User Interface. I have built the Board with nRF52832 and using SDK15.3 with SES

Here I have Problem with Mobile Application

I have using BLE SERVICES to send my data and device informations

Device Information 0x180A

Battery Service  0x180F

Custom Service 1

Custom Service 2

Here In my Mobile APP i can able to read the Custom services and i can't able to read the Battery level service and device info service. is there any format to read the data in these services.

I can able to read the data in nrf connect but not in my personal mobile app . is shows "Invalid UUID"

Is there any solutions for this?

Parents
  • Hi Sunil,

    A BLE service would have characteristics which holds your data. In this case with the battery service, it has the battery level characteristic which holds the battery level value.

    The Battery service UUID is 0x180F, and the Battery level char UUID is 0x2A19.

    Same thing for the device information service. the service  UUID is 0x180A, and one of its characteristic is the serial number string UUID 0x2A25. There is also another char called the Software revision string UUID 0x2A28.

    Make sure you read from the service's characteristic.

    Hope this helps.

    Best regards,

    rmptxf

Reply
  • Hi Sunil,

    A BLE service would have characteristics which holds your data. In this case with the battery service, it has the battery level characteristic which holds the battery level value.

    The Battery service UUID is 0x180F, and the Battery level char UUID is 0x2A19.

    Same thing for the device information service. the service  UUID is 0x180A, and one of its characteristic is the serial number string UUID 0x2A25. There is also another char called the Software revision string UUID 0x2A28.

    Make sure you read from the service's characteristic.

    Hope this helps.

    Best regards,

    rmptxf

Children
Related