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

Regarding current time service

Hi,

I tried testing Current time service example provided in examples of SDK 15.3.0.The things I have noticed were

1)From Apple mobile it is able to discover current time service after getting connect,paired and disconnected and in between the proccess I was able to see some error messages too.Can you please let me know reason for those error messages and how to rectify them and also please let me now the reason why it has to go through connecting,disconnecting and pairing several times before discovering services.The below attached is the log info while testing on Apple mobile

2)From Android mobile it was not discovering service even after connecting several times as done in Apple mobile.The below capture contains log messages while testing CTS with Android mobile.

Please let me know whether I have to delete any bond information?and every time it is advertising erase bonds is being used and I also tried deleting bond information on nRF connect mobile application too.

Parents Reply Children
  • Hi,

    This is not the official flow to test with the example as the Current Time Application documentation. I need more time to figure out the reason. Not sure this way is supported or not.

    Please check and let me know ASAP.I think you have performed all the steps mentioned in the documentation while testing. were you able to see functionality of button1?

    My requirement is that I want to set current time on to nRF Chip by pressing a button in mobile.So before starting implementation of customized service I started looking on exsisting CTS example as reference.For this purpose should I have a customized service or can I use exsisting CTS with any modifications?

    Thanks & Regards,

    Swathi P.

  • Hi Swathi,

    Sorry, it's my mistake. You have to enable the Read permission, and then the example can read the data from the mobile. 

     

    swathi p said:
    For this purpose should I have a customized service or can I use exsisting CTS with any modifications?

    Current Time Service is native to iOS (as described here), but it seems that this is not native on Android. You have to implement the service on the android phone, and here is a BLE Android tutorial that will cover that. Or take a look at this project that may be helpful.

    On the nRF device, you can modify the Current Time Application to fit your requirement. 

    -Amanda H.

  • Hi Amanda Hsieh,

    I am able to read the data on UART now.As we are passing initial value in characteristics we are able to display constant data on UART.Can you please let me know how to display exact current time using Current Time Service?

    On the nRF device, you can modify the Current Time Application to fit your requirement

    Thank you for your suggestion.I will take my implementation forward as per your suggestion.

    Regards,

    Swathi P.

  • Hi Swathi,

    swathi p said:
    Can you please let me know how to display exact current time using Current Time Service?

    You already got the exact current time from iOS in this post because the Current Time Service is native to iOS (as described here). Now you have to implement the service on the android phone, and here is a BLE Android tutorial that will cover that. Or take a look at this project that may be helpful. If you have any issue while developing the Current Time Service on android, you should ask the help from the Android forum. 

    -Amanda H.

  • Hi Amanda Hsieh,

    Does it mean that I have to develop an customized android application which includes a CTS service including setting exact current time?I think here mobile application is server so we need to implement a service on server side.is it?

    Then such implemented service is considered as customized service or vendor specific service?

    Can I also know why is it native on iOS and why not on android?

    Thanks & Regards,

    Swathi P

Related