<?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のトピックGadget detect VBUS condition</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286613#M33849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using iMX53 qsb with Linux 2.6.35 kernel now. I enable USB gadget function(g_hid) to send data from board device(gadget) to PC host. The data transfer function is OK. but when I plug out device(gadget), I can't receive any "device(gadget) plug out" message from system, also including "device(gadget) plug in". Are there any APIs in user space or any modification in drivers to help to receive plug condition? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Any pointers or idea would be greatly appreciated.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thenk you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 06:11:55 GMT</pubDate>
    <dc:creator>gyuanh</dc:creator>
    <dc:date>2013-03-07T06:11:55Z</dc:date>
    <item>
      <title>Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286613#M33849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using iMX53 qsb with Linux 2.6.35 kernel now. I enable USB gadget function(g_hid) to send data from board device(gadget) to PC host. The data transfer function is OK. but when I plug out device(gadget), I can't receive any "device(gadget) plug out" message from system, also including "device(gadget) plug in". Are there any APIs in user space or any modification in drivers to help to receive plug condition? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Any pointers or idea would be greatly appreciated.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thenk you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 06:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286613#M33849</guid>
      <dc:creator>gyuanh</dc:creator>
      <dc:date>2013-03-07T06:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286614#M33850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,gyuan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you install driver for i.MX53 on windows ? If not, you can download MFG Tool for FSL'S offical website . After decompressing MFG Tool, you can find driver path. Here is Freescale iMX53 BULK IO driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So please install it , then try it on your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 08:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286614#M33850</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-03-12T08:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286615#M33851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gyuan Hsieh, does the answer from Weidong help you? If yes, please click Correct Answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 06:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286615#M33851</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2013-03-15T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286616#M33852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Weidong :&lt;/P&gt;&lt;P&gt;I need to know gadget(g_hid) plug state in Linux, not in Window, I don't know why to use BULK driver, and g_hid is Interrupt tranfer type.&lt;/P&gt;&lt;P&gt;Reference to "i.MX53 Multimedia Applications Processor Reference Manual" p4484 VBUSVLD bit may show VBUS condition, but I don't know how to read it currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286616#M33852</guid>
      <dc:creator>gyuanh</dc:creator>
      <dc:date>2013-03-15T09:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286617#M33853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,Gyuan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OK, Got it !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When plug USB OTG cable, The level on USB_OTG_ID pin will be changed, it is connect it to PC USB, the level should be 2.5V, if it is disconnected ,the level should be Low, so if you select "USB OTG pin detect support" in linux kernel, you should detect OTG cable status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286617#M33853</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-03-15T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286618#M33854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Weidong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this article "USB gadget drivers hangs when the USB connector is unplugged: i.MX53 Quick Start Board"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="248703" data-objecttype="1" href="https://community.freescale.com/thread/248703"&gt;https://community.freescale.com/thread/248703&lt;/A&gt;&lt;SPAN&gt;), I need to disable "USB OTG pin detect support" to avoid hang problem,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I should&amp;nbsp; append a GPIO to detect VBUS contion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you of your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 07:30:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286618#M33854</guid>
      <dc:creator>gyuanh</dc:creator>
      <dc:date>2013-03-19T07:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget detect VBUS condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286619#M33855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,gyuan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, I agree with you ,too. you can use a gpio , I drew a simple schematic and pasted it here for you a reference.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 06:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-detect-VBUS-condition/m-p/286619#M33855</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-03-20T06:02:14Z</dc:date>
    </item>
  </channel>
</rss>

