<?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>Need help / sample connecting to nrf528333 over BLE using Python from Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94887/need-help-sample-connecting-to-nrf528333-over-ble-using-python-from-raspberry-pi-4</link><description>Hi, 
 
 I have a Raspberry Pi 4 running the Raspberry (Debian) 32 bit OS version 11, and am in need of sample code to connect &amp;amp; read/write to a Nordic nrf528333, using Python 3. I am able to see the Nordic device using command line utilities, using a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Dec 2022 09:47:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94887/need-help-sample-connecting-to-nrf528333-over-ble-using-python-from-raspberry-pi-4" /><item><title>RE: Need help / sample connecting to nrf528333 over BLE using Python from Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/401011?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 09:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73ece819-3d04-42c2-b047-18b7c983872a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Than you need to decide on the interface, like which Bluetooth service(s) you should use etc. The simplest possible is probably NUS like I suggested. That will basically give you a data tunnel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help / sample connecting to nrf528333 over BLE using Python from Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/400942?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 18:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e428606e-3948-40a0-90ac-fcee6c6bf586</guid><dc:creator>temba</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;br /&gt;The case is the first you suggested. I wish to wirelessly connect from a Pi 4 to a Nordic nrf58333; this emulates a product under development that will use an embedded Nordic SOC in a device that uses a microcontroller that reads sensor data and reports wirelessly to the Pi 4 via the Nordic, and which will receive commands from the Pi 4 that are passed on to the microcontroller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help / sample connecting to nrf528333 over BLE using Python from Raspberry Pi 4</title><link>https://devzone.nordicsemi.com/thread/400856?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 13:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fd191e1-c99b-4c1e-823d-959fd2fe809f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Is it so that the nRF is a Bluetooth device talking to the RPi over Bluetooth, or is it so that you physically connect the nRF to the RPi and want to use that to communicate with other Bluetooth devices?&lt;/p&gt;
&lt;p&gt;If it is the latter, then take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/bluetooth/hci_usb/README.html"&gt;Bluetooth: HCI USB&lt;/a&gt;&amp;nbsp;sample (there are also samples for other transports, like &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/bluetooth/hci_uart/README.html"&gt;UART&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If it is the former, and you are starting off with an RPi that is&amp;nbsp;going to communicate with an nRF over Bluetooth and you have not decided on more than that yet, then I would consider using something like the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART sample&lt;/a&gt;, which use the custom NUS service to mimic UART over Bluetooth LE. Then interface with that vie BlueZ. We do not provide any python implementations for that, but there is an &lt;a href="https://github.com/aykevl/pynus"&gt;old project here&lt;/a&gt; that may be relevant.&lt;/p&gt;
&lt;p&gt;Or perhaps you are after something else altogether? If so, please elaborate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>