ant-thomas / zsgx1hacks

Hacks for ZS-GX1 IP Camera and various Goke GK7102 based IP Cameras
368 stars 101 forks source link

Works on Digoo DG-W01F Camera #26

Open kaotix opened 6 years ago

kaotix commented 6 years ago

Not an issue, just tested on the Digoo DG-W01F camera and these scripts work. It appears to run damn near identical code to the cameras you've been discussing so I thought I'd test it as I've been doing a bit of hacking of my own.

Scripts run fine. I think even the wifi comes up but I haven't fully tested that yet it's currently wired for testing. I had looked at compiling the snx_rtsp_server for this camera so I'm going to test that today as an alternative to the p2pcam RTSP server.

Link for this camera is https://www.banggood.com/Digoo-DG-WO1F-Cloud-Storage-3_6mm-Lens-720P-Waterproof-Outdoor-WIFI-Security-IP-Camera-Motion-Detect-p-1194795.html

tax commented 6 years ago

Thanks for sharing this info, just to be clear the rtsp stream is currently not working on this device?

kaotix commented 6 years ago

Rtsp fully working. It was just that it relies on the inbuilt p2pcam binaries for rtsp and a proper rtsp binary would be more suited.

Briggsbfc commented 6 years ago

Hi Kaotix, what id/password combination did you use for the rtsp server?

kaotix commented 6 years ago

admin dg20160404 also the url is /onvif1 hope that works.

tightwebz commented 6 years ago

after i enter the url and user and password the page is down or wont load. does it work for you guys??

robwood9 commented 6 years ago

Hi, very new to this, I’m trying to connect to my w01f, using Ipsy, not really getting anywhere, can anyone help with the url, type it up on here so I can confirm what I’m doing is correct? Would be much apreciated

kaotix commented 6 years ago

I use blueiris for my cameras so setup might be a bit different. URL is http://192.168.0.1/onvif1 Obviously replace the IP with what ever your camera is on.

Alternatively (since blueiris asks for username and password) you can use http://admin:dg20160404@192.168.0.1/onvif1 if that doesnt work, use rtsp:// instead of http://

robwood9 commented 6 years ago

Thats great thanks, i was doing it right jjst hadnt started at the begining, then found the readme section! All made sence from there!!

davidlb commented 6 years ago

I just received my DG-W01F and I confirm it works well on it! Good job :)

spolenak commented 6 years ago

Hi guys, does anybody know how to receive motion detected events from camera on custom remote application like Openhab2 ? I have digoo dg-f01f camera which works great and it's really easy to play rtsp on iOS, Android, Linux and Windows.

ghost commented 6 years ago

Hi,

I confirm it works great on this DG-W01f but please take note the RTSP works on both URL /onvif and onvif1.

Have a nice day.

megagenio commented 6 years ago

Hi all, I try script on my dg-w01f. I copied the contents of the sdcard folder into a sd fat32. Inserted the sd in the cam, turned off and on the cam. After booting the camera is on the network at the address I assigned it from the router, but it does not function as ssh or telnet. Where am I wrong? Thks.

raf1que commented 6 years ago

@megagenio - i think i have the same problem as you, were you able to get this working?

raf1que commented 6 years ago

now working, just needed to reformat sdcard

megagenio commented 6 years ago

@raf1que - doesn't work for me. Can you tell me what kind of formatting did you use? What did you copy in the SD? the only content of the file zsgx1hacks-v0.4.zip? Did you create a directory in the SD or did you put the zip file in the root od SD itself? How did you reboot camera? Simply with turn OFF and ON camera power?

davidlb commented 6 years ago

Format as Fat32, extract zsgx1hacks-v0.4.zip directly on the root of the SDcard and that's all. Insert SDCard, plug the camera.

EdKo66 commented 6 years ago

Will this work on W02f too?

jcobreros commented 6 years ago

I'm also trying to get motion detection through ONVIF to work. Any idea where to start looking? Is that p2pcam responsibility?

johnnt commented 6 years ago

