Go to Post The engineers and mentors provide the "I" in FIRST and FIRST would be nowhere near where it is today without this exceptional leadership shown by so many of these volunteers. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-10-2003, 18:33
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Win32 serial port - recieve buffer

I'm using P-Invoke to make some calls to the Win32 API with C# running in version 1.1 of the .NET framework.

I'm opening a port using the system default receive buffer size. When I make a call to GetCommProperties() its telling me that the receive buffer is growing beyond its declared size. The size is 100 bytes, but it will keep growing as long as I'm throwing data at it. If I disconnect the cable it will keep processing data from the buffer until its empty.

My question is whether there is some other setting that you need change so that the receive buffer is fixed or if this is a bug. I'm using XP Pro and the serial cable is connected through a USB adapter. Thanks in advance.

<EDIT>
Its definately the USB adapter. The buffer stays a fixed size on my other machine with a proper RS-232 port. Be careful if you're using a USB-serial adapter because the recieve buffer will keep growing. Will post information if I can find anything from Belkin.
</EDIT>

Last edited by seanwitte : 29-10-2003 at 18:41.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to communicate both through radio and serial port? JC Denton Programming 1 08-02-2003 23:43
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 06-02-2003 21:10
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 05-02-2003 12:03
Win32 API Port Connection Help Raven_Writer Programming 3 17-01-2003 14:23
Serial Port Communication White Paper rbayer Programming 87 14-06-2002 16:10


All times are GMT -5. The time now is 09:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi