Go to Post Cooperate BEHIND the curtain; compete IN FRONT OF it. - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 28-03-2016, 00:17
AaronS AaronS is offline
Registered User
FRC #0166
 
Join Date: Jan 2013
Location: Merrimack, NH
Posts: 6
AaronS is an unknown quantity at this point
Stumped on camera feed not available at driver station but only in matches

Looking for ideas on a camera/driver station/field comms issue we had at our last match.

We use an Axis M1011W (with the wireless turned off). We had a repeated issues on the field in matches that the camera feed was not available in the driver station window nor to our python code (using openCV) on the driver station computer. In 2 days of matches we had success getting the image feed back to the driver station only 4 times. However, when it wasn’t working on the field we could ping the camera from the driver station as well as open a webpage to the camera but the live image was not displayed. After the matches we were provided an opportunity to test with the field comms and we had 100% success in 6 connections getting the feed to show up. We confirmed we were not anywhere near the bandwidth limitation (<1 vs 7) and we started up in several driver positions. We were also 100% successful running tethered and connecting via a router and radio provided on the practice field.

We have the camera, drive station and roborio all with static addresses. The ports for the camera were configured per the camera tool and checked against the documentation. It is interesting (odd?) that the issue was correlated with when we were on the field with the other robots.

We participated in a week zero event with the same camera and while we didn’t have our python vision code running, the team was able to get the image back for the drivers to use directly.

Clearly is was frustrating to the team that we didn’t have the problem except in matches so we weren’t able to troubleshoot and resolve the issue. We worked with the FTAs and they were not able to determine what the issue is either We have another match in 2 weeks and we don’t have a way to identify and resolve what the issue was.

Any thoughts on what we were experiencing ?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-03-2016, 00:58
rich2202 rich2202 is online now
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,189
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Stumped on camera feed not available at driver station but only in matches

We use the M1011 (wired only), and don't have problems.

Does the M1011 have a fixed IP Address? If not, set it to 10.TE.AM.12, where TE.AM is your 4 digit team number. My guess it is the mDNS that is messing you up. When in the field, it can't find the camera.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-03-2016, 01:01
AaronS AaronS is offline
Registered User
FRC #0166
 
Join Date: Jan 2013
Location: Merrimack, NH
Posts: 6
AaronS is an unknown quantity at this point
Re: Stumped on camera feed not available at driver station but only in matches

Quote:
Originally Posted by rich2202 View Post
We use the M1011 (wired only), and don't have problems.

Does the M1011 have a fixed IP Address? If not, set it to 10.TE.AM.12, where TE.AM is your 4 digit team number. My guess it is the mDNS that is messing you up. When in the field, it can't find the camera.
Camera has a fixed IP of 10.TE.AM.11
Reply With Quote
  #4   Spotlight this post!  
Unread 28-03-2016, 01:10
rich2202 rich2202 is online now
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,189
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Stumped on camera feed not available at driver station but only in matches

Now that you mention it, .11 is the right number.

Is the Subnet mask of the camera and driver station set to 255.0.0.0?

I just saw that you could open a web page to the camera, but not a Smart Dashboard image. We had that same problem 2 years ago, and just used the web page image. I'll have to ask our programmers how they fixed the problem this year. I think it had to do with getting the Smart Dashboard parameters right. Did you give Smart Dashboard the fixed IP address, and not let it look for the mDns address?

Last edited by rich2202 : 28-03-2016 at 01:14.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-03-2016, 01:40
AaronS AaronS is offline
Registered User
FRC #0166
 
Join Date: Jan 2013
Location: Merrimack, NH
Posts: 6
AaronS is an unknown quantity at this point
Re: Stumped on camera feed not available at driver station but only in matches

the driver station has a fixed ip also. we can connect to the camera web page but the live image doesnt show on the screen. just an empty box. some matches it does work however.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-03-2016, 06:54
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Stumped on camera feed not available at driver station but only in matches

