<?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: MKW41z connectivity software THCI interface over SPI</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/MKW41z-connectivity-software-THCI-interface-over-SPI/m-p/608394#M1767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KW41z Host Controlled Device is managed by the SerialManager module which includes THCI support for UART, USB and SPI.&lt;/P&gt;&lt;P&gt;You can select the interface in the file:&amp;nbsp;middleware\wireless\nwk_ip_1.2.0\examples\host_controlled_device\config\config.h&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define THCI_UART_ENABLE 0&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//Default is 1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define THCI_SPI_ENABLE 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//Default is 0, enable it for SPI‍‍&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;That will set the SPI interface (slave) for the Host Controlled Device project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The slave will trigger the master for a TX(see &lt;SPAN style="font-family: terminal, monaco, monospace; color: #993300;"&gt;gSerialMgrSlaveDapTxLogicOne_c&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt; &lt;SPAN style="color: #3d3d3d;"&gt;a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;nd &amp;nbsp;&lt;SPAN style="font-family: terminal, monaco, monospace; color: #993300;"&gt;mSpiSlaveDapCfg&amp;nbsp;&lt;/SPAN&gt;in SerialManager.c).&lt;/P&gt;&lt;P&gt;Every serial (THCI) packet has a header. When the slave indicates there's pending data,&amp;nbsp;the master should transfer over the SPI the packet header, check in the header the packet length, and then transfer the remaining bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 21:17:55 GMT</pubDate>
    <dc:creator>jc_pacheco</dc:creator>
    <dc:date>2017-03-01T21:17:55Z</dc:date>
    <item>
      <title>MKW41z connectivity software THCI interface over SPI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW41z-connectivity-software-THCI-interface-over-SPI/m-p/608393#M1766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm trying to get communications going between a k64 and a MKW41z using the SPI interface. I've got the FSCI messages basically implemented, following&amp;nbsp;the example of the windows/linux driver logic included in the connectivity software, and comparing that output to the output of the test tool. The messages look right when flattened into a byte array, and I'm able to parse them back out of that array. The question I have is: How are messages supposed to be retrieved from the KW41z, since it's not a master on the SPI bus?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;previous post:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/881913?commentID=881913#comment-881913" title="https://community.nxp.com/message/881913?commentID=881913#comment-881913"&gt;https://community.nxp.com/message/881913?commentID=881913#comment-881913&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 04:23:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW41z-connectivity-software-THCI-interface-over-SPI/m-p/608393#M1766</guid>
      <dc:creator>gbh</dc:creator>
      <dc:date>2017-03-01T04:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: MKW41z connectivity software THCI interface over SPI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW41z-connectivity-software-THCI-interface-over-SPI/m-p/608394#M1767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KW41z Host Controlled Device is managed by the SerialManager module which includes THCI support for UART, USB and SPI.&lt;/P&gt;&lt;P&gt;You can select the interface in the file:&amp;nbsp;middleware\wireless\nwk_ip_1.2.0\examples\host_controlled_device\config\config.h&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define THCI_UART_ENABLE 0&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//Default is 1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define THCI_SPI_ENABLE 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//Default is 0, enable it for SPI‍‍&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;That will set the SPI interface (slave) for the Host Controlled Device project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The slave will trigger the master for a TX(see &lt;SPAN style="font-family: terminal, monaco, monospace; color: #993300;"&gt;gSerialMgrSlaveDapTxLogicOne_c&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #000000;"&gt; &lt;SPAN style="color: #3d3d3d;"&gt;a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;nd &amp;nbsp;&lt;SPAN style="font-family: terminal, monaco, monospace; color: #993300;"&gt;mSpiSlaveDapCfg&amp;nbsp;&lt;/SPAN&gt;in SerialManager.c).&lt;/P&gt;&lt;P&gt;Every serial (THCI) packet has a header. When the slave indicates there's pending data,&amp;nbsp;the master should transfer over the SPI the packet header, check in the header the packet length, and then transfer the remaining bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 21:17:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW41z-connectivity-software-THCI-interface-over-SPI/m-p/608394#M1767</guid>
      <dc:creator>jc_pacheco</dc:creator>
      <dc:date>2017-03-01T21:17:55Z</dc:date>
    </item>
  </channel>
</rss>

