
I am trying to run 2 EZ Cameras on one instense of EZ Builder. 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.
When connecting two ez-b's via client mode I can advise that you space your ez-b's out a bit so they don't interfere with each other and that you search for them (using the scan tool in ARC) on your router's network. Ex: my router's IP is 192.168.0.1 so I have to scan 192.168.0.1 to 192.168.0.254. Each ez-b will chime when it's found by the scan tool. Then you connect to each one individually in the connection window. ex: connection 0 = 192.168.0.115:23 and connection 1 = 192.168.0.116:23. You then need to change the camera IP's in the camera controls to 192.168.0.115 and 192.168.0.116.
Please check out this tutorial for an overview.
Thanks for your help
As for running two in client mode, You are probably getting hit with the DHCP bug. http://www.ez-robot.com/Community/Forum/Thread?threadId=7229
Have your router guy set "reserved IP" addresses of the EZ-Bs for the lowest octet on your network.
For instance, if your router IP is 192.168.0.1, set one EZ-B to get 192.168.0.2 and the other to get 192.168.0.3. Always start your computer first (unless it is wired, in which case it doesn't matter) then the ".2" EZ-B then the ".3" EZ-B. Depending on how fast your router responds to DHCP requests, the second EZ-B may get its IP address assigned by the first EZ-B instead of the router, but it will always be ".3" as long as the first one is ".2" and your computer will see it. If you start them simultaneously you can also likely avoid the issue but it is a little hit or miss.
Alan
When both are up and running and I use one of them the other one gets knocked out. I have specified in the script which camera to use but it still happens and the URL of the second camera changes to that of the other.
Does anyone have 2 cameras setup and working? Could you give me some pointers to get going.
Thanks
Alan
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;
Code:
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)
Alan
Alan
What about 192.168.1.2 ?
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.