<?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>Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127399/failed-to-send-proxy-message-err--22</link><description>Hello. 
 I am experiencing an issue where Mesh communication fails after connecting to the SMP Service in the Bluetooth Mesh DFU Distributor sample. 
 Environment: 
 
 NCS Version: v3.2.3 
 Hardware: nRF54L15DK 
 Sample: Bluetooth Mesh: Device Firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2026 01:40:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127399/failed-to-send-proxy-message-err--22" /><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/566159?ContentTypeID=1</link><pubDate>Mon, 11 May 2026 01:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:310cbec3-ed36-4c28-b4ee-ff183bac205d</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you for creating the Pull Request and for your effort in addressing this issue.&lt;br /&gt;I have two follow-up questions regarding the implementation.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Regarding &lt;code&gt;common/smp_bt.c&lt;/code&gt;:&lt;br /&gt;I understand the changes in behavior as follows:&lt;br /&gt;Before: Two separate advertising sets were broadcast ( one for Provisioning/Proxy Service and one for SMP Service ).&lt;br /&gt;After: Only the Provisioning/Proxy Service advertising set is broadcast ( since CONFIG_NCS_SAMPLE_MESH_COMMON_SMP_BT_DEDICATED_ADV_SET is disabled in the Distributor sample ).&lt;br /&gt;I assume that broadcasting two separate sets was originally an intentional design to support Mesh DFU.&lt;br /&gt;While disabling the dedicated set avoids the current issue, is there any functional downside to reducing the number of advertising sets?&lt;/li&gt;
