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

Implementing UART profile between NRF52832 (as central) and HM10 (as peripheral)

I am facing some issue, I am using HM10 ble module as peripheral and NRF52832 (Redbear NANO v2) as central device. I using SDK "nRF5_SDK_12.3.0_d7731ad" and example program "nRF5_SDK_12.3.0_d7731ad\nRF5_SDK_12.3.0_d7731ad\examples\ble_central\ble_app_uart_c". I changed UUID's according to HM10 service and char UUID here "NUS_BASE_UUID, BLE_UUID_NUS_SERVICE, BLE_UUID_NUS_TX_CHARACTERISTIC, BLE_UUID_NUS_RX_CHARACTERISTIC". When I flashed code in chip and tried to run in my serial terminal I am getting

"Uart_c Scan started\n Connecting to target b5c81319fdc8\n Connected to target Starting discovery of service with UUID 0xffe0 for Connection handle 0\n

Uart_c Scan started\n Connecting to target b5c81319fdc8\n Connected to target Starting discovery of service with UUID 0xffe0 for Connection handle 0\n

Uart_c Scan started\n Connecting to target b5c81319fdc8\n Connected to target Starting discovery of service with UUID 0xffe0 for Connection handle 0"\n

and so on.......... in a continues loop

Why this is not stopping after it finding peripheral and not moving for TX RX communication.

-Is this code is only designed for to connect only with NRF5832 chips? -Can I connect to any generic BLE peripheral device using "ble_app_uart_c" example?

Waiting for reply soon

Thanks in Advance.

Parents
  • The ble_app_uart_c example implements the Nordic UART service client. It is a GAP central.

    The application scans peripheral devices and connects to a device that advertises with the NUS UUID in its advertisement report. After connecting, the application enables notifications on the device that delivers the Nordic UART Service.

    This code is designed to work peripherals that implements the Nordic UART service server. It doesn't work with all possible services.

    What code are you running on the HM10?

  • After connecting the next step is service discovery. I'm not sure why the connection is dropped, probably it could be because the peer disconnects, because of reset when APP_ERROR_CHECK() is called with an error that is not NRF_SUCCESS (0x00000000), or because sd_ble_gap_disconnect() is called.

Reply Children
No Data
Related