Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yliu

Pages: [1]
1
Hi David,
    I am wondering if there is any additional setup I should perform to successfully connect to the camera via USB. I got the following error when trying to run the script. I am able to ping the IP (192.168.12.21 in my case). I am using software 0.3.0-RC1. The camera is Chronos 1.4, Moochrome, 32 GB.
    Any suggestions will be appreciated!

Code: [Select]
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py", line 2878, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-f07cba69afd6>", line 1, in <module>
    runfile('C:/Users/PG_silver/Downloads/get_latest_video.py', wdir='C:/Users/PG_silver/Downloads')
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\_pydev_bundle\pydev_umd.py", line 194, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:/Users/PG_silver/Downloads/get_latest_video.py", line 7, in <module>
    cam = ParamikoMachine(host=host, user='root', password='')
  File "C:\Users\PG_silver\AppData\Roaming\Python\Python27\site-packages\plumbum\machines\paramiko_machine.py", line 245, in __init__
    self._client.connect(host, **kwargs)
  File "C:\Users\PG_silver\AppData\Roaming\Python\Python27\site-packages\paramiko\client.py", line 357, in connect
    raise NoValidConnectionsError(errors)
NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 192.168.12.21

Here's the script as it stands. It requires a few libraries and needs to be run on a computer connected to the camera via USB.

The libraries it needs are: plumbum, parimoko

2
Chronos User Discussion / Re: Connect to Chronos 1.4 via Ethernet
« on: August 09, 2018, 02:36:52 PM »
Thank you for the suggestions. When I tried the script, there is an error message saying something like the host actively refuses the connection. Is it because I am using software 0.3.0_RC on the camera? Do I need to check if the port is open for scp? Actually this script is the reason why I was thinking about using winscp to connect to the camera file system directly. Assuming the script works fine, does it mean that it should also work with winscp? Thanks again for helping out.

3
Chronos User Discussion / Connect to Chronos 1.4 via Ethernet
« on: August 09, 2018, 09:01:39 AM »
Hello,
   I am wondering if it is possible to directly connect Chronos using winscp after connecting it to PC via USB port. It would be helpful if I can manage the files on the SD card this way. I tried to connect using the IP address obtained from ipconfig, but the camera seems to refuse the connection. I am using software 0.3.0_RC on the camera.
   I also read from another post that a web api is being developed. Is there any update on that end? Thank you very much!


Pages: [1]