<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE UART custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77198/ble-uart-custom-service</link><description>Hi, 
 I have test with success the BLE central and peripheral example.(ble_app_uart project) 
 Now, I would like to connect with a peripheral with specific service UUID (128-bits) which contains different custom characteristics. 
 My service is: 
 #define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Nov 2023 12:55:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77198/ble-uart-custom-service" /><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/456160?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 12:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe53ae1-13df-4f95-a39a-89d78db66263</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not aware of any updates here, though &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77363/ble-uart-custom-service-bis"&gt;this thread&lt;/a&gt; may be related. If you have a similar issue I suggest you open a new case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/456156?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 12:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c62dda-8de2-47e3-968d-ec30f23da33c</guid><dc:creator>Allen_</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is there a good solution to this problem? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319408?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 14:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc49e4dd-855e-4203-be0d-f9fd059829ee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="JARM"]Hi, I have already do this in the example project ( #define NRF_SDH_BLE_VS_UUID_COUNT 10) .[/quote]
&lt;p&gt;I see that in some sdk_config.h files now when I diff, but it was not set in TEST\examples\ble_central\ble_app_uart_c\pca10056\s140\ses project. Perhaps it was a wrong assumption that it was what you used, but I saw it included build files. Please specify which exact project you use so that I know I am using the correct one.&lt;/p&gt;
[quote user="JARM"]My error is not a memory problem but a problem about disovering or enable notification (i don&amp;#39;t know witch one).[/quote]
&lt;p&gt;Also, please explain in detail how to reproduce the issue using your code.&lt;/p&gt;
&lt;p&gt;Looking at you rcode again I see one obvious issue. Take this whole section where all UUID baes are added:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
    err_code = sd_ble_uuid_vs_add(&amp;amp;nus_base_uuid, &amp;amp;p_ble_nus_c-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);

    //AJOUT
    
    ble_uuid128_t tx_base_uuid = {BLE_UUID_COMMANDE_TX_UUID};
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c);
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c_init);
    err_code = sd_ble_uuid_vs_add(&amp;amp;tx_base_uuid, &amp;amp;p_ble_nus_c-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);

    ble_uuid128_t rx_base_uuid = {BLE_UUID_COMMANDE_RX_UUID};
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c);
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c_init);
    err_code = sd_ble_uuid_vs_add(&amp;amp;rx_base_uuid, &amp;amp;p_ble_nus_c-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);
    
    // FIN AJOUT
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here you add three bases, but you store the ID in the same variable (&amp;amp;p_ble_nus_c-&amp;gt;uuid_type), overwriting the first two. you need to store all three so that they can be referenced later. The way this is now, you use the last base UUID you add so when searching for the NUS UUID in&amp;nbsp;ble_nus_c_on_db_disc_evt, you are actually searching for the type (base)&amp;nbsp;BLE_UUID_COMMANDE_RX_UUID. And that is not going to wok.&lt;/p&gt;
&lt;p&gt;FYI: I am starting my 3 weeks vacation now so there may be delays in this thread. If you need more support before it might be a good idea to open a new case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319395?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff2202c6-279a-4358-828c-da49088ad9ac</guid><dc:creator>JARM</dc:creator><description>&lt;p&gt;Hi, I have already do this in the example project ( #define NRF_SDH_BLE_VS_UUID_COUNT 10) .&lt;/p&gt;
&lt;p&gt;My error is not a memory problem but a problem about disovering or enable notification (i don&amp;#39;t know witch one).&lt;/p&gt;
&lt;p&gt;When you download my project, you can connect to a peripheral board and exchange uart over BLE data?&lt;/p&gt;
&lt;p&gt;This is my log in central side:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;with line 158 to 168 enable:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 4778
&amp;lt;info&amp;gt; app: BLE UART central example started.
&amp;lt;debug&amp;gt; ble_scan: Scanning
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 4778
&amp;lt;info&amp;gt; app: BLE UART central example started.
&amp;lt;debug&amp;gt; ble_scan: Scanning
&amp;lt;debug&amp;gt; ble_scan: Connecting
&amp;lt;debug&amp;gt; ble_scan: Connection status: 0
&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.
&amp;lt;info&amp;gt; app: Connecting to target 77A9B2E712E4
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x4778 on connection handle 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Services Discovery Request
U of 247 bytes.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating ATT MTU to 247 bytes (desired: 247) on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                           again later.
&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
&amp;lt;info&amp;gt; app: ATT MTU exchange completed.
&amp;lt;info&amp;gt; app: Ble NUS max data length set to 0xF4(244)
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (2) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x4778 not found.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;with bloc line move just before &amp;quot;return ble_db_discovery_evt_register(&amp;amp;uart_uuid);:&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 4778
&amp;lt;info&amp;gt; app: BLE UART central example started.
&amp;lt;debug&amp;gt; ble_scan: Scanning
&amp;lt;debug&amp;gt; ble_scan: Connecting
&amp;lt;debug&amp;gt; ble_scan: Connection status: 0
&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.
&amp;lt;info&amp;gt; app: Connecting to target 77A9B2E712E4
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x4778 on connection handle 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Services Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                       again later.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
U of 247 bytes.
&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
&amp;lt;info&amp;gt; app: ATT MTU exchange completed.
&amp;lt;info&amp;gt; app: Ble NUS max data length set to 0xF4(244)
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (2) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; ble_db_disc: Found service UUID 0x4778.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; ble_db_disc: Discovery of service with UUID 0x4778 completed with success on connection handle 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But no &amp;quot;Discovery complete.&amp;quot; message... So, I can&amp;#39;t exchange data over BLE&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;with line commented:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 4778
&amp;lt;info&amp;gt; app: BLE UART central example started.
&amp;lt;debug&amp;gt; ble_scan: Scanning
&amp;lt;debug&amp;gt; ble_scan: Connecting
&amp;lt;debug&amp;gt; ble_scan: Connection status: 0
&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.
&amp;lt;info&amp;gt; app: Connecting to target 77A9B2E712E4
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x4778 on connection handle 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Services Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request proceU of 247 bytes.
7) on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                           again later.
&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
&amp;lt;info&amp;gt; app: ATT MTU exchange completed.
&amp;lt;info&amp;gt; app: Ble NUS max data length set to 0xF4(244)
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (2) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; ble_db_disc: Found service UUID 0x4778.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; ble_db_disc: Discovery of service with UUID 0x4778 completed with success on connection handle 0x0.
&amp;lt;info&amp;gt; app: Discovery complete.
&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 4778
&amp;lt;info&amp;gt; app: BLE UART central example started.
&amp;lt;debug&amp;gt; ble_scan: Scanning
&amp;lt;debug&amp;gt; ble_scan: Connecting
&amp;lt;debug&amp;gt; ble_scan: Connection status: 0
&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.
&amp;lt;info&amp;gt; app: Connecting to target 77A9B2E712E4
&amp;lt;debug&amp;gt; nrf_ble_gq: Registering connection handle: 0x0000
&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x4778 on connection handle 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Services Discovery Request
U of 247 bytes.
7) on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                           again later.
&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
&amp;lt;info&amp;gt; app: ATT MTU exchange completed.
&amp;lt;info&amp;gt; app: Ble NUS max data length set to 0xF4(244)
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (2) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; ble_db_disc: Found service UUID 0x4778.
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Discovery Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue
&amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Characteristic Descriptor Request
&amp;lt;debug&amp;gt; nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
&amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...
&amp;lt;debug&amp;gt; ble_db_disc: Discovery of service with UUID 0x4778 completed with success on connection handle 0x0.
&amp;lt;info&amp;gt; app: Discovery complete.
&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at C:\Users\julien.HORIZONTELECOM\Downloads\TEST\examples\ble_central\ble_app_uart_c\main.c:336
PC at: 0x0002F797
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319389?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd540f0-a830-4462-a1ed-b8596c566f8a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I used a debug build (selected &amp;quot;Debug&amp;quot; from the build configuration drop-down menu) to get better logging, and&amp;nbsp;I include the code from line 158 to 169 in ble_nus_c.c. Then I got the following RTT log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\Users\eith\Downloads\TEST\examples\ble_central\ble_app_uart_c\main.c:585
PC at: 0x00030A1B
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This makes sense as you add two new vendor specific UUIDs. Then the first step is to open sdk_config.h and increase&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT to 3. Build and test again. That fails as expected as the adjustment increased the SoftDevice RAM&amp;nbsp;usage. However, the debug log again gives useful information:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Change the RAM start location from 0x20002A38 to 0x20002A58.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Maximum RAM size for application is 0x3D5A8.
&amp;lt;error&amp;gt; nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\Users\eith\Downloads\TEST\examples\ble_central\ble_app_uart_c\main.c:487
PC at: 0x0003084B
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now, we adjust the configuration as instructed by the error message:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ram_5F00_adjustment.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;When building and testing again there is no error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319373?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 12:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381ca326-2e90-48df-a1c6-6abcf6c02eb3</guid><dc:creator>JARM</dc:creator><description>&lt;p&gt;After some test,&lt;/p&gt;
&lt;p&gt;If yout test with the enable bloc code (bloc between &amp;quot;// ADD&amp;nbsp; ... code ... //END OF ADD) in the ble_nus_c_init () function, you have the message &amp;quot;Service UUID 0x4778 not found&amp;quot;&lt;/p&gt;
&lt;p&gt;If you move the bloc code before this line &amp;quot;p_ble_nus_c-&amp;gt;p_gatt_queue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_ble_nus_c_init-&amp;gt;p_gatt_queue;&amp;quot; discover works (service is found) but notification are not enable becuse of &amp;quot;&amp;nbsp;Processing the request queu...&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319305?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 08:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b10e679-f421-4372-bbde-bf9d8a5124c8</guid><dc:creator>JARM</dc:creator><description>&lt;p&gt;&lt;br /&gt;I restart a central and peripheral project from the example because my project is not very clear.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For the peripheral, you can flash a PAC10056 DK with the &amp;quot;examples/ble_peripheral/ble_app_uart&amp;quot; project.&lt;br /&gt;You can verify with a smartphone to see that peripheral works well.&lt;br /&gt;&lt;br /&gt;For the central, you can flash a PAC10040 DK with the &amp;quot;examples/ble_central/ble_app_uart_c&amp;quot; project.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have add some line in ble_nus_c_init().&lt;br /&gt;If you comment this bloc, you can see the notification problem.&lt;br /&gt;If you enable this line (I add them today for some test), notification problems disappear because &amp;quot;BLE_NUS_C_EVT_DISCOVERY_COMPLETE&amp;quot; is not reach. I don&amp;#39;t now if it&amp;#39;s a begin of solution...&lt;/p&gt;
&lt;p&gt;Here, the link for all the project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/1PED-x1oAy6tT0mK8qnOmPk2jTyK1H4lQ/view?usp=sharing"&gt;https://drive.google.com/file/d/1PED-x1oAy6tT0mK8qnOmPk2jTyK1H4lQ/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319213?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8f7c17-9551-40c2-a768-0e4cedad86e9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;That is odd... Did you debug to see what happens when you write &amp;quot;software crash&amp;quot;?&amp;nbsp;If you can share your code and it runs on a DK, then I can test on my side as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319199?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 13:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d32ef43-0143-4c05-8f74-ac2e00ef0657</guid><dc:creator>JARM</dc:creator><description>&lt;p&gt;Exact, I want to do the exact same as NUS but with different UUID in Nus SERVICE (128 bits) and two differents characteristics UUID (128 bits).&lt;/p&gt;
&lt;p&gt;When I start the application, the central is scanning and connecting to the peripheral. The discover process start but in ble_nus_c_on_db_disc_evt() the p_chars[i].characteristic.uuid.uuid are null for the two characteristics and the event BLE_NUS_C_EVT_DISCOVERY_COMPLETE is done.&lt;/p&gt;
&lt;p&gt;On the ble_nus_c_evt_handler() function, the event BLE_NUS_C_EVT_DISCOVERY_COMPLETE is reach and the problem is on the err_code = ble_nus_c_tx_notif_enable(p_ble_nus_c) line with error code = 8 because p_ble_nus_c-&amp;gt;handles.nus_tx_cccd_handle == BLE_GATT_HANDLE_INVALID..&lt;/p&gt;
&lt;p&gt;I think characteristics are not really fine discoverred during the scan process.&lt;/p&gt;
&lt;p&gt;I have cheat in the function ble_nus_c_on_db_disc_evt() by adding condition and forcing the uuid value but is not a good solution.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void ble_nus_c_on_db_disc_evt(ble_nus_c_t * p_ble_nus_c, ble_db_discovery_evt_t * p_evt)
{
    ble_nus_c_evt_t nus_c_evt;
    memset(&amp;amp;nus_c_evt,0,sizeof(ble_nus_c_evt_t));

    ble_gatt_db_char_t * p_chars = p_evt-&amp;gt;params.discovered_db.charateristics;

    // Check if the NUS was discovered.
    if (    (p_evt-&amp;gt;evt_type == BLE_DB_DISCOVERY_COMPLETE)
        &amp;amp;&amp;amp;  (p_evt-&amp;gt;params.discovered_db.srv_uuid.uuid == BLE_UUID_COMMANDE_SERVICE)   //BLE_UUID_NUS_SERVICE)
        &amp;amp;&amp;amp;  (p_evt-&amp;gt;params.discovered_db.srv_uuid.type == p_ble_nus_c-&amp;gt;uuid_type))
    {
        NRF_LOG_INFO(&amp;quot;nbr: %x&amp;quot;,  p_evt-&amp;gt;params.discovered_db.char_count);
        for (uint32_t i = 0; i &amp;lt; p_evt-&amp;gt;params.discovered_db.char_count; i++)
        {
        
            if( p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.handle_value == 0x0010)
            {
              p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid = BLE_UUID_COMMANDE_RX_CHARACTERISTIC;
              p_chars[i].characteristic.uuid.uuid =p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid;

            }else if( p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.handle_value == 0x000D)
            {
              p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid = BLE_UUID_COMMANDE_TX_CHARACTERISTIC;
              p_chars[i].characteristic.uuid.uuid =p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid;
            }
            
            NRF_LOG_INFO(&amp;quot;uuid: %x&amp;quot;, p_chars[i].characteristic.uuid.uuid);
            NRF_LOG_INFO(&amp;quot;ccd: %x&amp;quot;, p_chars[i].cccd_handle);
            NRF_LOG_INFO(&amp;quot;handle_value: %x&amp;quot;, p_chars[i].characteristic.handle_value);
            &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/319191?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0dcff5-de6d-41b3-bf2f-e46382b46b49</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The way I read your post you want to do the exact same as the NUS central/client example, just with modified UUID&amp;#39;s. Is that correct? If so, you should not need to change anything other than the UUID&amp;#39;s itself including the base UUID. Perhaps you can explain what you have done, and what you found when debugging? If there is an error that is typically detected by the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;error handing system in the nRF5 SDK&lt;/a&gt;, so by making a debug build (simply select the Debug build target if using SES) and observing the log you should get good information that point sin the right direction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART custom service</title><link>https://devzone.nordicsemi.com/thread/318963?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 11:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feeebaf0-f513-4903-a6da-3721fe14545f</guid><dc:creator>JARM</dc:creator><description>&lt;p&gt;I have see this post &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40578/discovering-a-vs-uuid-characterisic-but-it-shows-uuid-as-0/158781"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40578/discovering-a-vs-uuid-characterisic-but-it-shows-uuid-as-0/158781&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but solution is incomplete and not for ble_app_uart example. I think Ineed to add sd_ble_gattc_read() function but I don&amp;#39;t know where.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>