Go to Post It's not very graciously professional to point out the un-gracious professionalism in others. - Taylor [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-06-2016, 19:27
CB313 CB313 is offline
Registered User
FRC #0313
 
Join Date: Jun 2016
Location: Westland, Michigan
Posts: 4
CB313 is an unknown quantity at this point
RoboRealm not connecting to the RoboRio

So, we're using RoboRealm for our offseason event, and we're having some issues. Namely. the camera isn't connecting to the Rio. The attached photo is what we get. It's worth noting, that isn't from our camera. Here is our code. If anyone who has used RoboRealm with C++ can help, that would be great. We don't have a clue what we did wrong.
Attached Thumbnails
Click image for larger version

Name:	SHAME.png
Views:	57
Size:	123.6 KB
ID:	20885  
Reply With Quote
  #2   Spotlight this post!  
Unread 30-06-2016, 12:31
Team34Guy's Avatar
Team34Guy Team34Guy is offline
Controls/Programming Mentor
AKA: Chris Southard
FRC #0034 (Rockets Team 34)
Team Role: Mentor
 
Join Date: Aug 2015
Rookie Year: 2009
Location: Athens, AL
Posts: 21
Team34Guy is a jewel in the roughTeam34Guy is a jewel in the roughTeam34Guy is a jewel in the rough
Re: RoboRealm not connecting to the RoboRio

We had trouble with RoboRealm earlier in the year and it was a port problem...not sure if that was your issue. My understanding is that the field control system is persnickety about the ports used. That's all I've got...good luck. We're doing a lot with vision this off-season, trying to alleviate some of the issues we've contended with recently. We're going to create a field control system to test our bot on so we won't be surprised at competition when our video disappears...
__________________
Turbo Encabulator Installation and Repair
Reply With Quote
  #3   Spotlight this post!  
Unread 30-06-2016, 12:48
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 330
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: RoboRealm not connecting to the RoboRio

Yes, the FMS will only allow you to use certain ports. These are in the manual, rule R60:
Quote:
Communication between the ROBOT and the OPERATOR CONSOLE is restricted as follows:
A. Network Ports:
i. TCP 1180: Camera data from the roboRIO to the Driver Station (DS) when the camera is connected the roboRIO via USB, bi-directional.
ii. TCP 1735: SmartDashboard, bi-directional
iii. UDP 1130: Dashboard-to-ROBOT control data, uni-directional
iv. UDP 1140: ROBOT-to-Dashboard status data, uni-directional
v. HTTP 80: Camera connected via switch on the ROBOT, bi-directional
vi. HTTP 443: Camera connected via switch on the ROBOT, bi-directional
vii. UDP/TCP 554: Real-Time Streaming Protocol for h.264 camera streaming, bi- directional
viii. UDP/TCP 5800-5810: Team Use, bi-directional
Make sure the port you are using that is set up on both sides is one of these ports. I believe the home configured firmware also restricts these to these ports.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #4   Spotlight this post!  
Unread 30-06-2016, 19:09
CB313 CB313 is offline
Registered User
FRC #0313
 
Join Date: Jun 2016
Location: Westland, Michigan
Posts: 4
CB313 is an unknown quantity at this point
Re: RoboRealm not connecting to the RoboRio

So, we have the camera connected through the Rio and all, but we can't get RoboRealm to connect. We've never used it before, so we don't know what we did wrong. I set up the NetworkTables and all that, but we can't get RoboRealm to connect to the Rio. It works fine when the camera is connected to the Laptop.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-07-2016, 20:40
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRealm not connecting to the RoboRio

In our experience last year we think we have had problems with Network tables on roborealm. The values were being updated but in the driver station we were frequently spammed with new clients connecting to the RIO, and behavior was often very difficult to predict.

We later changed transitioned to communicating to the RIO via a TCP socket, and I would recommend at least trying it out using one of the allowed ports above. It was a lot easier than I expected and the roborealm tcp tool was very helpful for debugging.

Afterwards behavior seemed better but we are still not completely sure if it solved our problem.

Last edited by Tyler Scheuble : 01-07-2016 at 20:43.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-07-2016, 11:09
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: RoboRealm not connecting to the RoboRio

Tyler: how did your Network Tables problems manifest themselves?

We're seeing that RoboRealm seems to keep disconnecting at what appears to be random times (we can see the messages in RoboRealm). A restart of the roboRIO fixes things for a while.

We also see some protocol error messages in RoboRealm.

We're *this* close to following your lead, scrapping the Network Tables module, and running straight TCP.

Wish RoboRealm did UDP....
Reply With Quote
  #7   Spotlight this post!  
Unread 02-07-2016, 16:48
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRealm not connecting to the RoboRio

Quote:
Originally Posted by fovea1959 View Post
Tyler: how did your Network Tables problems manifest themselves?

We're seeing that RoboRealm seems to keep disconnecting at what appears to be random times (we can see the messages in RoboRealm). A restart of the roboRIO fixes things for a while.

We also see some protocol error messages in RoboRealm.
On the field our vision had seemingly undefined behavior and was very inconsistent overall. Often it would just pivot the robot in one only direction at full power until either the aim command was canceled or the robot was stopped. This looked a lot like a communication issue to us.

These problems seemed to happen at random which made them difficult to reproduce.

Last edited by Tyler Scheuble : 02-07-2016 at 16:51.
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


All times are GMT -5. The time now is 03: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