<?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>Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36627/linux-central-and-52840-blinky-app</link><description>Hello, I am using Linux as a central and I created python app (bluez, pygatt) which simulates the Android Blinky app. It communicates with the board and writes on the led characteristic and I subscribe to notifications on the button characteristic. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Aug 2018 13:17:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36627/linux-central-and-52840-blinky-app" /><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/143581?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 13:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac36655-81e2-46b9-b352-3726adea8da7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I am glad to hear that its working as it should.&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/143101?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 00:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e4fae51-bfa4-4a89-9f8f-9e35c6c12d0c</guid><dc:creator>EricC</dc:creator><description>&lt;p&gt;So,&amp;nbsp; as people were saying this is due to the client not updating the CCCD. I changed the client to do so and things are good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/142890?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 23:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16928884-8ab6-44f1-b7d3-120817c22d50</guid><dc:creator>EricC</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn_2d00_spockeli"&gt;bjorn-spockeli&lt;/a&gt;&amp;nbsp;I am back in the office and thanks for the update.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Firstly I think it is useful to review what I am trying to do. I have a Linux based central which mimics the Android Blinky app. I implemented it using pygatt which uses gatttool as the BLE interface layer. The Linux based app receives button press notifications from the 52832&amp;nbsp;but not from the 52840 whereas the Android Blinky app works with both. I want to understand what goodness the Android app does so the Linux app can do the same. Hope this makes sense so far and let me know if you have any questions.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s1"&gt;I logged the return code from &lt;/span&gt;&lt;span class="s2"&gt;ble_lbs_on_button_change and it is 0x3401 which is &amp;ldquo;system attribute missing&amp;rdquo;. There is discussion on this on the forum&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;and my current understanding is this could be related to timing issues so I have added delays throughout the test client and that has not fixed the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p4"&gt;&lt;span class="s3"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p5"&gt;&lt;span class="s3"&gt;With regards to sniffing, a trace on the central shows no notifications are received. I download the nRF Sniffer software for the Mac. For installation instructions I found some here &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32128/sniffer-on-osx---revisited"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/32128/sniffer-on-osx---revisited&lt;/a&gt; - are these the ones you recommend?&lt;/span&gt;&lt;/p&gt;
&lt;p class="p5"&gt;&lt;span class="s3"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p5"&gt;&lt;span class="s3"&gt;thanks again and I look forward to getting to bottom of this!&lt;/span&gt;&lt;/p&gt;
&lt;p class="p5"&gt;&lt;span class="s3"&gt;Eric&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/141408?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 16:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52ed14f-3b61-416b-8197-6fe5133c45fd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Aha,&amp;nbsp;so by the comment &amp;quot; the&amp;nbsp;52840 the console shows &amp;quot;button press received&amp;quot; or similar and there is no other output&amp;quot;&amp;nbsp;you mean that this is printed when you push the button on the nRF52840 and not on the Linux side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its hard to say whats going on. Could you capture a sniffer trace with the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF-Sniffer/nRF-Sniffer-v2/65225"&gt;nRF Sniffer&amp;nbsp;&lt;/a&gt;&amp;nbsp;and attach it to the case when your back in office? Then we should be able to see if the nRF52840 is actually sending the notification or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And also check that&amp;nbsp;ble_lbs_on_button_change in the&amp;nbsp;button_event_handler() is not returning&amp;nbsp;NRF_ERROR_INVALID_STATE or any other error as mentioned previously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/141387?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 15:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:885e4b55-a68b-493f-a0f0-78540b080c09</guid><dc:creator>EricC</dc:creator><description>&lt;p&gt;Hi Bjorn, the Linux central receives notifications from the NRF52832 but not from the nNRF52840.&lt;/p&gt;
&lt;p&gt;best,&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/141346?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 13:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:332eedd3-0215-4748-8e20-1f1e8a7093e4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;OK, so the Linux central can send notifications to the NRF52840, but the nRF52840 cannot notify the Linux central? Is that the case?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/141331?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 13:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5044d318-fe0d-429d-bc79-515d3c14542f</guid><dc:creator>EricC</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bjorn_2d00_spockeli"&gt;bjorn-spockeli&lt;/a&gt; thanks for the followup. I am out of the office until August 6 so can do nothing hands-on (and nothing pressing) until that&amp;nbsp;day but can answer questions to some extent. I can say that:&lt;/p&gt;
&lt;p&gt;- the same central&amp;nbsp;receives notifications with the 52832&lt;/p&gt;
&lt;p&gt;- with the 52840 the console shows &amp;quot;button press received&amp;quot; or similar and there is no other output&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope this helps,&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linux central and 52840 Blinky App</title><link>https://devzone.nordicsemi.com/thread/141184?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 14:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f0d1b2-2855-427e-a285-d04d45f83815</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/ericc"&gt;EricC&lt;/a&gt;: It could sound like the Linux central has not enabled Notifications by writing to the CCCD. Could you start the ble_app_blinky application in a debug session and verify that&amp;nbsp;ble_lbs_on_button_change in the&amp;nbsp;button_event_handler() is not returning&amp;nbsp;NRF_ERROR_INVALID_STATE?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>