openipcamera/openipc-firmware

Wyzecam V2 - VIDIOC_REGISTER_SENSOR(jxf22) error

GitHubOnline2018 opened this issue ยท 55 comments

Installed Version 0.2.6.1 on Wysecam V2. New firmware booted and can access the web interface but cannot access RTSP on port 8554 or 554.

When I enable RTSP H264 Server under Camera Controls, it is not enabled the next time I check (actually when I click Camera Controls the settings shows the automation of that slider disabling).

rtsp-h264 appears to be started within Services. I am seeing "NOK" next to rtsp-h264 in the services.

The logcat logs show:
VIDIOC_REGISTER_SENSOR(jxf22) error!

The dmesg log ends with:
[ 16.110937] probe ok ------->jxf22
[ 16.138399] -----jxf22_detect: 432 ret = 0, v = 0x0f
[ 16.138901] -----jxf22_detect: 440 ret = 0, v = 0x23
[ 16.138915] jxf22 0-0040: chip found @ 0x40 (i2c0) is not an jxf22 chip.
[ 16.150989] do_page_fault() #2: sending SIGSEGV to v4l2rtspserver- for invalid read access from
[ 16.150989] 00000000 (epc == 004c2cf8, ra == 0045b454)

I have been able to get back to the factory firmware.

I was about to start a thread about what appears to be new variation of the V2 camera.

I have Wyze V2 cameras purchased in March 2018 and June 2018 which work fine with 0.2.6.1.

I just purchased two more within the past week and they exhibit the behavior OP describes. Moving same (multiple working) SD cards from old camera to new camera reproduces the jxf22 error and no video. Menus work as described above but no video from camera web page or via rtsp-mjpeg.

I have not had a chance to troubleshoot further. Hopefully I can spend some time this weekend.

I was having a similar issue where I could not get rtsp-mtjpeg to run (needed for BlueCherry DVR.) I could get it started but would get the "NOK" message as well. I ended up getting it to work by stopping the rtsp-h264 service and turning off the autorun for that service. Then I was able to turn on autorun for rtsp-mtjpeg and start the service without issue. Maybe try the same thing in reverse?

Thanks. I believe I tried that but I tried so many things that I might not be remembering correctly. I will try it and document my steps this time.

Same thing here. Bought two Wyze V2 came from Amazon last week and exhibit the exact same symptoms stated above.

Installed Version 0.2.6.1 on Wysecam V2. New firmware booted and can access the web interface but cannot access RTSP on port 8554 or 554.

When I enable RTSP H264 Server under Camera Controls, it is not enabled the next time I check (actually when I click Camera Controls the settings shows the automation of that slider disabling).

rtsp-h264 appears to be started within Services. I am seeing "NOK" next to rtsp-h264 in the services.

The logcat logs show:
VIDIOC_REGISTER_SENSOR(jxf22) error!

The dmesg log ends with:
[ 16.110937] probe ok ------->jxf22
[ 16.138399] -----jxf22_detect: 432 ret = 0, v = 0x0f
[ 16.138901] -----jxf22_detect: 440 ret = 0, v = 0x23
[ 16.138915] jxf22 0-0040: chip found @ 0x40 (i2c0) is not an jxf22 chip.
[ 16.150989] do_page_fault() #2: sending SIGSEGV to v4l2rtspserver- for invalid read access from
[ 16.150989] 00000000 (epc == 004c2cf8, ra == 0045b454)

I have been able to get back to the factory firmware.

How did you revert it back to stock? Mine seems to be failing to revert as well.

I was able to restore the original firmware using the instructions from the Wyze site: https://forums.wyzecam.com/t/flashing-your-wyzecam-v2-firmware/4185

I have now performed this process multiple times.

The sensor has changed to v23 (jxf23) and the error says the chip found is not 22: https://forums.wyzecam.com/t/wyzecam-v2-jxf23-sensor-picture-quality-worse-than-v1/10527/2

Thanks for the link. I am assuming sensor 23 is not supported, at least not yet.

Purchased one Wyze V2 from Amazon, a week ago, and installed new firmware and i can not access nothing like the OP in post one. While trying to access it on 192.168.1.XXX i get "Unable to load image" , so i have no video stream. But i see the camera in my local network. And yes there is a error in logs or somewhere:
Contents of logcat
D/IMP-ISP ( 211): ~~~~~~ IMP_ISP_Open[120] ~~~~~~~
E/IMP-ISP ( 211): VIDIOC_REGISTER_SENSOR(jxf22) error!

I did revert to the original wyze firmware, but wanted the
RTSP to connect to my Blue Iris system.

Hopefully it gets fixed soon.
Thanks,
vqpjxt

I believe my video quality defaulted to the lowest setting, 640x480, and I left it there but it still did not work. Are you using Version 0.2.6.1? If not, can you supply a link to the version you are using?

Confirmed today that the newest (within past 10 days) camera does not show video at any resolution.

I did find this announcement:
https://forums.wyzecam.com/t/wyze-cam-v2-component-change-transition-to-jx-f23-cmos-sensor/6286

And I found jxf23 driver here but is not as simple as just dropping it on the SD card and editing run.sh:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/firmware_mod/driver/sensor_jxf23.ko

I downloaded the above driver, copied it into the drivers folder, edited run.sh to reference the sensor_jxf23.ko driver, and rebooted. This resulted in no change to the camera behavior. The new cameras still log errors referencing the missing jxf22 sensor.

To be clear: I have V2 cameras running 0.2.6.1 firmware purchased in 3/2018 and 6/2018 which are working well. Moving the SD card from a working camera to latest (12/2018) V2 cameras results in no video, and complaint about the jxf22 sensor not being present.

EDIT:
The V2 jxf23 cameras work with this boot loader and firmware. Thanks @CovertLeopard!
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

@GitHubOnline2018 , Witch firmware version was that? Version 0.2.6.1? (that's what i was using...and got no video)
Can you share the file lines in config/rstpserver?
This is what i have:

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

Edit this file and move it to /system/sdcard/config/rtspserver.conf
if you need to add options, otherwise defaults will be used
#######################################################################

Configure RTSP Servers
Use /system/sdcard/bin/v4l2rtspserver-master -h to see available options
H264 RTSP server options
Examples:
RTSPH264OPTS="-S -W960 -H540"
To enable authentication:
RTSPH264OPTS="-U user:password"
RTSPH264OPTS=""

MJPEG RTSP server options
Examples:
RTSPMJPEGOPTS="-W960 -H540"
To enable authentication:
RTSPMJPEGOPTS="-U user:password"
RTSPMJPEGOPTS=""

also in config/wpa_supplicant i have this:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="wifi network name"

Uncomment to connect to Hidden SSIDs

#scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="wifi password"
priority=2
}

Thanks,

Confirmed today that the newest (within past 10 days) camera does not show video at any resolution.

I did find this announcement:
https://forums.wyzecam.com/t/wyze-cam-v2-component-change-transition-to-jx-f23-cmos-sensor/6286

And I found jxf23 driver here but is not as simple as just dropping it on the SD card and editing run.sh:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/firmware_mod/driver/sensor_jxf23.ko

To be clear: I have V2 cameras with 0.2.6.1 purchased in 3/2018 and 6/2018. Moving SD card from working camera to latest V2 results in no video, and complaint about the jxf22 sensor not being present.

Links not working...

Confirmed today that the newest (within past 10 days) camera does not show video at any resolution.
I did find this announcement:
https://forums.wyzecam.com/t/wyze-cam-v2-component-change-transition-to-jx-f23-cmos-sensor/6286
And I found jxf23 driver here but is not as simple as just dropping it on the SD card and editing run.sh:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/firmware_mod/driver/sensor_jxf23.ko
To be clear: I have V2 cameras with 0.2.6.1 purchased in 3/2018 and 6/2018. Moving SD card from working camera to latest V2 results in no video, and complaint about the jxf22 sensor not being present.

Links not working...

Links fixed - my apologies. Fingers working faster than brain.

Thank you! Will try that now.

Confirmed today that the newest (within past 10 days) camera does not show video at any resolution.
I did find this announcement:
https://forums.wyzecam.com/t/wyze-cam-v2-component-change-transition-to-jx-f23-cmos-sensor/6286
And I found jxf23 driver here but is not as simple as just dropping it on the SD card and editing run.sh:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/firmware_mod/driver/sensor_jxf23.ko
To be clear: I have V2 cameras with 0.2.6.1 purchased in 3/2018 and 6/2018. Moving SD card from working camera to latest V2 results in no video, and complaint about the jxf22 sensor not being present.

Links not working...

Links fixed - my apologies. Fingers working faster than brain.

Thanks! My Brain is like that too!

I followed the instructions here and have my new V2 with the jfx23 sensor working with RSTP. https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md
โ€ฆ
On Sat, Dec 15, 2018, 3:06 PM GitHubOnline2018 @.*** wrote: I believe my video quality defaulted to the lowest setting, 640x480, and I left it there but it still did not work. Are you using Version 0.2.6.1? If not, can you supply a link to the version you are using? โ€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#112 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpIzgMHmT0thVC2GjSlDG88vib-uKks5u5VZMgaJpZM4ZQRVS .

Will try that also...Hopefully it will work.

Odd, I thought I tried that one (of many - openip, Dafang Hacks has like two bootloaders)...But can try again.

EDIT: I got the blue light with both a 1GB card and 2GB card, after inserting a card with the firmware from "/firmware_mod/" on it - the cam showed up as a mac address for the hostname but couldn't be reached.

