Go to Post I know it's hard to believe, but there actually IS life after FIRST. - jleibs [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 25-01-2013, 16:53
TomH's Avatar
TomH TomH is offline
Registered User
FRC #0087
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: New Jersey
Posts: 53
TomH has a spectacular aura aboutTomH has a spectacular aura aboutTomH has a spectacular aura about
No Image Available Axis Camera

Hello,

When calling the getImage() method of the AxisCamera class (we are using Java as a language), we get an AxisCameraException: no image available. The axis camera is at 10.0.87.11, and is accessible by the team's computers, the classmate, and even the cRio. Using the 'write' methods in the AxisCamera class, such as writeBrightness() or writeResolution(), the changes can be seen when viewing the camera page (from our laptops or computers). freshImage() always returns false. The camera has been tried both in the port of a router (10.0.87.11) and the second slot of the cRio (192.168.0.90). The latter configuration is not accessible by the cRio or our computers. We have not been able to find any information online. We are using Java, with a 2013 imaged cRio (though the getImage() method returned the same exception with the 2012 imaged one), and an Axis M1011 camera. Help would be much appreciated.

Thanks,
Team 87
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2013, 19:00
LaurenMary's Avatar
LaurenMary LaurenMary is offline
Team 2399 Head Programmer
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2010
Location: cleveland
Posts: 5
LaurenMary is an unknown quantity at this point
Re: No Image Available Axis Camera

We are having the same issue with getImage(). As far as we know we have the correct I.P. address and I can't seem to find an actual error. We even have the camera feed on the driver's station working. So far we think that the issue is with our actual camera and the way it's set up. We still haven't found a solution. Have you fixed the problem yet?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2013, 10:43
TomH's Avatar
TomH TomH is offline
Registered User
FRC #0087
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: New Jersey
Posts: 53
TomH has a spectacular aura aboutTomH has a spectacular aura aboutTomH has a spectacular aura about
Re: No Image Available Axis Camera

No, we have not. We've since set up a packet sniffer on a team laptop. Plugging the camera, laptop, and cRIO into a hub, we can see that even when the code is not enabled, the camera and cRIO are communicating, and that the camera is streaming mjpg. Why the cRIO cannot get an image from this stream is unknown.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2013, 11:04
rKramer rKramer is offline
3157 Lead Programmer (Student)
FRC #3157 (Iron Lancers / Eastridge Robotics)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Rochester, New York
Posts: 5
rKramer is an unknown quantity at this point
Re: No Image Available Axis Camera

We had this problem too. We used the FIRST camera config tool to set up our Axis Camera, but we had to troubleshoot after.

Here are some things you should check in the camera's setup page:
-Does the subnet mask match that of the D-Link?
-There should be an account with FRC as the user AND password
-The resolution in Basic Setup -> Video Settings should be set to 320x240 (We think)

These are what we messed with before it started working. I personally think your problem is the FRC account on the camera. If you have an FRC account but don't know if the password is also FRC, delete it and make it again. (Sometimes the camera config tool messes it up)

Hope this helps.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 15:18
muaddib42 muaddib42 is offline
Registered User
FRC #3128
 
Join Date: Jan 2013
Location: United States
Posts: 9
muaddib42 is an unknown quantity at this point
Re: No Image Available Axis Camera

We are currently having the same issues. All of the things you mentioned have been checked and I am still not able to connect to the camera from within code in Java. I am able to access it in the smart dashboard and via the live web view. Does anyone have any ideas?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2014, 15:27
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: No Image Available Axis Camera

The Axis camera will take about 7 seconds from the time you set the connection to it to the time the first image is available. Try starting the connection to the camera when the robot starts and make sure you wait a few seconds before enabling the robot after it starts up.
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 13:28.

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