<?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>Trying to understand the Bytes of a message sent, during a connection.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112597/trying-to-understand-the-bytes-of-a-message-sent-during-a-connection</link><description>Hi dear, I&amp;#39;m make the tests with send and receive informations using the code base mesh. I need help to better understand the transport of this data 
 
 Initially I set my BUF to 26 Bytes, with OP_ONOFF_SET_UNACK BT_MESH_MODEL_BUF_DEFINE(buf, OP_ONOFF_SET_UNACK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2024 22:07:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112597/trying-to-understand-the-bytes-of-a-message-sent-during-a-connection" /><item><title>RE: Trying to understand the Bytes of a message sent, during a connection.</title><link>https://devzone.nordicsemi.com/thread/491935?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 22:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077a1f80-7e79-4a58-a642-e66fa3acf306</guid><dc:creator>Higo</dc:creator><description>&lt;p&gt;Hi Amanda Hsieh, thanks for your &lt;span&gt;information.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I feel like I&amp;#39;m evolving&lt;/span&gt;&lt;/p&gt;
&lt;div class="AxqVh"&gt;
&lt;div class="OPPzxe"&gt;
&lt;div class="QcsUad BDJ8fb sMVRZe hCXDsb wneUed"&gt;
&lt;div class="usGWQd"&gt;
&lt;div class="KkbLmb"&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;1.1)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I do not define the CONFIG_BT_CTLR_DATA_LENGTH_MAX macro in my tests.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span&gt;So I believe it is the default for 27 Bytes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="ZSCsVd"&gt;&lt;/span&gt;
&lt;div class="OvtS8d"&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;But I was able to send 26 Bytes (uint8_t) from one Node to another Node, &lt;span&gt;plus&lt;/span&gt;&lt;span&gt;&amp;nbsp;the two bytes of the&amp;nbsp;OPCODE that you mentioned previously,&amp;nbsp;a total of 28 Bytes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d"&gt;&lt;span class="ryNqvb"&gt;Shouldn&amp;#39;t I only be able to send 23 Bytes?&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;which is the size of the MTU...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="ZSCsVd"&gt;&lt;/span&gt;
&lt;div class="OvtS8d"&gt;&lt;/div&gt;
&lt;div id="ow4000"&gt;[00:00:10.793,060] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: bt_mesh_trans_send: len 28: 82030001010101010101010101010101010101010101010101010101&lt;br /&gt;[00:00:10.793,212] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: src 0x5bf0 dst 0xffff app_idx 0x0000 aszmic 1 sdu_len 36&lt;br /&gt;[00:00:10.793,243] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: SeqZero 0x0000 (segs: 3)&lt;br /&gt;[00:00:10.793,273] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 0: ad9295f24dac37ad5ae5e4c5&lt;br /&gt;[00:00:10.793,334] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 1: 266e5bd5fce110ff95e0ce96&lt;br /&gt;[00:00:10.793,395] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 2: e84be52f3708cb620b7665b2&lt;/div&gt;
&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;span&gt;1.2)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I still have doubts whether in this case that I showed above, a Bluetooth package was sent or 3 packages were sent?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;And if it was segmented into 3 packets and sent, how would these bytes of each packet be organized?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="ow2627"&gt;2)&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="UdTY9 WdefRb" data-location="2"&gt;
&lt;div class="kO6q6e"&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I tried setting the CONFIG_BT_CTLR_DATA_LENGTH_MAX macro in the prj.conf file to 251Bytes, as shown below &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;but nothing has changed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="ZSCsVd"&gt;&lt;/span&gt;
&lt;div class="OvtS8d"&gt;&lt;/div&gt;
&lt;div id="ow6052"&gt;I expected that I would be able to send more bytes per message.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="XL3Kf XExWNc"&gt;
&lt;div class="a8FIud"&gt;
&lt;div data-show-delay-ms="250" data-append-to-body="false" data-propagate-tooltip-mouseover-events="true" data-anchor-corner="bottom-end" data-enable-skip-handler="false" data-popup-corner="top-end"&gt;
&lt;div class="dig2sb"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;/div&gt;
&lt;span class=""&gt;&lt;/span&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;3)&amp;nbsp;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I am studying the access.c and transport_legacy.c methods to understand how the code considers having successfully received a message or not.&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I see that there are many LOG_ERR checks until finally printing the content. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Do you have any suggestions on how I can check whether the message arrived complete at the destination node or not?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-RLmnJb"&gt;main.c&lt;br /&gt;&amp;nbsp; bt_mesh_model_send() - access.c&lt;br /&gt;&amp;nbsp; LOG_ERR(&amp;quot;Model not bound to AppKey 0x%04x&amp;quot;, ctx-&amp;gt;app_idx);&lt;br /&gt;&amp;nbsp; &amp;nbsp; bt_mesh_access_send() - access.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; LOG_ERR(&amp;quot;Local node is not yet provisioned&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; bt_mesh_trans_send() - transport_legacy.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERR(&amp;quot;Zero-length SDU not allowed&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LOG_ERR(&amp;quot;Message too big: %u&amp;quot;, msg-&amp;gt;len); &lt;br /&gt;&amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Insufficient tailroom for Transport MIC&amp;quot;);&lt;br /&gt;&amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;TTL too large (max 127)&amp;quot;);&lt;br /&gt;&amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Invalid destination address&amp;quot;);&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;send_seg(tx, msg, cb, cb_data, NULL);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;send_unseg(tx, msg, cb, cb_data, NULL);&lt;br /&gt;&lt;br /&gt;bt_mesh_trans_recv() - transport_legacy.c&lt;br /&gt;&amp;nbsp; &amp;nbsp;trans_seg() - transport_legacy.c&lt;br /&gt;&amp;nbsp; &amp;nbsp;or&lt;br /&gt;&amp;nbsp; &amp;nbsp;trans_unseg() - transport_legacy.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sdu_recv() - transport_legacy.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bt_mesh_model_recv() - access.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;element_model_recv - access.c&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOG_ERR(&amp;quot;No OpCode 0x%08x for elem 0x%02x&amp;quot;, opcode, elem-&amp;gt;addr);&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Wrong key&amp;quot;);&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Invalid address 0x%02x&amp;quot;, ctx-&amp;gt;recv_dst);&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Too short message for OpCode 0x%08x&amp;quot;, opcode);&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;LOG_ERR(&amp;quot;Invalid message size for OpCode 0x%08x&amp;quot;, opcode);&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ebT7ne VOLvac sMVRZe"&gt;
&lt;div class="F0pQVc"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="VO9ucd"&gt;
&lt;div class="YJGJsb"&gt;&lt;span data-irrelevant-id="ucc-43"&gt;&lt;/span&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;4)&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div data-show-delay-ms="250" data-append-to-body="true" data-propagate-tooltip-mouseover-events="true" data-anchor-corner="bottom-left" data-enable-skip-handler="false" data-popup-corner="top-left"&gt;
&lt;div class="dig2sb"&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I would like to print all bytes of a message, including protocol header bytes, &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;and not just OPCODE and PAYLOAD.&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;span class="jCAhz JxVs2d"&gt;&lt;span class="ryNqvb"&gt;Would you have a suggestion for this?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;/div&gt;
&lt;div class="VfPpkd-Bz112c-Jh9lGc"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="OwOEge"&gt;
&lt;div class="cJ1Ndf"&gt;&lt;span&gt;Thanks for the support&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to understand the Bytes of a message sent, during a connection.</title><link>https://devzone.nordicsemi.com/thread/491690?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 20:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0080005-cb23-4455-9317-314ad923e9e5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1.1) Are these 2 Bytes that I mentioned previously the header? What would they be headers? Is it the PDU header? Should the MIC bytes not appear?[/quote]
&lt;p&gt;The two extra bytes seem likely the opcode of the message. In Bluetooth Mesh, each message is associated with an opcode that identifies the type of the message. Here, you&amp;#39;re using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;OP_ONOFF_SET_UNACK&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;as the opcode. This opcode is added to the message when you call&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;bt_mesh_model_msg_init()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;When you receive the message, the opcode is extracted from the message by the Mesh stack before it&amp;#39;s passed to your application, so you only see the payload of the message, not the opcode or the MIC (Message Integrity Check).&lt;/p&gt;
[quote user=""]&lt;span style="color:rgba(255, 0, 0, 1);"&gt;1.2) What would this Payload be?&lt;/span&gt;&lt;br /&gt;[00:00:28.784,820] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: bt_mesh_trans_recv: Payload 7883531e2dcf6c5067[/quote]
&lt;p&gt;The received data. See&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/subsys/bluetooth/mesh/transport.c#L1631"&gt;this line&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]2) Is there any method I can use to know if the &amp;quot;data length&amp;quot; is set to 27 bytes or 251 bytes?[/quote]
&lt;p&gt;You can check the&amp;nbsp;CONFIG_BT_CTLR_DATA_LENGTH_MAX value in the .config under build/zephyr&lt;/p&gt;
[quote user=""]3.1) Does this log mean that the message was broken into 2 parts?[/quote]
&lt;p&gt;Yes, as the log indicated &lt;span&gt;seg 0 and&amp;nbsp;seg 1&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;[00:04:28.040,252] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: SeqZero 0x0028 (segs: 2)&lt;br /&gt;[00:04:28.040,283] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 0: 87df25f0ff7f237ea4c8770e&lt;br /&gt;[00:04:28.040,344] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 1: 9ac0f04d47e48947&lt;/p&gt;
[quote user=""]&lt;span style="color:rgba(255, 0, 0, 1);"&gt;3.2) Does this log mean that the first part is being sent?&lt;/span&gt;&lt;br /&gt;[00:04:28.040,405] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: seg_tx_send_unacked: Sending 0/1[/quote]
&lt;p&gt;Correct.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;span style="color:rgba(255, 0, 0, 1);"&gt;3.3) what content is this?&lt;/span&gt;&lt;br /&gt;[00:04:28.040,283] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 0: 87df25f0ff7f237ea4c8770e&lt;br /&gt;[00:04:28.040,344] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: send_seg: seg 1: 9ac0f04d47e48947[/quote]
&lt;p&gt;&lt;span&gt;The content in these logs is the encrypted payload of each segment of the message. In Bluetooth Mesh, each message is encrypted before it&amp;#39;s sent over the air. The content you&amp;#39;re seeing is the result of this encryption. When you receive the message, the Mesh stack decrypts the payload before it&amp;#39;s passed to your application, so you see the original, unencrypted payload.&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;span style="color:rgba(255, 0, 0, 1);"&gt;3.4) What would this account be? result 20&lt;/span&gt;&lt;br /&gt;[00:04:28.105,285] &amp;lt;dbg&amp;gt; bt_mesh_transport_legacy: trans_seg: Target len 1 * 12 + 8 = 20[/quote]
&lt;p&gt;Set the expected final buffer length. See &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/subsys/bluetooth/mesh/transport.c#L1514"&gt;this line&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>