<?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>i.MX Processors中的主题 Re: USB 2.0 Compliant Test In Host mode</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894996#M135276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, my apologize! The actual test layer is hub, because the host1 controller core in my test board has connect to a High Speeed Hub with 4 DownStream facing port. But the signal provided by host does not transmit to hub's port. What should i do next？ Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2019 09:40:58 GMT</pubDate>
    <dc:creator>bakbad</dc:creator>
    <dc:date>2019-04-17T09:40:58Z</dc:date>
    <item>
      <title>USB 2.0 Compliant Test In Hub Layer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894993#M135273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp; set some registers to do the usb 2.0 compliant test. After I set the USBCMD and PORTSC registers with host1 controller core(The host1 core has connect to a High Speed HUB&amp;nbsp; with 4 downstream facing port), there had no correct signal on oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBCMD = 0x00080B00&lt;/P&gt;&lt;P&gt;PORTSC = 0x1C041000(Test_Packet mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had you ever configed registers to done the usb 2.0 compliant test?&amp;nbsp; Could you please help me. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 12:31:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894993#M135273</guid>
      <dc:creator>bakbad</dc:creator>
      <dc:date>2019-04-15T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: USB 2.0 Compliant Test In Host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894994#M135274</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;&amp;nbsp; Please refer to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;“I.MX6 series USB Certification Guides”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-105609"&gt;https://community.nxp.com/docs/DOC-105609&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 06:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894994#M135274</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-04-16T06:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: USB 2.0 Compliant Test In Host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894995#M135275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i can change the OTG CORE's PORTSC1(0x02184184) PTC(bit 19-16) to 4(Test_Packet mode), but can't change the Host1 CORE's PORTSC1(0x02184384) PTC field(always be 0x0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the devmem tool to change these value, But when applied to H1 Core, it didn't work.(The test board had just use OTG Core and H1 Core).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;bo xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 08:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894995#M135275</guid>
      <dc:creator>bakbad</dc:creator>
      <dc:date>2019-04-16T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB 2.0 Compliant Test In Host mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894996#M135276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, my apologize! The actual test layer is hub, because the host1 controller core in my test board has connect to a High Speeed Hub with 4 DownStream facing port. But the signal provided by host does not transmit to hub's port. What should i do next？ Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894996#M135276</guid>
      <dc:creator>bakbad</dc:creator>
      <dc:date>2019-04-17T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: USB 2.0 Compliant Test In Hub Layer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894997#M135277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello eveyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved this problem with a simple program usb_settestmode.c&amp;nbsp; Also one can change this program to set the host to get into Test Mode with changing the Tier 2 Hub Address to Root Hub Address(host), but i do not confirmed that. If someone tried please tell me the results. Thanks anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;* Filename: usb_settestmode.c&lt;BR /&gt; * USB 2.0一致性测试&lt;BR /&gt; * 设置Hub port进入Test Mode&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;fcntl.h&amp;gt;&lt;BR /&gt;#include &amp;lt;errno.h&amp;gt;&lt;BR /&gt;#include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;BR /&gt;#include &amp;lt;asm/byteorder.h&amp;gt;&lt;BR /&gt;#include &amp;lt;sys/ioctl.h&amp;gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; int fd, ret;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* the request is come from the USB 2.0 Specification */&lt;/P&gt;&lt;P&gt;struct usbdevfs_ctrltransfer test_req = {&lt;BR /&gt; .bRequestType = 0x23,&lt;BR /&gt; .bRequest = 3, // SET_FEATURE&lt;BR /&gt; .wValue = 21, // PORT_TEST&lt;BR /&gt; .wIndex = 0x0401, // Test_Packet And Port 1&lt;BR /&gt; .wLength = 0,&lt;BR /&gt; .timeout = 1000,&lt;BR /&gt; }; &lt;/P&gt;&lt;P&gt;fd = open("/dev/bus/usb/001/002", O_RDWR); // Tier2 Hub Address(Or you change this to Root Hub's Address)&lt;BR /&gt; if (fd &amp;lt; 0) {&lt;BR /&gt; perror("open");&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ret = ioctl(fd, USBDEVFS_CONTROL, &amp;amp;test_req);&lt;BR /&gt; if (ret &amp;lt; 0) {&lt;BR /&gt; perror("ioctl");&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 08:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-2-0-Compliant-Test-In-Hub-Layer/m-p/894997#M135277</guid>
      <dc:creator>bakbad</dc:creator>
      <dc:date>2019-04-18T08:21:47Z</dc:date>
    </item>
  </channel>
</rss>

