<?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: imx6ul：how to get the data from usb_control_msg？ in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492233#M79065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could refer to the following links, they may provide useful information related to your issue:&lt;/P&gt;&lt;P&gt;&lt;A href="http://permalink.gmane.org/gmane.linux.usb.general/104971" title="http://permalink.gmane.org/gmane.linux.usb.general/104971"&gt;[PATCH 1/4] usb: chipidea: udc: refine isr_tr_complete_handler&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://unix.stackexchange.com/questions/109406/how-does-libusb-access-kernel-stuff" title="http://unix.stackexchange.com/questions/109406/how-does-libusb-access-kernel-stuff"&gt;usb - How does libusb access kernel stuff? - Unix &amp;amp; Linux Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/drivers/usb/chipidea/udc.c" title="http://lxr.free-electrons.com/source/drivers/usb/chipidea/udc.c"&gt;Linux/drivers/usb/chipidea/udc.c - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 20:48:51 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2016-05-31T20:48:51Z</dc:date>
    <item>
      <title>imx6ul：how to get the data from usb_control_msg？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492230#M79062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;on pc：when i use the usb_control_msg,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;usb_control_msg(dev, 0x80,0x06, 768, 0, tmp,32,10000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the isr_setup_packet_handler(kernel-source\drivers\usb\chipidea\udc.c)&amp;nbsp; i can get the :&lt;/P&gt;&lt;P&gt;__u8 request = 0x80,&lt;/P&gt;&lt;P&gt;__u8 requesttype = 0x06, &lt;/P&gt;&lt;P&gt;__u16 value = 768,&lt;/P&gt;&lt;P&gt;__u16 index = 0,&lt;/P&gt;&lt;P&gt; __u16 size = 32&lt;/P&gt;&lt;P&gt;by struct usb_ctrlrequest req;&lt;/P&gt;&lt;P&gt;but i don't know how to get the data(tmp) i&amp;nbsp; have send by &lt;SPAN style="color: #e23d39;"&gt;usb_control_msg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 07:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492230#M79062</guid>
      <dc:creator>半醒的狐狸</dc:creator>
      <dc:date>2016-05-23T07:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ul：how to get the data from usb_control_msg？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492231#M79063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please specify which BSP are you using? Are you using any of the existing USB Classes or are you defining a custom USB Device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 00:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492231#M79063</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-05-24T00:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ul：how to get the data from usb_control_msg？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492232#M79064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;BR /&gt;the information is that：&lt;/P&gt;&lt;P&gt;U-Boot 2015.04-imx_v2015.04_3.14.38_6ul_ga+g5d63276 (Aug 18 2015 - 21:32:01)&lt;/P&gt;&lt;P&gt;CPU:&amp;nbsp;&amp;nbsp; Freescale i.MX6UL rev1.0 at 396 MHz&lt;BR /&gt;CPU:&amp;nbsp;&amp;nbsp; Temperature 43 C&lt;BR /&gt;Reset cause: WDOG&lt;BR /&gt;Board: MX6UL 14x14 EVK&lt;BR /&gt;I2C:&amp;nbsp;&amp;nbsp; ready&lt;BR /&gt;DRAM:&amp;nbsp; 512 MiB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when boot up&lt;BR /&gt;i run this:modprobe g_serial&amp;nbsp; use_acm=0&lt;BR /&gt;and connect pc whith micusb.&lt;BR /&gt;on the pc ,i used ilbusb by Qt.&lt;BR /&gt;when connect the usb .i run usb_control_msg(dev, 0x80,0x06, 768, 0, tmp,32,10000);&lt;BR /&gt;i have analyzed the code and found that:&lt;BR /&gt;when i run usb_control_msg on pc .&lt;BR /&gt;i can get the struct usb_ctrlrequest in isr_setup_packet_handler(kernel-source\drivers\usb\chipidea\udc.c)&lt;BR /&gt;in the struct usb_ctrlrequest i can found the :&lt;BR /&gt;__u8 request = 0x80,&lt;BR /&gt;__u8 requesttype = 0x06, &lt;BR /&gt;__u16 value = 768,&lt;BR /&gt;__u16 index = 0,&lt;BR /&gt;__u16 size = 32&lt;/P&gt;&lt;P&gt;but i don't know hwo to get the tmp that i have send by usb_control_msg on pc.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 02:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492232#M79064</guid>
      <dc:creator>半醒的狐狸</dc:creator>
      <dc:date>2016-05-24T02:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ul：how to get the data from usb_control_msg？</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492233#M79065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could refer to the following links, they may provide useful information related to your issue:&lt;/P&gt;&lt;P&gt;&lt;A href="http://permalink.gmane.org/gmane.linux.usb.general/104971" title="http://permalink.gmane.org/gmane.linux.usb.general/104971"&gt;[PATCH 1/4] usb: chipidea: udc: refine isr_tr_complete_handler&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://unix.stackexchange.com/questions/109406/how-does-libusb-access-kernel-stuff" title="http://unix.stackexchange.com/questions/109406/how-does-libusb-access-kernel-stuff"&gt;usb - How does libusb access kernel stuff? - Unix &amp;amp; Linux Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/drivers/usb/chipidea/udc.c" title="http://lxr.free-electrons.com/source/drivers/usb/chipidea/udc.c"&gt;Linux/drivers/usb/chipidea/udc.c - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 20:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ul-how-to-get-the-data-from-usb-control-msg/m-p/492233#M79065</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2016-05-31T20:48:51Z</dc:date>
    </item>
  </channel>
</rss>

