Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTZ not working #93

Closed
WildRat opened this issue Aug 4, 2022 · 39 comments
Closed

PTZ not working #93

WildRat opened this issue Aug 4, 2022 · 39 comments
Labels

Comments

@WildRat
Copy link

WildRat commented Aug 4, 2022

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.

@roleoroleo
Copy link
Owner

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

@WildRat
Copy link
Author

WildRat commented Aug 16, 2022

ONVIF. Web page show message PTZ not supported.

@roleoroleo
Copy link
Owner

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

@WildRat
Copy link
Author

WildRat commented Aug 18, 2022

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.

@roleoroleo
Copy link
Owner

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.

@WildRat
Copy link
Author

WildRat commented Aug 18, 2022

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

@roleoroleo
Copy link
Owner

Your cam is the same as in this post:
#85

Sorry but I cannot support it, at the moment.

@WildRat
Copy link
Author

WildRat commented Aug 18, 2022

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.

@roleoroleo
Copy link
Owner

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.

@ConorIA
Copy link

ConorIA commented Aug 25, 2022

This should be fixed in 0.1.3.
#85 (comment)

@WildRat
Copy link
Author

WildRat commented Aug 25, 2022

But which version should I use?

@roleoroleo
Copy link
Owner

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

@roleoroleo
Copy link
Owner

roleoroleo commented Aug 25, 2022

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

@WildRat
Copy link
Author

WildRat commented Aug 25, 2022

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

@roleoroleo
Copy link
Owner

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.

@WildRat
Copy link
Author

WildRat commented Aug 25, 2022

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

@WildRat
Copy link
Author

WildRat commented Aug 25, 2022

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.

@bigsem89
Copy link

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

@roleoroleo
Copy link
Owner

I will check it.

@bigsem89
Copy link

bigsem89 commented Sep 1, 2022

I will check it.

Thanks 🙏

@roleoroleo
Copy link
Owner

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

@bigsem89
Copy link

bigsem89 commented Sep 4, 2022

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

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

@roleoroleo
Copy link
Owner

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

@bigsem89
Copy link

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

{
"error":"false"
}

@roleoroleo
Copy link
Owner

Does the cam moves?

@roleoroleo
Copy link
Owner

And check the error running ipc_cmd with a ssh console.

@bigsem89
Copy link

Does the cam moves?

no

@bigsem89
Copy link

And check the error running ipc_cmd with a ssh console.

What is ipc_cmd? where can i find it?

@roleoroleo
Copy link
Owner

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
Copy link

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

@javotito
Copy link

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.

@roleoroleo
Copy link
Owner

Please, check if you have a library libhardware.so or libptz.so in the folder /mnt/mtd/ipc/app/lib

@officialjonot
Copy link

officialjonot commented Dec 14, 2022

[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

@roleoroleo
Copy link
Owner

Try these commands:

ptz_h -a right
ptz_p -a right

@officialjonot
Copy link

officialjonot commented Dec 14, 2022

[root@sonoff-c00d]# ptz_h -a right
ptz_h: can't resolve symbol 'hw_ptz_sendptz'

ptz-p -a right works!

@roleoroleo
Copy link
Owner

Ok, copy the file:
cp /mnt/mmc/sonoff-hack/bin/ptz_p /mnt/mmc/sonoff-hack/bin/ptz

@officialjonot
Copy link

officialjonot commented Dec 14, 2022

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!

@EpicLPer
Copy link
Collaborator

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

Copy link

github-actions bot commented Apr 3, 2024

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.

@github-actions github-actions bot added the Stale label Apr 3, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants