<?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のトピックHandling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1389825#M184764</link>
    <description>&lt;P&gt;I would like to create a Host Application in FreeRTOS which supports the attachment of Multiple CDC class Devices connected through the USB HU&lt;/P&gt;&lt;P&gt;There is an example (e.g. the HID mouse example and mouse+keyboard examples)I have gone through it but it seems that it works with a device connected via HUB, but the examples only support one device instance within each class (separate mouse and keyboard tasks).&lt;/P&gt;&lt;P&gt;If I would like to create an only a single thread to handle Multiple CDC class USB devices. What and all the modifications are required in the USB protocol stack.?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to design an application to support multiple devices of the same class?&lt;/P&gt;&lt;P&gt;Do you have any example projects?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 05:17:55 GMT</pubDate>
    <dc:creator>venkataddagatla</dc:creator>
    <dc:date>2021-12-21T05:17:55Z</dc:date>
    <item>
      <title>Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1389825#M184764</link>
      <description>&lt;P&gt;I would like to create a Host Application in FreeRTOS which supports the attachment of Multiple CDC class Devices connected through the USB HU&lt;/P&gt;&lt;P&gt;There is an example (e.g. the HID mouse example and mouse+keyboard examples)I have gone through it but it seems that it works with a device connected via HUB, but the examples only support one device instance within each class (separate mouse and keyboard tasks).&lt;/P&gt;&lt;P&gt;If I would like to create an only a single thread to handle Multiple CDC class USB devices. What and all the modifications are required in the USB protocol stack.?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to design an application to support multiple devices of the same class?&lt;/P&gt;&lt;P&gt;Do you have any example projects?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 05:17:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1389825#M184764</guid>
      <dc:creator>venkataddagatla</dc:creator>
      <dc:date>2021-12-21T05:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1392104#M185049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99149"&gt;@venkataddagatla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer to the attachment and this guide.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Implementation-of-Dual-USB-Host-on-RT1060-EVK/ta-p/1321021" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Implementation-of-Dual-USB-Host-on-RT1060-EVK/ta-p/1321021&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 06:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1392104#M185049</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-12-27T06:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1393061#M185163</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Actually i was asked about the same class device handling at Host application . As i am using FREERTOS at host application and i want to connect multiple CDC class USB devices to the Host via USB HUB on one USB host port.&lt;/P&gt;&lt;P&gt;I was looking the sample code "evkmimxrt1170_host_hid_mouse_keyboard_freertos_cm7" here, 2 different USB class devices are being used and 2 tasks are created to handle Mouse and Keyboard.&lt;/P&gt;&lt;P&gt;/**Snippet***/&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;USB_HostApplicationInit();&lt;/P&gt;&lt;P&gt;if (xTaskCreate(USB_HostTask, "usb host task", 2000L / sizeof(portSTACK_TYPE), g_HostHandle, 4, NULL) != pdPASS)&lt;BR /&gt;{&lt;BR /&gt;usb_echo("create host task error\r\n");&lt;BR /&gt;}&lt;BR /&gt;if (xTaskCreate(USB_HostApplicationMouseTask, "mouse task", 2000L / sizeof(portSTACK_TYPE), &amp;amp;g_HostHidMouse, 3,&lt;BR /&gt;NULL) != pdPASS)&lt;BR /&gt;{&lt;BR /&gt;usb_echo("create mouse task error\r\n");&lt;BR /&gt;}&lt;BR /&gt;if (xTaskCreate(USB_HostApplicationKeyboardTask, "keyboard task", 2000L / sizeof(portSTACK_TYPE),&lt;BR /&gt;&amp;amp;g_HostHidKeyboard, 3, NULL) != pdPASS)&lt;BR /&gt;{&lt;BR /&gt;usb_echo("create mouse task error\r\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;vTaskStartScheduler();&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;{&lt;BR /&gt;;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;*********************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is if i want to connect multiple HID_Mouse USB device to Host, how that can be handled in the single thread. And how the differentiation will be done with other same class of USB device( like HIB_Mouse).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 12:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1393061#M185163</guid>
      <dc:creator>venkataddagatla</dc:creator>
      <dc:date>2021-12-29T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1393495#M185246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99149"&gt;@venkataddagatla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There isn't such example. But I think this is no problem. Because each CDC device has a instance. In a thread, you can polling each instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 07:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1393495#M185246</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-12-31T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1395345#M185465</link>
      <description>&lt;P&gt;But it is difficult to maintain the CDC instance for each USB device because we can not able to identify on what address the USB devices are registered.&lt;/P&gt;&lt;P&gt;If we want to poll the no of USB CDC devices in single thread, how we can identify the device address to poll each.&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 4 displays and 4 keypads connected to the USB CDC host.&lt;/P&gt;&lt;P&gt;How i can poll separately because we are not sure on which address the display and keypads will register.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1395345#M185465</guid>
      <dc:creator>venkataddagatla</dc:creator>
      <dc:date>2022-01-06T06:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1397209#M185647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99149"&gt;@venkataddagatla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There isn't multi CDC host example, but there is a host_hid_mouse_dual example in SDK. The way to deal with multi device is same. You can refer to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 08:17:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1397209#M185647</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-01-11T08:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple cdc class usb devices from Host application in FreeRtos(in single task)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1424408#M187933</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99149"&gt;@venkataddagatla&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Any luck for the multiple CDC devices support on the Host side?&lt;/P&gt;&lt;P&gt;I have the same question. I'm working on a USB host application based on RT1052, with 4 CDC devices connected simultaneously (via a USB hub).&lt;/P&gt;&lt;P&gt;I followed the USB Host HID Mouse &amp;amp; Keyboard example, however, still can only get the first CDC device started.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 08:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Handling-multiple-cdc-class-usb-devices-from-Host-application-in/m-p/1424408#M187933</guid>
      <dc:creator>Mincho</dc:creator>
      <dc:date>2022-03-08T08:14:39Z</dc:date>
    </item>
  </channel>
</rss>

