Go to Post Don't bash FIRST for what you do not know. - David Kelly [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 11-03-2008, 20:00
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Command to enter program mode?

Is there any way to make the user processor put itself into program mode when a switch is pressed?

I ask this because I'm investigating a wireless serial interface to program the robot without walking over to it and plugging in, but I'm not sure how to remotely put the RC into program mode.
  #2   Spotlight this post!  
Unread 11-03-2008, 20:11
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Command to enter program mode?

The older RCs used to automatically enter program mode when you tried to download... both good and horrible.

You can take a pwm cable, and cut the red and yellow (or white) wire. Reconnect one end of the red wire to one end of the yellow wire. Leave the other pair disconnected. Then stick the end with the connected yellow wire into a digital I/O, and the end with the connected red wire into the program header.

Diagram:
Code:
DIO             PH

B -------------- B
R --          -- Y
Y -------------- R
In software, set the pin to high (1) in the initialization - don't forget to make it an output. When you want to enter program mode, set the pin to low.
  #3   Spotlight this post!  
Unread 11-03-2008, 20:11
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: Command to enter program mode?

you can connect a digital output to the center pin (i think) on the program/reset headers right above the TTL headers. When you pull this pin to low it will enter program mode, we had our program poll the serial port for the character 'p' and pull the output low to trigger program mode from our laptop
  #4   Spotlight this post!  
Unread 11-03-2008, 20:14
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: Command to enter program mode?

We've done it on the TechnoKats robots for the past two years. All it takes is a single wire from one of the digital outputs to the "PROG" pin on the remote programming header. This year it's "the blue wire" on the RC, with a single female servo pin crimped on each end and covered with heat shrink.

Make sure to configure the digital pin as an output and set it to a high level immediately upon starting the program. The User_Initialization() routine is the perfect place for this. Then have the program set it low in order to "press" the virtual program button.

Our software has a menu system based loosely on Kevin Watson's camera and tracking menus. One of the top-level commands is the letter "p" to put the robot controller in program mode. We just activate the Terminal window from the IFI loader and go from there.
  #5   Spotlight this post!  
Unread 11-03-2008, 20:19
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: Command to enter program mode?

A cable from a digital output to the program header is what I was thinking too, but that sounds like an inefficient way to do it. I was hoping to find an assembly command to go into program mode. If one does not exist, however, I guess I'll have to use the cable.

Thanks for the help.
  #6   Spotlight this post!  
Unread 11-03-2008, 22:21
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Command to enter program mode?

We also use a cable from a digital port to the programming pin. I'm not sure if what tdlrali said is correct. At least connecting the grounds together is unneeded, and won't do anything. I'm pretty sure I remember taking the white signal pin from the digital port to the middle pin of the Reset/Prog pins. I think the left most one is Reset, the middle on is Program, and the far right is ground. You just need the signal to connect to the the middle pin of those three to the signal of the digital port.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
  #7   Spotlight this post!  
Unread 12-03-2008, 01:15
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Command to enter program mode?

Our team simply has a switch attached by a very long wire to the programming/reset pins. We just plug this in whenever code is working on the robot. For practicality, we have the switch encased in PVC pipe so that the end of the switch is sticking out. The entire assembly (switch, pipe, and wire) resembles a detonator for explosives. This has spawned countless jokes about code "blowing up the robot again"
__________________
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
Can't enter Vex autonomous mode when using MPLab Redneck Programming 4 23-11-2007 01:16
RC randomly resets or goes into program mode Tom Bottiglieri Programming 4 15-02-2006 23:32
How do I enter the Autonomous mode? CompMaster Programming 5 17-02-2005 19:12
What type of autonomous mode program are you using? SilverStar Programming 1 21-01-2004 18:48


All times are GMT -5. The time now is 00:57.

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