<?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>nRF52832 communication with Linux Gateway running BlueZ (NUS and GATT via Python)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66639/nrf52832-communication-with-linux-gateway-running-bluez-nus-and-gatt-via-python</link><description>The Situation: I am having a Sensor Node that is based on the nRF52832 (S132) and does two things: advertise some sensor data and store sensor data to the internal flash. To collect the data I am having a Linux based gateway that is based on a Raspberry</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Oct 2020 10:01:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66639/nrf52832-communication-with-linux-gateway-running-bluez-nus-and-gatt-via-python" /><item><title>RE: nRF52832 communication with Linux Gateway running BlueZ (NUS and GATT via Python)</title><link>https://devzone.nordicsemi.com/thread/274252?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 10:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edab876d-1e04-4099-ab8d-4a007376a32a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Based on your text (if I&amp;#39;ve understood you correctly) you don&amp;#39;t want to control BLE from the&amp;nbsp;&lt;span&gt;Raspberry Pi (which &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hci_uart/README.html#using-the-controller-with-bluez"&gt;BlueZ&lt;/a&gt;&amp;nbsp;can help you with). &lt;/span&gt;&lt;span&gt;It seems like you want to send data from the nRF52 to the Raspberry Pi (advertising data and logged data), send data the other way (settings like sensor sampling frequency) and also&amp;nbsp;perform an update of the firmware/application code on the nRF52832.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In order to send data forth and back, you could just use&amp;nbsp;standart UART communication and write a custom python program with&amp;nbsp;&lt;a href="https://github.com/tbird20d/grabserial"&gt;grabSerial&lt;/a&gt; or &lt;a href="https://pyserial.readthedocs.io/en/latest/pyserial.html"&gt;pySerial&lt;/a&gt;&amp;nbsp;(or another module) on the Raspberry Pi to send, receive and store the data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The approach to perform a DFU update depends on the firmware on the nRF52. If you&amp;#39;re using the nRF5 SDK, you should&amp;nbsp;look &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fsdk_app_serial_dfu_bootloader.html&amp;amp;cp=7_1_4_4_4"&gt;here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_dfu_transport_serial.html&amp;amp;cp=7_1_3_5_2_3"&gt;here&lt;/a&gt;. If you&amp;#39;re using the nRF Connect SDK, take a look at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;this link&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If anything is unclear, please ask and I will elaborate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 communication with Linux Gateway running BlueZ (NUS and GATT via Python)</title><link>https://devzone.nordicsemi.com/thread/273002?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 13:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3d90c77-d87f-4d50-bdf1-3e5c49177b81</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the delayed response on this. I will take a look at it later today/tomorrow&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>