Go to Post Things go wrong; it happens to the best of us. You learn from it and move on. - Waynep [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 17-01-2006, 00:21
binary_sandman's Avatar
binary_sandman binary_sandman is offline
Registered User
AKA: andrew sweet
FRC #1388 (Eagle robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: california
Posts: 12
binary_sandman is infamous around these parts
has anyone made a custom com-1 output?

[color=Green]our programing team has made a wonderful custom com-1 output and has a problem with establishing a connection and wondered if any other teams had this problem.The program via hex file has a problem sharing with the custom com-1 output their we have to run one at a time. when we have the custom com-1 open the the controller dose not Respond to drivers vies versa.
we think it has to do with program Identification with robot code.

Last edited by binary_sandman : 17-01-2006 at 00:39.
  #2   Spotlight this post!  
Unread 17-01-2006, 02:27
Justin Stiltner's Avatar
Justin Stiltner Justin Stiltner is offline
The big guy
no team
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Blacksburg, Va.
Posts: 305
Justin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud ofJustin Stiltner has much to be proud of
Send a message via ICQ to Justin Stiltner Send a message via AIM to Justin Stiltner Send a message via MSN to Justin Stiltner Send a message via Yahoo to Justin Stiltner
Re: has anyone made a custom com-1 output?

Sounds like your custom program is opening the com port and keeping it open or busy while the IFI loader is trying to open the port. Your programmers should be able to fix this by having their custom program close the port before the IFI loader attempts to use it. As most programs will not try to use the serial port if it is already in use by another program.

Also you may want to be more descriptive in your posts, by telling us that you have a custom com-1 output this could mean hardware or software, and what it does we don't know you are more likely to get responses and help if the person reading your post doesn't have to guess at what you meant or what is going on. Also com-1 is the designation that windows uses for the first logical serial port. Also spell check is a feature that you should always use before you submit your post. Welcome to the CD community and we love to help others and share information, just try to be a bit more descriptive about things in your posts
__________________
Justin Stiltner
Lead Robot Inspector, VCU Regional
Unmanned Systems Lab, Virginia Tech
KI4URQ
  #3   Spotlight this post!  
Unread 17-01-2006, 10:29
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: has anyone made a custom com-1 output?

Windows allows access to serial port by only one program at a time. If one program already has it open, additional connection attempts will fail. To my knowledge, there is nothing you can do about this other than have one of the programs close the port before the other tries to open it.

As a side note, if your program crashes with the serial port open, there is no way to close it and make it available again other than restarting the computer. This is true in windows 2000. I assume it is true in other version as well. I share this because it caused me a day of frusteration thinking there was something wrong with my program.
__________________
1139 Alumni
  #4   Spotlight this post!  
Unread 17-01-2006, 10:46
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: has anyone made a custom com-1 output?

Quote:
Originally Posted by binary_sandman
[color=Green]our programing team has made a wonderful custom com-1 output and has a problem with establishing a connection and wondered if any other teams had this problem.The program via hex file has a problem sharing with the custom com-1 output their we have to run one at a time. when we have the custom com-1 open the the controller dose not Respond to drivers vies versa.
we think it has to do with program Identification with robot code.
I'll try to translate this...
Quote:
Our programming team has made a custom program that attaches to COM1, but it can't establish a connection. Have any other teams had this problem? The program that downloads the hex file has a problem sharing the connection with our program, it only lets us run one successfully at a time. When we use our custom program, the RC will not respond to drivers commands via the OI. We think it has to do with the robot identifying the program.
Spelling and grammar are your friends. Thanks Dave =)

So from what I understand, you made some kind of a system to communicate with your robot. What is this program trying to do? The only data you can get from the RC is the hex file... not much use having that.

Assuming your using the programming port to send data and you are using this program to grab that information... there's no need for a custom program. All you need is a terminal program. I recommend Bray's Terminal, it's simple and it works. If you can't download anything onto the laptop, Windows comes with a terminal. It's called HyperTerminal and can be accessed by going to Start > Run and typing in hypertrm. However, if you do use this, be aware that it is a Windoze program and most likely won't work as expected.

Your interference problem will still consist with another terminal. You can't have two programs accessing one RS232 port... the one that got there first will lock all others out.

-Mike
__________________
http://www.mikesorrenti.com/

Last edited by Mike : 17-01-2006 at 14:55.
  #5   Spotlight this post!  
Unread 17-01-2006, 10:51
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: has anyone made a custom com-1 output?

Quote:
Originally Posted by Rickertsen2
As a side note, if your program crashes with the serial port open, there is no way to close it and make it available again other than restarting the computer.
Restarting the computer to release a port is not always necessary. It's usually sufficient just to log off and back on again.

Last edited by Alan Anderson : 17-01-2006 at 10:52. Reason: fixed quoting
  #6   Spotlight this post!  
Unread 17-01-2006, 10:54
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: has anyone made a custom com-1 output?

Quote:
Originally Posted by Alan Anderson
Restarting the computer to release a port is not always necessary. It's usually sufficient just to log off and back on again.
Couldn't you also go into Device Manager and Disable/Enable the port?

I've never had this kinda problem happen to me, but I assume that would work.
__________________
http://www.mikesorrenti.com/
  #7   Spotlight this post!  
Unread 17-01-2006, 14:24
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: has anyone made a custom com-1 output?

You can also get a utility from www.sysinternals.com to monitor and close the ports I believe, don't recall the name but take a look around it can't be too hard to find.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #8   Spotlight this post!  
Unread 17-01-2006, 14:49
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: has anyone made a custom com-1 output?

Quote:
Originally Posted by Matt Krass
You can also get a utility from www.sysinternals.com to monitor and close the ports I believe, don't recall the name but take a look around it can't be too hard to find.
http://www.sysinternals.com/utilities/portmon.html
Portmon
__________________
http://www.mikesorrenti.com/
  #9   Spotlight this post!  
Unread 17-01-2006, 16:05
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: has anyone made a custom com-1 output?

Quote:
Originally Posted by Rickertsen2
As a side note, if your program crashes with the serial port open, there is no way to close it and make it available again other than restarting the computer. This is true in windows 2000. I assume it is true in other version as well. I share this because it caused me a day of frusteration thinking there was something wrong with my program.
When I killed the cygwin version of picloader, it freed the serial port. (Windows XP.) Could be driver-specific, or a fixed bug.
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
Encoder Output Problems Mike Electrical 5 25-11-2005 21:43
Custom Made Shoes sanddrag Chit-Chat 0 03-11-2005 02:03
EasyC v. 2.0 - New features, custom user functions, and more! artdutra04 FIRST Tech Challenge 1 02-11-2005 13:36
FIRST made slashdot... cool Brandon Martus General Forum 4 08-01-2002 01:12


All times are GMT -5. The time now is 13:17.

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