&lt;li&gt;Regarding &lt;code&gt;dfu/distributor/Kconfig:&lt;/code&gt;&lt;br /&gt;The PR references the newly created common/Kconfig using a relative path: &lt;code&gt;rsource &amp;quot;../../common/Kconfig&amp;quot;&lt;/code&gt;.&lt;br /&gt;This works correctly when building the sample directly within the NCS directory (&lt;code&gt; ncs/v3.2.3/nrf/samples/...&amp;nbsp;&lt;/code&gt; ).&lt;br /&gt;However, when I copy the sample to an external directory (e.g., using the &lt;code&gt;&amp;quot;Create a new application from sample&amp;quot;&lt;/code&gt; feature in VS Code), it results in a build error because the relative path becomes invalid.&lt;br /&gt;Is this behavior intentional?&lt;br /&gt;I would like to know if there is a recommended way to handle this for projects managed outside of the SDK tree.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I apologize if these are basic questions, but I would appreciate your insight.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/565817?ContentTypeID=1</link><pubDate>Mon, 04 May 2026 10:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa35ef4e-68f5-4f2b-8a91-eb0479760963</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;br /&gt;I agree that having the application work around a BLE Host issue is not correct. However,&amp;nbsp;a fix isn&amp;#39;t available yet and the best I could do as a support engineer is to suggest workarounds.&lt;/p&gt;
&lt;p&gt;I have made a Pull Request&amp;nbsp;where the second advertising set is not created:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/28483"&gt;samples: bluetooth: mesh: Add new Kconfig to enable/disable SMP adv by hieuv · Pull Request #28483 · nrfconnect/sdk-nrf&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I hope this is OK for you. If it isn&amp;#39;t and you require the BLE Host fix, then I unfortunately cannot comment on when it will be available. Our sales team could give better assistance from that angle.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/564958?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2026 07:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c423f66f-0c12-41c3-904a-b81975a2bae0</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you for your analysis.&lt;/p&gt;
&lt;p&gt;Since this issue occurs out-of-the-box within the official sample programs provided by Nordic, I believe it is inappropriate to expect users to implement workarounds at the application level.&lt;br /&gt;To resolve this issue fundamentally, the fix should be implemented within the NCS (SDK) itself.&lt;/p&gt;
&lt;p&gt;Could you please provide a proposal or a patch for an official fix on the NCS side?&lt;br /&gt;I would like to know how Nordic intends to address this behavior as a framework-level improvement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/564916?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2026 12:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e369dbfa-cf9b-401f-b69b-e26fa9fced37</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;My apology for the long waiting time.&lt;/p&gt;
&lt;p&gt;We confirmed the issue is that the two advertising sets are started by two different Bluetooth Identity on the same device. However, the phone doesn&amp;#39;t know that, and when it connects to the Proxy identity, it tries to use bonding information made with the SMP identity and that fails.&lt;/p&gt;
&lt;p&gt;To my understanding, you are evaluating the samples right now. Could you go forward in your project with one of these two options?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ensure the bonding is made with the Proxy identity&lt;/li&gt;
&lt;li&gt;Change &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v3.2.4/samples/bluetooth/mesh/common/smp_bt.c#L18-L22"&gt;the SMP advertising set setup&lt;/a&gt; to prevent user from falling into this scenario.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563681?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2026 13:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99233ec-652b-4f24-aa14-52050dd8ef14</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;We reproduced your issue.The device is advertising two advertising set, and bonding to the SMP one causes issue&amp;nbsp;when the device works as a proxy.&lt;br /&gt;We are looking into some details and I will send another follow-up soon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563516?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2026 04:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05cf8e8f-c834-4ab6-949b-99e7e19aba97</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I appreciate your ongoing cooperation.&lt;/p&gt;
&lt;p&gt;I re-ran the tests on both iOS and Android, but I could not find the &lt;code&gt;&amp;quot;ATT code 0x1d&amp;quot;&lt;/code&gt; log that you pointed out. However, there is something in your log that caught my attention.&lt;/p&gt;
&lt;p&gt;your log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Pairing completed: D0:04:B0:04:3D:3C (public), bonded: 1
[00:05:30.640,720] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
Disconnected from SMP service: reason 19 id 1
SMP service advertising restarted
[00:05:59.711,592] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
[00:06:01.107,760] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: default_ttl_get: net_idx 0x0000 app_idx 0xfffe src 0x0001 len 0: &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Did you manually disconnect the SMP Service before operating the nRF Mesh app?&lt;br /&gt;Or was it an unintentional or automatic disconnection?&lt;br /&gt;In my environment, the SMP Service remains connected when the error occurs.&lt;br /&gt;I believe this state is evident from the initial logs I provided.&lt;/p&gt;
&lt;p&gt;I look forward to hearing the results from your team&amp;rsquo;s investigation with an iOS device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563502?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2026 19:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ab327fc-9b60-46e2-8a8d-e940f74fee5a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;This is a little strange. The reason I asked if you reproduced the issue with one or more than one node is because if you are trying to configure the same node as the proxy, then the node shouldn&amp;#39;t actually try to send any proxy message.&amp;nbsp;In that case,&amp;nbsp;the error message you see wouldn&amp;#39;t match.&lt;/p&gt;
&lt;p&gt;I tried with the nRF Mesh (New) app&amp;nbsp;but also couldn&amp;#39;t reproduce the issue. I see something strange from the log though:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Connected to SMP service: err 0 id 1
Please enter passkey (508619) on 63:B2:5E:02:8C:22 (random)
Pairing completed: D0:04:B0:04:3D:3C (public), bonded: 1
[00:05:30.640,720] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
Disconnected from SMP service: reason 19 id 1
SMP service advertising restarted
[00:05:59.711,592] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
[00:06:01.107,760] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: default_ttl_get: net_idx 0x0000 app_idx 0xfffe src 0x0001 len 0: 
[00:06:02.097,796] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: dev_comp_data_get: net_idx 0x0000 app_idx 0xfffe src 0x0001 len 1: 00
[00:06:02.097,805] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: dev_comp_data_get: Preparing Composition data page 0
[00:06:18.343,725] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: app_key_add: AppIdx 0x0000 NetIdx 0x0000
Connected to SMP service: err 0 id 1
[00:07:13.288,650] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
[00:07:41.422,010] &amp;lt;wrn&amp;gt; bt_att: Unhandled ATT code 0x1d
[00:08:32.419,589] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: get_model: ID 0x0002 addr 0x0003
[00:08:32.419,604] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: mod_bind: model 0x20001738 key_idx 0x000
[00:08:32.419,612] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: mod_bind: model 0x20001738 id 0x0002 i 0 key 0xffff
[00:08:32.419,629] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: mod_app_bind: status 0x00
[00:08:40.564,791] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: mod_pub_get: elem_addr 0x0003
[00:08:40.564,806] &amp;lt;dbg&amp;gt; bt_mesh_cfg_srv: get_model: ID 0x0002 addr 0x0003&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The warning of unhandled ATT code 0x1d is strange. ATT code 0x1D is an BLE Indication operation and&amp;nbsp; I don&amp;#39;t expect an indication to happen with this setup.&lt;/p&gt;
&lt;p&gt;I will&amp;nbsp;try to ask for get help from someone with an iOS device next.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563387?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2026 01:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12ccb87c-b283-4bcc-b56c-2f4e6f44c9f3</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Hieu&lt;span&gt;, thanks for your reply.&lt;/span&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/127399/failed-to-send-proxy-message-err--22/563376"]I cannot reproduce your issue. I am using an Android device though, so that might affect things.[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;I am using iOS (iPhone Xs Max) and iPadOS (iPad mini 6th), and the issue occurs on both devices.&lt;br /&gt;The version of the nRF Mesh app I am using is 4.7.0.&lt;/p&gt;
&lt;p&gt;Regarding Android, I tested with an older device (Android 8.0.0) and found inconsistent results depending on the app:&lt;br /&gt;(I was not aware that there were two different mesh apps for Android as I primarily develop on iOS.)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF Mesh app (v3.4.0): The issue did not occur.&lt;/li&gt;
&lt;li&gt;nRF Mesh (New) app (v0.9.2): The issue did occur, same as on iOS.&lt;/li&gt;
&lt;/ul&gt;
[quote userid="9456" url="~/f/nordic-q-a/127399/failed-to-send-proxy-message-err--22/563376"]Are there any other nodes in your&amp;nbsp;mesh network?[/quote]
&lt;p&gt;There are no other nodes in the mesh network.&lt;/p&gt;
&lt;p&gt;Test with two nodes:&lt;br /&gt;I also tested with two nodes in the network and observed the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If I perform pairing/authentication with the Proxy Node&amp;#39;s SMP Service, the issue occurs.&lt;/li&gt;
&lt;li&gt;If I perform pairing/authentication with the Non-Proxy Node&amp;#39;s SMP Service, the issue does not occur, and communication remains successful.&lt;/li&gt;
&lt;/ul&gt;
[quote userid="9456" url="~/f/nordic-q-a/127399/failed-to-send-proxy-message-err--22/563376"]Do you mean Mesh operations on the other nodes, and not the Distributor node?[/quote]
&lt;p&gt;In step 5, I am performing operations directly on the Distributor node via the nRF Mesh app. Specifically:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Swiping down on the Node Details screen to read the Composition Data.&lt;/li&gt;
&lt;li&gt;Sending messages to a Model, such as reading the Fault Status of the Health Server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hypothesis:&lt;br /&gt;As a guess, could this be related to address resolution?&lt;br /&gt;I suspect that after pairing authentication, the smartphone&amp;#39;s address might be resolved and switched from a Private to a Public address, which might be affecting the Proxy connection state.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563376?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2026 21:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e67f539-1444-413e-9a1c-909cb5ab8c4e</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;I cannot reproduce your issue. I am using an Android device though, so that might affect things.&lt;/p&gt;
&lt;p&gt;I would like to check still. Are there any other nodes in your&amp;nbsp;mesh network?&lt;/p&gt;
&lt;p&gt;During step 5,&lt;/p&gt;
[quote user=""]Switch back to the nRF Mesh app and attempt any Mesh communication.[/quote]
&lt;p&gt;Do you mean Mesh operations on the other nodes, and not the Distributor node?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to send proxy message (err -22)</title><link>https://devzone.nordicsemi.com/thread/563263?ContentTypeID=1</link><pubDate>Sun, 15 Mar 2026 23:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4272c73-44a2-477e-8c2b-6cb0aba00758</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi a.da,&lt;/p&gt;
&lt;p&gt;I will try to reproduce this issue and follow-up with you as soon as possible.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>