<?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 MQX CDC ACM Communication in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244234#M6932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to connect a USB CDC ACM modem device to the MCU. I have to send and receive data packets to and from modem through USB interface. My modem device is having a UART interface for controlling the modem with AT commands. I have gone through MQX example for USB host CDC device. In this example, as per my understanding, after reading data from UART hyper-terminal, it will&amp;nbsp; write to the device through USB interface. And after reading data from the device through USB interface, it will display the data in hyper-terminal by UART.&lt;/P&gt;&lt;P&gt;For me i need to send a data buffer to modem. For this can i pass data "myBuffer" directly to the below API in the cdc_serial.c,without using UART APIs? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fwrite( myBuffer, sizeof(buffer[0]), num, f_usb);in the cdc_serial.c ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly For reading data from modem to my local buffer, can i directly use the API &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fread(myBuffer, 1, sizeof(myBuffer) / sizeof(myBuffer[0]) - num, f_usb);?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the enumeration should be done with this example code cdc_serial.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have much idea about the CDC ACM communication.&lt;/P&gt;&lt;P&gt;One&amp;nbsp; basic question,&lt;/P&gt;&lt;P&gt;What is the relation between CDC ACM device and USB COM communication? I went through different documents, still i have some confusion.&lt;/P&gt;&lt;P&gt;When i connect a cdc device to the host MCU, the device will be considered as a USB device or UART device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 07:27:25 GMT</pubDate>
    <dc:creator>kirankunnath</dc:creator>
    <dc:date>2013-10-29T07:27:25Z</dc:date>
    <item>
      <title>MQX CDC ACM Communication</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244234#M6932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to connect a USB CDC ACM modem device to the MCU. I have to send and receive data packets to and from modem through USB interface. My modem device is having a UART interface for controlling the modem with AT commands. I have gone through MQX example for USB host CDC device. In this example, as per my understanding, after reading data from UART hyper-terminal, it will&amp;nbsp; write to the device through USB interface. And after reading data from the device through USB interface, it will display the data in hyper-terminal by UART.&lt;/P&gt;&lt;P&gt;For me i need to send a data buffer to modem. For this can i pass data "myBuffer" directly to the below API in the cdc_serial.c,without using UART APIs? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fwrite( myBuffer, sizeof(buffer[0]), num, f_usb);in the cdc_serial.c ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly For reading data from modem to my local buffer, can i directly use the API &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fread(myBuffer, 1, sizeof(myBuffer) / sizeof(myBuffer[0]) - num, f_usb);?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the enumeration should be done with this example code cdc_serial.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have much idea about the CDC ACM communication.&lt;/P&gt;&lt;P&gt;One&amp;nbsp; basic question,&lt;/P&gt;&lt;P&gt;What is the relation between CDC ACM device and USB COM communication? I went through different documents, still i have some confusion.&lt;/P&gt;&lt;P&gt;When i connect a cdc device to the host MCU, the device will be considered as a USB device or UART device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 07:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244234#M6932</guid>
      <dc:creator>kirankunnath</dc:creator>
      <dc:date>2013-10-29T07:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: MQX CDC ACM Communication</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244235#M6933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All , I will ask the same issue in a better way.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I need to connect a USB CDC ACM modem device to the MCU-tWRK60D100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modem-MCU is having 2 communication interface. One usb and one UART.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have to send and receive data to and from modem through USB interface .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And UART interface for controlling the modem with AT commands.&lt;/P&gt;&lt;P&gt;I have few queries regarding this setup. I will ask one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I don't have much idea about the CDC ACM communication. So One&amp;nbsp; basic question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i connect a cdc device(Modem) to the host MCU, the device will be considered as&lt;/P&gt;&lt;P&gt;a USB device or UART device?&lt;/P&gt;&lt;P&gt;In the MQX CDC serial example, usb device is open using "tty0".ie will the device&amp;nbsp; &lt;/P&gt;&lt;P&gt;use one physical serial port of the MCU? OR&lt;/P&gt;&lt;P&gt;when we connect the cdc device, the usb device will be appeared as "tty0"?&lt;/P&gt;&lt;P&gt;Can we change this name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) My Modem has 2 USB interfaces. One for sending AT commands and one for data.&lt;/P&gt;&lt;P&gt;I thought of using USB for data transfer and separate UART for AT commands. If the &lt;/P&gt;&lt;P&gt;USB CDC acm device itself&amp;nbsp; will use a separate serial port, i have shortage of UART channels. &lt;/P&gt;&lt;P&gt;In this case i have to use only USB with 2 different interface. &lt;/P&gt;&lt;P&gt;( Interface 0 for AT commands and interface 1 for data). Please comment on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) How to change these interfaces in the example code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I have gone through MQX example for USB host CDC device. In this, as per my understanding, &lt;/P&gt;&lt;P&gt;after reading data from UART hyper-terminal, it will&amp;nbsp; write to the device through USB. &lt;/P&gt;&lt;P&gt;And after reading data from the device through USB, it will display the data in hyper-terminal by UART. Am i right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) For me i need to send a data buffer to modem. For this can i pass data "myBuff" directly &lt;/P&gt;&lt;P&gt;to the below API in the cdc_serial.c,without using UART APIs?&lt;/P&gt;&lt;P&gt; fwrite( myBuff, sizeof(myBuff), num, f_usb) in cdc_serial.c ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly For reading data from modem to my local buffer, can i directly use the API&lt;/P&gt;&lt;P&gt;fread(myBuff, 1, sizeof(myBuff), f_usb)&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) All the enumeration should be done with this example code cdc_serial.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve these issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 04:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244235#M6933</guid>
      <dc:creator>kirankunnath</dc:creator>
      <dc:date>2013-12-05T04:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX CDC ACM Communication</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244236#M6934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt; customized USB communication through a Virtual COM (CDC ACM). It is based o&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;n a 8-bits microcontroller - particularly MC9S08JS family -&lt;/SPAN&gt; working on CodeWarrior Development Studio 10.3. Although it is not a MQX application, it could be useful to understand better how this USB class works. I have just shared this project as well as attaching some files. You can find this document opening my profile or browsing the following tags: cdc usb microcontroller 8-bits mc9s08js.&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, check out it and let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I hope it can help you.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mauricio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Dec 2013 13:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-CDC-ACM-Communication/m-p/244236#M6934</guid>
      <dc:creator>mauricioscalera</dc:creator>
      <dc:date>2013-12-07T13:51:40Z</dc:date>
    </item>
  </channel>
</rss>

