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 Reply Children
  • 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.

  • Hi,

    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. 

    yes.Then what might be the reason for delay?

    Please provide the debug log and sniff log.

    Sniffer works between two nRF Chips that communicate over the air.I don't have to boarads to test CTS sniffer data.

    Thanks & Regards,

    Swathi P

  • Hi Swathi, 

    swathi p said:
    Then what might be the reason for delay?

    Please see the blue block part in the figure, there are many handshakings between the master (phone) and the slave (nRF device) for pairing and encryption.  

      

    swathi p said:
    Sniffer works between two nRF Chips that communicate over the air.I don't have to boarads to test CTS sniffer data.

    Without sniffer log, I could not know what happens in the air. I could not reproduce that on my side either. 

    -Amanda H.

Related