Page 1 of 1

Chrome - lost camera image

PostPosted: Sat Jul 11, 2015 3:41 pm
by kevcook
Hi,

Just connected up a Pi 2 B, everything working except camera using the Chrome. Also trying to run any image py script results in errors. As below
File "D:/Dawnwebsockets/DawnRobotics-py_websockets_bot-32753496c972/examples/get_image.py", line 21, in <module>
bot = py_websockets_bot.WebsocketsBot( args.hostname )
File "C:\Python27\lib\site-packages\py_websockets_bot\__init__.py", line 248, in __init__
self._websocket = websocket.create_connection( url )
File "C:\Python27\lib\site-packages\py_websockets_bot\websocket\__init__.py", line 214, in create_connection
websock.connect(url, **options)
File "C:\Python27\lib\site-packages\py_websockets_bot\websocket\__init__.py", line 464, in connect
self.sock.connect((hostname, port))
File "C:\Python27\lib\socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it

Network is OK and the motor and camera cradle all work OK.The motor examples and some scripts for infrared object avoidance also worked. But not the Camera. Disconnected and reconnected etc.
Swapped over the Pi 2 back to the Pi 1 and the camera won't work there either. EXCEPT in both cases when you first run the Chrome script and you do see a still picture which clears the moment you touch the two buttons this suggests that the cam IS working. It's all connected up and I've tried both a direct power feed as well as the power pack I had been using.
Any suggestions at all where I might go now? Or have a lost a camera?

Kevin.

Re: Chrome - lost camera image

PostPosted: Sat Jul 11, 2015 4:08 pm
by kevcook
A follow -up.
I've just tried it all using an android tablet and the camera's fine but the motors won't work! Ran both desktop and tablet together and PC can run motors but there's no camera image.
Is this a mixed battery/power/WiFi issue? SO... using them both I have a complete system! But there must be something adrift.
This doesn't explain the refusal to link for the image scripts though.

I'm going to clear everything down, reload it all and test again.

Re: Chrome - lost camera image

PostPosted: Sat Jul 11, 2015 4:57 pm
by kevcook
Update.

I've used the battery pack to run the Dagu and a wall adapter for the Pi. Using the ASUS android it all works fine now. So there was a battery issue there. But the PC will only allow motor and camera servos but NOT the camera image. This can't be a power issue and the PC is a new Dell running 8.1 and the latest Chrome, so are there settings somewhere which I am missing?
It only seems small point now but its important for me to be able to use the PC.
Also the refused error is still there.
Kevin

Re: Chrome - lost camera image

PostPosted: Mon Jul 13, 2015 5:22 am
by Alan
Hi Kevin,

Glad you're at least partially up and running. I'll try running with the latest version of Chrome myself to see if I can recreate the issue. In the meantime, do you have any joy trying to connect with Firefox from the PC?

Regards

Alan