EDIT2: I tried with both Dafang hacks, and the 4.9.2.18-1 (read someone going back to it successfully), and none worked for me. Downloaded the latest official firmware from Wyze's website, works like a charm out-of-the-box-like setup. Pretty certain only newer versions support the new jx23 sensor, you'll know by the yellow light not blinking for older official firmware. Interesting to note, the app is offering an updated firmware

Thank you!!! This worked for me as well: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

Confirmed working on my two new Wyze V2 cameras with jxf23 sensors. Thank you @CovertLeopard!

Tried and Tried , never got it to work... Purchased this on dec 8. So not sure if is compatibile with the new sensor jxf23 or...but i try 256mb, 2gb, 4gb and 32gb cards. Also i try all 3 hacks that they are..with no luck , but the original firmware works...unless i am doing something wrong...hmm

My latest cameras were purchased on 12/8 as well.

The boot loader installation took over five minutes for me. I tried 3, 4 and 5 minutes wait all without success. Let the next attempt sit for an hour and it worked. So it took somewhere between 5 and 60 minutes to install the new boot loader.

I am using 16GB SDHC cards (formatted to 16GB) as they are the smallest I have available.

Also, the MAC address changed to the address printed on the label on the bottom of the camera. The earlier firmware was using a different MAC address so I had to update my DHCP server (no guest leases here).

My latest cameras were purchased on 12/8 as well.

The boot loader installation took over five minutes for me. I tried 3, 4 and 5 minutes wait all without success. Let the next attempt sit for an hour and it worked. So it took somewhere between 5 and 60 minutes to install the new boot loader.

I am using 16GB SDHC cards (formatted to 16GB) as they are the smallest I have available.

Also, the MAC address changed to the address printed on the label on the bottom of the camera. The earlier firmware was using a different MAC address so I had to update my DHCP server (no guest leases here).

So, witch install guide have you follow? post a link here... so many guides! I may give it other try. Thanks

I followed this guide on two cameras now, each with the jfx23 sensor purchased this month, and it has worked each time. I only let the initial boot loader process run for 2 to 4 minutes.

https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

(I may have added the link incorrectly so please copy the text if the link does not take you to the same URL).

Good luck!

I followed this guide on two cameras now, each with the jfx23 sensor purchased this month, and it has worked each time. I only let the initial boot loader process run for 2 to 4 minutes.

https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

(I may have added the link incorrectly so please copy the text if the link does not take you to the same URL).

Good luck!

Will try again this tomorrow after work.
Thanks!

Thanks!
This has got me up and running with the camera, but the RTSP links for the feeds won't load. Any thoughts?

