Go to Post Start respecting your mentors more or they might just leave. - Eric Bareiss [more]
Home
Go Back   Chief Delphi > Technical > Programming
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
ADVERTISEMENT

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-29-2003, 05:33 PM
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 : 10-29-2003 at 05:41 PM.
  #2   Spotlight this post!  
Unread 10-30-2003, 01:10 PM
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at iRobot
AKA: Dr. Joe
FRC #3958 (FRC Teams Need Names?)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Boston, MA
Posts: 2,213
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Belkin Sucks, use Bafo...

I have had no success with Belkin USB to Serial products. From digging around the web, they do not faithfully implement the timing signals for the RS232 ports. Based on what you tell me, they don't have clean Window drivers either.

I have used the Bafo Technologies unit (from TigerDirect.com) with great success. I have used it on the Stamp2 at 9600 baud and I have used it with the EDU controller at over 100Kbaud with no the smallest problem.

Drop Belkin -- use Bafo.

Really.

Joe J.
  #3   Spotlight this post!  
Unread 10-30-2003, 02:14 PM
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
Have you used teh Bafo adapter to upload code to the new controller? The team ordered a new laptop that will probably not have a serial port and I want to make sure that whatever adapter they get will work. Sitting around waiting 10 minutes to program the controller will get old really quick. Thanks for the information.
  #4   Spotlight this post!  
Unread 10-31-2003, 02:51 PM
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at iRobot
AKA: Dr. Joe
FRC #3958 (FRC Teams Need Names?)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Boston, MA
Posts: 2,213
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Bafo works with EDU controller

Yes, the Bafo 810 works with the EDU controller.

It is a small dongle on the end of a cord that plugs into the USB port.

I have had no problems at all.

As to speed it is as fast as the PC I have that uses a PC based RS-232 port.


Joe J.
  #5   Spotlight this post!  
Unread 11-05-2003, 08:41 PM
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at iRobot
AKA: Dr. Joe
FRC #3958 (FRC Teams Need Names?)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Boston, MA
Posts: 2,213
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
See this link for more details...

See this message for more details on the Bafo BF-810

Joe J.
Closed Thread


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 02-08-2003 10:43 PM
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 02-06-2003 08:10 PM
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 02-05-2003 11:03 AM
Win32 API Port Connection Help Raven_Writer Programming 3 01-17-2003 01:23 PM
Serial Port Communication White Paper rbayer Programming 87 06-14-2002 03:10 PM


All times are GMT -5. The time now is 01:36 AM.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School