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

Error log

Hello,

My NUS services work fine i can transmit and receive  data over UART , but i still get this error in my nRF Toolbox (UART) . Any help will apreciated 

 

Parents Reply Children
  • Hello Amanda,

    im using zephyr rtos  and here the to creat GATT service 

    BT_GATT_SERVICE_DEFINE(nus_svc,
    		       BT_GATT_PRIMARY_SERVICE(&nus_base_uuid),
    		       BT_GATT_CHARACTERISTIC(&nus_tx_uuid.uuid,  // TX from the point of view of the central
    					      BT_GATT_CHRC_WRITE,   			              // central is allowed to write to tx
    					      BT_GATT_PERM_WRITE,
    					      NULL, bt_tx_callback, NULL),
    		       BT_GATT_CHARACTERISTIC(&nus_rx_uuid.uuid,  // RX from point of view of central
    					      BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY,
    					      BT_GATT_PERM_READ,
    					      bt_rx_callback, NULL, NULL),
    		       BT_GATT_CCC(bt_uart_ccc_changed,
    				   BT_GATT_PERM_READ | BT_GATT_PERM_WRITE));

  • Hi Geek, 

    I cannot see any UUID values you are using, but I am guessing they are initialized properly?!

    I think it might be a permission problem. You may take a look https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/subsys/bluetooth/services/nus.c#L47

    /* UART Service Declaration */
    BT_GATT_SERVICE_DEFINE(nus_svc,
    BT_GATT_PRIMARY_SERVICE(BT_UUID_NUS_SERVICE),
    	BT_GATT_CHARACTERISTIC(BT_UUID_NUS_TX,
    			       BT_GATT_CHRC_NOTIFY,
    			       BT_GATT_PERM_READ,
    			       NULL, NULL, NULL),
    	BT_GATT_CCC(NULL, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE),
    	BT_GATT_CHARACTERISTIC(BT_UUID_NUS_RX,
    			       BT_GATT_CHRC_WRITE |
    			       BT_GATT_CHRC_WRITE_WITHOUT_RESP,
    			       BT_GATT_PERM_READ | BT_GATT_PERM_WRITE,
    			       NULL, on_receive, NULL),
    );

    -Amanda H.

Related