<?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 NUS service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59615/ble-nus-service</link><description>We&amp;#39;re having trouble reading more than 2 bytes from BLE NUS. SDK 16. Software based in ble_app_uart but running custom board (no buttons, no LED), this is a ble peripheral. 
 
 SEGGER embedded studio, JLINK Base programmer, nRF52832 processor. 
 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2020 07:55:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59615/ble-nus-service" /><item><title>RE: BLE NUS service</title><link>https://devzone.nordicsemi.com/thread/242301?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 07:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52921d6d-48d3-4a38-b9cb-a028541e0c7b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that it works now.&lt;/p&gt;
[quote user="jedmvpitech"]Now to figure out how to reset the iOS device (not really a fan of it).[/quote]
&lt;p&gt;&amp;nbsp;Reboot/restart the iPad, not reset it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE NUS service</title><link>https://devzone.nordicsemi.com/thread/242236?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 18:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:420ea7d5-a5d5-4186-9c47-6fc79fcbae96</guid><dc:creator>Jed Marti</dc:creator><description>&lt;p&gt;Tried it with another device and yes that&amp;#39;s the problem. Dave P. and I fiddled with this for hours. Now to figure out how to reset the iOS device (not really a fan of it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE NUS service</title><link>https://devzone.nordicsemi.com/thread/242221?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 15:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866a94e4-d110-4028-9e49-e3b4a15138be</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It is writing to the wrong handle, and it&amp;#39;s likely related to attribute caching. Attribute caching is a feature defined by the BT spec. that allows GATT clients&amp;nbsp;to store the attribute table (i.e. layout of services and characteristics) of &amp;quot;known&amp;quot; device across&amp;nbsp;connections, and thus removing the overhead of having&amp;nbsp;to repeat service discovery on subsequent connections. You may take a look at&amp;nbsp;core spec 5. vol3, part g, section 2.5.2 for more details. It gives a good summary of the feature and how it&amp;#39;s used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem with caching arises when the same device is updated with a different attribute table and thus invalidates the existing cache on the client side.&amp;nbsp;It isn&amp;#39;t uncommon&amp;nbsp;for this to happen during development&amp;nbsp;and having the client accessing the wrong characteristics as a result.&amp;nbsp; The solution for this is to make a new service discovery. iOS does not expose an API, so it&amp;#39;s not possible to do programmatically, but you can force rediscovery by clearing the cache. T&lt;span style="font-family:inherit;"&gt;he cache can be removed by first making sure your device is not in the &amp;quot;MY DEVICES&amp;quot; list in Bluetooth settings,&amp;nbsp;followed by a reboot. Please try either that or try &lt;/span&gt;&lt;span style="font-family:inherit;"&gt;connecting with &lt;/span&gt;&lt;span style="font-family:inherit;"&gt;another device&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE NUS service</title><link>https://devzone.nordicsemi.com/thread/242214?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 13:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6589a5-a5bf-4de2-995e-2fba04e780ec</guid><dc:creator>Jed Marti</dc:creator><description>&lt;p&gt;I&amp;#39;m using Light Blue as the client on an iPAD and just sending random values for the first two bytes.Sending only two bytes of&amp;nbsp; /r/n or \n\r gets its attention but I only get STOP and START events.&amp;nbsp; I&amp;#39;m using read/write characteristic 1. I&amp;#39;m unable to get nRFconnect to behave - when I try to send messages it just blinks the message text and doesn&amp;#39;t do anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE NUS service</title><link>https://devzone.nordicsemi.com/thread/242200?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 06:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ed18ca-790c-4eb2-b3fa-d5af2fb23ea0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It looks like your GATT client is using the wrong attribute handle for some reason. It should only access the 2 byte CCCD handle when it wants to enable or disable notifications on the NUS TX characteristic. To generate the&amp;nbsp;&lt;span&gt;BLE_NUS_EVT_RX_DATA&amp;nbsp;event it needs write to the&lt;/span&gt;&amp;nbsp;p_nus-&amp;gt;rx_handles.value_handle.&amp;nbsp;Is your client doing service discovery on connection, or does it rely on existing hardcoded attribute handles?&lt;/p&gt;
&lt;p&gt;Note that you can test the Service with our nRF connect app on Android or&amp;nbsp;iOS as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>