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.

Parents
  • Hello Swathi P,

    Did you follow the Setup and Testing section of the CTS Example Documentation?
    From your error logs, it seems that the Current Time Service is not found on the central device, which causes the peripheral to auto-disconnect.
    You need to make sure that the central is providing this service.
    Which smartphone application and OS are you using?
    If you are using the nRF Connect application, you will need to configure your GATT server to include the Current Time Service, with the Current Time characteristic. The initial value of the characteristic should be C2 07 0B 0F 0D 25 2A 06 FE 08, as detailed in the CTS Example documentation referenced above.

    Please let me know if this resolves your issue,

    Best regards,
    Karl

  • Hi,

    Thank you for the reply.

    In example provided it has already advertising current time service,I think this means central is provided with service.

    I am using Oppo A71,it is android.

    I have configured Server on the mobile.

    To write the initial value the service is not getting discovered.

    Can you also please let me know,what content the initial value of characteristic "C2 07 0B 0F 0D 25 2A 06 FE 08" is holding?

    Thanks & Regards,

    Swathi P

     

  • Hi Swathi, 

    Please provide the debug log and sniff log. Thanks. 

    -Amanda H.

  • Hi,

    Connectivity issue solved on iOS,but there is delay in disconnection and pairing.After I press disconnect on nRF Connect,It is getting disconnected after around 30sec.If I press to pairup it is getting bonded after 30sec.Can I know the reason for the delay?

    Thanks & Regards,

    Swathi P. 

  • Hi Swathi, 

    For pairing, I see it spend a lot of time on encryption between the mobile and device before the security procedure (peer_manager) from the sniff log. The current implementation requires security to be established before service discovery.

    For disconnection, I don't see any delay issue as the sniff log. 

    If you still have the delay issue in disconnect, please provide the sniff log. I can check it. 

    -Amanda H.

  • For pairing, I see it spend a lot of time on encryption between the mobile and device before the security procedure (peer_manager) from the sniff log. The current implementation requires security to be established before service discovery.

    ok.Can you please let me know what exactly I can do to establish security before service discovery?

  • Hi Swathi, 

    Sorry to cause the misunderstand. If you take a look at the log, you can see the application will do the security procedure with peer_manager before service discovery. 

    <info> peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding
    
    <info> ble_db_disc: p_db_discovery->discovery_in_progress: 0.
    
    <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
    
    <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
    
    <info> ble_cts_c: Current Time Service discovered at peer.
    
    <info> app: Current Time Service discovered on server.
    

    -Amanda H.

Reply
  • Hi Swathi, 

    Sorry to cause the misunderstand. If you take a look at the log, you can see the application will do the security procedure with peer_manager before service discovery. 

    <info> peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding
    
    <info> ble_db_disc: p_db_discovery->discovery_in_progress: 0.
    
    <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
    
    <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
    
    <info> ble_cts_c: Current Time Service discovered at peer.
    
    <info> app: Current Time Service discovered on server.
    

    -Amanda H.

Children
Related