<?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>MQX Software SolutionsのトピックRe: USB Host with CDC ACM, how do I change interfaces?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192515#M3856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also working on a modem with multiple (7) CDC interfaces. We found that the following configuration values had to be changed to get the interfaces working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBCFG_MAX_PIPES&amp;nbsp; &lt;/P&gt;&lt;P&gt;USBCFG_KHCI_TR_QUE_MSG_CNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of pipes is 1 + (3 * num_of_cdc_interfaces), the transaction queue size is a bit of a trial-and-error. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Mar 2013 22:19:34 GMT</pubDate>
    <dc:creator>alipoth</dc:creator>
    <dc:date>2013-03-03T22:19:34Z</dc:date>
    <item>
      <title>USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192507#M3848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to talk to a 3G modem using MQX3.8 with the cdc_serial demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trouble that I have been having is that after the modem is attached, the data interface is selected.&amp;nbsp; I want to select the control interface so that I can issue AT commands to the modem.&amp;nbsp; Here is what I get from the console when the modem is attached:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----- CDC control interface attach Event -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;State = attached&amp;nbsp; Class = 2&amp;nbsp; SubClass = 2&amp;nbsp; Protocol = 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----- CDC data interface attach event -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;State = attached&amp;nbsp; Class = 10&amp;nbsp; SubClass = 0&amp;nbsp; Protocol = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----- CDC control interface selected -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----- Device installed -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----- CDC data interface selected -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, the example code then issues an "fopen()" to "tty0:" which translates to a "_io_cdc_serial_open()".&amp;nbsp; As far as I can tell, I need to select the control interface with "_usb_hostdev_select_interface()" before using fopen() as it is only possible to select one interface at a time - once the data interface is selected I cannot talk to the control interface.&amp;nbsp; Have I got this right or have I missed something?&amp;nbsp; Anyway, doing this causes exceptions or unhandled interrupts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Incidentally, the data interface of the modem does not echo characters back.&amp;nbsp; I'm not surprised at that but I notice that the demo description seems to infere that I should get echo's "straight out of the box" so to speak.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any help here or at least confirmation that I'm on the right track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 11:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192507#M3848</guid>
      <dc:creator>yibbidy</dc:creator>
      <dc:date>2012-08-29T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192508#M3849</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;The fopen() opens the device. Inside the driver, the data interface and the control interface are bound together, so if you want to change the interface settings (baudrate etc.), use the standard IOCTL associated with the file.&lt;/P&gt;&lt;P&gt;The class driver will find the control interface and configures it. The with read() and write() it accesses the data interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 12:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192508#M3849</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2012-10-16T12:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192509#M3850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply MartinK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still need to be able to access the control interface of the modem as I need to send commands to it.&amp;nbsp; For example, I might need to send a dial string such as "ATD12345", or a send an SMS text message, or request some status information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reconfiguring the modem to use one of it's UARTs as the control interface, but keep the data interface on USB (for speed).&amp;nbsp; Interestingly, the CDC demo still enumerates a control interface and a data interface for this configuration.&amp;nbsp; I still don't get any characters echoed back in either way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 05:28:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192509#M3850</guid>
      <dc:creator>yibbidy</dc:creator>
      <dc:date>2012-12-22T05:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192510#M3851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the control interface is not there for controlling the device with AT commands. You should send these commands to the standard data interface= sending data to the open usb_serial file as I mentioned.&lt;/P&gt;&lt;P&gt;Or I did not understand you properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 10:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192510#M3851</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2013-01-02T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192511#M3852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; There may be some misunderstanding of terminology on my part here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USB modem has a "data interface" and a "control interface" that should work over a single USB connection.&amp;nbsp; The modems control interface is for sending AT commands, the data interface is for data.&amp;nbsp; From what you are saying, the CDC ACM "control interface" is for controlling the USB channel, not for accessing the modem's "control interface"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can configure the USB modem to have it's "control interface" on a UART, and have it's "data interface" on the USB interface, or even another UART.&amp;nbsp; Having the "control interface" on a UART would suit my purpose as long as I can have the "data interface" on USB as I need a high speed connection.&amp;nbsp; I have tried this previously and have still not been able to get any characters to echo back using the CDC demo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have another look at it now that I understand that the CDC demo "control interface" is not talking to the USB modems "control interface".&amp;nbsp; Confusing terminology!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 21:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192511#M3852</guid>
      <dc:creator>yibbidy</dc:creator>
      <dc:date>2013-01-02T21:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192512#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shaun (excuse me for calling you by surname previously),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked a bit into the specification and &lt;STRONG&gt;you were right&lt;/STRONG&gt; with AT commands. Unfortunatelly the API in MQX is not ready for sending AT commands through control interface and must be implemented. :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192512#M3853</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2013-01-03T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192513#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for chasing that up for me Juraj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now know not to persevere with that path which will save a lot of time.  I'll have a look at using one of the modems UARTs as the control interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaun James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192513#M3854</guid>
      <dc:creator>yibbidy</dc:creator>
      <dc:date>2013-01-03T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192514#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaun James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on the same problem as you were / are. My UMTS modul is not responding on USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a u-blox LISA-230 UMTS module which comes up with in total 5 cdc interfaces, data and control, using the cdc_serial demo. I have only tty0 working, because im still in the debug process to make the four others to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to understand the difference between the two types of interfaces. Could you tell, what the control interfaces is actually controlling? Researching in serveral different USB books, wikipedia or Google could not answer this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is your application running now?&amp;nbsp; What modul are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 11:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192514#M3855</guid>
      <dc:creator>ThomNet</dc:creator>
      <dc:date>2013-03-03T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host with CDC ACM, how do I change interfaces?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192515#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also working on a modem with multiple (7) CDC interfaces. We found that the following configuration values had to be changed to get the interfaces working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBCFG_MAX_PIPES&amp;nbsp; &lt;/P&gt;&lt;P&gt;USBCFG_KHCI_TR_QUE_MSG_CNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of pipes is 1 + (3 * num_of_cdc_interfaces), the transaction queue size is a bit of a trial-and-error. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 22:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-with-CDC-ACM-how-do-I-change-interfaces/m-p/192515#M3856</guid>
      <dc:creator>alipoth</dc:creator>
      <dc:date>2013-03-03T22:19:34Z</dc:date>
    </item>
  </channel>
</rss>

