cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 - Vitual Com Port

missiontous
Associate II
Posted on March 29, 2008 at 08:12

STM32 - Vitual Com Port

7 REPLIES 7
missiontous
Associate II
Posted on May 17, 2011 at 12:26

im using stm3210B evaluation board. I'm using using the virtual com port examples given as a example.But problem lies when i try to connect more than one STM32 board. PC reads well with one STM 32 board.

For my project i need to connect two or more STM32 board to the PC and all must be assignment to different COM port. any suggestion for doing this? 🙂

bob239955
Associate II
Posted on May 17, 2011 at 12:26

Hi Missiontous,

I just tried talking to 2 STM32 virtual-com devices (at the same time)and it does work with windows XP sp2 however notice the following;-

1) The project/hardware/software I tried was the slightly different

http://www.stm32circle.com/projects/project.php?id=21

which IS ST's excellent stm3210B virtual com port example ported onto the STM32 Primer.

2) When you connect the second device to your PC it will need to install the driver from the .inf file AGAIN for the new device port!!. Check your open windows. There maybe a window waiting for you to proceed with the installation for the second virtual com port. If you have not seen this window and pointed it to the .inf file the new virtual com port will not be allocated yet.

3) Check the COMx port number in windows device manager. it may be a high number like COM10. If using an old 16bit terminal program it may only see ports up to 9.

4) If you download the project linked above, open the readme.txt and read the 'tips' near the end of the file - especially tip 1.

Good luck - let us know how you get on.

Bob

bob239955
Associate II
Posted on May 17, 2011 at 12:26

See

http://www.usb.org/developers/vendor/

The vendor and product ID provide some of the low level information required to open a generic communications port with the ST chip. Once you have your open communications port your application can decide what you do with it.

See also the different topics

http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/pnpcom.rtf

http://en.wikipedia.org/wiki/Driver_signing

http://msdn2.microsoft.com/en-us/library/ms537361.aspx

http://www.lvr.com/usb_on_a_budget.htm

[ This message was edited by: bobz on 20-03-2008 11:25 ]

missiontous
Associate II
Posted on May 17, 2011 at 12:26

thanks you. it works fine.

Do I have to purchase a new vendor ID or I have to leave STM one?

i wanted to use this code and modify few things in that case should it b necessary to buy that.

THank you

Regards,

Kris

missiontous
Associate II
Posted on May 17, 2011 at 12:26

So when i develop a device using vitual com port code and stm32 chip. do i need to buy his vendor and product ID for my device?

bob239955
Associate II
Posted on May 17, 2011 at 12:26

no, your own vendors ID would be obtained from

http://www.usb.org/developers/vendor/

if you want the benefits like authority to use the USB logo.

[ This message was edited by: bobz on 20-03-2008 11:17 ]

missiontous
Associate II
Posted on May 17, 2011 at 12:26

WIth windows XP it works fine.,

Is this code(INF file) compatible with Win 98?