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
|