<?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>Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115470/wrong-data-received-for-ble-char</link><description>Hi, 
 I am writing to a characteristic, and I have noticed that the data is being truncated. 
 After establishing the connection, I performed an MTU exchange, and the MTU is set to 100. On the peripheral (server) side, I have defined the MTU as: 
 
 #</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Oct 2024 22:49:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115470/wrong-data-received-for-ble-char" /><item><title>RE: Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/thread/506383?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 22:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc824a01-0e4b-448a-9bbe-004a6d0b4d3e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Looks like the slave just stopped replying.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729032459561v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do you have any nrf_logs? Did the device reset? Could be that an error was passed to&amp;nbsp;&lt;em&gt;APP_ERROR_CHECK()&amp;nbsp;&lt;/em&gt;the default behavior is then to reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/thread/506382?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 22:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1819864d-cfd3-4141-809f-7ad588c03860</guid><dc:creator>DanisXZ</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp; Thank you for looking into this. I am using google pixel-6 phone. I am not sure why it does use BT instead of BLE.&lt;br /&gt;&lt;br /&gt;However I used nrf52DK on the central side and again captured the data. I am attaching both the working and non-working logs.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Not-working-example.pcapng"&gt;devzone.nordicsemi.com/.../Not-working-example.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Working-Example.pcapng"&gt;devzone.nordicsemi.com/.../Working-Example.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I see from the logs that the client is sending the full data. It looks like it is not receiving the data on the receiver side. Can you please have a look into the sniffer logs&amp;nbsp; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/thread/506381?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 21:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b59e2224-59cf-4fce-9b9c-d656f84b44b0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;That was a strange sniffer trace,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729026708525v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Looks like the phone is sending a&amp;nbsp;MCAP packet. This packet is&amp;nbsp;associated with Bluetooth Classic, and not Bluetooth Low&amp;nbsp;Energy.&lt;/p&gt;
&lt;p&gt;What phone brand and model is used ? Could you try a different phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/thread/506202?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 20:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894975cf-d35c-4b17-8c8e-860684db5a66</guid><dc:creator>DanisXZ</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/write-char-issue.pcapng"&gt;devzone.nordicsemi.com/.../write-char-issue.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;Thank you for your reply. &lt;br /&gt;&lt;br /&gt;I see from row 184 (from the sniffer) that the entire data is not sent. This time I used nrf connect app from my android phone to check if it is something to do with my central+client device. But it looks like the behaviour is same from the android app also. See the snapshot from the android app .&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1000062793.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong data received for BLE char</title><link>https://devzone.nordicsemi.com/thread/506123?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 12:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ac5c4d1-a794-4b1a-bcf0-47af2ceaeac5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi! Could you capture a sniffer trace of the behavior ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>