<?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>Can&amp;#39;t connect from Ubuntu 18.04 using bluez</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42055/can-t-connect-from-ubuntu-18-04-using-bluez</link><description>I am trying for almost a week to communicate from Linux Ubuntu 18.04 using BLE and always get errors. The Java Android code works well from an Android device, and the PC running Ubuntu can connect to other BLE devices. Is there an example of a bluez C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2020 04:28:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42055/can-t-connect-from-ubuntu-18-04-using-bluez" /><item><title>RE: Can't connect from Ubuntu 18.04 using bluez</title><link>https://devzone.nordicsemi.com/thread/235305?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 04:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01c26766-e253-4622-81d9-82d2acd80e86</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;This python code usually works (but not always). Need to pip install bluepy.&lt;/p&gt;
&lt;p&gt;import bluepy&lt;/p&gt;
&lt;p&gt;scanner = bluepy.btle.Scanner()&lt;br /&gt;found = scanner.scan(timeout=5)&lt;br /&gt;for dev in found:&lt;br /&gt; print(dev.addr, dev.addrType, dev.rssi)&lt;/p&gt;
&lt;p&gt;SOME_MAC = &amp;#39;ff:ff:c9:27:9f:01&amp;#39;&lt;br /&gt;periph = bluepy.btle.Peripheral(SOME_MAC)&lt;br /&gt;for service in periph.getServices():&lt;br /&gt; print(&amp;#39;service %s %s&amp;#39; % (service.uuid,service))&lt;br /&gt; chars = service.getCharacteristics()&lt;br /&gt; for chrc in chars:&lt;br /&gt; print(chrc.getHandle(), chrc.uuid, chrc.propertiesToString())&lt;br /&gt; if chrc.supportsRead():&lt;br /&gt; print(&amp;quot; read: %s&amp;quot; % chrc.read())&lt;/p&gt;
&lt;p&gt;Oops, indenting got mangled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect from Ubuntu 18.04 using bluez</title><link>https://devzone.nordicsemi.com/thread/235145?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 11:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b0447c-84b4-48a6-863a-2f91df90f5f7</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you ever get this to work. I am in exactly the same situation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect from Ubuntu 18.04 using bluez</title><link>https://devzone.nordicsemi.com/thread/235142?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 10:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30570dc6-9d5b-405a-ba85-31ad6fd38e57</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you ever get this to work. I am in exactly the same situation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect from Ubuntu 18.04 using bluez</title><link>https://devzone.nordicsemi.com/thread/163918?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 10:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8b6df4e-e800-400b-b78a-bc9b2de861a7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What kind of device are you trying to connect to? This sounds more like a question you should direct to a Ubuntu/bluez forum rather than Nordic.&lt;/p&gt;
&lt;p&gt;You can also have a look at &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/iot_sdk_user_guides_linux_commands.html?cp=4_0_0_5_4_0_5"&gt;this documentation&lt;/a&gt;, related to our IoT libraries.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>