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

How to make the nRF51 UART Peripheral Example connect/function with the nRF52 UART Central Example

I am attempting to connect and send data between an nRF51422 (DK) running the UART Peripheral Example Code and an nRF52832 (DK) running the UART Central example. I am able to successfully load the code onto both devices and monitor print statements through FTDI. I can see that the Central sees the Peripherals advertisement, connects, but then does not properly handle the GATT service discovery response and never receives a "BLE_NUS_C_EVT_DISCOVERY_COMPLETE" event.

I have placed print statements in the Central's "ble_nus_c.c" source in the function "ble_nus_c_on_db_disc_evt(ble_nus_c_t * p_ble_nus_c, ble_db_discovery_evt_t * p_evt)" and can see that I never enter the "Check if the NUS was discovered" "if" statement. My initial concern is that this is a SoftDevice compatibility issue due to the differences in chips/SDKs/etc. Is there anything additional I am missing or need to do to allow the devices to connect and communicate through UART?

The nRF51422 is compiling its Peripheral example with SDK 12.3.0 and SoftDevice 130. The nRF52832 is compiling its Central example with SDK 13.0.0 and SoftDevice 132.

Parents
  • FormerMember
    0 FormerMember

    I suspect the problem is related to the GATT module (gatt_init() ) introduced in SDK 13. The GATT module will initiate a MTU request, which is not supported by S130. By removing gatt_init() from ble_app_uart_c, I would think it should work to connect ble_app_uart_c (SDK13) to ble_app_uart (SDK 12.3).

Reply
  • FormerMember
    0 FormerMember

    I suspect the problem is related to the GATT module (gatt_init() ) introduced in SDK 13. The GATT module will initiate a MTU request, which is not supported by S130. By removing gatt_init() from ble_app_uart_c, I would think it should work to connect ble_app_uart_c (SDK13) to ble_app_uart (SDK 12.3).

Children
Related