Closed WildRat closed 1 month ago
Which control are you using to test PTZ? onvif, web page, ...?
ONVIF. Web page show message PTZ not supported.
GK-200MP2D is not supported at the moment. If you have a backup of the flash I could check if I can support it.
Please take a look when you have time. Here (backup.zip) are the files obtained through the script (Dump your backup firmware (SD card)). And this is a new version of the firmware that they sent with corrected time zones: Time zone issue Fix package.zip.
Sorry but, after checking your backup, I found an error in the backup script at this page: https://github.com/roleoroleo/sonoff-hack/wiki/Dump-your-backup-firmware-(SD-card))
Now, I updated it. Please download it again and repeat the procedure.
I made a dump using the new version of the script: LINK REMOVED
Your cam is the same as in this post: https://github.com/roleoroleo/sonoff-hack/issues/85
Sorry but I cannot support it, at the moment.
I understand, thanks. Apparently this is a new version of this model. If there is an opportunity to work on this version, I can help check the functionality.
To work on this version, we need to apply a lot of changes. But a cam is needed. And these changes must not break compatibility with the old version. @puuu is working on it.
This should be fixed in 0.1.3. https://github.com/roleoroleo/sonoff-hack/issues/85#issuecomment-1227500921
But which version should I use?
Based on the backup you shared with me, use GK-200MP2-B.
@puuu @ConorIA Please reinstall 0.1.3 from scratch to avoid problem of future updates. If you already installed a beta.
It's working without errors, but VERY slow. Video frame in 3-5 seconds. PTZ controls reacts once in 30-70 seconds.
Try ptz with the web service, not with the web page. Because the web page calls a snapshot every second and the cam becomes slow.
I tried with ONVIF Device Manager - PTZ works great! But no live video. And strange video presets:
After couple reboots I managed to get it working with Synology Surveillance Station - video Ok, PTZ Ok. But strange video info:
Something is definitely wrong with ONVIF video profile.
The same thing with GK-200MP2B. PTZ doesn't work. I've tried PTZ on http page and also via onvif manager. it works with ewelink.
Firmware Version | 0.1.3
Base Version | V2524.1.245build20191030 Model | GK-200MP2B Device ID | a63000ffc4
I will check it.
I will check it.
Thanks 🙏
Try to remove the file /mnt/mmc/sonoff-hack/bin/ptz And reboot the cam.
Try to remove the file /mnt/mmc/sonoff-hack/bin/ptz And reboot the cam.
did so. same result. ptz still doesn't work.
Strange behavior.
Try to run the ws:
http://IP_OF_YOUR_CAM/cgi-bin/ptz.sh?dir=right
Strange behavior. Try to run the ws:
http://IP_OF_YOUR_CAM/cgi-bin/ptz.sh?dir=right
{ "error":"false" }
Does the cam moves?
And check the error running ipc_cmd with a ssh console.
Does the cam moves?
no
And check the error running ipc_cmd with a ssh console.
What is ipc_cmd? where can i find it?
Sorry, ipc_cmd is for another model. Try ptz command. Login with ssh and run the following commands:
. /mnt/mmc/sonoff-hack/script/env.sh
ptz -a right
Firmware Version 0.1.4 Base Version V2524.1.245build20191030 Model GK-200MP2B
when I login and issue the two commands in the previous comment I get the response:
ptz: can't resolve symbol 'hw_ptz_sendptz'
Sorry, ipc_cmd is for another model. Try ptz command. Login with ssh and run the following commands:
. /mnt/mmc/sonoff-hack/script/env.sh ptz -a right
Firmware Version 0.1.4 Base Version V2524.1.245build20191030 Model GK-200MP2B
when I login and issue the two commands in the previous comment I get the response:
ptz: can't resolve symbol 'hw_ptz_sendptz'
Sorry, ipc_cmd is for another model. Try ptz command. Login with ssh and run the following commands:
. /mnt/mmc/sonoff-hack/script/env.sh ptz -a right
Same error here with same camera, same firmware and same base version.
Please, check if you have a library libhardware.so
or libptz.so
in the folder /mnt/mtd/ipc/app/lib
[root@sonoff-c00d]# cd /mnt/mtd/ipc/app/lib
[root@sonoff-c00d]# ls
libNetLib.so libdbmanager.so libserviceinterface.so
libappmanager.so libhardware.so libservicemanager.so
libavcodec.so.55 libioport.so libspeaker.so
libavformat.so.55 libled.so libspi.so
libavsharemem.so liblogmanager.so libssl.so
libavutil.so.52 libmainic.so libssl.so.1.0.0
libcfg.so libportmap.so libusermanager.so
libcommunication.so libptz.so libwdt.so
libcrypt-0.9.33.2.so librtc.so libwifi.so
libcrypt.so.0 librtmp.so libz.so.1
libcrypto.so libsd.so
libcrypto.so.1.0.0 libsensor.so
Try these commands:
ptz_h -a right
ptz_p -a right
[root@sonoff-c00d]# ptz_h -a right
ptz_h: can't resolve symbol 'hw_ptz_sendptz'
ptz-p -a right works!
Ok, copy the file:
cp /mnt/mmc/sonoff-hack/bin/ptz_p /mnt/mmc/sonoff-hack/bin/ptz
ok fantastic - its working on the web PTZ panel now http://<IP-OF-CAMERA>/?page=ptz
. I will investigate to see if it works on ONVIF device manager. Thank you Roleo.
edit: it also works now in ONVIF device manager (odm). Whoop! Thank you!
Ok, copy the file:
cp /mnt/mmc/sonoff-hack/bin/ptz_p /mnt/mmc/sonoff-hack/bin/ptz
Just wanted to say that this also worked for mine :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Could you, please, help me solve missing PTZ problem? Other functions are working. I try swapping ptz bin - camera self calibrates, but PTZ controls did not work.
Reported at webpage info: Firmware Version 0.1.2 Base Version V5520.2053.0402build20220712 Model
Device ID a63001b3fb In eWelink app i see firmware name as GK-200MP2D
I can make fylesystem dumps if needed.