View Single Post
  #14   Spotlight this post!  
Unread 12-01-2010, 23:20
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by s133p View Post
Update: My code now seems to be able to initialize the camera without it hanging. The lights are on on the cRIO as well. To do this I re-flashed the cRIO and checked to see if the other interface was there. We also switched crossover cables, but im not sure if we needed to.

It seems like the only remaining problem is getting the video out to go back to the laptop now.

Thank you all for your help so far.

-Luke
Any idea what fixed it? My code is still hanging when creating the instance of AxisCamera.

Here is the result of an inetstatShow command

PHP Code:
-> inetstatShow
Active Internet connections 
(including servers)
PCB      Proto Recv-Q Send-Q  Local Address         Foreign Address       (state)
-------- ----- ------ ------  --------------------- --------------------- -------
5c5f60   TCP    17376      0  192.168.0.3.1036      192.168.0.90.80       ESTABLISHED

5c54e0   TCP    17376      0  192.168.0.3.1034      192.168.0.90.80       ESTABLISHED

5c4a60   TCP        0      0  192.168.0.3.1032      192.168.0.90.80       CLOSE_WAIT
5c4520   TCP        0      0  0.0.0.0.1180          0.0.0.0.0             LISTEN
5c3fe0   TCP        0      0  0.0.0.0.3537          0.0.0.0.0             LISTEN
5c3800   TCP        0      0  0.0.0.0.43973         0.0.0.0.0             LISTEN
5c3020   TCP        0      0  0.0.0.0.1028          0.0.0.0.0             LISTEN
5c2ae0   TCP        0      0  0.0.0.0.3363          0.0.0.0.0             LISTEN
5c25a0   TCP        0      0  0.0.0.0.3079          0.0.0.0.0             LISTEN
5c2060   TCP        0      0  0.0.0.0.21            0.0.0.0.0             LISTEN
5c15e0   TCP        0      0  127.0.0.1.1024        0.0.0.0.0             LISTEN
5c1b20   TCP        0      0  0.0.0.0.0             0.0.0.0.0             CLOSED
5c10a0   TCP        0      0  0.0.0.0.44516         0.0.0.0.0             LISTEN
598a80   UDP        0      0  0.0.0.0.1026          0.0.0.0.0
598940   UDP        0      0  0.0.0.0.1110          0.0.0.0.0
598800   UDP        0      0  0.0.0.0.0             0.0.0.0.0
5981c0   UDP        0      0  0.0.0.0.44515         0.0.0.0.0
598080   UDP        0      0  0.0.0.0.68            0.0.0.0.0
value 
0x1
-> 
And here's the output of an ifShow command

PHP Code:
-> ifShow
lo 
(unit number 0):
     
Flags: (0x48049UP LOOPBACK MULTICAST TRAILERS ARP RUNNING INET_UP
     Type
SOFTWARE_LOOPBACK
     inet
127.0.0.1
     Netmask 0xff000000 Subnetmask 0xff000000
     Metric is 0
     Maximum Transfer Unit size is 1536
     0 packets received
20 packets sent
     0 multicast packets received
     0 multicast packets sent
     0 input errors
0 output errors
     0 collisions
0 dropped
     0 output queue drops
fec 
(unit number 0):
     
Flags: (0x68043UP BROADCAST MULTICAST ARP RUNNING INET_UP
     Type
ETHERNET_CSMACD
     inet
10.3.75.2
     Broadcast address
255.255.255.255
     Netmask 0xff000000 Subnetmask 0xff000000
     Ethernet address is 00
:80:2f:11:4d:14
     Metric is 0
     Maximum Transfer Unit size is 1500
     0 octets received
     0 octets sent
     204995 unicast packets received
     202032 unicast packets sent
     247 non
-unicast packets received
     2 non
-unicast packets sent
     0 incoming packets discarded
     0 outgoing packets discarded
     0 incoming errors
     0 outgoing errors
     70 unknown protos
     0 collisions
0 dropped
     0 output queue drops
fei 
(unit number 0):
     
Flags: (0x78043UP BROADCAST MULTICAST ARP RUNNING INET_UP
     Type
ETHERNET_CSMACD
     inet
192.168.0.3
     Broadcast address
255.255.255.255
     Netmask 0xffffff00 Subnetmask 0xffffff00
     Ethernet address is 00
:80:2f:11:4d:15
     Metric is 0
     Maximum Transfer Unit size is 1500
     317987878 octets received
     3500254 octets sent
     218474 unicast packets received
     53020 unicast packets sent
     0 multicast packets received
     0 multicast packets sent
     138 broadcast packets received
     2 broadcast packets sent
     0 incoming packets discarded
     0 outgoing packets discarded
     0 incoming errors
     0 outgoing errors
     0 unknown protos
     0 collisions
0 dropped
     0 output queue drops
value 
26 0x1a 
When I remove the call to AxisCamera::GetInstance(), the watchdog is fed correctly and the code has no problems running.

The camera has the root/admin account set up and has the default 192.168.0.90 IP address.
And yes, I am using a crossover cable.
__________________

Last edited by DanDon : 12-01-2010 at 23:26.