sonoff-hack
sonoff-hack copied to clipboard
PTZ not working
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.
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