Insta360Develop / CameraSDK-Cpp

CameraSDK-Cpp is a C++ library to control Insta360 cameras.
https://www.insta360.com
126 stars 19 forks source link

X4 - no Android USB mode #53

Open hankzoid opened 5 months ago

hankzoid commented 5 months ago

Insta360 X4 Firmware 1.1.4 (released 2 weeks ago) Ubuntu 22.04

I managed to compile the demo but getting "no device found" message when running as root.

I can see the device listed with lsusb

The instructions for the X3 say to set the USB mode to "Android", but for the X4 I only get "U-Disk Mode" and "Reverse Charging" options when plugging in the cable. The X4 was recently added as a supported device for the SDK, am I missing something here?

hankzoid commented 5 months ago

Same "no device found" result on Windows when running the CameraSDKTest.exe that was supplied in the SDK.

MattL-NZ commented 4 months ago

Same issue here testing with the X4. How can we get this to work?

hankzoid commented 4 months ago

Same issue here testing with the X4. How can we get this to work?

I emailed support who confirmed there's a firmware update for the X4 with Android mode due to be released at the end of July.

JanuszBedkowski commented 3 months ago

Can somebody confirm that X4 is working with CameraSDKTest program? I receive this message in console

begin open camera no device found.

JanuszBedkowski commented 3 months ago

I forgot to mention that my X4s firmware is v1.1.5

hankzoid commented 3 months ago

X4 is not supported yet. According to support, firmware v1.2.21 is supposed to be released this week which will allow Android USB mode for the X4

JanuszBedkowski commented 3 months ago

Is SDK supports Raspberry PI4 32 and 64 OS? I would like to controll camera from my RPI, this is my project https://github.com/MapsHD/HDMapping

MattL-NZ commented 3 months ago

I received an email back on 30th July saying the latest SDK supports the X4 camera.

image

JanuszBedkowski commented 3 months ago

I am looking for person who is succesful in Insta360 X4 with newest SDK. I can not confirm that it is working.

MattL-NZ commented 3 months ago

@JanuszBedkowski I can confirm the X4 works with their demo you can download from Github, but I cannot get the X4 to work when writing our own code based on their readme. I get memory leak issues trying to just discover devices. There appears to be no one from Insta360 that is going to respond to the github issues either...

JanuszBedkowski commented 3 months ago

Can You provide some technical details oof running system

  1. Insta360 firmaware
  2. Ubuntu version etc.

I would like to replicate experiment

My goal is to trig camera to make shot and store url for file

JanuszBedkowski commented 3 months ago

" I get memory leak issues trying to just discover devices" --> so is it workin or not? my setup can not find any device.

JanuszBedkowski commented 3 months ago

Can You make Youtube video as helpfull manual that I can follow?

karolmajek commented 1 month ago

Insta360 X4 Firmware 1.1.4 (released 2 weeks ago) Ubuntu 22.04

I managed to compile the demo but getting "no device found" message when running as root.

I can see the device listed with lsusb

The instructions for the X3 say to set the USB mode to "Android", but for the X4 I only get "U-Disk Mode" and "Reverse Charging" options when plugging in the cable. The X4 was recently added as a supported device for the SDK, am I missing something here?

having X4 with 1.1.5 firmware (as above) after connecting USB - only 2 modes visible:

anyone managed to somehow activate Android mode on X4?

karolmajek commented 1 month ago
lsusb | grep X4
Bus 001 Device 018: ID 070a:4026 Oki Electric Industry Co., Ltd Insta360 X4

image

karolmajek commented 1 month ago

guess I'm about to install new firmware: image

karolmajek commented 1 month ago

Followed instructions from: https://onlinemanual.insta360.com/x4/en-us/camera/maintenance/firmware

Namely:

Update via Computer
1. Make sure X4 is powered on.
2. Connect the camera to the computer using the USB Type-C cable and select USB Mode.
3. Download the latest firmware version from the official Insta360 website on your computer.
4. Once the computer has recognized X4, copy the "Insta360X4FW.bin" file to X4's root directory.

After unmount and disconnecting usb camera identified that new firmware is there updated firmware successfully restarted

Now Android mode is there image

Issue should be closed

BTW it works well in webcam mode (2880x1440px stitched image, low latency)

autonomy-123 commented 2 weeks ago

@JanuszBedkowski I can confirm the X4 works with their demo you can download from Github, but I cannot get the X4 to work when writing our own code based on their readme. I get memory leak issues trying to just discover devices. There appears to be no one from Insta360 that is going to respond to the github issues either...

hi @JanuszBedkowski , @karolmajek I am working with x4 on NVIDIA Jetson. I applied for sdk & I get it, Now m not able to run the main.cc file under examples it says #include <camera/camera.h> fatal error.

Can you give me step by step guide to chieve this.

I have open issue for the same #65

JanuszBedkowski commented 2 weeks ago

Please follow Karol Majek instructions. He helped me succesfully.

autonomy-123 commented 2 weeks ago

Please follow Karol Majek instructions. He helped me succesfully.

Hey @JanuszBedkowski I am not having issues with firmware thing. I am able to connect X4 with my Jetson and also able to see it when run command 'lsusb' in terminal.

I want to run the demo & see the live feed on jeston device .

Is the issue with arm archietcure?

Can you please explain?

karolmajek commented 2 weeks ago

I was building using command from https://github.com/Insta360Develop/CameraSDK-Cpp/issues/8

g++ -v -std=c++11 ./example/main.cc -I./include/ -L./lib/ -lCameraSDK -lpthread -ludev -o ./bin/CameraSDKTest
karolmajek commented 2 weeks ago

On Jetson you need to build using amd64 instead of native aarch64 Since they provide only amd64 lib so

autonomy-123 commented 2 weeks ago

On Jetson you need to build using amd64 instead of native aarch64 Since they provide only amd64 lib so

@karolmajek Thanks for your reply. Its great to know CameraSDK is supported with Jetson system.

I just want to know there are no build files for sdk, do we just need to extract cameraSDK . Can you please give me the step by step guide how to run & setup the sdk?

I am new to this, so facing issues setting up as well

Thanks

autonomy-123 commented 2 weeks ago

I was building using command from #8

g++ -v -std=c++11 ./example/main.cc -I./include/ -L./lib/ -lCameraSDK -lpthread -ludev -o ./bin/CameraSDKTest

@karolmajek I tried running this command... The terminal logs shows this..

WhatsApp Image 2024-11-12 at 17 13 59 WhatsApp Image 2024-11-12 at 17 14 05