Hi, Does anyone know how to access the boot loader serial interface on a w01f? I've managed to brick the device through playing aorund with the statup script - doesn't seem to be able to get it to boot through the debug script either. I've found the rx,tx,gnd,3.3v on the board but they don't seem to give me anything when i connect them up to a uart interface.

Any help would be appreciated - thanks.

J

ant-thomas commented 6 years ago

Make sure you've got tx and rx the correct way round. Baud is usually 115200 3.3v isn't usually needed, just rx, tx, gnd.

Briggsbfc commented 6 years ago

I have Version 3.1.1.0908 on a Digoo DG-W01F. I'm trying to update to Version 3.2.8.0121, but the version on the camera remains at 3.1.1.0908. The sdcard with the contents of readonlyhack-v0.1.zip now has a file called INFO.TXT containing "eye.conf already existed !" I renamed eye.conf and tried booting again, but the version reported by Onvifer remains stubbornly at 3.1.1.0908. Any suggestions?

wimpie007 commented 6 years ago

@johnnt did you manage to fix it? I'm in the same situation. Altering /home/start.sh killed it...

update: managed to fix it through UART interface, RX,TX,GND and 115200 was enough to connect. Restored start.sh et voila... everyting ok! Digoo DG-W02F

johnnt commented 6 years ago

Hi wimpie007, Sorry didn't see your message.

Yeah i managed to get it working, in the end it was actually a split cable from bending the camera mount to 90degrees. That's why the serial interface wasn't working.

wimpie007 commented 6 years ago

Thanks for the info. I managed to "relocate" the record-to-sd-card to a NFS mount on my nas. (a usb-stick on my nas to be exactly) If someone is interested, give me a yell.

johnnt commented 6 years ago

On another note, I am not sure if that has been covered already but in order to get wifi working without using the app you need to update both wpa_supplicant.conf and devParam.dat files which are both located in /home.

The devParam.dat file is a binary file so i just copied one from another camera i had already setup but it shouldn't be too big an issue to determine the format.

Cheers J

EDIT: Oh, just realised there is a file for creating devParam.dat Doh!

uglagwox commented 6 years ago

@wimpie007 Hi, trying NFS mount on a Digoo M1Q, failing with "operation not supported" :( . Could you share your NFS mount cmd, pls? Thanks much!

wimpie007 commented 6 years ago

@uglagwox sorry for the late reply: This will do the trick: mount -o port=2049,nolock,proto=tcp -t nfs IP:/volume/share /mnt/mmc01/1 regards,

uglagwox commented 6 years ago

@wimpie007 Yeah, confirm it's working. Seems my nfs kernel service was somehow stuck as well. Thanks again!

wimpie007 commented 6 years ago

without the port, it doesn't seem to work:)

sanket15n commented 6 years ago

I used the readonlyhack-v0.1 on digo dg-myq and its working on the latest firmware : 3.2.8.0208 The webUI , ftp and rtsp without pass is looking good.

It would be awesome if there can be local video recording function on the SD card itself so we can get these recording via ftp or view the same on WebUI.

:+1: :100:

gabrielcba1982 commented 5 years ago

Hi! RSTP not working for me, firmware 3.2.8.0208+readonlyhack Onvif working ok. Cloud off, but no access via RTSP. Any idea how to solve that? and theres ir any way to change onvif port number as well rtsp port too?

gabrielcba1982 commented 5 years ago

Thanks for the info. I managed to "relocate" the record-to-sd-card to a NFS mount on my nas. (a usb-stick on my nas to be exactly) If someone is interested, give me a yell.

SHOW US!!

wimpie007 commented 5 years ago

"SHOW US!!" Because you ask it so 'kind';) I don't use it anymore myself, but is was: on startup, execute " umount /mnt/mmc01/1 mount -o port=2049,nolock,proto=tcp -t nfs IP_NUMBER:/PATH /mnt/mmc01/1/ "

mpelletier92 commented 5 years ago

