Go to Post I want an inflatable playing field so 2 people can setup the competition in one hour at every event. I want it to fit in the back of my car. - Ken Leung [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-04-2007, 22:25
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Communicating through a GBA's link port

Quote:
Originally Posted by EHaskins View Post
You can program GBAs. You need a special cartage that accepts an SD/SD micro card, but it is possible.

As for the physical connection I don't know it what you're trying to do is even possible.

If all you want is a terminal/configuration you may want to look into getting a used PDA(with a serial port), and writing a simple terminal app.
If I can get a serial connection from the GBA to the RC could I not do potentially the exact same thing as hooking a laptop up to the RC? The GBA's link port acts almost exactly like a serial port, just arranged differently. I'd rather have to carry a GBA in my pocket out to the field rather than a laptop . Plus, how could would people think it would be if you programmed your autonomous through a Game Boy .

Oh and Astronouth, looking at the IFI programming port pinout it seems as though they do use CTS and RTS in their communication. Do these two pins have to go CTS-CTS and RTS-RTS or does it have to be CTS-RTS and RTS-CTS just like it has to be Tx-Rx and Rx-Tx?
__________________

Last edited by Spencer E. : 08-04-2007 at 22:31.
  #2   Spotlight this post!  
Unread 08-04-2007, 22:42
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: Communicating through a GBA's link port

Quote:
Originally Posted by Spencer E. View Post
If I can get a serial connection from the GBA to the RC could I not do potentially the exact same thing as hooking a laptop up to the RC? The GBA's link port acts almost exactly like a serial port, just arranged differently. I'd rather have to carry a GBA in my pocket out to the field rather than a laptop . Plus, how could would people think it would be if you programmed your autonomous through a Game Boy .

Oh and Astronouth, looking at the IFI programming port pinout it seems as though they do use CTS and RTS in their communication. Do these two pins have to go CTS-CTS and RTS-RTS or does it have to be CTS-RTS and RTS-CTS just like it has to be Tx-Rx and Rx-Tx?
I am NOT familiar with GBA programming, but I would think it is possible, if the serial port of a GBA is what you say.

You would not be able to compile code on the GBA, but if you wrote some type of script that would be saved in EEPROM on the RC then it is possible you could use the GBA as a terminal to modify the script.

If you wanted to do something like that I would recommend creating the script and the PC editor, and then porting an editor to GBA.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 08-04-2007, 22:45
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Communicating through a GBA's link port

Quote:
Originally Posted by EHaskins View Post
I am NOT familiar with GBA programming, but I would think it is possible, if the serial port of a GBA is what you say.

You would not be able to compile code on the GBA, but if you wrote some type of script that would be saved in EEPROM on the RC then it is possible you could use the GBA as a terminal to modify the script.

If you wanted to do something like that I would recommend creating the script and the PC editor, and then porting an editor to GBA.
What my plan was to do is make a pre-compiled list of commands for the GBA that could be compiled into a list of ID numbers that the user could select and make a list of editable (speed, time, distance) commands, which would then store the commands in the RC through EEPROM. Once stored, when autonomous mode started, the RC would read the EEPROM and run the corresponding function related to the ID number that was stored by the GBA.
__________________
  #4   Spotlight this post!  
Unread 09-04-2007, 00:15
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: Communicating through a GBA's link port

Quote:
Originally Posted by Spencer E. View Post
What my plan was to do is make a pre-compiled list of commands for the GBA that could be compiled into a list of ID numbers that the user could select and make a list of editable (speed, time, distance) commands, which would then store the commands in the RC through EEPROM. Once stored, when autonomous mode started, the RC would read the EEPROM and run the corresponding function related to the ID number that was stored by the GBA.
Sounds a lot like Kevin's terminal menus used in his camera code.

I've been thinking about writing a script that generates those menus and the EEPROM code to deal with it, and the idea that the menu could be driven in different ways (serial terminal, GBA, ...) makes it that much more interesting.

Also, standard serial cables are wired straight (pin 1 goes to pin 1). All labels in RS-232 specs are relative to the DTE (the computer, or in your case the GBA). Which means that the line that the GBA transmits on is connected to the pin labeled Tx.

It seems that "UART" mode would be what you want. If you look at http://www.work.de/nocash/gbatek.htm#siouartmode, you'll notice that there's a CTS mode flag. I recommend setting it to 0 (Send blindly) and wiring GBA SD (GBA pin 4) to the RTS pin. Then you may wire the CTS pin to GBA SC (GBA pin 5). (Pinouts from http://www.hardwarebook.info/Game_Boy_Link.)

One thing that has not been described in the documents is how the GBA's "UART" mode relates to RS-232 settings. Specifically baud, parity, data bits, and stop bits. 8 data and 1 stop bit has become something of a de facto standard. Which leaves parity and baud. I can't remember what the RC uses for these, and I can't find what the GBA's settings are. I guess this is an exercise left to the reader!
  #5   Spotlight this post!  
Unread 09-04-2007, 00:54
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Communicating through a GBA's link port

Funny you bring this up. I thought I was an original thinker..

I had an idea similar to this a while back. I wanted to make an open source inertial navigation system for FRC with focus on ease of use and availability of parts. INS's are tough, as you need to have pretty custom hardware including the correct sensory and the horse power to process your signals. So, I figured I could "borrow" and hack up hardware thats available in the market place. Also, I wanted this system to be able to handle other robot functions, such as autonomous control, so it needed to have a screen.

I stumbled upon this., which gave me means to get pretty accurate 3 axis acceleration and yaw rate readings on the nintendo DS. I looked into the DS linux and homebrew projects, along with how to grab hold of an RS-232 serial connection through the SPI port it uses to read games. Running Linux would be my first choice on this, as I could write all of the software with little overhead and its just plain cool.

So, the DS enables you to have an INS with touchscreen for a pretty good price. Unfortunately I haven't had time/money/motivation to follow up on this. Oh well, maybe next year.

Last edited by Tom Bottiglieri : 09-04-2007 at 00:58.
  #6   Spotlight this post!  
Unread 09-04-2007, 02:03
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Communicating through a GBA's link port

In case anybody is interested, the most recent versions of the Botball controller have been using the GBA for I/O and processing.

https://botballstore.org/catalog/pro...roducts_id=118
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #7   Spotlight this post!  
Unread 13-04-2007, 23:17
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Communicating through a GBA's link port

Quote:
Originally Posted by jgannon View Post
In case anybody is interested, the most recent versions of the Botball controller have been using the GBA for I/O and processing.

https://botballstore.org/catalog/pro...roducts_id=118
Im pretty sure the above is just a fancier version of the xport controller.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
  #8   Spotlight this post!  
Unread 09-04-2007, 10:49
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Communicating through a GBA's link port

Quote:
Originally Posted by Astronouth7303 View Post
One thing that has not been described in the documents is how the GBA's "UART" mode relates to RS-232 settings. Specifically baud, parity, data bits, and stop bits. 8 data and 1 stop bit has become something of a de facto standard. Which leaves parity and baud. I can't remember what the RC uses for these, and I can't find what the GBA's settings are. I guess this is an exercise left to the reader!
On the gbatek site you gave me there are bits you can set to fix the baud rate, parity and data rate, so setting those bits to match the settings of the RC should work. Setting them to the right bits would probably be easier through assembly, I find it easier to directly access the memory rather than using C. Using devkitPro though you can use assembly opcodes right inside your C code (as per they do with the initialization of the RC).
__________________
  #9   Spotlight this post!  
Unread 13-04-2007, 10:13
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: Communicating through a GBA's link port

Quote:
Originally Posted by Spencer E. View Post
What my plan was to do is make a pre-compiled list of commands for the GBA that could be compiled into a list of ID numbers that the user could select and make a list of editable (speed, time, distance) commands, which would then store the commands in the RC through EEPROM. Once stored, when autonomous mode started, the RC would read the EEPROM and run the corresponding function related to the ID number that was stored by the GBA.
Heck, if it's legal to have one on the robot during competition, you could have a whole set of pre-programmed cartridges, containing autonomous routines, and then maybe a separate one for running calibration routines. Personally, I love the idea, and as a fairly experienced GBA programmer (hacker) it's all entirely possible. Heck, I might just try this myself. I can't even remember the last time I palyed my old GBA. And it's not like you'd have to destroy the whole thing to use it. That's gotta be the coolest part.
__________________
Code:
void function(void)
 {
  function();
 }
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
New ways of Communicating? Info Retrevial Sean.Conway Championship Event 8 24-04-2006 09:30
Help: IFI loader not communicating with control unit red_alert_13 Programming 9 20-01-2006 17:30
half link chain link greencactus3 Technical Discussion 9 16-11-2004 13:31
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


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

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