Go to Post A well-designed shifting transmission, controlled by an experienced driver (or a clever bit of software), is an advantage. - Alan Anderson [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #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.
  #2   Spotlight this post!  
Unread 30-10-2003, 14:10
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
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 30-10-2003, 15:14
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 31-10-2003, 15:51
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
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 05-11-2003, 21:41
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
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 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 20:35.

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