
I am trying to run 2 EZ Cameras on one instense of ARC. I can get a second one to run for a short time but then It quits working and then I get this error message;
8/4/2015 2:38 PM - Camera Initialized: EZB://192.168.1.1 @ 320x240 8/4/2015 2:38 PM - EZ-B v4 Camera Error: System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at EZ_B.EZBv4Video.() 8/4/2015 2:38 PM - Camera Disabled
I have tried it with and without the other camera running - same result.
Thanks Alan. I'll keep playing with it too. I've looked thru the forum discussions and can't find anything on it. Maybe we are breaking new ground.
I been playing around trying to get a second camera to do something, here's some of the things I've tried;
Camera 1 is connected to EZB://192.168.2.104:23 Camera 2 is connected to EZB://192.168.2.94:23
I have images on both cameras.
If both Cameras are operating, when I run this script;
The address for Camera 2 is flipped into the address bar of Camera 1 and the image of Camera 1 is disabled. The image on Camera 2 stays good but doesn't track RED.
If both cameras are off when I run the script - The address for Camera 2 is flipped into the address bar of Camera 1 and the image of Camera 1 is displayed. I've also noticed that the address for Camera 2 is never in the drop down list under Video Device (even though I have entered it several times)
Is there another way to specify a particular camera? Like when specifying a servo from a second EZB a 1 or the number of EZB connection is used ie, Servo(1.D3,50)
Are both Camera Objects named "Camera"? You will need to rename one and reference it in your control commands or both will try to act on it.
Alan
OK Thanks Renamed the second camera and it's working. Now I think I need to change some variables and I might have it.
Cool deal!
Alan
So this is what hung me up for awhile, I didn't change this to Camera 2. So as Alan said it didn't know what camera to use. I thought I would put this up so others in the future will be sure to do it when running more than 1 camera.
Camera 1 is connected to EZB://192.168.2.104:23
What about 192.168.1.2 ?
192.168.1.2 is not the same subnet as 192.168.2.104.
What this means is that you're connected to your router, as I can tell by the IP address. That's fine, but you can only use ip addresses within the routers network range. On your router it's between 192.168.2.2 and 192.168.2.254
That being said, the dhcp of the router will assign the IP address so you don't have to assign it yourself.