Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with MSComm control
Message
 
 
To
14/06/2001 19:19:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00515479
Message ID:
00520040
Views:
23
>If I read the above correctly, the host is trying to send you 3 pages of data, and messing with the keyboard in the meantime. 3 pages @ 80X25 = 6000 bytes going somewhere. I think you have insufficient buffer space and/or handshaking problems. As a test can you drop back to 300 bps to see if any more data becomes available? I think you are transmitting the control sequence fine, just dropping the data inbound. Others have reported problems with the control being unreliable - see here - http://fox.wikis.com/wc.dll?Wiki~MsComm32~VFP . I haven't experienced the problem, using hardware handshaking, allocating sufficient buffer space, and keeping the Oncomm event code very tight. Any massaging of the data should be done elsewhere.

Jim,
Following your idea, this is finally starting to make some sense. The first thing I tried was setting the receive buffer to 30270. This yielded the same result as before, so I tried backing off the speed a little. At any speed other than 9600, all data coming back is unreadable, I'm not sure what I'm looking at. This gets kinda weird. I shut off handshaking altogether, but it seemed to make no difference. I don't know what else to try, but after looking at your analysis of the returned data, I'm pretty positive we're on the right track now. Let me know if you got any other thoughts I could try. I'm going to take a closer look at some of the other settings of this control. If anything else pops up, I will let you know. Thanks again, this is really helpful, I appreciate all the time you are taking with this. It seems as if my vendetta has now become your's as well :)
John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform