cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Com Port Try This

wmaguire
Associate II
Posted on November 27, 2008 at 10:21

Virtual Com Port Try This

5 REPLIES 5
wmaguire
Associate II
Posted on May 17, 2011 at 12:53

Hi There,

I think there is a serious issue with the Virtual Com port driver or example code. I think it is in the driver. Try this with the UM0424.zip example provided by ST. Build and load the um0424 VCP example in the ST32F10xB development tools using IAR. Open up a HyperTerminal application on the PC connected to the eval board via USB. Connect a Null modem to another computers com port and open up another HyperTerminal on this PC. Set the communication settings to the following on both Hyperterminal sessions. Baud Rate 9600, Stop bits 1, Flow Control None, Parity none. Now type in the Hyperterminal session communicating with the USB Virtual Com Port example. Try type ''g'' ''g'' ''g''. What you get on the Hyperterminal connected to the USART 1 on the second PC is, ''g''''g'' ''Extended ASCII Character'' ''g'', ''Extended ASCII Character'', ''g'' and so on. Now to fix, simply disconnect the Hyperterminal session connected to the USB virtual com port, change the setting of the parity to something else, reconnect, type ''g'' and then disconnect. Set the settings back to parity none and hey presto no more errors after that. What appears to be happening is that the USB part of the Virtual Com Port (I suspect the driver) mucks up the parity setting of none. So when you type ''g'' it sends correctly 0x67 but when you type ''g'' again it sends 0xE7 which basically appends the parity bit of the previous transmisson to the current one. As 0xE7 parity is even, the next time you type ''g'' it sends 0 for the parity bit so you receive 0x67 or ''g'' which is correct.

Has anybody out there noticed the same problem and if so can they recommend a work around.

Regards

Walt 🙂

jj
Associate II
Posted on May 17, 2011 at 12:53

Noted your several posts - believe that you should try and replicate this condition using ''other'' than hyper-terminal. If condition persists - then the problem may be with ST code.

Long time ago (maybe Win98 era) hyper-terminal exhibited errors when multiple, repeat keystrokes were generated. (gggg, rrrr etc.) Perhaps the effect you've noted is a remnant...

wmaguire
Associate II
Posted on May 17, 2011 at 12:53

Hi JJ-Sprague

Thanks for the information. It looks like you may be correct if my testing with Termite is anything to go by. Also I discovered some bugs in the code I posted so I will update once it is fully operational.

Regards

Walter :D

wmaguire
Associate II
Posted on May 17, 2011 at 12:53

Hi JJ-Sprague,

You are correct. Once I was able to resolve the HyperTerminal issues it is working as designed. The full IAR project is now posted under my other Thread. Once again many thanks for your pointers.

Regards

Walter 🙂

jj
Associate II
Posted on May 17, 2011 at 12:53

@Walter,

Glad to assist - thank you for a quick, in-depth follow-up & your neat post. (we will try in near future & report)

We build HMIs (op Panels) and provided special units for Navy vessels in the past. We tested & tested - could n