<?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: Using CDC Class device with Linux</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201690#M4585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lsusb -v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Bus 009 Device 002: ID 2504:0300  Device Descriptor:  bLength                18  bDescriptorType         1  bcdUSB               2.00  bDeviceClass            2 Communications  bDeviceSubClass         0   bDeviceProtocol         0   bMaxPacketSize0        64  idVendor           0x2504   idProduct          0x0300   bcdDevice            0.02  iManufacturer           1   iProduct                2   iSerial                 0   bNumConfigurations      1  Configuration Descriptor:    bLength                 9    bDescriptorType         2    wTotalLength           67    bNumInterfaces          2    bConfigurationValue     1    iConfiguration          0     bmAttributes         0xc0      Self Powered    MaxPower              100mA    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        0      bAlternateSetting       0      bNumEndpoints           1      bInterfaceClass         2 Communications      bInterfaceSubClass      2 Abstract (modem)      bInterfaceProtocol      0 None      iInterface              0       CDC Header:        bcdCDC               1.10      CDC Call Management:        bmCapabilities       0x01          call management        bDataInterface          1      CDC ACM:        bmCapabilities       0x06          sends break          line coding and serial state      CDC Union:        bMasterInterface        0        bSlaveInterface         1       Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x81  EP 1 IN        bmAttributes            3          Transfer Type            Interrupt          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0010  1x 16 bytes        bInterval              10    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        1      bAlternateSetting       0      bNumEndpoints           2      bInterfaceClass        10 CDC Data      bInterfaceSubClass      0 Unused      bInterfaceProtocol      0       iInterface              0       Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x82  EP 2 IN        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0040  1x 64 bytes        bInterval               0      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x03  EP 3 OUT        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0040  1x 64 bytes        bInterval               0can't get device qualifier: Operation not permittedcan't get debug descriptor: Operation not permittedcannot read device status, Operation not permitted (1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 17:08:07 GMT</pubDate>
    <dc:creator>Nouchi</dc:creator>
    <dc:date>2010-06-04T17:08:07Z</dc:date>
    <item>
      <title>Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201686#M4581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MQX3.5.1 CDC virtual com exemple program with M52259demo board, working fine with windows, and I would like to know how to use it with ubuntu system.&lt;/P&gt;&lt;P&gt;I'm looking for exemples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 22:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201686#M4581</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-05-18T22:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201687#M4582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add some logs informations.&lt;/P&gt;&lt;P&gt;When I plug M52259demo USB&amp;lt;-&amp;gt;232 bridge I've got :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[  780.570063] usb 9-1: new full speed USB device using ohci_hcd and address 2
[  780.806436] usb 9-1: configuration #1 chosen from 1 choice
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and nothing else, no device created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to plug FTDI chip:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[ 1157.490823] usb 2-5.4: new full speed USB device using ehci_hcd and address 7
[ 1157.607627] usb 2-5.4: configuration #1 chosen from 1 choice
[ 1157.610725] ftdi_sio 2-5.4:1.0: FTDI USB Serial Device converter detected
[ 1157.610921] usb 2-5.4: Detected FT232RL
[ 1157.610927] usb 2-5.4: Number of endpoints 2
[ 1157.610933] usb 2-5.4: Endpoint 1 MaxPacketSize 64
[ 1157.610940] usb 2-5.4: Endpoint 2 MaxPacketSize 64
[ 1157.610945] usb 2-5.4: Setting MaxPacketSize 64
[ 1157.611531] usb 2-5.4: FTDI USB Serial Device converter now attached to ttyUSB0
&lt;/PRE&gt;&lt;P&gt;I can see ftdi_sio module loaded and ttyUSB0 device added, so what is missing to get new tty device with USB-232 bridge demo?&lt;/P&gt;&lt;P&gt;I also tried to load usbserial&amp;nbsp; module vith VID=0x2504 &amp;amp; PID=0x0300 without any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 21:59:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201687#M4582</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-05-19T21:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201688#M4583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say that new module is dynamically loaded, then you should be able to use new port. What happens when fopen-ing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 15:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201688#M4583</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-06-03T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201689#M4584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't do fopen, because there's no ttyUSB device created, because no module loaded.&lt;/P&gt;&lt;P&gt;lsusb gives:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Bus 009 Device 005: ID 2504:0300&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;We can see there's no identification string, seem's to be weird?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With an FTDI and TI TUSB device it gives :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Bus 008 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 009 Device 003: ID 0451:3410 Texas Instruments, Inc. TUSB3410 Microcontroller&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only, usbserial ftd_sio and TI module were loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;lsmod
ftdi_sio               37981  0
ti_usb_3410_5052       26227  0
usbserial              39067  2 ti_usb_3410_5052,ftdi_sio&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With FTDI devices it load ftdi_sio module, with TI TUSB chip it load ti_usb_3410_5052 module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which (generic?)module should be loaded with usbserial?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emmanuel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 15:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201689#M4584</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-06-04T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201690#M4585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lsusb -v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Bus 009 Device 002: ID 2504:0300  Device Descriptor:  bLength                18  bDescriptorType         1  bcdUSB               2.00  bDeviceClass            2 Communications  bDeviceSubClass         0   bDeviceProtocol         0   bMaxPacketSize0        64  idVendor           0x2504   idProduct          0x0300   bcdDevice            0.02  iManufacturer           1   iProduct                2   iSerial                 0   bNumConfigurations      1  Configuration Descriptor:    bLength                 9    bDescriptorType         2    wTotalLength           67    bNumInterfaces          2    bConfigurationValue     1    iConfiguration          0     bmAttributes         0xc0      Self Powered    MaxPower              100mA    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        0      bAlternateSetting       0      bNumEndpoints           1      bInterfaceClass         2 Communications      bInterfaceSubClass      2 Abstract (modem)      bInterfaceProtocol      0 None      iInterface              0       CDC Header:        bcdCDC               1.10      CDC Call Management:        bmCapabilities       0x01          call management        bDataInterface          1      CDC ACM:        bmCapabilities       0x06          sends break          line coding and serial state      CDC Union:        bMasterInterface        0        bSlaveInterface         1       Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x81  EP 1 IN        bmAttributes            3          Transfer Type            Interrupt          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0010  1x 16 bytes        bInterval              10    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        1      bAlternateSetting       0      bNumEndpoints           2      bInterfaceClass        10 CDC Data      bInterfaceSubClass      0 Unused      bInterfaceProtocol      0       iInterface              0       Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x82  EP 2 IN        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0040  1x 64 bytes        bInterval               0      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x03  EP 3 OUT        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0040  1x 64 bytes        bInterval               0can't get device qualifier: Operation not permittedcan't get debug descriptor: Operation not permittedcannot read device status, Operation not permitted (1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 17:08:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201690#M4585</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-06-04T17:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using CDC Class device with Linux</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201691#M4586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a solution to makes my M52259DEMO Kit to be recognized as &lt;STRONG&gt;&lt;EM&gt;ttyACM0&lt;/EM&gt;&lt;/STRONG&gt;, by changing a definition in &lt;STRONG&gt;g_config_descriptor&lt;/STRONG&gt; table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//#define CIC_PROTOCOL_CODE                NO_CLASS_SPECIFIC_PROTOCOL#define CIC_PROTOCOL_CODE                AT_250_PROTOCOL&lt;/PRE&gt;&lt;P&gt;It seems Linux USB enumerator needs some protocol definition.&lt;/P&gt;&lt;P&gt;This change doesn't affect behaviour with windows.&lt;/P&gt;&lt;P&gt;I performed some successful test with hyperterminal and minicom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 20:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-CDC-Class-device-with-Linux/m-p/201691#M4586</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-06-23T20:15:25Z</dc:date>
    </item>
  </channel>
</rss>

