Go to Post Yeah those design flaws kill you in the end. You especially hate finding out about them in competition. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2009, 20:33
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Clarification of Team Update #5

Part of Team Update #5 states that we are only allowed to send 1024 byte packets from the robot to the driver station.

Even before this update I figured out how to use the librarys to send custom packets from the cRIO to the computer. Using this I built a pretty-reliable (though not perfect) way to print formated debug messages across the ethernet complete with its own checksum. =P

When I first got this working I noticied that the first 8 bytes of the packet are untouchable, and that no matter what the packet is always 1024 bytes long.

As far as I understand the packets I send from the robot don't go to the driver station, they go straight to the computer.

I heard that you can have a laptop with your driver station. Does that mean I can plug a computer into the driver station during a match and get custom packets from the robot?

I have plans in which I could get data from the robot and display it on the computer which would be useful to the drivers. Is this legal?


P.S. If anyone is intrested in my system or what I've discovered while messing with the cRIO's communications just ask.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2009, 20:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Clarification of Team Update #5

It sounds like you are sending your own TCP/IP packets on your own port. This type of data will be blocked by the FMS when you are on the field. If you only want to use it for debugging, don't worry about it, but don't plan on using it on the field.

You can still use the dashboard class to printf data to the dashboard, and that won't be blocked.

I've also written my own application that sends data through TCP/IP, so I understand how frustrating it can be to find out it won't be able to do anything on the field.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2009, 21:14
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Re: Clarification of Team Update #5

Your sure? Even if the laptop is plugged directly into the driver station?

I quote from team update #5:
"If a team really wants to transmit images from the camera back to the Driver Station during a competition, they can decompose the video frame and pass it as user data in the available 984 bytes per packet. "

This makes it sound like you CAN send custom packets. As long as they conform to those size rules and the target, in this case the laptop is plugged into the driver station. (Into port #2)

This way the packets will goto the driverstation then the laptop.
I don't suppose theres any answer in the FAQ?
P.S. What does FMS stand for?

Last edited by bomber7 : 02-02-2009 at 21:34.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2009, 21:25
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Clarification of Team Update #5

Quote:
Originally Posted by bomber7 View Post
...P.S. What does FMS stand for?
Field Management System
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2009, 21:28
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Re: Clarification of Team Update #5

Can anyone confirm your allowed to have a laptop with the driverstation during competition?


Something else I noticied about rule #5

Another quote:
"This year, the Field Management System will not pass data sent through that port during a match (to ensure adequate system performance during competition events, until the new system is better characterized in actual competition settings)."

More things I noticied after the fifth re-read. Its dissallowing large camera packets so as to make sure the network doesn't get bogged down. Sending 1024 packets at even a 10 mpbs connection shouldn't be a problem. They only specifically state that that particular port is disabled. They also state that 1024 byte packet size will be enforced and that around 95% of that packet will be usable for user data.

From my point of view the user has no buisness sending any (custom) packets at all to the driver station. Its not going to compute anything for you, thats the cRIO's job. However if a laptop were connected to the driver station and it simply passed the (custom) packets on to it, that would be useful.

Last edited by bomber7 : 02-02-2009 at 21:34.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2009, 13:35
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Clarification of Team Update #5

Quote:
Originally Posted by bomber7 View Post
Can anyone confirm your allowed to have a laptop with the driverstation during competition?
See <R81>

Quote:
Originally Posted by bomber7 View Post
Something else I noticied about rule #5

Another quote:
"This year, the Field Management System will not pass data sent through that port during a match (to ensure adequate system performance during competition events, until the new system is better characterized in actual competition settings)."

More things I noticied after the fifth re-read. Its dissallowing large camera packets so as to make sure the network doesn't get bogged down. Sending 1024 packets at even a 10 mpbs connection shouldn't be a problem. They only specifically state that that particular port is disabled. They also state that 1024 byte packet size will be enforced and that around 95% of that packet will be usable for user data.
The reason team update 5 was phrased the way it was is because the GDC got tired of people asking on the Q/A if they could view live camera data. If many people had instead asked of they could send raw TCP/IP data through Port XXXXX, the answer would have been that data through port XXXXX is blocked and send it through the user data. In reality, all data except the dashboard data will be blocked.

Quote:
Originally Posted by bomber7 View Post
From my point of view the user has no buisness sending any (custom) packets at all to the driver station. Its not going to compute anything for you, thats the cRIO's job. However if a laptop were connected to the driver station and it simply passed the (custom) packets on to it, that would be useful.
That is exactly what the dashboard class does.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2009, 17:49
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Re: Clarification of Team Update #5

Wow >.>
I can't believe I never fully looked into the dashboard class. It really could have saved me a lot of time. I'm going to look further into this and get back to this thread.

I'm going to spend some time examining the dashboard packets.

I see Dashboard.h but I'm not sure how to use it as of yet. Continuing research.

After looking into it further, I think this is going to be pretty easy to harness my way.

Under the assumption we can recieve the packets using any program we want, this is going to be easier than the way I was previously doing it.

Last edited by bomber7 : 05-02-2009 at 18:46.
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2009, 21:28
Phazonmutant's Avatar
Phazonmutant Phazonmutant is offline
Winrar
AKA: Greg Mitchell
FRC #2556 (RadioActive Roaches)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Niceville, FL
Posts: 17
Phazonmutant is on a distinguished road
Re: Clarification of Team Update #5

Yes, you can have a laptop connected to the Driver Station in competition: http://forums.usfirst.org/showthread.php?t=11640

And apparently other people are thinking about redirecting the packets to a custom gui: http://forums.usfirst.org/showthread.php?t=11360
Reply With Quote
Reply


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
Clarification: '04 RC Firmare update. UrsaMNet Control System 3 20-01-2005 04:58
update 8 clarification, drill motor and blue wires pryoplasm Rules/Strategy 23 13-02-2004 07:26
R71 update acronym clarification pryoplasm Rules/Strategy 3 29-01-2004 22:08
Rules Clarification in Team Update #1 dlavery General Forum 8 08-01-2003 12:36
Team Update #3 is up pavelthegeek Rules/Strategy 8 24-01-2002 14:51


All times are GMT -5. The time now is 03:37.

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