openipcamera / openipc-firmware

OpenIPC Firmware for Wyze Cameras
https://openip.cam
892 stars 127 forks source link

Wyzecam V2 - VIDIOC_REGISTER_SENSOR(jxf22) error #112

Open GitHubOnline2018 opened 5 years ago

GitHubOnline2018 commented 5 years ago

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.

ajm1635 commented 5 years ago

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.

kruschman commented 5 years ago

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?

GitHubOnline2018 commented 5 years ago

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.

CovertLeopard commented 5 years ago

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

CovertLeopard commented 5 years ago

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.

GitHubOnline2018 commented 5 years ago

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.

CovertLeopard commented 5 years ago

Thanks. I guess for now I'll restore my cam back to stock and use it that way. I'll just figure out what the site is that they phone home to in China and block it in my DNS server.

Best Regards,

James

On Thu, Dec 13, 2018 at 12:04 PM GitHubOnline2018 notifications@github.com wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447044782, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpHfHTgWw_1KJTaEH8XScO0nwTIyoks5u4oiAgaJpZM4ZQRVS .

jamman9000 commented 5 years ago

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

GitHubOnline2018 commented 5 years ago

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

CovertLeopard commented 5 years ago

Sure doesn't look like its supported. I also tried the latest dafang hacks fork and didn't have any better results. I was able to revert to stock though.

On Sat, Dec 15, 2018, 2:25 AM GitHubOnline2018 <notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447544955, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpFKO9tw3soNwMg09cJanEmnYA5boks5u5KPsgaJpZM4ZQRVS .

patrocle2015 commented 5 years ago

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

CovertLeopard commented 5 years ago

I can confirm this does work fine in the latest Dafang hacks firmware as long as you keep the video quality below 1080p. I have mine connected to my QNAP NAS.

On Sat, Dec 15, 2018, 2:29 PM patrocle2015 <notifications@github.com wrote:

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!

Hopefully it gets fixed soon. Thanks, [image: vqpjxt] https://user-images.githubusercontent.com/13501479/50046715-b5e22a00-005c-11e9-8b7f-35aebb2f285f.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447592255, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpH_gNzX26CWf_ylOudHJ8rh87f8kks5u5U2qgaJpZM4ZQRVS .

GitHubOnline2018 commented 5 years ago

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?

ajm1635 commented 5 years ago

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

patrocle2015 commented 5 years ago

@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,

patrocle2015 commented 5 years ago

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...

ajm1635 commented 5 years ago

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.

CovertLeopard commented 5 years ago

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 <notifications@github.com 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 https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447594455, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpIzgMHmT0thVC2GjSlDG88vib-uKks5u5VZMgaJpZM4ZQRVS .

GitHubOnline2018 commented 5 years ago

Thank you! Will try that now.

CovertLeopard commented 5 years ago

No problem. I did have issues flashing the first file due to my sd card. If you don't get the blue light after about 10 seconds in step 7 of the "Installation of the microSD bootloader" section, try another SD card.

Also make sure to wait a full 4 minutes.

On Sat, Dec 15, 2018, 3:23 PM GitHubOnline2018 <notifications@github.com wrote:

Thank you! Will try that now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447595414, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpCiHPi5ltKukNQKHMjOQV9G_cScaks5u5VpTgaJpZM4ZQRVS .

patrocle2015 commented 5 years ago

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!

patrocle2015 commented 5 years ago

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.

GitHubOnline2018 commented 5 years ago

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

CovertLeopard commented 5 years ago

Gladly! Here is to hoping someone can get it working with Full 1080p HD streams eventually!

On Sat, Dec 15, 2018, 3:35 PM GitHubOnline2018 <notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447596150, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpB1EklwQee4NqYRvhwnCAbFyVSGiks5u5V0vgaJpZM4ZQRVS .

jamman9000 commented 5 years ago

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

ajm1635 commented 5 years ago

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!

CovertLeopard commented 5 years ago

