<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27196/is-rl_usb-possible-to-create-composite-deivce-on-runtime</link><description> 
Hi 

 
Our system has a USB device port and SD card slot, the SD card is
optional, so there are 2 cases: 

 
1. Connect the USB to PC, it needs to be a HID device. 
2. Insert SD card, then connect USB to PC, it needs to be a HID+MSC
composite device</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/126857?ContentTypeID=1</link><pubDate>Thu, 26 May 2011 03:32:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6186804a-650f-41f0-8927-a8a8fd7e6005</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;gt; does RL_USB library support this?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
No. You have to rewrite the library source code.&lt;/p&gt;

&lt;p&gt;
On the config switch scheme, HID connection is disturbed, every
time SD card is inserted/removed. I don&amp;#39;t think it&amp;#39;s a decent
implementation.&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/116380?ContentTypeID=1</link><pubDate>Wed, 25 May 2011 08:58:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:478dbe63-c58a-4e2c-b43e-e1e36414cc2a</guid><dc:creator>Wang Yun</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I want this solution: use 2 configurations, and use
soft-reset to select different configuration, but problem is: does
RL_USB library support this? I can&amp;#39;t see any usbd_xxx functions to
change configuration in runtime, seems I can only make one
configuration in the USB_Config.c source file, then compile to one
single static configuration!&lt;/p&gt;

&lt;p&gt;
I guess I must change RL_USB source code instead of using the
RL_USB.Lib of CM3? But the source code is not provided in MDK4.20, I
must copy these source code from early version of RL_ARM? Don&amp;#39;t know
if there is license problem.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/104883?ContentTypeID=1</link><pubDate>Wed, 25 May 2011 06:26:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dce0be55-ba85-410c-9905-e986d597d4ac</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;gt; Don&amp;#39;t know if this is the general solution.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s the Windows way.&lt;/p&gt;

&lt;p&gt;
As of configuration change using soft-detach,&lt;br /&gt;
Windows WRONGLY assume single configuration for each USB device,
though USB spec allows multi-configurations. To switch configuration
on Windows, soft-detach / attach is used as the last resort. In this
case, you have to assign different VID/PID (at least, PID) to the new
configuration, because Windows ASSume single configuration for each
VID/PID.&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/104886?ContentTypeID=1</link><pubDate>Tue, 24 May 2011 23:21:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:77d309c6-447e-41ae-a646-f6c6ecdc669e</guid><dc:creator>Per Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you get your device to disconnect and reconnect, you cn have it
enumerate as a disk only when it has a SD card inserted.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/79315?ContentTypeID=1</link><pubDate>Tue, 24 May 2011 21:12:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0bfe30a4-968e-40d4-bce5-a77b0b67ba3d</guid><dc:creator>Wang Yun</dc:creator><description>&lt;p&gt;&lt;p&gt;
In this way (use CheckMedia), if sd card not inserted, windows
still display an disk icon &amp;quot;Removable Disk&amp;quot;, if you double click the
disk, you get a message: please insert a disk into drive.&lt;/p&gt;

&lt;p&gt;
What I would like is that windows DO NOT display that disk icon
until sd card is inserted! is this possible?&lt;/p&gt;

&lt;p&gt;
PS:&lt;br /&gt;
My home pc has a built-in sd slot, windows always display &amp;quot;Removable
Disk&amp;quot; icon, no matter sd card is present or not.&lt;/p&gt;

&lt;p&gt;
If I use a USB-SD converter, connect the usb to pc, windows always
display &amp;quot;Removable Disk&amp;quot; icon, no matter sd card is present or
not.&lt;/p&gt;

&lt;p&gt;
Don&amp;#39;t know if this is the general solution.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is RL_USB possible to create composite deivce on runtime</title><link>https://community.arm.com/thread/59453?ContentTypeID=1</link><pubDate>Mon, 23 May 2011 21:12:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c070ba25-ac31-4ad5-baee-d588d3285f7f</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
You may always expose HID + MSC configuration to host.&lt;br /&gt;
The MSC interface returns NOT READY - MEDIUM NOT PRESENT sense data
while no SD card is inserted. I believe Keil SD reader example
implements this response.&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>