<?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: Wireless Uart demo question in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651713#M2476</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;In wireless_uart demo app.c program, I add the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;#include "hci_transport.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;hciPacketType_t packetType = (hciPacketType_t) 0x01;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;uint16_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packetSize = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;uint8_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPacket[8] = {0x14, 0x20, 0x05, 0x00, 0xF0, 0xFF, 0xFF, 0x1F};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;and the following line inside BleApp_ConnectionCallback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;Hcit_SendPacket(packetType, pPacket, packetSize);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;But it doesn't appear BLE transmission avoid the channels. Did I miss some steps?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 15:52:04 GMT</pubDate>
    <dc:creator>koonlee</dc:creator>
    <dc:date>2016-12-07T15:52:04Z</dc:date>
    <item>
      <title>Wireless Uart demo question</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651712#M2475</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 have a FRDM-KW41Z running hci_app and I am able to connect to a Ubuntu machine via the UART_RX/TX pins (RS232)&amp;nbsp;on FRDM-KW41Z to send hci command using BlueZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I run the wireless_uart demo program, the board doesn't accept hci command via the UART interface. Is it possible for me to send hci command to the wireless_uart demo program? I would like to send LE Set Host Channel Classification command&amp;nbsp;for co-existence test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Koon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651712#M2475</guid>
      <dc:creator>koonlee</dc:creator>
      <dc:date>2016-12-05T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wireless Uart demo question</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651713#M2476</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;In wireless_uart demo app.c program, I add the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;#include "hci_transport.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;hciPacketType_t packetType = (hciPacketType_t) 0x01;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;uint16_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packetSize = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;uint8_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPacket[8] = {0x14, 0x20, 0x05, 0x00, 0xF0, 0xFF, 0xFF, 0x1F};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;and the following line inside BleApp_ConnectionCallback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;Hcit_SendPacket(packetType, pPacket, packetSize);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;But it doesn't appear BLE transmission avoid the channels. Did I miss some steps?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 15:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651713#M2476</guid>
      <dc:creator>koonlee</dc:creator>
      <dc:date>2016-12-07T15:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wireless Uart demo question</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651714#M2477</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;The hci_app is indeed the application to use when you want to send HCI packets to the controller. What you are trying to do with the Wireless UART application is not applicable.&lt;/P&gt;&lt;P&gt;The Wireless UART application is (basically) an UART bridge over BLE. What you send to one KW41Z board via UART is forwarded to another board over a BLE connection and is written to the console (via UART).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to embed some HCI code directly into the application, then you need some minor adjustments to your code. You are using Hcit_SendPacket which is the serial (UART) interface for sending HCI data. While this works for an HCI application, the Wireless UART application uses a full BLE stack (host and controller) so there is no need for a serial communication between layers. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "controller_interface.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0cm 0cm 0pt;"&gt;hciPacketType_t packetType = (hciPacketType_t) 0x01;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0cm 0cm 0pt;"&gt;&lt;BR /&gt; uint16_t packetSize = 8;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0cm 0cm 0pt;"&gt;&lt;BR /&gt; uint8_t pPacket[8] = {0x14, 0x20, 0x05, 0x00, 0x00, 0xFF, 0x00, 0x00};&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0cm 0cm 0pt;"&gt;&lt;BR /&gt; Controller_RecvPacket(packetType, pPacket, packetSize);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 08:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Wireless-Uart-demo-question/m-p/651714#M2477</guid>
      <dc:creator>andrei_f</dc:creator>
      <dc:date>2016-12-09T08:58:42Z</dc:date>
    </item>
  </channel>
</rss>