Glad you got it working!

Best Regards,

James Wiesen

On Mon, Dec 17, 2018 at 12:28 PM ajm1635 notifications@github.com wrote:

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

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-447928560, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpG2ZCgsrjWobdB54yQQiXxiOFVamks5u59Q8gaJpZM4ZQRVS .

patrocle2015 commented 5 years ago

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

ajm1635 commented 5 years ago

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).

patrocle2015 commented 5 years ago

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

GitHubOnline2018 commented 5 years ago

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!

patrocle2015 commented 5 years ago

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!

mkotlarz commented 5 years ago

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

CovertLeopard commented 5 years ago

What resolution are you using? Best Regards,

James Wiesen

On Tue, Dec 18, 2018 at 11:33 AM mkotlarz notifications@github.com wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-448283163, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpOfl5jwNjqWonZD4LS1RllU6k-lkks5u6Ri_gaJpZM4ZQRVS .

jamman9000 commented 5 years ago

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

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

mkotlarz commented 5 years ago

image

1280x720

mkotlarz commented 5 years ago

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.

GitHubOnline2018 commented 5 years ago

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

Can you verify that RTSP is enabled? Thanks.

image

Settings image

mkotlarz commented 5 years ago

Yep, it was enabled. Initially I couldn't get it enabled then I followed the above link and it worked and I got an image on home screen and H.264 rtsp server was enabled as you indicated. I opened dev tools and chrome and found the source link, which also worked to access the current image and would change as I refreshed it.

The rtsp links just load and load and load.

On Tue, Dec 18, 2018 at 12:40 PM GitHubOnline2018 notifications@github.com wrote:

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

Can you verify that RTSP is enabled? Thanks.

[image: image] https://user-images.githubusercontent.com/45830318/50171843-6c861a80-02a8-11e9-8fa2-c3b67327ca18.png

Settings [image: image] https://user-images.githubusercontent.com/45830318/50171874-8293db00-02a8-11e9-8d50-5f64d1332c50.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-448306255, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab76BnWdw9YD4qmXijlRVAGjO1QRJWAEks5u6SiTgaJpZM4ZQRVS .

CovertLeopard commented 5 years ago

What are you trying to use to view the rstp stream? Like what application?

On Tue, Dec 18, 2018, 12:55 PM mkotlarz <notifications@github.com wrote:

Yep, it was enabled. Initially I couldn't get it enabled then I followed the above link and it worked and I got an image on home screen and H.264 rtsp server was enabled as you indicated. I opened dev tools and chrome and found the source link, which also worked to access the current image and would change as I refreshed it.

The rtsp links just load and load and load.

On Tue, Dec 18, 2018 at 12:40 PM GitHubOnline2018 < notifications@github.com> wrote:

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

Can you verify that RTSP is enabled? Thanks.

[image: image] < https://user-images.githubusercontent.com/45830318/50171843-6c861a80-02a8-11e9-8fa2-c3b67327ca18.png

Settings [image: image] < https://user-images.githubusercontent.com/45830318/50171874-8293db00-02a8-11e9-8d50-5f64d1332c50.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-448306255 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Ab76BnWdw9YD4qmXijlRVAGjO1QRJWAEks5u6SiTgaJpZM4ZQRVS

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openipcamera/openipc-firmware/issues/112#issuecomment-448311201, or mute the thread https://github.com/notifications/unsubscribe-auth/AKcUpCF_FpMjt88aSqhvBC9KJfP0eoLsks5u6SwjgaJpZM4ZQRVS .

ajm1635 commented 5 years ago

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.

mkotlarz commented 5 years ago

chrome browser

mkotlarz commented 5 years ago

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

CovertLeopard commented 5 years ago

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.

patrocle2015 commented 5 years ago

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...

patrocle2015 commented 5 years ago

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.

bberg115 commented 5 years ago

@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 5 years ago

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

cwsmith commented 5 years ago

@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
patrocle2015 commented 5 years ago

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.