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

Modifying ble_app_uart

Hi I have a device that already have a role as broadcaster and send message continously, now my job is to establish a connection between the device and a gadget and also want to enable a Data exchange.

for establishing the connection I used ble_app_template as my refererence and for data exchange i use the NUS because the charactristic they has is exactly what i want.

at first it works fine I can establish the connection using ble_app_template until i implement my NUS code (i modify the nus fisrt using SES and implement it in eclipse makefile).

here is the structur of my main

int main(void) {

    // Initialize.
    log_init();
    timers_init();
//    power_management_init();
    gap_params_init();
    gatt_init();
    ble_stack_init();
    advertising_init(true);
    services_init();
    conn_params_init();
//    peer_manager_init();
	advertising_start();

it has no error but now the device is not found anymore.

and I debuged it to know where is wrong and then after the first two command it goes two nrf_breakpoint_cond;

anyone knows what causes these?

Parents Reply Children
  • Hi,

    thank you fro your respond it seem the problem lies on uuid, i already made a seperate post abou it but here

    static ble_uuid_t m_adv_uuids[] =                                               /**< Universally unique service identifiers. */
    {
        {BLE_UUID_DEVICE_INFORMATION_SERVICE, BLE_UUID_TYPE_BLE}
    };

    it's from ble_app_template

    when I use these uuid my device could be found but the service it's not what i want

    i chang it to these:

    static ble_uuid_t m_adv_uuids[] =                                               /**< Universally unique service identifiers. */
    {
    		{BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE }
    };

    and comes that problem my device could not be found.

    and i'm using eclipse, i using ses just for modifying the nus first.

    I asked my friend about nrf_break_cond, who worked at this project before, he said it's not a problem, because it's also happened to him but the programm worked anyway.

  • Hi,

    I just reply to your question in your other post. Let's continue the conversation there.

    -M

Related