<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックAdding Bluetooth Python extension module -PyBluez in linux code running on Imx6q</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Adding-Bluetooth-Python-extension-module-PyBluez-in-linux-code/m-p/347563#M48119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wants to run a test app for bluetooth in python in imx 6q Sabre S board.&lt;/P&gt;&lt;P&gt;The os is linux.&lt;/P&gt;&lt;P&gt;I tried to run simple python program for printing Hello was successfull.&lt;/P&gt;&lt;P&gt;But when I tried to run the Test app,for bluetooth i got error.&lt;/P&gt;&lt;P&gt;So i downloaded PyBluez-0.20 and tried to execute the command&amp;nbsp; &lt;EM&gt;python setup.py install&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But I got error like compiler not found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Could anyone help me to resolve this?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My program shown below&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#!usr/bin python&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;import bluetooth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;target_name = "My Phone"&lt;/P&gt;&lt;P&gt;target_address = None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nearby_devices = bluetooth.discover_devices()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for bdaddr in nearby_devices:&lt;/P&gt;&lt;P&gt;&amp;nbsp; if target_name == bluetooth.lookup_name( bdaddr ):&lt;/P&gt;&lt;P&gt;&amp;nbsp; target_address = bdaddr&lt;/P&gt;&lt;P&gt;&amp;nbsp; break&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if target_address is not None:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print "found target bluetooth device with address ", target_address&lt;/P&gt;&lt;P&gt;else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print "could not find target bluetooth device nearby"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 09:09:46 GMT</pubDate>
    <dc:creator>divyardharan</dc:creator>
    <dc:date>2015-02-04T09:09:46Z</dc:date>
    <item>
      <title>Adding Bluetooth Python extension module -PyBluez in linux code running on Imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Adding-Bluetooth-Python-extension-module-PyBluez-in-linux-code/m-p/347563#M48119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wants to run a test app for bluetooth in python in imx 6q Sabre S board.&lt;/P&gt;&lt;P&gt;The os is linux.&lt;/P&gt;&lt;P&gt;I tried to run simple python program for printing Hello was successfull.&lt;/P&gt;&lt;P&gt;But when I tried to run the Test app,for bluetooth i got error.&lt;/P&gt;&lt;P&gt;So i downloaded PyBluez-0.20 and tried to execute the command&amp;nbsp; &lt;EM&gt;python setup.py install&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But I got error like compiler not found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Could anyone help me to resolve this?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My program shown below&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#!usr/bin python&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;import bluetooth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;target_name = "My Phone"&lt;/P&gt;&lt;P&gt;target_address = None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nearby_devices = bluetooth.discover_devices()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for bdaddr in nearby_devices:&lt;/P&gt;&lt;P&gt;&amp;nbsp; if target_name == bluetooth.lookup_name( bdaddr ):&lt;/P&gt;&lt;P&gt;&amp;nbsp; target_address = bdaddr&lt;/P&gt;&lt;P&gt;&amp;nbsp; break&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if target_address is not None:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print "found target bluetooth device with address ", target_address&lt;/P&gt;&lt;P&gt;else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print "could not find target bluetooth device nearby"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 09:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Adding-Bluetooth-Python-extension-module-PyBluez-in-linux-code/m-p/347563#M48119</guid>
      <dc:creator>divyardharan</dc:creator>
      <dc:date>2015-02-04T09:09:46Z</dc:date>
    </item>
  </channel>
</rss>

