<?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>second USB CDC hangs</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27794/second-usb-cdc-hangs</link><description> 
Greetings, 

 
From the sample program provided by Keil, and through the use of
various websites especially http://www.keil.com/forum/15274/ 
I&amp;#39;ve created a program that is able to sniff out data from the
USB2Serial Converter. 
It then detects whether</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: second USB CDC hangs</title><link>https://community.arm.com/thread/119235?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2011 03:24:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cd2c2ce7-1a06-46d6-94c2-2243dc3035dd</guid><dc:creator>Tonino Reinbergen</dc:creator><description>&lt;p&gt;&lt;p&gt;
I think I may have found the solution...&lt;br /&gt;
In the original example the USB_ReadEP is being used to determine
whether or not there is useful information and writes that to a
buffer. I didn&amp;#39;t think it were necessary because I don&amp;#39;t want the
information, but just use it a trigger to indicate that it has to
send its information. However by using it and just asking whether the
amount of bytes is higher than zero I was able to keep on requesting
information without it hanging...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: second USB CDC hangs</title><link>https://community.arm.com/thread/104771?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2011 01:53:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c56d60d6-21cf-4c47-9a4c-2a54c973fc9f</guid><dc:creator>Tonino Reinbergen</dc:creator><description>&lt;p&gt;&lt;p&gt;
My apologies, the service pack version is service pack 1.&lt;br /&gt;
The OS is Windows 7 dutch version.&lt;/p&gt;

&lt;p&gt;
I haven&amp;#39;t modified much from the original CDC example.&lt;/p&gt;

&lt;p&gt;
A better description of what is going wrong:&lt;/p&gt;

&lt;p&gt;
When I communicate with the device (the MCB2300 board from Keil) I
use endpoint 1 and endpoint 2 for the serial2USB conversion, as was
provided in the original example.&lt;br /&gt;
From the forum thread as stated in my first post, I have used your
example to realize a USB IAD with two USB CDC&amp;#39;s.&lt;br /&gt;
The only thing I&amp;#39;ve modified is added a piece in the USBcore.c file,
namely the part in the USB CDC parts where it uses an if
statement:&lt;/p&gt;

&lt;pre&gt;
if ((SetupPacket.wIndex.WB.L == USB_CDC_CIF_NUM0)  ||       /* IF number correct? */
    (SetupPacket.wIndex.WB.L == USB_CDC_DIF_NUM0)  ||
    (SetupPacket.wIndex.WB.L == USB_CDC_CIF_NUM1)  ||
    (SetupPacket.wIndex.WB.L == USB_CDC_DIF_NUM1)) {
&lt;/pre&gt;

&lt;p&gt;
The problem that is occuring is not that it cannot communicate
through the serial2USB. Neither is the problem occuring when I
duplicate the endpoint 1/2 to endpoint 4/5.&lt;br /&gt;
However it cannot convert endpoint 5 data to the serial port. But can
convert serial port data to endpoint 5.&lt;/p&gt;

&lt;p&gt;
My problem is that I am not able to call upon the USB endpoint
without it hanging with my own code. The Main idea is that while the
normal converter is working my program will have to sniff out certain
data, and send it through Endpoint 5 to the pc.&lt;br /&gt;
But endpoint 5 will also be used to send a &amp;#39;database&amp;#39; to the
device.&lt;/p&gt;

&lt;p&gt;
It will be used as an device that determines whether or not the
current location (received through the serial port from a Novatel GPS
device) has been photographed yet by referring its current position
with the positions stored in its memory.&lt;/p&gt;

&lt;p&gt;
But now after asking information from the second VCOM it hangs
after the third try.&lt;br /&gt;
It always sends its information twice.&lt;/p&gt;

&lt;p&gt;
I hope one of you may have a solution or is willing to help
me.&lt;/p&gt;

&lt;p&gt;
With Kind Regards&lt;br /&gt;
Tonino Reinbergen&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: second USB CDC hangs</title><link>https://community.arm.com/thread/79209?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2011 16:39:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:05b2bc6d-c9cd-4f5b-a52f-99300ee8aa98</guid><dc:creator>Tonino Reinbergen</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have programmed it for the lpc2368 on a mcb2300 experimental
board.&lt;br /&gt;
The os is a 64bit windows 7 professional. Haven&amp;#39;t installed any
service packs on the system.&lt;br /&gt;
I have had problems with the original *.inf file from the keil cdc
example. However from several sites I have been able to rewrite it to
make it suitable for a 64bit os&lt;/p&gt;

&lt;p&gt;
Kind regards&lt;br /&gt;
Tonino Reinbergen&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: second USB CDC hangs</title><link>https://community.arm.com/thread/59345?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2011 22:06:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:92db8337-d6c4-4159-930a-a6244afb322c</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
What is the detailed OS version (XP/Vista/7, x86/x64) and Service
Pack version?&lt;br /&gt;
Also, what is your MCU?&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>