<?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>Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu</link><description>Hello, 
 I am using nRF52832 on SES v4.12 with SDK v15.3 and SD v6.1.1 on a custom board. 
 Background: 
 I want to perform OTA DFU and with that i have two services enabled (secure dfu buttonless and NUS). I was facing OTA DFU issue in which i was getting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jan 2020 08:54:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu" /><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/227352?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 08:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:429fc9d0-9057-4fa6-9a03-5cba01d4df69</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay so i noticed that for the previous SDK 14.2 i used inactivity timer value as 10000.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Increasing the value to 120000 as was default, i did not see any GATT error while doing OTA DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/227334?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 07:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b0b0cc-31b4-492b-955b-465648d2fd1d</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;logs from the bootloader as i try to do DFU&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init

&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...

&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate

&amp;lt;info&amp;gt; app: No firmware to activate.

&amp;lt;debug&amp;gt; app: App is valid

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000

&amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x0

&amp;lt;debug&amp;gt; app: In nrf_bootloader_init

&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...

&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate

&amp;lt;info&amp;gt; app: No firmware to activate.

&amp;lt;debug&amp;gt; app: App is valid

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000

&amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x0

&amp;lt;debug&amp;gt; app: In nrf_bootloader_init

&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...

&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...

&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007E000

&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007E000, len=1 pages), queue usage: 0

&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007E000, pending 0

&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007E000, src=0x20005DE4, len=896 bytes), queue usage: 1

&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007E000, pending 0

&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate

&amp;lt;info&amp;gt; app: No firmware to activate.

&amp;lt;debug&amp;gt; app: App is valid

&amp;lt;debug&amp;gt; app: DFU mode requested via GPREGRET.

&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled

&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user

&amp;lt;debug&amp;gt; app: timer_stop (0x200057D8)

&amp;lt;debug&amp;gt; app: timer_activate (0x200057D8)

&amp;lt;info&amp;gt; app: Entering DFU mode.

&amp;lt;debug&amp;gt; app: Initializing transports (found: 1)

&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport

&amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x00072000

&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.

&amp;lt;debug&amp;gt; nrf_dfu_ble: Configuring BLE stack.

&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling the BLE stack.

&amp;lt;debug&amp;gt; nrf_dfu_ble: Copying peer data

&amp;lt;debug&amp;gt; nrf_dfu_ble: Using default advertising name

&amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...

&amp;lt;debug&amp;gt; nrf_dfu_ble: BLE DFU transport initialized.

&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_sd backend.

&amp;lt;debug&amp;gt; app: Enter main loop

&amp;lt;debug&amp;gt; nrf_dfu_ble: Connected

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE

&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12

&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12

&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0

&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_SEC_INFO_REQUEST

&amp;lt;debug&amp;gt; nrf_dfu_ble: Sending Service Changed indication

&amp;lt;debug&amp;gt; nrf_dfu_ble: Finished handling conn sec update

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE

&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 6

&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 6

&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0

&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 500

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE

&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12

&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12

&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0

&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST (request: 517, reply: 247).

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST.

&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_DATA_LENGTH_UPDATE (251, max_rx_time 2120).

&amp;lt;debug&amp;gt; app: In nrf_bootloader_init

&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...

&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.

&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate

&amp;lt;info&amp;gt; app: No firmware to activate.

&amp;lt;debug&amp;gt; app: App is valid

&amp;lt;debug&amp;gt; nrf_dfu_settings_svci: Erasing settings page additional data.

&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.

&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...

&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007E000

&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007E000, len=1 pages), queue usage: 0

&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007E000, pending 0

&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007E000, src=0x20005DE4, len=896 bytes), queue usage: 1

&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007E000, pending 0

&amp;lt;debug&amp;gt; app: Running nrf_bootloader_app_start with address: 0x00001000

&amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x0

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/227324?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 01:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de4414c-23e9-43c2-b6ad-ccec6beb1cb8</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay, tried doing OTA DFU. Still not working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error 0x85 - GATT Error. Before this happens, device resets.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/227197?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 08:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02fb9dff-de7e-4987-a446-3be090c62559</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay, got it what i was doing wrong there!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;will continue to check on the DFU procedure now.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/227190?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 08:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5da9319-8fd8-4220-b0b9-35e490490aaa</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry, i had to move to some other tasks. I tried to do as you suggested, but i am getting error on the sd_ble_gattc_exchange_mtu_request() --&amp;gt; unknown error code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would you know why would that be? I have added timer as below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    if (p_link-&amp;gt;att_mtu_desired &amp;gt; p_link-&amp;gt;att_mtu_effective)
    {
        NRF_LOG_DEBUG(&amp;quot;Requesting to update ATT MTU to %u bytes on connection 0x%x.&amp;quot;,
                      p_link-&amp;gt;att_mtu_desired, conn_handle);
        create_mtu_request_timer();
        app_timer_start(mtu_request_delay_timer, APP_TIMER_TICKS(1000), NULL);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Rest of the code i have moved in the handler:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void request_delay_handler(void *p_context)
{
  ret_code_t err_code;
  nrf_ble_gatt_t * p_gatt = (nrf_ble_gatt_t *)p_context;
  ble_evt_t const * p_ble_evt;
  uint16_t  conn_handle = p_ble_evt-&amp;gt;evt.common_evt.conn_handle;
  nrf_ble_gatt_link_t * p_link      = &amp;amp;p_gatt-&amp;gt;links[conn_handle];
    err_code = sd_ble_gattc_exchange_mtu_request(conn_handle, p_link-&amp;gt;att_mtu_desired);

    if (err_code == NRF_SUCCESS)
    {
        p_link-&amp;gt;att_mtu_exchange_requested = true;
    }
    else if (err_code == NRF_ERROR_BUSY)
    {
        p_link-&amp;gt;att_mtu_exchange_pending = true;
        NRF_LOG_DEBUG(&amp;quot;sd_ble_gattc_exchange_mtu_request()&amp;quot;
                      &amp;quot; on connection 0x%x returned busy, will retry.&amp;quot;, conn_handle);
    }
    else
    {
        NRF_LOG_ERROR(&amp;quot;sd_ble_gattc_exchange_mtu_request() returned %s.&amp;quot;,
                      nrf_strerror_get(err_code));
    }  
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Once i connect, i get this error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; nrf_ble_gatt: sd_ble_gattc_exchange_mtu_request() returned Unknown error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226432?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 16:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed690e29-373f-4360-b28b-3a20ef0e8fd4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The main reason to delay MTU exchange was to wait for the phone to do that. (so that we have larger MTU ATT). I would say give it 1-2 second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the issue of having&amp;nbsp;&lt;span&gt;sd_ble_gatts_service_changed() and&amp;nbsp;sd_ble_gattc_exchange_mtu_request() at the same time, you can check if the error is&amp;nbsp;NRF_ERROR_INVALID_STATE the application can retry after a certain time (let&amp;#39;s say 1 second) .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226099?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 10:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5665043-547e-4405-aafb-dfc3ea969259</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Okay sure, will do. In that case, you say putting in a timer to delay the MTU exchange? When should the timer expire? Could you tell me more on the details, please.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226096?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 10:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b51f6ce6-8741-444e-83ef-342b35e18cec</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@SK: The issue regarding the MTU request is fixed in SDK v16.0 but not on SDK v15.3 you may want to follow my suggestion in the case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226090?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 10:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd2bd068-6553-4bc9-84a0-e6263e973ae5</guid><dc:creator>SK</dc:creator><description>[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226082"]What phone are you testing on?[/quote]
&lt;p&gt;I am testing on samsung S9+ currently.&lt;/p&gt;
[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226082"]133 is a generic error when &amp;quot;something else&amp;quot; happens, so it may be almost anything[/quote]
&lt;p&gt;That&amp;#39;s comforting to know :D&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, i will try it out by sniffing the packets and see if i can get somewhere with this error.&amp;nbsp;&lt;/p&gt;
[quote userid="69599" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226053"]Would you know anything about this issue? &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid&lt;/a&gt;[/quote]
&lt;p&gt;This is what Hung said in the link i shared above&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;I think we found the root cause of the issue. When you set the MTU to something else not the default that the iPhone set when connected, the nrf_ble_gatt.c will try to request&amp;nbsp;sd_ble_gattc_exchange_mtu_request() immediately right after CONNECTED event.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;. Would you know if it is corrected in v15.3? or is it still an issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226082?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9223f65-4dc1-4e46-9523-810bf1acbcca</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Ideally, the app, after started after successful DFU, should send SC indication, just like the bootloader is sending when switched from app to bootloader mode. On Android you may force clear the cache, like nRF Connect does, but if you want to support iOS as well, there&amp;#39;s no such API, not even hidden, so working SC is a must when working with bonded DFU.&lt;/p&gt;
&lt;p&gt;The errors 133 happen often, yes. The DFU lib does what it can to try to avoid them, tries many times sometimes, but, a specially on older Android devices and when the device is bonded, the 133 error is common. What phone are you testing on?&lt;/p&gt;
&lt;p&gt;If you have sniffer (for example this one: &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;) you may try to find out what&amp;#39;s causing this 133 error. Usually it means that there was a packet lost, packet collision, some packets came too early or too late, or, when device is bonded, perhaps something with the encryption. Try putting phone and device close to each other to avoid interference, sometimes disabling wi-fi also helps, as I read in the Internet. 133 is a generic error when &amp;quot;something else&amp;quot; happens, so it may be almost anything.&lt;/p&gt;
&lt;p&gt;The 133 around 5 sec after connection attempt seems like the Connect Request was missed by the device and it continued to advertise instead. Retries should increase the chance of success.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226074?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e5914f-06b6-45d0-a297-d7588a887386</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;and it seems, sometimes i get that 133 error and other times ( which is 2/10) i get DFU done successfully.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226072?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef560370-4242-4617-b008-1b2b7c7c2818</guid><dc:creator>SK</dc:creator><description>[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226057"]You need to select &amp;quot;Refresh services&amp;quot; in the top menu to clear the cache and do service discovery again[/quote]
&lt;p&gt;This worked! so we will have to do everytime we try to do OTA DFU, then?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226066?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ed34051-5f8f-4399-b9a5-464a29428629</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;oh alright, in that sense, yes.&lt;/p&gt;
&lt;p&gt;BTW, i tried again and this time i got 133 error. Attached.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Log-2019_2D00_12_2D00_18-17_5F00_32_5F00_29.txt"&gt;devzone.nordicsemi.com/.../Log-2019_2D00_12_2D00_18-17_5F00_32_5F00_29.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One more&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Log-2019_2D00_12_2D00_18-17_5F00_37_5F00_21.txt"&gt;devzone.nordicsemi.com/.../Log-2019_2D00_12_2D00_18-17_5F00_37_5F00_21.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226063?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917d77d1-accc-453b-8d60-7e69cc0a9b38</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t matter, it&amp;#39;s still &amp;quot;new&amp;quot;, as it was updated. After exiting bootloader it should notify client that services have been have changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226059?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be3258a3-e381-4d98-8c55-c03aeaea18ff</guid><dc:creator>SK</dc:creator><description>[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226057"]but your new app, when first started,[/quote]
&lt;p&gt;new app and app on the device are the same actually. No change at all. :(&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226057?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f11f1a-a71b-4769-9795-adb0f7a7b1b6</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;The DFU seems to complete successfully, but your new app, when first started, didn&amp;#39;t send the Service Changed indication (or sent it too late), so the services obtained by nRF Connect were from cache. You need to select &amp;quot;Refresh services&amp;quot; in the top menu to clear the cache and do service discovery again. You should see the UART and buttonless service after that.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why the indication was not sent, that&amp;#39;s outside of my expertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226053?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:722da35d-c0d9-4728-a16b-1ddb525bb387</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Would you know anything about this issue? &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36346/a-problem-on-buttonless-dfu-bonding-valid&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Seems exactly what i am getting here.&lt;/p&gt;
&lt;p&gt;I tried with changing&amp;nbsp;&lt;span&gt;NRF_BLE_GATT_BLE_OBSERVER_PRIO from 1 to 2 in both bootloader and application but it doesn&amp;#39;t work. And &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt; solution i did not understand. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226052?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 09:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab73afa9-4d30-4d30-9da0-c6f934d7c1d9</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226032"]That means you&amp;#39;re connected to the bootloader[/quote]
&lt;p&gt;What should i do to rectify this behavior? This is not observed while performing buttonless DFU without bonds.&amp;nbsp;&lt;/p&gt;
[quote userid="3284" url="~/f/nordic-q-a/55705/application-service-uuid-gone-after-secure-ota-dfu/226032"]In the log you got error 133,[/quote]
&lt;p&gt;Now, i am getting gatt write not permit error and not 133. I am not sure why though!&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1072.Error.txt"&gt;devzone.nordicsemi.com/.../1072.Error.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226032?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 08:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:401b3108-b0f9-4c13-b341-a2abfcfcb42a</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;That means you&amp;#39;re connected to the bootloader. In the log you got error 133, could you try repeating the test several times and send log where it went further?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/226007?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 05:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d542b6bf-5180-425d-9e3d-5f9b5ab0d099</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is what i tried and now it seems problem is with bond forwarding somehow.&lt;/p&gt;
&lt;p&gt;I disabled the bond forwarding support in both bootloader and the application. So, basically this below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576648345053v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When i tried without bonds, everything is working fine. I can see both services intact and running fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Only when i tried to enable the bond support again, i ran into problems as discussed earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Attached is the no bonds support DFU log for your reference.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_NO_5F00_BONDS_5F00_LOG_5F00_SUCCESS.pdf"&gt;devzone.nordicsemi.com/.../DFU_5F00_NO_5F00_BONDS_5F00_LOG_5F00_SUCCESS.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/225999?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 01:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743b4bab-22dc-4c49-9ea3-8dde01757c56</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I noticed something strange though. Wanted to share here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once i program the device through nrfjprog and connect, i see the services as below:&lt;/p&gt;
&lt;p&gt;&lt;img alt="both services" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20191218_2D00_092640_5F00_nRF-Connect.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;After OTA DFU, when i connect again, i see the service as below:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20191218_2D00_092752_5F00_nRF-Connect.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I noticed that characteristics for the secure DFU service is not buttonless service anymore and its something that is coming from bootloader (control point and packet characteristics).&lt;/p&gt;
&lt;p&gt;Would this give any indication to what might be happening? Any DFU settings that i should enable/disable in sdk config?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Attached - dfu logs for reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_LOG_5F00_ISSUE.pdf"&gt;devzone.nordicsemi.com/.../DFU_5F00_LOG_5F00_ISSUE.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/225997?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 01:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6d8440-4a0b-4d41-a28f-e558bb34fa37</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Oh yes! it won&amp;#39;t start advertising. Only after there is a button press, it will. :/&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do u want me to modify pins for the DK in order for you to test?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/225851?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 11:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08035823-5a41-4d46-b305-61222169cc5a</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello, I tried flashing your hex file on nRF52832 DK, but the device does not start advertising. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/225826?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 09:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b05a868-0c16-4262-9f5b-dc87867028e6</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Sent. I hope pins don&amp;#39;t matter. Please let me know if there are problems.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application service UUID gone after secure OTA DFU</title><link>https://devzone.nordicsemi.com/thread/225823?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 09:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc339f17-9b0e-40a8-b745-397b7c77dfb3</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Send to aleksander.nowakowski@nordicsemi.no.&lt;/p&gt;
&lt;p&gt;I hope the pin configuration won&amp;#39;t matter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>