Go to Post If something on your robot isn't working, then why don't you take the responsibility to fix it? Isn't that what being a TEAM is all about? - dlavery [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 16-01-2007, 19:34
interfect interfect is offline
Registered User
FRC #2022
 
Join Date: Jan 2007
Location: Illinois
Posts: 18
interfect will become famous soon enough
Re: Controll over Radio?

Sorry. I guess I didn't make myself clear. Basically, what we want to do is transmit arbitrary bytes from the robot, through the radio link, and out the dashboard port. However, we want to do it on an interrupt basis rather than a loop basis, or as close to an interrupt basis as possible (maybe from the fast user code?). Are the packets sent to the OI constructed by the master uP? Can we hack it to send our own byte stream? If we add stuff to the txdata typedef, tx_data_record, can we trick the master uP into sending it? Or would it just balk? What feilds of that structure are "safe" to set to send arbitrary data? If we made our own structure of the same size, what bytes could we use?
  #2   Spotlight this post!  
Unread 16-01-2007, 19:47
Noah Kleinberg Noah Kleinberg is offline
Registered User
FRC #0395 (2TrainRobotics)
Team Role: Driver
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 196
Noah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to behold
Send a message via AIM to Noah Kleinberg
Re: Controll over Radio?

Quote:
Originally Posted by interfect View Post
Sorry. I guess I didn't make myself clear. Basically, what we want to do is transmit arbitrary bytes from the robot, through the radio link, and out the dashboard port. However, we want to do it on an interrupt basis rather than a loop basis, or as close to an interrupt basis as possible (maybe from the fast user code?). Are the packets sent to the OI constructed by the master uP? Can we hack it to send our own byte stream? If we add stuff to the txdata typedef, tx_data_record, can we trick the master uP into sending it? Or would it just balk? What feilds of that structure are "safe" to set to send arbitrary data? If we made our own structure of the same size, what bytes could we use?
I'm pretty sure that just changing txdata wouldn't do anything, and it's not a good idea to do this for competition purposes anyway. There are a few "user bytes" whose values are sent to the dashboard, which you could use to communicate with it, or you could store values in unused pwm outputs, which are also sent to the dashboard.
  #3   Spotlight this post!  
Unread 16-01-2007, 19:54
interfect interfect is offline
Registered User
FRC #2022
 
Join Date: Jan 2007
Location: Illinois
Posts: 18
interfect will become famous soon enough
Re: Controll over Radio?

How legal is dissassembling the firmware and patching in our own code? That might let us send a bytestream, but is that legal/possible?
  #4   Spotlight this post!  
Unread 16-01-2007, 20:16
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Controll over Radio?

Its possible to flash the master processor with your own data structure code however you will be disabled the entire match.
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #5   Spotlight this post!  
Unread 16-01-2007, 21:10
interfect interfect is offline
Registered User
FRC #2022
 
Join Date: Jan 2007
Location: Illinois
Posts: 18
interfect will become famous soon enough
Re: Controll over Radio?

Quote:
Originally Posted by Cuog View Post
Its possible to flash the master processor with your own data structure code however you will be disabled the entire match.
Why? Is it part of the rules, or is ti just because the code you flash in dosen't enable the robot like the normal firmware does?
  #6   Spotlight this post!  
Unread 16-01-2007, 21:39
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Controll over Radio?

You can use PWM outputs and OI LED outputs and user bytes to send stuff out of the dashboard port.

Take a look at the list of bytes that can be read from the Dashboard port, and see which ones you have control over.

Jacob
  #7   Spotlight this post!  
Unread 16-01-2007, 21:34
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: Controll over Radio?

Quote:
Originally Posted by interfect View Post
How legal is dissassembling the firmware and patching in our own code? That might let us send a bytestream, but is that legal/possible?
For use on a competition robot, messing with the master code is 100% absolutely not legal. It's also not really possible without inside information.

If all you want to do is get back arbitrary bytes from the robot, the existing data stream gives you six "user bytes" for exactly that purpose. You're still restricted to the predefined transmission rate of ~40 packets per second, which I believe is actually maintained by the OI software -- which you have absolutely no control over.
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
need 2003 radio/help with old radio MaxM Technical Discussion 2 04-01-2004 15:31
Chit-Chat Flood Controll Joe Matt CD Forum Support 1 28-04-2003 14:53
Complications/restrictions of vertically mounted controll panels BOBBEY!!!! General Forum 15 14-01-2003 22:54
Controll Board/Panel Ragin_Kage Technical Discussion 15 01-12-2002 17:44
when is over, over. archiver 2001 2 23-06-2002 23:05


All times are GMT -5. The time now is 01:21.

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