Go to Post Reffing a FIRST event is unlike being an ump or a ref at any other event. Where else is a game invented each year and over 1000 teams play this game within 3 months of its birth? - Andy Baker [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 10-02-2010, 13:16
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Exclamation Routing Camera output via the cRIO

Greetings!

I've come across something related to the Axis camera that I thought I'd pass along. First, if you allow the Axis camera to get its IP address via DHCP, the default IP gateway is listed as 192.168.0.1. This gateway doesn't exist. So, camera output via a standard web browser will not be possible. Either fix the DHCP assignment on the cRIO or setup the Axis to use the 192.168.0.3 address of the cRIO as its gateway via a static IP assignment.

Next comes the magic. On the cRIO, there is a special variable called "ipforwarding" that controls whether the cRIO forwards packets across the 2 Ethernets. Setting that variable to "1", enables IP forwarding. So from a VxWorks shell or via the cRIO console port:

-> ipforwarding=1

will enable the ability to use a standard browser to see and monitor the camera video without the use of the dashboard.

To make this permanent, you'll need to either create an application that sets that variable (remember it's an "extern") or add the ipforwarding=1 command to a script of some sort.

HTH,

Mike
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2010, 15:52
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Routing Camera output via the cRIO

we need static routes in the driver station router also?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2010, 16:16
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Routing Camera output via the cRIO

Yes, you'll need to add a route to the Classmate to be able to get to the Axis camera as well. In WinDoze from a DOS cmd box:

route add 192.168.0.0 mask 255.255.255.0 10.xx.yy.2 metric 3 -p

The xx.yy is your team number e.g., Team 116 would be 10.1.16.2. The metric of 3 allows it to go through 3 hops to get to the camera. It's one more than you need, but this allows you to attach a secondary laptop to the Classmate via a USB Ethernet and display the output on the secondary PC. Since the Classmate appears to be having trouble keeping up with the video, this is a good option that is still within the rules.

The final "-p" makes this route persistent across reboots. I.e., you won't have to enter this route again on the Classmate.

HTH.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-03-2016, 13:26
bdleppke bdleppke is offline
Registered User
FRC #1731
 
Join Date: Feb 2008
Location: Virginia
Posts: 3
bdleppke is an unknown quantity at this point
Re: Routing Camera output via the cRIO

Interesting - thanks for posting. Is this still valid for the 2015/2016 crio? We have a static IP address on our Axis camera and we would like to be able to connect to the web page of the camera from the driver station laptop while tethered with the USB.

Brent
Reply With Quote
  #5   Spotlight this post!  
Unread 28-03-2016, 11:13
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Routing Camera output via the cRIO

Please clarify if you are discussing the cRIO or the roboRIO as they (as well as the control system surrounding both components) are nothing alike.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
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
crio dashboard GPIO output darkorbit Programming 8 09-02-2010 15:29
cRIO output problem alex42 FRC Control System 1 27-01-2010 22:28
cRIO output files aoconnor Programming 2 09-02-2009 17:59
Axis camera without the cRIO CrazyCarl461 NI LabVIEW 12 17-01-2009 10:53
moving via camera input DanDon Programming 1 20-01-2005 20:12


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