<?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>topic Pairing and connecion with bluez 5.49 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Pairing-and-connecion-with-bluez-5-49/m-p/954114#M142551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I am working with a target board IMX6ULL EVK with Linux and Bluez 5.49, I want to connect a Samsung smartphone with my board through Bluetooth.&lt;/P&gt;&lt;P&gt;I use this command on the target for start Bluetooth:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciattach /dev/ttymxc1 texas 3000000&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciconfig hci0 name 'Target'&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;bluetoothctl&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;power on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;discoverable on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;default-agent&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the smartphone I start the pairing procedure, the smarphore ask pin code, I put 1234, the target ask pin code, I put 1234.&lt;/P&gt;&lt;P&gt;On the smartphone the connection is failed, on the target the connection is OK and after few second is failed.&lt;/P&gt;&lt;P&gt;I read in some forum that Bluez 5.49 generate automatically 6 char of random pin that the 2 bluetooth exchange &amp;nbsp;and activate, the operator don’t put the pin manually.&lt;/P&gt;&lt;P&gt;Why the pairing procedure ask me the pin ?&lt;/P&gt;&lt;P&gt;Why the connection is failed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I test an other start sequence that not use default-agent :&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciattach /dev/ttymxc1 texas 3000000&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciconfig hci0 name 'Target'&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;bluetoothctl&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;power on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;discoverable on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;agent off&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;agent KeyboardDisplay&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case the pairing procedure don’t ask me the pin code (correct) but the connection is failed as previous case. Why ?&lt;/P&gt;&lt;P&gt;If I put agent DisplayOnly or NoInputNoOutput&amp;nbsp; or DisplayYesNo or KeyboardOnly&amp;nbsp; the pairing procedure don’t ask me the pin code (correct) but the connection is failed as previous case. Why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably my start sequence is not correct.&lt;/P&gt;&lt;P&gt;Can you send me an example of start sequence that work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our customer ask us to use a programmable pin code for Bluetooth and not random pin code, is it possible in Bluez 5.49 ?&lt;/P&gt;&lt;P&gt;Can I change the pin code of default-agent ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 10:34:42 GMT</pubDate>
    <dc:creator>sergio_dorazio</dc:creator>
    <dc:date>2019-09-05T10:34:42Z</dc:date>
    <item>
      <title>Pairing and connecion with bluez 5.49</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Pairing-and-connecion-with-bluez-5-49/m-p/954114#M142551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;I am working with a target board IMX6ULL EVK with Linux and Bluez 5.49, I want to connect a Samsung smartphone with my board through Bluetooth.&lt;/P&gt;&lt;P&gt;I use this command on the target for start Bluetooth:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciattach /dev/ttymxc1 texas 3000000&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciconfig hci0 name 'Target'&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;bluetoothctl&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;power on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;discoverable on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;default-agent&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the smartphone I start the pairing procedure, the smarphore ask pin code, I put 1234, the target ask pin code, I put 1234.&lt;/P&gt;&lt;P&gt;On the smartphone the connection is failed, on the target the connection is OK and after few second is failed.&lt;/P&gt;&lt;P&gt;I read in some forum that Bluez 5.49 generate automatically 6 char of random pin that the 2 bluetooth exchange &amp;nbsp;and activate, the operator don’t put the pin manually.&lt;/P&gt;&lt;P&gt;Why the pairing procedure ask me the pin ?&lt;/P&gt;&lt;P&gt;Why the connection is failed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I test an other start sequence that not use default-agent :&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciattach /dev/ttymxc1 texas 3000000&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;hciconfig hci0 name 'Target'&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;bluetoothctl&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;power on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;discoverable on&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;agent off&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;agent KeyboardDisplay&lt;/P&gt;&lt;P style="margin-left: 35.4pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case the pairing procedure don’t ask me the pin code (correct) but the connection is failed as previous case. Why ?&lt;/P&gt;&lt;P&gt;If I put agent DisplayOnly or NoInputNoOutput&amp;nbsp; or DisplayYesNo or KeyboardOnly&amp;nbsp; the pairing procedure don’t ask me the pin code (correct) but the connection is failed as previous case. Why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably my start sequence is not correct.&lt;/P&gt;&lt;P&gt;Can you send me an example of start sequence that work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our customer ask us to use a programmable pin code for Bluetooth and not random pin code, is it possible in Bluez 5.49 ?&lt;/P&gt;&lt;P&gt;Can I change the pin code of default-agent ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 10:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Pairing-and-connecion-with-bluez-5-49/m-p/954114#M142551</guid>
      <dc:creator>sergio_dorazio</dc:creator>
      <dc:date>2019-09-05T10:34:42Z</dc:date>
    </item>
  </channel>
</rss>

