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

Current Time Service on nRF Connect iPhone app

I have been trying to use the nRF Connect app on my Apple iPhone in order to get the Current Time Service.

I bought a Arduino Primo that has an nRF52 on it.

The example sketch from Arduino is called CTSClient under the BLE Peripheral section (special section for the Primo).

On my nRF Connect app I defined the device nRF52 (also tried CTSClient) and added the service "Current Time Service" (x1805) and then turned on the green switch next to nRF52 device. Then at the Arduino IDE, I loaded the CTSClient sketch. On the nRF Connect app I connected to the  advertised CTS-Client signal and received the message "Connect event" on the Serial printout of my PC. The sketch was supposed to "discovered" the CTS service and print the time out on my Serial printout when I push the USER1 button, but nothing happened. So my question is "should this have worked (or is it out of date), and/or did I leave any setup steps out.

  • I have done more testing and found that I cannot get any of the BLE Gatt services (attempted to be used in the provided Arduino Primo Examples) to get "discovered".

    All the example sketches stop when trying to use the "blePeripheralRemoteServicesDiscoveredHandler(BLECentral& central)" function.

    Will investigate further but any helpful hints would be appreciated.  

  • More discovery: One of the Arduino Primo Example sketches called "remote test" also doesn't work. This sketch tries to "create" a remote service with non-Gatt service UUID of "fffffffffffffffffffffffffffffff0". It also fails to get "discovered". 

    So, it's looking to me more like the problem is on the Arduino software side, right? If so, let me know.

    I still would like to know that my procedure for loading the service on the nRF Connect is right (nRF Connect User Guide is a bit terse in the "Advertiser" section) but if the above mentioned problems are Arduino software, then just please review my steps for adding services in the nRF Connect app, comment and then close this Case out. 

  • Hey Dale, I'm not sure if nRF Connect has support for the CTS server. You should sniff the BLE communication between the nRFcOnnect device and the Primo to make sure that its working as it should. 

  • Haakonsh,

    So even though Current Time Service 1805 is a service from the list of GATT services suggested as advertisers, it may not support the CTS server? Bizzarre. 

    Also, I do not know how to sniff the BLE communications. Is there a guide as to what code would allow me to do so?

    Thanks for your help.

  • "So even though Current Time Service 1805 is a service from the list of GATT services suggested as advertisers, it may not support the CTS server? Bizzarre. " -I'm currently at my home office, but I'll check it out tomorrow. (I need to have a DK plugged into the PC i'm remoting into in order to use the BLE server implementation of nRF Connect).

    We've got the nRF Sniffer, but you need an nRF52DK. 

Related