On another note, I am not sure if that has been covered already but in order to get wifi working without using the app you need to update both wpa_supplicant.conf and devParam.dat files which are both located in /home.

The devParam.dat file is a binary file so i just copied one from another camera i had already setup but it shouldn't be too big an issue to determine the format.

Cheers J

EDIT: Oh, just realised there is a file for creating devParam.dat Doh!

By trying to edit wpa_supplicant.conf I accidentally erased all the content of the file. Could someone send a reply of the proper syntax? That'd be really appreciated.

edit:

Would like to know more about your file for creating devParam.dat

bortcene commented 5 years ago

Benim cihaz da 3.4.0.1012 yazılım yüklü bunun son sürüm yazılımı hangisi nasıl yüklerim

rrosancrans commented 5 years ago

i purchased a Digoo DG-W01f heres a link to the cam https://www.walmart.com/ip/DIGOO-Indoor-Outdoor-720P-Wireless-WiFi-Network-IP-Camera-Baby-Home-Security-Monitor-Waterproof-CCTV-Cloud-Storage-Pan-Tilt-Night-Vision-Motion-Detec/422622298

back on Mar 30, 2018 kaotix to use with blueiris

also i have the cam on wifi not sure if that will play into not connecting or not any help would be great

so i downloaded blueiris and all i get is HTTP Opening 192.168.1.148 port 80... HTTP Get / request... Failed with HTTP 12029 Opening 192.168.1.148 port 5000... ONVIF GetSystemDateAndTime HTTP 12029 Checking for common cameras... Foscam FI86xx/98xx compatible? Foscam FI89xx compatible? Foscam FI9821 V2 compatible? Foscam FI9821 media port compatible? RTSP port open? No automatic configuration made Done

RTSP Opening 192.168.1.148 port 5000... ONVIF GetSystemDateAndTime HTTP 12029 Checking for common cameras... Foscam FI86xx/98xx compatible? Foscam FI89xx compatible? Foscam FI9821 V2 compatible? Foscam FI9821 media port compatible? RTSP port open? No automatic configuration made Done

gabrielcba1982 commented 5 years ago

Same here, no success with blue iris, try GO1984 works super!

you can download it here! If you like it, buy it! ;) https://drive.google.com/file/d/1nbVEL4y9gciZQjn4uOrZZKlEyXje8YtN/view?usp=sharing

Thatwouldbemetoo commented 5 years ago

Hi all. Is there any way to have the Digoo W01F running on Synology using the Surveilance app? I've been mudding around with it, but cannot get it to work. Synology does detect it, connection checkmarks as OK, but the connection gets lost.

I used the ReadOnly version first and now also the zsgx1hacks-v0.4.zip I would really like it to work with onvif, and with the IR leds as well.

Did anyone succeeded in this?

Let me know!

johnnt commented 5 years ago

i purchased a Digoo DG-W01f heres a link to the cam https://www.walmart.com/ip/DIGOO-Indoor-Outdoor-720P-Wireless-WiFi-Network-IP-Camera-Baby-Home-Security-Monitor-Waterproof-CCTV-Cloud-Storage-Pan-Tilt-Night-Vision-Motion-Detec/422622298

back on Mar 30, 2018 kaotix to use with blueiris

also i have the cam on wifi not sure if that will play into not connecting or not any help would be great

so i downloaded blueiris and all i get is HTTP Opening 192.168.1.148 port 80... HTTP Get / request... Failed with HTTP 12029 Opening 192.168.1.148 port 5000... ONVIF GetSystemDateAndTime HTTP 12029 Checking for common cameras... Foscam FI86xx/98xx compatible? Foscam FI89xx compatible? Foscam FI9821 V2 compatible? Foscam FI9821 media port compatible? RTSP port open? No automatic configuration made Done

RTSP Opening 192.168.1.148 port 5000... ONVIF GetSystemDateAndTime HTTP 12029 Checking for common cameras... Foscam FI86xx/98xx compatible? Foscam FI89xx compatible? Foscam FI9821 V2 compatible? Foscam FI9821 media port compatible? RTSP port open? No automatic configuration made Done

