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?

  • Hello,

    I am using nRF5_SDK_14.0.0_3bcc1f7\examples\ble_central\ble_app_uart_c example program.

    • Firstly, I tried with nRF BLE peripheral device and flashed nRF5_SDK_14.0.0_3bcc1f7\examples\ble_peripheral\ble_app_uart code, it is working fine and exchanging data also between central and peripheral.

    • Secondly, I tried with some other (TI's CC2640R2) vendor BLE peripheral device. Not able to connect, Now my question is this "What changes I have to make in ble_app_uart_c code to connect to some other peripheral device". I tried changing NUS_BASE_UUID, BLE_UUID_NUS_SERVICE, BLE_UUID_NUS_RX_CHARACTERISTIC, BLE_UUID_NUS_TX_CHARACTERISTIC but still it is not connecting to CC2640R2 BLE peripheral device.

    Waiting for reply.

Reply
  • Hello,

    I am using nRF5_SDK_14.0.0_3bcc1f7\examples\ble_central\ble_app_uart_c example program.

    • Firstly, I tried with nRF BLE peripheral device and flashed nRF5_SDK_14.0.0_3bcc1f7\examples\ble_peripheral\ble_app_uart code, it is working fine and exchanging data also between central and peripheral.

    • Secondly, I tried with some other (TI's CC2640R2) vendor BLE peripheral device. Not able to connect, Now my question is this "What changes I have to make in ble_app_uart_c code to connect to some other peripheral device". I tried changing NUS_BASE_UUID, BLE_UUID_NUS_SERVICE, BLE_UUID_NUS_RX_CHARACTERISTIC, BLE_UUID_NUS_TX_CHARACTERISTIC but still it is not connecting to CC2640R2 BLE peripheral device.

    Waiting for reply.

Children
No Data
Related