Chrome - lost camera image

If you need technical help with anything you've bought from Dawn Robotics, please post here.

Chrome - lost camera image

Postby kevcook » Sat Jul 11, 2015 3:41 pm

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.
kevcook
 
Posts: 16
Joined: Mon Apr 13, 2015 2:23 pm

Re: Chrome - lost camera image

Postby kevcook » Sat Jul 11, 2015 4:08 pm

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.
kevcook
 
Posts: 16
Joined: Mon Apr 13, 2015 2:23 pm

Re: Chrome - lost camera image

Postby kevcook » Sat Jul 11, 2015 4:57 pm

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
kevcook
 
Posts: 16
Joined: Mon Apr 13, 2015 2:23 pm

Re: Chrome - lost camera image

Postby Alan » Mon Jul 13, 2015 5:22 am

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
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 0 guests