<?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: LPC1768 usb OTG + external hid keyboard  - problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621092#M24317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg Le,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the Keil Library, I would recommend you to contact the Keil Support team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.keil.com/support/" title="http://www.keil.com/support/"&gt;Keil Product Support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 21:03:25 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2017-01-18T21:03:25Z</dc:date>
    <item>
      <title>LPC1768 usb OTG + external hid keyboard  - problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621091#M24316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Freinds!&lt;BR /&gt;The problem with enumerating HID keyboard on the LPC1768. I connect the keyboard to the USB LPC1768 host. I am using the code library from Keil. At power LCP1768 start working with the keyboard correctly. But if I extract the keyboard and connect keyboard again - its doesnt work. Maybe its impossible to hot connection of keyboard to MCU?&lt;BR /&gt;My code below:&lt;/P&gt;&lt;P&gt;void USBH_Thread (void const *arg) {&lt;BR /&gt; char con = 0; /* Connection status of keyboard */&lt;BR /&gt; char con_ex = 40; /* Previous connection status + initial time in 100 ms intervals for initial display */&lt;BR /&gt; uint8_t out[64]; /* Output to keyboard LEDs */&lt;BR /&gt;out[0]=1; &lt;BR /&gt;USBH_Initialize (0); /* Initialize USB Host 0 */&lt;BR /&gt; &lt;BR /&gt; while (1) { &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;con = USBH_HID_GetDeviceStatus(0) == usbOK; /* Get kbd connection status */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ((con ^ con_ex) &amp;amp; 1) { /* If connection status changed */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (con) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USBH_HID_Write (0,(uint8_t *)&amp;amp;out,1);/* Turn on NUM LED */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf ("\nKeyboard connected\n");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf ("\nKeyboard disconnected ...\n");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;con_ex = con;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} else if (con_ex &amp;gt; 1) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;con_ex -= 2; /* Decrement initial time */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ((con_ex &amp;lt;= 1) &amp;amp;&amp;amp; (!con)) {&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf ("\nNo keyboard connected ... \n");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;con_ex = con;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;osDelay(200);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;osDelay(100);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;osThreadDef(USBH_Thread, osPriorityNormal, 1, NULL);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 12:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621091#M24316</guid>
      <dc:creator>olegle</dc:creator>
      <dc:date>2017-01-16T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 usb OTG + external hid keyboard  - problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621092#M24317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg Le,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the Keil Library, I would recommend you to contact the Keil Support team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.keil.com/support/" title="http://www.keil.com/support/"&gt;Keil Product Support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 21:03:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621092#M24317</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-01-18T21:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 usb OTG + external hid keyboard  - problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621093#M24318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Carlos!&lt;/P&gt;&lt;P&gt;Ok, thanks a lot, i'll ask Keil support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Четверг, 19 января 2017, 0:03 +03:00 от Carlos_Mendoza &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;gt;Re: LPC1768 usb OTG + external hid keyboard&amp;nbsp; - problem&lt;/P&gt;&lt;P&gt;&amp;gt;reply from  Carlos_Mendoza in  LPC -  View the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621093#M24318</guid>
      <dc:creator>olegle</dc:creator>
      <dc:date>2017-01-23T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 usb OTG + external hid keyboard  - problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621094#M24319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;I have the same problem with you. do you have solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 01:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/621094#M24319</guid>
      <dc:creator>承王</dc:creator>
      <dc:date>2017-09-08T01:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 usb OTG + external hid keyboard  - problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/1396868#M47585</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am using lpc1768 based custom board with hid keyboard application.&lt;/P&gt;&lt;P&gt;it works well normally. but not working when pc returns from sleep.&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help to fix this...is it problem with windows driver/settings? or can we fix at embedded side?&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;elavarasan.s&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 18:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-usb-OTG-external-hid-keyboard-problem/m-p/1396868#M47585</guid>
      <dc:creator>elavarasanselvaraj</dc:creator>
      <dc:date>2022-01-10T18:41:01Z</dc:date>
    </item>
  </channel>
</rss>

