<?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>Kinetis Software Development KitのトピックUSB host K64F  Please Help</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422618#M2204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am so close to having this work for me.&amp;nbsp; I've been struggling with this, but I need some help please&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Kinetis Design Studio (KDS) 2.0.0 w/ the Kinetis SDK 1.1.0.&amp;nbsp; I created a new project w/ the SDK and PE.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems there's some issues with the fsl_usb_framework (I'll writeup a document after this project is complete).&amp;nbsp; However, I am now connected to my USB HID Device which is a display unit.&amp;nbsp; I'm at the point where I need to send data and receive data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no examples of this, the HOST example code only reference mouse/keyboard.&amp;nbsp; Neither of which send data to the device.&amp;nbsp; I am looking for some simple example of how to use "usb_host_send_data".&amp;nbsp; There's a tr_struct_t I have to fill out, but I'm not sure how to fill it out.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm coming from mbed, on mbed I was able to get the interrupt in/out endpoints and could send data fairly easily through that and listen for data in a thread.&amp;nbsp; I'm trying to do the same thing here, but am not sure how to set this up and there doesn't seem to be any examples out there or much documentation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any source showing a simple example using usb_host_send_data ?&amp;nbsp; If not, could someone explain the minimum requirements of that tr_struct_t ?&amp;nbsp; Do I need to fill out the usb_setup_t struct for example??&amp;nbsp; And where do I get and specify the endpoints, or do I need to?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm soo close, I could use a little push in the right direction &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Jeff King.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 02:13:42 GMT</pubDate>
    <dc:creator>jeffking</dc:creator>
    <dc:date>2015-04-20T02:13:42Z</dc:date>
    <item>
      <title>USB host K64F  Please Help</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422618#M2204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am so close to having this work for me.&amp;nbsp; I've been struggling with this, but I need some help please&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Kinetis Design Studio (KDS) 2.0.0 w/ the Kinetis SDK 1.1.0.&amp;nbsp; I created a new project w/ the SDK and PE.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems there's some issues with the fsl_usb_framework (I'll writeup a document after this project is complete).&amp;nbsp; However, I am now connected to my USB HID Device which is a display unit.&amp;nbsp; I'm at the point where I need to send data and receive data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no examples of this, the HOST example code only reference mouse/keyboard.&amp;nbsp; Neither of which send data to the device.&amp;nbsp; I am looking for some simple example of how to use "usb_host_send_data".&amp;nbsp; There's a tr_struct_t I have to fill out, but I'm not sure how to fill it out.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm coming from mbed, on mbed I was able to get the interrupt in/out endpoints and could send data fairly easily through that and listen for data in a thread.&amp;nbsp; I'm trying to do the same thing here, but am not sure how to set this up and there doesn't seem to be any examples out there or much documentation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any source showing a simple example using usb_host_send_data ?&amp;nbsp; If not, could someone explain the minimum requirements of that tr_struct_t ?&amp;nbsp; Do I need to fill out the usb_setup_t struct for example??&amp;nbsp; And where do I get and specify the endpoints, or do I need to?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm soo close, I could use a little push in the right direction &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Jeff King.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 02:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422618#M2204</guid>
      <dc:creator>jeffking</dc:creator>
      <dc:date>2015-04-20T02:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: USB host K64F  Please Help</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422619#M2205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to figure out a solution to which I'll post a little later for anyone else having troubles.&amp;nbsp; However, I now cannot send multiple data streams.&amp;nbsp; Can someone please confirm my logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Open pipe for sending data&lt;/P&gt;&lt;P&gt;2. Get tr structure to pass along with sending data&lt;/P&gt;&lt;P&gt;3. Send my data to the USB device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works the first time, but the second time nothing happens.&amp;nbsp; Do I need to do all the steps again?&amp;nbsp; Does the pipe remain open?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jeff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 21:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422619#M2205</guid>
      <dc:creator>jeffking</dc:creator>
      <dc:date>2015-04-23T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: USB host K64F  Please Help</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422620#M2206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example usb_host_send_data()&amp;nbsp; you can try in example &lt;STRONG&gt;cdc_serial&lt;/STRONG&gt;, located at C:\Freescale\KSDK_1.1.0\usb\example\host\cdc\cdc_serial or C:\Freescale\KSDK_1.1.0\usb\example\host\cdc\cdc_serial\sdk\kds\host_cdc_serial_twrk64f120m_bm&lt;/P&gt;&lt;P&gt;The function usb_host_send_data() is used in usb_host_cdc_io.c, exactly &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="usb_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49923i90A40FC5D1D11DC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="usb_1.png" alt="usb_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="usb_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49835i9F827818938208F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="usb_2.png" alt="usb_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And follow these steps: &lt;/P&gt;&lt;P&gt;1. Run the host_cdc_serial example.&lt;/P&gt;&lt;P&gt;2. Plug-in the CDC device and you will see some attach information printed out.&lt;/P&gt;&lt;P&gt;3. Type some string and the string will be sent to CDC device if either of the following becomes TRUE:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Any “\r” or “\n” received.&lt;/LI&gt;&lt;LI&gt;The string length is greater than CDC_MAX_PKT_SIZE&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After that CDC host will read back the string and put it to stdout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422620#M2206</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-04-29T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: USB host K64F  Please Help</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422621#M2207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jeff it would be great if you could post any details about your work getting fsl_usb_framework to function!&lt;/P&gt;&lt;P&gt;My thread here describes my situation &lt;A href="https://community.nxp.com/thread/353811"&gt;Standalone bare metal USB MSD  with K64F, KSDK-1.1.0 and KDS 2.0.0, SDHC and fatfs&lt;/A&gt; but I would appreciate any clues at all about how you got your USB interrupts firing, etc. Currently my init code seems to work fine, returning lots of USB_OK's but when you plug in a cable, nothing happens. I'm using the IRC48 clock init code from the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-host-K64F-Please-Help/m-p/422621#M2207</guid>
      <dc:creator>jeffmakes</dc:creator>
      <dc:date>2015-04-30T14:06:56Z</dc:date>
    </item>
  </channel>
</rss>

