<?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>Wireless MCUのトピックRe: KW41Z Host Controlled Device Example Issue</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946996#M7516</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;I checked the manual and found this note&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #0000ff; "&gt;"On Linux OS, the kernel modules which handle TUN/TAP are usually built in. If not, these can be easily compiled from the Linux OS source, by enabling Universal TUN/TAP device driver when issuing make menuconfig, or by enabling CONFIG_TUN=y or m in the build system .config file. If the kernel module is built as an external module, insmod tun.ko enables the functionality in the system. "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if your distribution has this enabled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 21:54:34 GMT</pubDate>
    <dc:creator>stephanie_m</dc:creator>
    <dc:date>2019-09-05T21:54:34Z</dc:date>
    <item>
      <title>KW41Z Host Controlled Device Example Issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946993#M7513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am trying to set up a host controlled thread network with a KW41Z following the&amp;nbsp;Kinetis FSCI Host Application Programming Interface User’s Guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I defined the THR_SERIAL_TUN_ROUTER=1&lt;SPAN&gt;&amp;nbsp;in the config.h.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When i run the make_tun.sh script, i get the message:&lt;/P&gt;&lt;P&gt;IPv6: ADDRCONF(NETDEV_UP): threadtun0: link is not ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i start Thread_KW_Tun i get this output and then it stops:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[THR] Set 802.15.4 channel OK!&lt;BR /&gt;[THR] Create Network OK!&lt;BR /&gt;[MESHCOP] Start Commissioner OK!&lt;BR /&gt;[MESHCOP] Add Expected Joiner OK!&lt;BR /&gt;[MESHCOP] Sync Steering Data OK!&lt;/P&gt;&lt;P&gt;TX:&lt;BR /&gt; 0000 60 00 00 00 00 24 00 01 fe 80 00 00 00 00 00 00 `....$..........&lt;BR /&gt; 0010 30 46 33 cd bb 98 40 4a ff 02 00 00 00 00 00 00 0F3...@J........&lt;BR /&gt; 0020 00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00 ........:.......&lt;BR /&gt; 0030 8f 00 10 13 00 00 00 01 04 00 00 00 ff 02 00 00 ................&lt;BR /&gt; 0040 00 00 00 00 00 00 00 00 00 00 00 02 ............&lt;BR /&gt;TX:&lt;BR /&gt; 0000 60 00 00 00 00 24 00 01 fe 80 00 00 00 00 00 00 `....$..........&lt;BR /&gt; 0010 30 46 33 cd bb 98 40 4a ff 02 00 00 00 00 00 00 0F3...@J........&lt;BR /&gt; 0020 00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00 ........:.......&lt;BR /&gt; 0030 8f 00 10 13 00 00 00 01 04 00 00 00 ff 02 00 00 ................&lt;BR /&gt; 0040 00 00 00 00 00 00 00 00 00 00 00 02 ............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also can't see the network when i scan for thread networks from another KW41Z.&lt;/P&gt;&lt;P&gt;Does anybody has a clue what i&amp;nbsp;am doing wrong?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Frieder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 09:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946993#M7513</guid>
      <dc:creator>nxf50230</dc:creator>
      <dc:date>2019-09-04T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z Host Controlled Device Example Issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946994#M7514</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;Did you install all the necessary prerequisites mentioned in the Chapter 4? Which distribution and version are you using ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there are some changes mentioned in the chapter 6 regarding the definitions&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define BR_ROUTER_MODE 0&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define BR_HOST_MODE 1&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as this other requirement mentioned in page 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;$ sudo ip tuntap add mode tun threadtun0
