Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18013
Number of posts: 55386

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Visual Basic 6 Serial Port Problem Posted by part0 on 5 Feb 2008 at 7:11 AM
Hi,

I am facing a problem in receiving data from the serial port com. As it stated "Receive Buffer Overflow".

I have configure the setting as shown below.

MSComm1.Settings = "115200,N,8,1"
MSComm1.InBufferSize = 16384 'max input buffer size
MSComm1.CommPort = 1
MSComm1.InputLen = 1
MSComm1.RThreshold = 1 '1 byte receive
MSComm1.SThreshold = 1 '1 byte send
MSComm1.PortOpen = True

Ok my incoming data size is 25k bytes.

And every bytes that comes into the serial port it will be written into a text file in this case which i know it empty the InBuffer.

But to my surprise it does not empty it when it continues receving of data which makes me cant receive all the 25k of data. Btw there is no control signals between the device and the port.

So how can i receive unlimited number of bytes without having the buffer overflow problem ?

Anyone please help thanks.

Regards,
sk

Thread Tree
part0 Visual Basic 6 Serial Port Problem on 5 Feb 2008 at 7:11 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.