<?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 CDC and MSD</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740024#M17706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then now,&lt;/P&gt;&lt;P&gt;Like indicated in my new post here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/996344"&gt;https://community.nxp.com/message/996344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to get a Bluetooth dongle which work directly in USB (Host or Device) CDC serial....&lt;/P&gt;&lt;P&gt;This product exist in the market, but too expensive.. Maybe NXP has solution to do it with a no expensive Kinetis series...?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2018 08:36:37 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2018-03-16T08:36:37Z</dc:date>
    <item>
      <title>USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740017#M17699</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;We developed a project few years ago (2015/2016) based on Kinetis K70, MQX 4.1.1 with Kds 3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this Platform, we used the USB to plug an USB key (Mass storage) . This key can be need in many step in the product life:&lt;/P&gt;&lt;P&gt;- On first startup, when external flash is empty, we look for on the Key to copy some file needed for our application (Ressources for PEG Library)&lt;/P&gt;&lt;P&gt;- On product live, we could need to copy some application file from/to USB Key / external flash.&lt;/P&gt;&lt;P&gt;So we use also the MFS part..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we need to add a Bluetooth communication to replace the current Serial port which come so obselete. Then the idea is to plug an USB/Bluetooth (&lt;A href="https://fr.rs-online.com/web/c/informatique-et-peripheriques/reseaux-et-connectivite/adaptateurs-bluetooth/?searchTerm=bluetooth%20usb%20dongle"&gt;https://fr.rs-online.com/web/c/informatique-et-peripheriques/reseaux-et-connectivite/adaptateurs-bluetooth/?searchTerm=bluetooth%20usb%20dongle&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Then we need to used the USB port like an Host CDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we used the USB in Host Msd like the provided exemple.&lt;/P&gt;&lt;P&gt;I seen the CDC host exemple which seem no much more complicated.&lt;/P&gt;&lt;P&gt;The question I have is:&lt;/P&gt;&lt;P&gt;- Can we configure the USB to work both in CDC/MSD which is automatically detected according the object which is plugged?&lt;/P&gt;&lt;P&gt;- If no, can we switch from Msd to CDC and CDC to Msd? =&amp;gt; How "un install" Usb Msd driver properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 07:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740017#M17699</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-08T07:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740018#M17700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnaud:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theoretically， I think it is possible to configure usb host to work with cdc &amp;amp; msd.&lt;/P&gt;&lt;P&gt;Please refer to Freescale_MQX_4_x\doc\usb\MQX_USB_Host_Reference_Manual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section 2.3 Using the Freescale MQX USB Host API , there defined msd and printer in a driver capabilites table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. Define a table of driver capabilities that the application uses (as follows):&lt;BR /&gt;Example 2-1. Sample driver info table&lt;BR /&gt;static USB_HOST_DRIVER_INFO DriverInfoTable[ ] =&lt;BR /&gt;{&lt;BR /&gt;{&lt;BR /&gt;/* Vendor ID per USB-IF */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;/* Product ID per manufacturer */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;/* Class code */&lt;BR /&gt;USB_CLASS_MASS_STORAGE,&lt;BR /&gt;/* Sub-Class code */&lt;BR /&gt;USB_SUBCLASS_MASS_UFI,&lt;BR /&gt;/* Protocol */&lt;BR /&gt;USB_PROTOCOL_MASS_BULK,&lt;BR /&gt;/* Reserved */&lt;BR /&gt;0,&lt;BR /&gt;/* Application call back function */&lt;BR /&gt;usb_host_mass_device_event&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;/* Vendor ID per USB-IF */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;/* Product ID per manufacturer */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;/* Class code */&lt;BR /&gt;USB_CLASS_PRINTER,&lt;BR /&gt;/* Sub-Class code */&lt;BR /&gt;USB_SUBCLASS_PRINTER,&lt;BR /&gt;/* Protocol */&lt;BR /&gt;USB_PROTOCOL_PRT_BIDIR,&lt;BR /&gt;/* Reserved&lt;/P&gt;&lt;P&gt;0,&lt;BR /&gt;/* Application call back function */&lt;BR /&gt;usb_host_prt_device_event&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;/* All-zero entry terminates */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;/* driver info list. */&lt;BR /&gt;{0x00,0x00},&lt;BR /&gt;0,&lt;BR /&gt;0,&lt;BR /&gt;0,&lt;BR /&gt;0,&lt;BR /&gt;NULL&lt;BR /&gt;}&lt;BR /&gt;};&lt;BR /&gt;2. Initialize the USB Host controller interface (_usb_host_init()).&lt;BR /&gt;3. The application should then register this table with the host stack by calling the&lt;BR /&gt;_usb_host_driver_info_register() host API function.&lt;BR /&gt;4. Optionally register services for types of events (_usb_host_register_service()).&lt;BR /&gt;5. Wait for the callback function, which is specified in the driver info table, to be called.&lt;BR /&gt;6. Check for the events in the callback function: One of ATTACH, DETACH, CONFIG or INTF.&lt;BR /&gt;ATTACH: indicates a newly attached device was just enumerated and a default configuration was&lt;BR /&gt;selected&lt;BR /&gt;DETACH: the device was detached.&lt;BR /&gt;CONFIG: A new configuration was selected on the device.&lt;BR /&gt;INTF: A new interface was selected on the device.&lt;BR /&gt;7. If it is an attach event, then select an interface by calling the host API function&lt;BR /&gt;_usb_hostdev_select_interface().&lt;BR /&gt;8. After the INTF event is notified in the callback function, issue class-specific commands by using&lt;BR /&gt;the class API.&lt;BR /&gt;9. Open the pipe for a connected device or devices (_usb_host_open_pipe()).&lt;BR /&gt;10. Get the pipe handle by calling the host API function _usb_hostdev_find_pipe_handle().&lt;BR /&gt;11. Transfer data by using the host API functions _usb_host_send_data() and/or&lt;BR /&gt;_usb_host_recv_data().&lt;BR /&gt;12. If required, cancel a transfer on a pipe (_usb_host_cancel_transfer()).&lt;BR /&gt;13. If applicable, unregister services for types of events (_usb_host_unregister_service()) and close&lt;BR /&gt;pipes for disconnected devices (_usb_host_close_pipe()).&lt;BR /&gt;14. Shut down the USB Host controller interface (_usb_host_shutdown()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740018#M17700</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-03-13T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740019#M17701</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;Yes I will test that, but first I must make work the Host CDC exemple on the tower K70.&lt;/P&gt;&lt;P&gt;I try to plug a computer on it but without success, I havn't enumeration callback (attach event...)&lt;/P&gt;&lt;P&gt;I think this is because both computer and Tower are in Host!..&lt;/P&gt;&lt;P&gt;Then I order an Bluetooth key to plug on the tower, then my computer will attach to them and try to emulate serial port with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 06:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740019#M17701</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-14T06:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740020#M17702</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;I'm trying desperately to make the exemple Host_Cdc_serail work without success.&lt;/P&gt;&lt;P&gt;The serial part work (with debug mode, I got event on received data on the UART part)&lt;/P&gt;&lt;P&gt;But, for the USB part, it not work:&lt;/P&gt;&lt;P&gt;- If I plug an USB Key (with a specific added driverInfoTable), I got the call back with Attach...dettach event.&lt;/P&gt;&lt;P&gt;- If I plug a Bluetooth dongle (Link bellow) or directly a computer, noting call back comes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can we plug on the board to make the exemple call correctly the call back corresponding to a device of Class "Communication or Data"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.silabs.com/products/wireless/bluetooth/bluetooth-low-energy-modules/bled112-bluetooth-smart-dongle"&gt;https://www.silabs.com/products/wireless/bluetooth/bluetooth-low-energy-modules/bled112-bluetooth-smart-dongle&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740020#M17702</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-14T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740021#M17703</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;Then first, Is somebody can help me to use the exemple USB-CDC on the tower K70 allowing to be connect the Tower USB port to the computer which emulate it in seral port and then seen byte transmited from/to Serial port to/from USB(Serial emulmated...) ???&lt;/P&gt;&lt;P&gt;Currently, when I plug the USB cable in the tower and to the computer, nothing append in the K70 task: No event of attach/detach appears...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:10:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740021#M17703</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-15T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740022#M17704</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;Ok, I run the USB Host AND device CDC demo with success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if I add USB mass storage class in the Driver Info table it is ok.&lt;/P&gt;&lt;P&gt;Thank for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 07:06:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740022#M17704</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-16T07:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740023#M17705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome, thanks for your update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 08:27:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740023#M17705</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-03-16T08:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC and MSD</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740024#M17706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then now,&lt;/P&gt;&lt;P&gt;Like indicated in my new post here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/996344"&gt;https://community.nxp.com/message/996344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to get a Bluetooth dongle which work directly in USB (Host or Device) CDC serial....&lt;/P&gt;&lt;P&gt;This product exist in the market, but too expensive.. Maybe NXP has solution to do it with a no expensive Kinetis series...?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 08:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-CDC-and-MSD/m-p/740024#M17706</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-03-16T08:36:37Z</dc:date>
    </item>
  </channel>
</rss>

