sonoff-hack icon indicating copy to clipboard operation
sonoff-hack copied to clipboard

PTZ not working

Open WildRat opened this issue 2 years ago • 39 comments

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.

WildRat avatar Aug 04 '22 18:08 WildRat

Which control are you using to test PTZ? onvif, web page, ...?

roleoroleo avatar Aug 16 '22 15:08 roleoroleo

ONVIF. Web page show message PTZ not supported.

WildRat avatar Aug 16 '22 16:08 WildRat

GK-200MP2D is not supported at the moment. If you have a backup of the flash I could check if I can support it.

roleoroleo avatar Aug 18 '22 16:08 roleoroleo

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.

WildRat avatar Aug 18 '22 17:08 WildRat

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.

roleoroleo avatar Aug 18 '22 17:08 roleoroleo

I made a dump using the new version of the script: LINK REMOVED

WildRat avatar Aug 18 '22 17:08 WildRat

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.

roleoroleo avatar Aug 18 '22 18:08 roleoroleo

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.

WildRat avatar Aug 18 '22 18:08 WildRat

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.

roleoroleo avatar Aug 19 '22 15:08 roleoroleo

This should be fixed in 0.1.3. https://github.com/roleoroleo/sonoff-hack/issues/85#issuecomment-1227500921

ConorIA avatar Aug 25 '22 16:08 ConorIA

But which version should I use?

WildRat avatar Aug 25 '22 16:08 WildRat

Based on the backup you shared with me, use GK-200MP2-B.

roleoroleo avatar Aug 25 '22 16:08 roleoroleo

@puuu @ConorIA Please reinstall 0.1.3 from scratch to avoid problem of future updates. If you already installed a beta.

roleoroleo avatar Aug 25 '22 16:08 roleoroleo

It's working without errors, but VERY slow. Video frame in 3-5 seconds. PTZ controls reacts once in 30-70 seconds.

WildRat avatar Aug 25 '22 17:08 WildRat

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.

roleoroleo avatar Aug 25 '22 17:08 roleoroleo

I tried with ONVIF Device Manager - PTZ works great! But no live video. And strange video presets: image image

WildRat avatar Aug 25 '22 18:08 WildRat

After couple reboots I managed to get it working with Synology Surveillance Station - video Ok, PTZ Ok. But strange video info: image Something is definitely wrong with ONVIF video profile.

WildRat avatar Aug 25 '22 18:08 WildRat

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

bigsem89 avatar Aug 30 '22 18:08 bigsem89

I will check it.

roleoroleo avatar Sep 01 '22 17:09 roleoroleo

I will check it.

Thanks 🙏

bigsem89 avatar Sep 01 '22 21:09 bigsem89

Try to remove the file /mnt/mmc/sonoff-hack/bin/ptz And reboot the cam.

roleoroleo avatar Sep 02 '22 12:09 roleoroleo

Try to remove the file /mnt/mmc/sonoff-hack/bin/ptz And reboot the cam.

did so. same result. ptz still doesn't work.

bigsem89 avatar Sep 04 '22 09:09 bigsem89

Strange behavior. Try to run the ws: http://IP_OF_YOUR_CAM/cgi-bin/ptz.sh?dir=right

roleoroleo avatar Sep 06 '22 12:09 roleoroleo

Strange behavior. Try to run the ws: http://IP_OF_YOUR_CAM/cgi-bin/ptz.sh?dir=right

{ "error":"false" }

bigsem89 avatar Sep 12 '22 17:09 bigsem89

Does the cam moves?

roleoroleo avatar Sep 12 '22 18:09 roleoroleo

And check the error running ipc_cmd with a ssh console.

roleoroleo avatar Sep 12 '22 18:09 roleoroleo

Does the cam moves?

no

bigsem89 avatar Sep 13 '22 18:09 bigsem89

And check the error running ipc_cmd with a ssh console.

What is ipc_cmd? where can i find it?

bigsem89 avatar Sep 13 '22 18:09 bigsem89

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

roleoroleo avatar Sep 19 '22 06:09 roleoroleo

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

officialjonot avatar Dec 14 '22 11:12 officialjonot