I have 3 W01f and they all work with Blueiris - ignore the auto detection and just manually configure the rtsp streams.

I configure mine as follows:

set http:// set Username and password Make: Generic/ONVIF Model: RTSP H.264/H.265/MJPG/MPEG4

Video: Path /onvif1 Params

Media/video/RTSP port: 554 Discovery/ONVIF: 5000

J

spolenak commented 5 years ago

Johnnt, are you able also to receive motion detection events on Blueiris software ?

Thatwouldbemetoo commented 5 years ago

Thanks Johnnt !

I haven't succeeded so far to have synology Surveillance get the camera to work. It is detected by the system as an ONVIF cam, but when I want to activate it, connection gets lost.

Schermafbeelding 2019-03-18 om 10 15 28

Is there anyone who can take a look at this and help me to get this cam to work on Synology Surveillance?

tonbor commented 5 years ago

see discussion #104: user defined, path: admin:password@ipaddress:554/onvif/snapshot

chrisvor commented 5 years ago

Hi all, I successfully applied the RO hack and everything was working fine through ETHERNET. While I was trying to make the WLAN0 work, I must have messed with the wrong things and now ETH0 does not come up.... While it is still booting, I can see the ETH0 LED blinking, and then suddently it stops. I saw that the AP was up (dont know why it got configured without pressing the button next to the sdcard), and so I connected to that and then through telnet on the wifi address (192.168.200.1), and then I did "ifconfig eth0 up" and ETH0 was up again and working properly. Until I reboot, then it gets "auto-disabled". In start.sh the commands are still there: ifconfig wlan0 up ifconfig eth0 up

Any ideas why eth0 gets disabled on its own? Thanks for any hints Chris

chrisvor commented 5 years ago

Hi all, I successfully applied the RO hack and everything was working fine through ETHERNET. While I was trying to make the WLAN0 work, I must have messed with the wrong things and now ETH0 does not come up.... While it is still booting, I can see the ETH0 LED blinking, and then suddently it stops. I saw that the AP was up (dont know why it got configured without pressing the button next to the sdcard), and so I connected to that and then through telnet on the wifi address (192.168.200.1), and then I did "ifconfig eth0 up" and ETH0 was up again and working properly. Until I reboot, then it gets "auto-disabled". In start.sh the commands are still there: ifconfig wlan0 up ifconfig eth0 up

Any ideas why eth0 gets disabled on its own? Thanks for any hints Chris

Answering my own question, I found the issue after looking at this page: https://github.com/ant-thomas/zsgx1hacks/issues/104

The problem was with the /home/hwcfg.ini file, there is a line : support_ap_mode = 2

I changed the 2 to 1, and now the AP does not get auto-started. It seems that when AP is on, ETH0 gets disabled (down)

Supplied the solution in case somebody else has the same issue Chris

4j17h commented 5 years ago

hey @johnnt @wimpie007 , I was trying to access the board via uart interface, but couldn't get anything on the screen. Can anyone help me in locating the exact pins of rx tx & gnd on the board. Isn't this supposed to be the pins?

wimpie007 commented 5 years ago

image This is the only picture i took... Was kinda obvious... (label rx, tx, gnd?)

4j17h commented 5 years ago

w01f board seems to be different. Anyways thanks for the photo. Are there any indications on w02f board like rx, tx & gnd. W01f doesn't have any. I have tried all the combinations though.

wimpie007 commented 5 years ago

yeah, there were indications of the rx/tx/gnd... didnt have to try combinations.

4j17h commented 5 years ago

Sadly w01f doesn't have any. @johnnt seems to have figured out the pins successfully. I just gave up unbricking the camera.

lordgotham commented 5 years ago

hi, i'm french , so i don't understand all your are saying nobody find a soluce for dg-w01F on qnap it's work during 1 min and shutdown automaticaly after the camera reboot work 1 min and reboot

nobody know an equivalent of this camera? because i have many model on qnap maybe if i found a model similar i can try it

thank you