Go to Post I want my students to learn passion. I want them to care so much about what they are doing that they infect other people with it... be that FRC or anything else. - marshall [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 08-08-2007, 22:44
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Serial Library??

Does anyone know of a (free) simple serial library (preferablly a .dll or c++) I've been looking around and I cant find just a simple dll with open, write, read, and close. Im using winxp btw

Thanks

Oh yeah, I dont wanna use .net
  #2   Spotlight this post!  
Unread 09-08-2007, 09:52
Robostang 548's Avatar
Robostang 548 Robostang 548 is offline
I can program the future...
AKA: Don
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Northville Mi
Posts: 69
Robostang 548 is on a distinguished road
Send a message via AIM to Robostang 548 Send a message via MSN to Robostang 548 Send a message via Yahoo to Robostang 548
Re: Serial Library??

.Net has a really good serial library. Our team is using it to make programs like custom dashboards. Its a bit confusing but if you look around for some examples you can eventually get the hang of it. If you don't want to use .net, there is a serial communication control in VB6. Its not in the standard toolbox but you can add it.
  #3   Spotlight this post!  
Unread 09-08-2007, 21:33
Wayne C.'s Avatar Unsung FIRST Hero
Wayne C. Wayne C. is offline
hey- I think we did pretty good?
FRC #0025 (Raider Robotix)
 
Join Date: Aug 2001
Rookie Year: 1997
Location: North Brunswick, N.J.
Posts: 1,530
Wayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond reputeWayne C. has a reputation beyond repute
Re: Serial Library??

here you go-
http://www.boxtops4education.com/Abo...up.aspx?type=0
__________________
you want that robot to do what?

Raider Robotix- www.raiderrobotix.org
  #4   Spotlight this post!  
Unread 09-08-2007, 22:51
fimmel's Avatar
fimmel fimmel is offline
Founding Mentor, Team 2370
AKA: Forest Immel
FRC #2370 (iBots 2370)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Castleton, Vermont
Posts: 325
fimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond repute
Re: Serial Library??

Quote:
Originally Posted by Wayne C. View Post
thanks i needed a good chuckle
__________________



  #5   Spotlight this post!  
Unread 10-08-2007, 00:09
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Serial Library??

What language/framework are you using? What kind of project is this?

If you want help with the .net serial components,"System.IO.Ports", PM me.
__________________
Eric Haskins KC9JVH
  #6   Spotlight this post!  
Unread 10-08-2007, 02:21
Akash Rastogi Akash Rastogi is offline
Jim Zondag is my Spirit Animal
FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Manchester, Connecticut
Posts: 7,003
Akash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond repute
Re: Serial Library??

Quote:
Originally Posted by Wayne C. View Post
hehehe
__________________
My posts and opinions do not necessarily reflect those of my affiliated team.
['16-'xx]: Mentor FRC 2170 | ['11-'13]: Co-Founder/Mentor FRC 3929 | ['06-'10]: Student FRC 11 - MORT | ['08-'12]: Founder - EWCP (OG)
  #7   Spotlight this post!  
Unread 10-08-2007, 03:34
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Serial Library??

Quote:
Originally Posted by Wayne C. View Post
Wonderful!
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
  #8   Spotlight this post!  
Unread 10-08-2007, 08:31
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Serial Library??

I'm trying to do it all in c++ so im just looking for a dll or something that just has simple serial functions like open port, send byte, read byte
  #9   Spotlight this post!  
Unread 10-08-2007, 14:13
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Serial Library??

You want a .dll, so I am assuming you are doing this on Windows. All you need to do is use the standard C/C++ file I/O functions - fopen, fread, etc. For the "file", specify "COM1" or "COM2", dependent on which serial port you want to open. This is part of stdlib, so you don't need to include any extra DLL or do anything special -- it's all included by default.

(On a Mac or Linux or any Unix-like system, the instructions are the same, but use "/dev/ttyS0" instead of "COM1")
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
  #10   Spotlight this post!  
Unread 10-08-2007, 22:56
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Serial Library??

Indeed. Or you can use the Win32 functions--see http://msdn2.microsoft.com/en-us/library/aa364229.aspx.

You also need to configure the serial port (primarily baud rate). In Linux, that's an ioctrl() call. On Win32, it's the COMMCONFIG structure and its associated functions.
  #11   Spotlight this post!  
Unread 11-08-2007, 00:37
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Serial Library??

Quote:
Originally Posted by ay2b View Post
You want a .dll, so I am assuming you are doing this on Windows. All you need to do is use the standard C/C++ file I/O functions - fopen, fread, etc. For the "file", specify "COM1" or "COM2", dependent on which serial port you want to open. This is part of stdlib, so you don't need to include any extra DLL or do anything special -- it's all included by default.

(On a Mac or Linux or any Unix-like system, the instructions are the same, but use "/dev/ttyS0" instead of "COM1")
How do you configure the baud rate with this method? (and yes im using windows )
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
content library.. naroarr Inventor 0 20-01-2007 12:13
Library timers Ryan M. Programming 3 13-02-2004 09:02
Inventor Library Ogro Inventor 4 28-01-2004 17:03
Autonomous Library! Sachiel7 Programming 17 21-01-2004 11:13
Technical Library Jnadke Technical Discussion 15 12-05-2003 09:13


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

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