How is the camera addressed in the dashboard code? Is it assigned the fixed IP address or is it assigned by the network name?

In the 2015 season, we found we had to restart the dashboard before we went to the field or our USB camera would not show. The source of this issue was the dashboard grabbing using the IP address it picked up in the pits (172.22.11.2 or other) and not using DHCP to grab the new IP address on the field (10.X.X.X). You may be having a similar issue.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #7   Spotlight this post!  
Unread 28-03-2016, 07:13
rich2202 rich2202 is online now
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,189
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Stumped on camera feed not available at driver station but only in matches

Quote:
Originally Posted by AaronS View Post
the driver station has a fixed ip also. we can connect to the camera web page but the live image doesnt show on the screen. just an empty box. some matches it does work however.
So you can access the web page of the camera, but that web page does not show the feed? Hmmm....

I'm guessing it is a setting on the camera. Or, an antivirus or other similar program interfering.

Also, there are specific UDP(?) sockets that the camera is supposed to be using. Make sure it is one of those. If it worked through FMS without any other teams on the field, this may not be the problem, but you might want to check anyway. FMS should block wrong usage regardless, but maybe not.

Last edited by rich2202 : 28-03-2016 at 07:15.
Reply With Quote
  #8   Spotlight this post!  
Unread 28-03-2016, 08:08
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,112
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: Stumped on camera feed not available at driver station but only in matches

I have a vague memory from a couple of years ago about Axis cameras and the Java Smart Dashboard. Might you need to enable anonymous access in the camera's web configuration?
Reply With Quote
  #9   Spotlight this post!  
Unread 28-03-2016, 08:09
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,112
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: Stumped on camera feed not available at driver station but only in matches

Quote:
Originally Posted by adciv View Post
In the 2015 season, we found we had to restart the dashboard before we went to the field or our USB camera would not show. The source of this issue was the dashboard grabbing using the IP address it picked up in the pits (172.22.11.2 or other) and not using DHCP to grab the new IP address on the field (10.X.X.X). You may be having a similar issue.
I'll second this.
Reply With Quote
  #10   Spotlight this post!  
Unread 28-03-2016, 10:05
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Stumped on camera feed not available at driver station but only in matches

My suspicion is that the code is trying to establish a connection, but the other side isn't ready, so it gives up or doesn't successfully continue trying to establish in the background.

The LV dashboard has a dedicated loop that twice a second checks the connection. If it isn't valid or has an error, it closes anything it has and reopens the session. If the web browser works with the camera, and the SD client doesn't, the issue is with the client.

You may also want to try the default dashboard in its IP mode. Bayou had a team that started with the default DB, established the connection, then closed and opened the SD. That was their self-discovered process for getting it to work on the field.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 07-04-2016, 01:35
PeeDiddy PeeDiddy is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Driver
 
Join Date: Apr 2016
Rookie Year: 2014
Location: Newbury Park, CA
Posts: 8
PeeDiddy is an unknown quantity at this point
Re: Stumped on camera feed not available at driver station but only in matches

I'm not much of a coder, so i don't know half of what the suggested fixes are, but during my team's regionals, the cameras would work when tethered at the pit, but would mysteriously not show up with FMS connected. For whatever reason "RIOsetting" (resetting the rio) just after setting up on the field fixed our problems.

TLDR: RIOset the bot prior to retreating to driver station
Reply With Quote
  #12   Spotlight this post!  
Unread 27-04-2016, 23:30
AaronS AaronS is offline
Registered User
FRC #0166
 
Join Date: Jan 2013
Location: Merrimack, NH
Posts: 6
AaronS is an unknown quantity at this point
Re: Stumped on camera feed not available at driver station but only in matches

We isolated the issue to the specific lap top we were using for driver station and vison processing. There was an issue with the network chip/driver that we could recreate high occurance of dropped packets but in the end couldnt determine the specific issue. Changing to a duplicate laptop resolved the problem.
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 17:34.

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