$ ip link show threadtun0
&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; threadtun0&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;POINTOPOINT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;MULTICAST&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;NOARP&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; mtu &lt;SPAN class="number token"&gt;1500&lt;/SPAN&gt; qdisc noop state DOWN mode DEFAULT qlen &lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;
link&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;none
$ sudo ip &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6&lt;/SPAN&gt; addr add FD01&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt; dev threadtun0
$ ip address show threadtun0
&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; threadtun0&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;POINTOPOINT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;MULTICAST&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;NOARP&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; mtu &lt;SPAN class="number token"&gt;1500&lt;/SPAN&gt; qdisc noop state DOWN qlen &lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;
link&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;none
inet6 fd01&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;128&lt;/SPAN&gt; scope global
valid_lft forever preferred_lft forever&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me confirm you already made that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946994#M7514</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-09-04T14:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z Host Controlled Device Example Issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946995#M7515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Estephania,&lt;/P&gt;&lt;P&gt;thanks for your hints. I figured out that i used an old version of the KW41Z SDK. With the newest version (2.2.1) and&amp;nbsp;#define&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SERIAL_TUN_IF 1 the output is different:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TX:&lt;BR /&gt;0000 60 00 00 00 00 24 00 01 fe 80 00 00 00 00 00 00 `....$..........&lt;BR /&gt;0010 63 c6 e9 3c 52 96 14 a6 ff 02 00 00 00 00 00 00 c..&amp;lt;R...........&lt;BR /&gt;0020 00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00 ........:.......&lt;BR /&gt;0030 8f 00 bb c9 00 00 00 01 04 00 00 00 ff 02 00 00 ................&lt;BR /&gt;0040 00 00 00 00 00 00 00 00 00 00 00 02 ............&lt;/P&gt;&lt;P&gt;RX:&lt;BR /&gt;0000 33 33 00 01 00 02 00 60 37 00 fa 5c 86 dd 60 00 33.....`7..\..`.&lt;BR /&gt;0010 00 00 00 34 11 80 fe 80 00 00 00 00 00 00 02 60 ...4...........`&lt;BR /&gt;0020 37 ff fe 00 fa 5c ff 02 00 00 00 00 00 00 00 00 7....\..........&lt;BR /&gt;0030 00 00 00 01 00 02 02 22 02 23 00 34 f5 6f 01 9f .......".#.4.o..&lt;BR /&gt;0040 85 a9 00 08 00 02 1c 22 00 01 00 0a 00 03 00 1b ......."........&lt;BR /&gt;0050 00 60 37 00 fa 5c 00 19 00 0c 00 00 00 00 00 00 .`7..\..........&lt;BR /&gt;0060 00 00 00 00 00 00 00 0e 00 00 ..........&lt;BR /&gt;TUN write: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;Linux 4.14.104-imx8-sr Kernel with Debian GNU/Linux 10 and i&amp;nbsp;did&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;all the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;prerequisites&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mentioned in the tutorial.&lt;/P&gt;&lt;P&gt;My college with an Ubuntu host machine has the same behavior.&lt;/P&gt;&lt;P&gt;Do you have any idea what is going wrong?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Frieder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:00:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946995#M7515</guid>
      <dc:creator>nxf50230</dc:creator>
      <dc:date>2019-09-05T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z Host Controlled Device Example Issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946996#M7516</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;I checked the manual and found this note&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #0000ff; "&gt;"On Linux OS, the kernel modules which handle TUN/TAP are usually built in. If not, these can be easily compiled from the Linux OS source, by enabling Universal TUN/TAP device driver when issuing make menuconfig, or by enabling CONFIG_TUN=y or m in the build system .config file. If the kernel module is built as an external module, insmod tun.ko enables the functionality in the system. "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if your distribution has this enabled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946996#M7516</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-09-05T21:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z Host Controlled Device Example Issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946997#M7517</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;I am the above mentioned colleague trying it on a Ubuntu machine with the needed kernel modules for the TUN/TAP interface.&lt;/P&gt;&lt;P&gt;I managed to solve the "TUN write" error, but I am still not able to create a network and join with a second FRDM-KW41Z running the "Thread router eligible device" demo.&lt;/P&gt;&lt;P&gt;I am compiling with the following Macro definitions: SERIAL_TUN_IF 1, BR_ROUTER_MODE 0, BR_HOST_MODE 1.&lt;/P&gt;&lt;P&gt;The TUN device is created and configured with the "make_tun.sh" script and during program execution the threadtun0 link status is UP.&lt;/P&gt;&lt;P&gt;I modified these functions to remove the Ethernet header from the network frame as written in Chapter 6 to enable TUN mode (both are located in ip_if_serial_tun.c):&lt;/P&gt;&lt;P&gt;- IP_SerialTunSend6: content of the "if(pEnetDstInf)" condition commented out&lt;/P&gt;&lt;P&gt;-IP_serialtunRecv:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enetHdr_t enetpkt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint16_t protocol;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //EDITED -- start&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t protocolFix[] = {134, 221};//ADDED, HEX DUMP WAS: 86 dd&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* check if interface is initialized and packet has correct size */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((NULL != mIpSerialtunInterfaceHandle) &amp;amp;&amp;amp; (size &amp;gt; ENET_HEADER_SIZE))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLib_MemCpy(&amp;amp;enetpkt, pInData, ENET_HEADER_SIZE);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; protocol = ntohas(enetpkt.type);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protocol = ntohas(protocolFix);//ADDED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Make sure IP packet is aligned */&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size -= ENET_HEADER_SIZE;&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLib_MemInPlaceCpy(pInData, (uint8_t *) pInData + ENET_HEADER_SIZE, size);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //EDITED -- end&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPIF_STATS_ENABLED((*mIpSerialtunInterfaceHandle)-&amp;gt;stats.commonStats.rxTotal++);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPIF_STATS_ENABLED((*mIpSerialtunInterfaceHandle)-&amp;gt;stats.rxOctets += size);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you find a Wireshark log, the output of the Thread_KW_Tun program and the Uart log of the "Thread router eligible device" running on a second FRDM-KW41Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fynn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW41Z-Host-Controlled-Device-Example-Issue/m-p/946997#M7517</guid>
      <dc:creator>nxf55573</dc:creator>
      <dc:date>2019-09-09T18:04:59Z</dc:date>
    </item>
  </channel>
</rss>

