ble app uart

Hi:

I use nrf52832 to connect to the sensor module through uart. When the sensor device is turned off, I can repeat the pairing and unpairing of the Ble module through the nRF Connect app. But after the Ble module pairing is completed and the sensor is turned on, when I cancel the Ble pairing and want to re-pair, I cannot scan the Ble device and cannot pair. How can I solve it

Parents
  • Hello,

    If the device does not show up again in the nRF Connect application scanner after a disconnect it is likely due to the device not advertising. 
    Could you make sure that your device restarts advertising when a connection is disconnected?

    Do I understand you correctly that you are working with the BLE UART example? If so, have you made any modifications to the example application?

    Best regards,
    Karl

  • Yes, I am using the ble_app_uart example. For the example, I only modify MIN_CONN_INTERVAL and MAX_CONN_INTERVAL.

    This problem only occurs when the sensor device is turned on, how can I modify it for the ble example?

  • nicky_liu said:
    Yes, I am using the ble_app_uart example. For the example, I only modify MIN_CONN_INTERVAL and MAX_CONN_INTERVAL.

    Thank you for clarifying.
    The unmodified example will resume advertising upon disconnect. You should see the LED of the DK switch from a solid state (indicating connected state) to blinking (indicating advertising state). Do you not see this happening on your end, when you disconnect from the central side?

    nicky_liu said:
    This problem only occurs when the sensor device is turned on, how can I modify it for the ble example?

    I am not sure I understand exactly what you mean, could you elaborate?
    Does this only happen when the sensor device is sending data through UART? Are you able to see its advertisements if you disconnect from it and the sensor device is not sending data through UART?

    Best regards,
    Karl

Reply
  • nicky_liu said:
    Yes, I am using the ble_app_uart example. For the example, I only modify MIN_CONN_INTERVAL and MAX_CONN_INTERVAL.

    Thank you for clarifying.
    The unmodified example will resume advertising upon disconnect. You should see the LED of the DK switch from a solid state (indicating connected state) to blinking (indicating advertising state). Do you not see this happening on your end, when you disconnect from the central side?

    nicky_liu said:
    This problem only occurs when the sensor device is turned on, how can I modify it for the ble example?

    I am not sure I understand exactly what you mean, could you elaborate?
    Does this only happen when the sensor device is sending data through UART? Are you able to see its advertisements if you disconnect from it and the sensor device is not sending data through UART?

    Best regards,
    Karl

Children
Related