My thoughts when someone says it works for them but I'm failing:

  • what size SD card are they using? (smallest I have is 1GB SanDisk, 2GB generic, 8GB Transcend SDHC Class 6)
  • how long are they letting the boot loader install? (Longest I've let it sit is 8 mins)
  • what lights are they seeing during boot loader installation and firmware bootup?
  • are you using the firmware too? same size SD card?
  • what does the /log/startup.log look like on successful installs?

Here are my logs if someone knows what to look for: https://pastebin.com/WJKkV2uK

Guess I'll try letting the bootloader install sit for an hour

image

1280x720

I followed patrocle's link above. I did the demo.bin by itself first, then loaded the new firmware. It got my camera booted and working with a streaming image but my rtsp feeds aren't working yet.

I have used 16GB and 32GB micro SD cards without issue.

Can you verify that RTSP is enabled? Thanks.

image

Settings
image

UPDATE: I reported my new cameras were working with the firmware @CovertLeopard identified. After applying that firmware the video showed up on the camera's web page and via rtsp-h264 stream.

I just enabled and tested rtsp-mjpeg (with rtsp-h264 disabled) and I can confirm it is NOT working.

I am using VLC media player on Windows 7 and the Foscam 2 Pro app on iOS for testing.

chrome browser

RTSP working now through VLC, thanks everyone for all your help!!!!

UPDATE: I reported my new cameras were working with the firmware @CovertLeopard identified. After applying that firmware the video showed up on the camera's web page and via rtsp-h264 stream.

I just enabled and tested rtsp-mjpeg (with rtsp-h264 disabled) and I can confirm it is NOT working.

I am using VLC media player on Windows 7 and the Foscam 2 Pro app on iOS for testing.

Yeah... I definitely didn't test rtsp-mjpeg. I did see somewhere that people had hard times getting the camera to switch and I think there was a sequence that would work. Something like turn off rtsp-h264, turn on rstp-mjpeg, turn on rstp-h264 again and then back off, then reboot the camera. Not sure what the exact steps were.

I followed patrocle's link above. I did the demo.bin by itself first, then loaded the new firmware. It got my camera booted and working with a streaming image but my rtsp feeds aren't working yet.

" I did the demo.bin by itself first, then loaded the new firmware" Golden words!...
Finally i managed to get it going in Blue Iris...

For Others, How i did it:
Go here and follow the instructions:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md

Under "Installation of the microSD bootloader" Follow the instructions,but just let me say :
When you Click "Wyzecam V2" and this will give you "cfw-1.1.bin" , make sure when you rename it to "demo.bin" u don't put "demo.bin.bin"! it must have only "demo.bin"
See picture to make sure:

  1. http://i66.tinypic.com/15y6ib6.jpg
    2.http://i65.tinypic.com/2m2b4fn.jpg
    Then continue with all the instructions for under "Installation of the microSD bootloader"...

Now if you done with that part...under "Installation of the new Firmware" , i took the card out, and i formatted again fat32, (i have 32gb) and copy and pasted the files from "firmware_mod" witch in folder "Xiaomi-Dafang-Hacks-master" (U must download it from here: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks , main page and download as zip, see picture: http://i68.tinypic.com/258z2hy.jpg )
Now, while you coping those files to microsd card make sure your card is empty and formatted!
After you paste the files , edit the file config/wpa_supplicant.conf.dist with your own wireless network id and password:

network={
ssid="YOUR WIRELESS ID"
# Uncomment to connect to Hidden SSIDs
#scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="YOUR WIRELESS PASSWORD"
priority=2
}

Save it.
(U can open the file with notepad, wordpad,etc)

Also the file in config: wpa_supplicant.conf.dist must be renamed to wpa_supplicant.conf

Now follow the instructions ... and finish the install.

There where few steps that where not clear , so maybe this few lines here may help others. For me is working in Blue Iris now...

For Blue Iris users, click add new camera, put your ip in, put user name in , witch is "root" and password "ismart12" , under "make" choose "Generic/ONVIF" , then under "model" choose " RTSP H.264/H.265/MJPG/MPEG4 then under video "path" you must have /unicast , also under : Media/video/RTSP port change to: 8554

So if u can access the camera in the web , the above info should work in Blue Iris too.

Good luck.

@patrocle2015 's response worked for me, but I had to try flashing the firmware 2 times before it worked. The first time, it connected to the local net but i could not access it via a browser. Good luck and thanks!

wliob commented

Worked after flashing a few times for me also. I am using Tinycam Pro. Anyone getting alot of random disconnects?

@patrocle2015's link and hints worked for me on my Dec. 2018 camera.

edit:
the ssh root password defaults to ismart12... probably a good idea to change that:

ssh root@<ip address>
passwd

The only thing that not working or i have not found the fix is the ir is not switch to night time and back to day time.

I have it working now too. But using Dafang Hacks is just a work around until OpenIP catches up with the jx23 sensor?

Using Dafang Hacks works for jxf23 cameras... except when the SD card is removed. In that case the camera is supposed to fall back to booting the original firmware (cfw-1.1.bin) however because cfw-1.1.bin is built on such an old version of the official firmware (4.9.1.60), it doesn't support jxf23.

I rebuilt cfw-1.1 based on 4.9.4.28 on my fork: https://github.com/mbevand/Xiaomi-Dafang-Hacks/raw/master/hacks/cfw/wyzecam_v2/cfw-1.1-by-mrb-based-on-4.9.4.28.bin This should give you a better experience with Dafang Hacks (put the SD card in and it boots the Dafang Hacks firmware_mod custom version, remove the SD card and it falls back on 4.9.4.28 which works just fine for jxf23 cameras.)

Worked after flashing a few times for me also. I am using Tinycam Pro. Anyone getting alot of random disconnects?

Yes, I'm getting lots of random RTSP disconnects , but none from the web interface.

Using Dafang Hacks works for jxf23 cameras... except when the SD card is removed. In that case the camera is supposed to fall back to booting the original firmware (cfw-1.1.bin) however because cfw-1.1.bin is built on such an old version of the official firmware (4.9.1.60), it doesn't support jxf23.

I rebuilt cfw-1.1 based on 4.9.4.28 on my fork: https://github.com/mbevand/Xiaomi-Dafang-Hacks/raw/master/hacks/cfw/wyzecam_v2/cfw-1.1-by-mrb-based-on-4.9.4.28.bin This should give you a better experience with Dafang Hacks (put the SD card in and it boots the Dafang Hacks firmware_mod custom version, remove the SD card and it falls back on 4.9.4.28 which works just fine for jxf23 cameras.)

Thank you, I found it very useful.

I followed patrocle's link above. I did the demo.bin by itself first, then loaded the new firmware. It got my camera booted and working with a streaming image but my rtsp feeds aren't working yet.

Is it about this link?
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/install_cfw.md
I did it today, but end up with dead device with blue led on. Reflash back to vanilla openipc that has no video, sound or motion working (but at least accessible online so one could see logs).