Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is USB RNDIS ip address? #19

Open
stephanschulz opened this issue Mar 3, 2017 · 29 comments
Open

what is USB RNDIS ip address? #19

stephanschulz opened this issue Mar 3, 2017 · 29 comments

Comments

@stephanschulz
Copy link

i'm trying to use the USB network.

which IP do i have to set my computer to in order to communicate with the camera over USB?
i tried the 10.98.32.3 that i have when using wifi, but it's not answering any of my pings

@benhinchley
Copy link

The USB network feature was not fully implemented in the E1 from what I found. Though the correct IP address is 192.168.168.1, to connect to it via usb you will need to connect to the USB0 networking device and set an IP Address in the right range, the easiest way to do this is on a linux machine.

@francisrath
Copy link

Is it possible to control the camera at all over USB with the current firmware? I would like to use it in a time lapse setup, starting/stopping the sequence, and moving pictures from the camera to a PC (Raspberry PI for example).

@rlamarche
Copy link

rlamarche commented Feb 22, 2018

Hi,
I successfully connected to the zcamera through usb port in networking mode on IP 192.168.168.1.
Thanks for the info on the IP Address.

I have also successfuly got the liveview in h264 and displaying it in a Qt application.

But I find that the resolution is very low (less than 640x480). I wonder if it is possible to increase it.

Note that the camera is also responding on the http api through the usb port.

@benhinchley
Copy link

@rlamarche you should be able to control the resolution via the HTTP API, it used to be documented in the streaming section of the docs, but i believe that has since been removed (might need to go through the commit history to find it again)

@rlamarche
Copy link

Thanks. I looked but there is no http control of this kind.
But : when changing the recording format in the camera it self, the h264 resolution changes.

in 4K, I get the lowest resolution. But when choosing 2160 (4/3), I get 640x480.

Summary :

I get 432x240 in 4K mode.
I get 640x480 in all 4/3 modes.
I get 640x640 in all 1:1 modes.
I get 848x480 in 1080, 720 and WVGA modes.

So the best mode for both recording and "liveviewing" on remote is 2160.

WiFi or USB Network mode have the same behaviour. There is just a different IP.
And when I enable USB Network mode, WiFi mode is no longer available.

@rlamarche
Copy link

rlamarche commented Feb 24, 2018

Here you can find the code of my test :
https://github.com/rlamarche/zcamera-e1-liveview/tree/master

@lauramorillo
Copy link

@francisrath did you manage to connect the camera to a Raspberry Pi using USB Network?

@francisrath
Copy link

No, I gave up. Not putting any more effort into this camera as it seems like they didn't bother following up on their promises :(

Tried to contact them regarding a new camera, but got no reply there either...

@lauramorillo
Copy link

@francisrath if you still want to do something with it I managed to connect. The main problem was the cable I was using! If you enable the usb network you will only need to modify /etc/dhcpcd.conf to add:

interface usb0
static ip_address=192.168.168.2
static routers=192.168.168.1
static domain_name_servers=192.168.168.1

And then you should be able to connect to the http api calling http://192.168.168.1

It doesn't work with all the usb cables, so you should first ensure that the raspberry pi is recognising a device interface usb0.

@eungyoda
Copy link

Can I change the ip address of the E1 camera? I want to connect and control several E1s.

@jlucidar
Copy link

jlucidar commented Apr 5, 2018

telnet port is open, so you can reconfigure the whole thing to your needs.

@eungyoda
Copy link

eungyoda commented Apr 6, 2018

@jlucidar Oh! cool! Can you tell me the root account information?

@rlamarche
Copy link

you mean that we can connect to the camera with telnet ?

@eungyoda
Copy link

eungyoda commented Apr 6, 2018

i logged in as the "root" account. thx @jlucidar
@rlamarche yes! we can connect to the camera.

2018-04-06 5 33 29

@rlamarche
Copy link

mmh that's interesting. Do you think that we could unlock or add some features to the camera by this way ? Or is this an isolated environment ..

@rlamarche
Copy link

I did connect to the camera, thank you for the tip.
Now we should be able to do some hacks by patching the ambarella firmware no ?
See here : http://konradit.github.io/hacking.html

@eungyoda
Copy link

@jlucidar i didm't change E1 ip address. All files / folders are read-only. Do you know how to change it?

@eungyoda
Copy link

I got the right to read and write. But I made the wrong bashrc file, and E1 became a black brick.
If you want to change the write permission, try as follows. Caution. It can be black brick.

  1. connect telnet 192.168.168.1
  2. account : root
  3. mount -o remount,rw devtempfs /

@jey18
Copy link

jey18 commented Jul 1, 2018

BE CAREFUL. I play with telnet. I killed the 'awesome_camera' process. Now the cam don't boot normaly, and i cannot connect anymore. Anyone would know what to do?

@jey18
Copy link

jey18 commented Jul 2, 2018

Ok i found a way to unbrick using a autoexec.ash script.
That was painful :)

@vvjuss
Copy link

vvjuss commented Aug 15, 2018

Please show your autoexec.ash ))) And how to boot to normal. Thx!

@jey18
Copy link

jey18 commented Aug 15, 2018

I dont have a computer to read my sd card because i'm on holidays. I think if you copy the firmware on sd card root, then create a autoexec.ash with :
firmfl prog c:\E1fw.bin
Then the camera will flash a valid firmware and boot again. You must eject your sd card as soon as you read 'update complete' or something like that on the small LCD display. If not, the flash process will start again.

@vvjuss
Copy link

vvjuss commented Aug 15, 2018

the camera turns off after 10 seconds. and I think autoexec not started.

@jey18
Copy link

jey18 commented Aug 16, 2018

Did you edit it in unix text format ? If you are on Windows with notepad++. If not , it will be ignored.

@vvjuss
Copy link

vvjuss commented Aug 16, 2018

Im using nano on macos or ubuntu. But nothing. Also I tried simple commands like ps > /tmp/fuse_d/log.txt, but it seems that the autoexec is simply not executed.

@jey18
Copy link

jey18 commented Aug 16, 2018

Last line must be empty...

@jey18
Copy link

jey18 commented Aug 16, 2018

Try:
############
dmesg rtos on
sleep 10
dmesg rtos -3000 > c:\log.txt

############

And see if log.txt is created.

@vvjuss
Copy link

vvjuss commented Aug 16, 2018

You're right! It's all in the last line. I opened it in sublime and fixed. Will try to flash firmware.
Thank you!!!

@chandranpranav
Copy link

chandranpranav commented Oct 2, 2020

Heyy guys I would really like some input here, I'm trying to connect my GoPro Hero 8 and use it as a camera on OpenCV applications. I'm using multiple cameras for object detection. When I connect my GoPro it is detected as a Network Adapter under the name 'GoPro RNDIS Device' I can use it on Skype, Zoom, and other applications but when I try to connect two cameras it detects only one camera.. But in device manager detects as two. What I want is to read these camera inputs through OpenCV. Any input would be appreciated.
Capvbcmhgture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants