-
Notifications
You must be signed in to change notification settings - Fork 17
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
Bullet 4S Merkury firmware version: ppstrong-a3-tuya2_merkury-4.0.6.20210310 WITHOUT patched ppsapp #9
Comments
I'm going to self-close this... Turns out this version already supports ONVIF out of the box. No need to patch ppsapp, just enable onvif_enable=1 in tuya_config.json. |
Confirmed on a second camera. To recreate, I followed all the steps until patching ppsapp then did the following:
That's it, once it rebooted you can access the rtsp stream. I used the following program to determine the rtsp stream addresses: Here's the output: [2021-09-23 23:36:06] [main.cpp] [26] {error:3 faultstring:Validation constraint violation: tag name or namespace mismatch in element 'env:Fault' faultcode:SOAP-ENV:Sender faultsubcode:(null) faultdetail:(null)} And Bob's your uncle you have an ONVIF camera that you can now integrate with tensorflow and other utilities... I personally use motioneye and doods along with home assistant. i detect motion with motioneye, send a webhook to home assistant, this triggers doods (tensorflow) which detects objects in frame during motion. If it detects objects, it then sends me a notification via telegram. HIKVISION charges 200-300 per camera for a 1080p camera with less configurable software. |
@williamkennyAK nice instructions, glad you got it going -- I am just now preparing a patch which seems like it's not required. Sorry I didn't reply earlier I had a hell of a bad day at work yesterday... |
Totally understand. I'm just enjoying exploring these cameras. Cheap, but decent quality. Thanks for the amazing work, my man. |
What password you use? http://admin:056565099 or http://admin:admin. dos not work. |
@Marko9831 you say you got the same deviceinfo from #9 (comment) -- in order to get that deviceinfo you must have used http://admin:056565099@ip/devices/deviceinfo or http://admin:admin@ip/devices/deviceinfo -- that user/password combination is only used for the URLs when applying the hack and is used for nothing else after that. The onvif/rtsp user in that firmware is admin and the password is whatever is listed in /home/cfg/tuya_config.json -- the RTSP url should be what was displayed in the log above: rtsp://admin:[email protected]:8554/Streaming/Channels/101 and rtsp://admin:[email protected]:8554/Streaming/Channels/102 (admin:056565099 will not work on rtsp). You can probably check the password using this URL: http://admin:056565099@IP/proc/self/root/home/cfg/tuya_config.json (or using admin as password if necessary) -- you should look for the value 'onvif_pwd' in the response. |
I cannot find tuya_config.json in /home/cfg/ Do I create the json file or should I look elsewhere? |
You have to register the camera with the Tuya app to have the tuya_config.json file created in /home/cfg. |
Thank you, I got the awnser from Guino earlier and it is working flawlessly now. |
|
This also works for the mini 16S The hack isn't working, it does not copy the ppsapp nor does it look at custom.sh. |
@sanscorp1 the message above is unclear about what works or not but on the other issue you said you can telnet and use rtsp by modifying the json file - please just update the other issue with details from now on: #23 |
Sorry, I will clarify the topic.
This is a new camera, other model then the issues before.
Op zo 20 feb. 2022 16:48 schreef Wagner ***@***.***>:
… @sanscorp1 <https://github.com/sanscorp1> the message above is unclear
about what works or not but on the other issue you said you can telnet and
use rtsp by modifying the json file - please just update the other issue
with details from now on: #23
<#23>
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7NJKXQM5Q7KQXHMJFNVS3U4EELJANCNFSM5ETDIK7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For those of us new to this/who haven't used telnet since like Windows 95/98 lol, how the heck do I modify the file? It seems like I either have to load some sort of small python editing program onto the device or have to export the file to my client/machine somehow and then use wget and an ftp server on my PC to then again send the file back to the camera? So confused... |
@richaardvark you can view/modify the config file like this: login by telnet (assuming you configured it using provided steps) |
Thank you very much! I figured the cp command would be useful but I couldn't figure out how to find some sort of of file structure bridge between the two file systems but that makes sense now, using /mnt/mmc01. I was also able to eventually figure out that the "vi" command/small text editor tool is present in Busybox/the camera's OS environment as well so I was able to use that to directly modify the tuya_config.json file without having to extract it to my PC, edit it, and then send the modified version back to the camera. Reposting the instructions from @williamkennyAK from above, I'll include the actual commands I entered for anyone else who might find this helpful (update with your device's own actual IP of course):
Edit: Came back to say make sure in addition to setting onvif_enable=1 in tuya_config.sh as described above also make sure you have uncommented the onvif line in the custom.sh file: #/mnt/mmc01/set onvif_enable 1 --> /mnt/mmc01/set onvif_enable 1 I hadn't done that at first. I really wish all these steps could be in one place but I realize it's hard to make that happen given everyone likely/potentially has different hardware/firmware/etc. And this whole thing developed organically as you and others discovered new features/workarounds etc. |
@richaardvark is it working now? if so, that's all that matters |
rtsp is working but I can't for the life of me get snap or mjpeg to work :( I tried patching it myself but ran into a dead end. I made a new issue here for my firmware/hardware version. |
hi, how to telnet into camera? |
@Tomatensaft9000 only way to telnet into the camera is to root it with the steps described here (Assuming you have a Merkury 1080P camera): https://github.com/guino/Merkury1080P#conclusion |
Here's the output of deviceinfo:
{
"devname":"Smart Home Camera",
"model":"Bullet 4S",
"serialno":"101088550",
"softwareversion":"4.0.6",
"hardwareversion":"B4S_V10_A2_2063",
"firmwareversion":"ppstrong-a3-tuya2_merkury-4.0.6.20210310",
"identity":"M3R0019H5701608572",
"authkey":"LB7x0ANcVo7AEwEA1JqPr8KzUP44V2sv",
"deviceid":"pp0196ff4a66aeecd128",
"pid":"aaa",
"WiFi MAC":"84:7a:b6:87:67:35",
"ETH MAC":"00:00:00:00:00:00"
}
Attached is my ppsapp (zip)
I've been banging my head on the wall trying to patch it and it just keeps rebooting over and over on me.
There does seem to be a match that I've tried, but it just does not work...
Thank you!!!
--deleted--
The text was updated successfully, but these errors were encountered: