<?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 Re: Use QN9080 DK as HCI dongle in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874822#M6188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update : When using the DK flashed with the hci_back_box example, I was able to attach it correctly to my Ubuntu host.&lt;/P&gt;&lt;P&gt;The packets do not seem to time out anymore. I can see some TX/RX bytes and a Bluetooth address when running hciconfig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I get a different error when trying to set the attached controller in the UP state, by running the following command :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'# sudo hciconfig hci0 up'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can't init device hci0: Invalid request code (56)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Emilien.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT : Added a screenshot of the HCI commands sent/received when running 'sudo hciconfig hci0 up'. &lt;BR /&gt;The Bluetooth monitoring command used is 'btmon'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT2 : It looks like the error comes from the handling of the 'Read Class of Device' command in the HCI_SendPacketToController (or any other callee) function in the library 'lib_ble_QN908XC_controller.a'. Unfortunately, the sources of these functions are not available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 14:30:17 GMT</pubDate>
    <dc:creator>emilien_wingert</dc:creator>
    <dc:date>2019-02-25T14:30:17Z</dc:date>
    <item>
      <title>Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874819#M6185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on a project involving the QN9080 DevKit, which should behave as a BLE dongle (transceiver). The Host Stack would be running on a Linux based external processing unit, so the firmware to be flashed in the QN9080 only needs to implement the standard HCI transport layer and the Controller tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, the demo example "hci_black_box" should behave as expected. Will this example be compatible with the current version of the Linux stack BlueZ ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my attempts to attach a QN9080DK flashed with hci_black_box to my Linux bluetooth configuration have failed so far. (I use a USB to UART connector plugged on the FC0_RX and FC0_TX pins of the QN9080DK, and plugged in my PC, device is /dev/ttyUSBx, baudrate 115200)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might be doing something wrong, or misunderstanding the purpose of this example. If so, please let me know :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Emilien WINGERT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874819#M6185</guid>
      <dc:creator>emilien_wingert</dc:creator>
      <dc:date>2019-02-19T16:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874820#M6186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to confirm, by mentioning you are using the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FC0_RX and FC0_TX pins, are you using the default configuration? or did you change it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Which error are you getting?&amp;nbsp;Is there&amp;nbsp;a chance you can test it using the NXP Test Tool just to verify if the issue it's related to the HW or&amp;nbsp;the Linux interface?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also,&amp;nbsp; could you please help me confirm if you have the same behavior when using the USB Dongle of the QN9080 which has by default the HCI software?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Estephania&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 15:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874820#M6186</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-02-21T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874821#M6187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply !&lt;/P&gt;&lt;P&gt;I indeed used the default configuration of the hci black box example (imported as SDK v2.2 example project in the MCUXpresso IDE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know that the hci black box was flashed in the QN9080 dongle as default, but I had the same error using it.&lt;/P&gt;&lt;P&gt;I usually do the following :&lt;/P&gt;&lt;P&gt;- Plug the dongle (or the USB-UART cable when using the dev kit) in my host system&lt;/P&gt;&lt;P&gt;- Run this command to attach it to BlueZ (v5.37)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'sudo hciattach -s 115200 ttyACM0 any 115200'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; which succeeds with 'Device setup complete'&lt;/P&gt;&lt;P&gt;- Run this command to start the device&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'sudo hciconfig hci0 up'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; which fails with 'Can't init device hci0: Connection timed out (110)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like the host's TX packets time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried this on a PC with Ubuntu 16.04 and on a Raspberry Pi running a custom linux build.&lt;/P&gt;&lt;P&gt;Using the Test Tool will be complicated as there is no Linux compatible version :/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;P&gt;Emilien WINGERT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874821#M6187</guid>
      <dc:creator>emilien_wingert</dc:creator>
      <dc:date>2019-02-22T10:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874822#M6188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update : When using the DK flashed with the hci_back_box example, I was able to attach it correctly to my Ubuntu host.&lt;/P&gt;&lt;P&gt;The packets do not seem to time out anymore. I can see some TX/RX bytes and a Bluetooth address when running hciconfig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I get a different error when trying to set the attached controller in the UP state, by running the following command :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'# sudo hciconfig hci0 up'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can't init device hci0: Invalid request code (56)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Emilien.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT : Added a screenshot of the HCI commands sent/received when running 'sudo hciconfig hci0 up'. &lt;BR /&gt;The Bluetooth monitoring command used is 'btmon'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT2 : It looks like the error comes from the handling of the 'Read Class of Device' command in the HCI_SendPacketToController (or any other callee) function in the library 'lib_ble_QN908XC_controller.a'. Unfortunately, the sources of these functions are not available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 14:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874822#M6188</guid>
      <dc:creator>emilien_wingert</dc:creator>
      <dc:date>2019-02-25T14:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874823#M6189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I think I know where the problem lies (sorry I'm kind of spamming here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HCI command 'Read Class of Device' is not supported by the HCI black box code, which is normal behaviour since the controller is BLE only. I dug in Linux kernel's HCI Core sources and I found out that the commands being sent depends on the results of 'Read Local Supported Commands' (OPCODE = 0x1002) and 'Read Local Supported Features' (OPCODE = 0x1003) commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first command returns the "supported commands" bytes successfully, but the second one (Read Local Supported Features) only returns 8 null bytes.&lt;/P&gt;&lt;P&gt;The problem is that these bytes are used by the kernel to know which controller is attached (BR/EDR only, LE only or dual mode). In fact, the Bluetooth Core Specification Ver. 5.0 Vol. 2, Part C indicates that the bit 37 (in the 4th feature byte) must be set to 1 if the BR/EDR is not supported, and the bit 38 must be set to 1 if LE is supported. Currently both are set to 0, and because of this, the kernel thinks the controller is BR/EDR compatible and only sends BR/EDR commands, some of them not being supported by the hci black box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will certainly have to patch my kernel to avoid any error.&lt;/P&gt;&lt;P&gt;I will keep updating until the problem's solved :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;P&gt;Emilien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 08:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874823#M6189</guid>
      <dc:creator>emilien_wingert</dc:creator>
      <dc:date>2019-03-01T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874824#M6190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you want to add some specific functionality that it's not available in the stack or you do not find something useful in the&amp;nbsp;BLE Host Stack FSCI Reference Manual you can check this post&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-341764"&gt;https://community.nxp.com/docs/DOC-341764&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe that can help you .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 20:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874824#M6190</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-01T20:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874825#M6191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the lead.&lt;BR /&gt;I need to add a correct handling of the 'Read Local Supported Features' HCI standard command. The current handling of the command returns wrong values (only zeros), but the sources are not available so I can't fix it directly.&lt;/P&gt;&lt;P&gt;I would need to know which specific Bluetooth Core Features are supported by the QN9080 Controller, in order to implement the handling in a custom HCI command (the features are listed in the Bluetooth Core Specification Ver. 5.0 Vol. 2, Part C) and return the right values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Emilien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 09:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874825#M6191</guid>
      <dc:creator>emilien_wingert</dc:creator>
      <dc:date>2019-03-04T09:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use QN9080 DK as HCI dongle</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874826#M6192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe all the definitions you are looking for are available in the&amp;nbsp;&lt;SPAN style="color: #0000ff;"&gt;ble_general.h&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Use-QN9080-DK-as-HCI-dongle/m-p/874826#M6192</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-06T18:20:57Z</dc:date>
    </item>
  </channel>
</rss>

