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

Testing of Current time service

Hi,

I am unable to test current time service example.I followed all the steps mentioned to test CTS Example.But, below are the log messages:

Again if I try to reset and try to connect to the device.The log messages are as below:

Please suggest me to rectify the errors and also the right way to test CTS example with 1SDK and mobile application.

Thanks & Regards,

Swathi P.

  • Hi,

    This is as expected, since CTS is a native service on iOS - it is provided to all connected BLE devices.

    Ok.I understood that CTS is native service on iOS,So it doesn't require to configure gatt service.But why Is it like I have to go through connection and disconnection for two times and then for the third time I am able to discover CTS service,Can I know the reason?

    Thanks & Regards,

    Swathi P 

      

  • Hi Swathi, 

    I don't have iOS to reproduce that, but I think you have to bond to the device. After the security procedure is complete, verify that the Current Time Service on the server has been discovered. 

    -Amanda H.

  • your reply is not that helpfull to progress our project.Let us know the exact connection procedure.

    The below are the consequences I am going through while testing

    • I compile and download the program on nRF Chip and scan from nRF Connect then try to connect to nRF Chip from nRF Connect by clicking on connect button.Unable to connect to the device.
    • Then tried erasing the Chip and then programmed with softdevice and application.Now I tried connecting from nRF Connect to nRF Chip,I was able to connect and asked for pair up,accepted to pair up.After some noticable delay I was able to Discover services.Can you please let me know the reason for the delay?
    • If I try to disconnect device it is not getting disconnected,even if I turn off the bluetooth it is not getting disconnected.
    • After pressing reset button it is automatically being in connected state.

    Thanks,

    Swathi P

  • Hi Swathi, 

    swathi p said:
    I compile and download the program on nRF Chip and scan from nRF Connect then try to connect to nRF Chip from nRF Connect by clicking on connect button.Unable to connect to the device.

    Did you erase the chip before downloading the image? The good habit is Erasing the kit every time before downloading the image. 

    swathi p said:
    Then tried erasing the Chip and then programmed with softdevice and application.Now I tried connecting from nRF Connect to nRF Chip,I was able to connect and asked for pair up,accepted to pair up.After some noticable delay I was able to Discover services.Can you please let me know the reason for the delay?

    Please provide the debug log and sniff log to help know the detail. 

    swathi p said:
    If I try to disconnect device it is not getting disconnected,even if I turn off the bluetooth it is not getting disconnected.

      Did you set with "Use autoConnect"? Also, I need the debug log and sniff log to help know what happened.   

    swathi p said:
    After pressing reset button it is automatically being in connected state.

     Did you set with "Use autoConnect"?

    -Amanda H.

  • Hi,

    Yes, I have erased the kit every time I have downloading the application.Below is the log info while testing on android.

    The below is the log info while testing on iOS:

     Did you set with "Use autoConnect"?

    No.I didn't set with "Use autoConnect"

    Thanks & Regards,

    Swathi P.

Related