edsub / Goke_GK7102

Hacks for various Goke GK7102 based IP Cameras, incl Domoticz connection
49 stars 10 forks source link

devParam.dat #5

Open balvant813 opened 4 years ago

balvant813 commented 4 years ago

I am not able to add camera in the App. To add localnetwork, I tried to use ./goke_p2pcam_param -f /home/devParam.dat -wtest -ktest but cant find the devParam.dat file.

Any suggestion for alternatives or content of the file?

edsub commented 4 years ago

Afaik you have to use the app to get the cam linked to your wlan before applying the hack.

balvant813 commented 4 years ago

My problem is that app never finds the camera. I think app uses 192.168.200.1 as AP-Hotspot network and my local network is on 192.168.200.xxx also. I am stuck!

Thanks for the reply.

Balvant

From: edsub notifications@github.com Sent: Thursday, August 15, 2019 4:26 AM To: edsub/Goke_GK7102 Goke_GK7102@noreply.github.com Cc: Balvant Patel softdev@balvantpatel.com; Author author@noreply.github.com Subject: Re: [edsub/Goke_GK7102] devParam.dat (#5)

Afaik you have to use the app to get the cam linked to your wlan before applying the hack.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/edsub/Goke_GK7102/issues/5?email_source=notifications&email_token=AIJVSM4UZ73WRBH2KMK4XQLQEUHJZA5CNFSM4ILZYPN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LF35Y#issuecomment-521559543, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIJVSM7W74IF7UORHIVZFJTQEUHJZANCNFSM4ILZYPNQ.

TimelessNL commented 4 years ago

This worked for me:

  1. Get devParam.dat from here
  2. Put this file on a SD-Card.
  3. Put this SD-Card in the camera.
  4. After boot the SD should be mounted automatically. run mount -> to check where it is mounted
  5. copy this file (SD-Card may be mounted elsewhere) cp /media/devParam.dat /home/devParam.dat
  6. update wpa_supplicant.conf to reflect your network configuration.
  7. reboot
  8. p2pcam should now initiate wpa_supplicant.

_Take note that this devParam contain some magic WiFi information, so it may have unwanted side effects. In my case devParam.dat seemed to be ignored since wpa_supplicant.conf stayed unaffected after reboot_

I tried to update devParam.dat but goke_p2pcam_param segfaults for some unknown reason.

wwolkers commented 4 years ago

I used a different solution. I put a 'cls.conf' file in the root of an SD card with the following contents:

[cls_server]
ssid = blabla
passwd = supersecret

obviously change the ssid and the password to match.

johng2001 commented 3 years ago

cls.conf worked for me too device was a "Worldtech WTCCM011" (Goke_GK7102s) had another problem that telnet was not started so made a modification to the debug_cmd.sh which runs at startup

# Telnet Server
if [ "$HACK_TELNET" = "NO" ]; then
    start-stop-daemon -K -n telnetd
fi

changed to

# Telnet Server
if [ "$HACK_TELNET" = "YES" ]; then
    /bin/busybox telnetd
fi

ohn@debian:~$ telnet 192.168.1.143 23 Trying 192.168.1.143... Connected to 192.168.1.143. Escape character is '^]'.

localhost login: root Password: [root@localhost:/root]# cd .. [root@localhost:/]# ls bak etc ipc media opt root sys var bin home lib mnt p2pcam run tmp dev init linuxrc nfsroot proc sbin usr [root@localhost:/]#