-
Notifications
You must be signed in to change notification settings - Fork 101
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
Implement checksumming in goke_p2pcam_param #59
base: master
Are you sure you want to change the base?
Conversation
Nice, I'm glad it helped. |
Thanks! |
Cool, is this going to be merged? Would be cool to be able to put the wifi credentials in the config.txt and let it connect to wifi without installing the shady android app. |
Build that will run on the camera: |
Did i only have to unpack the binary from goke_p2pcam_param.tar.gz, copy it to my sd-card of the camera, overwrite the old goke_p2pcam_param with it and run the commands in manevich first post here? |
Try filling in the right SSID and key for your WIFI network and modify the wpa_supplicant.conf accordingly. |
@ant-thomas Do not forget to merge this pull request. This one finally allows for the wifi to be configured without the official app. I included a build. |
@deorder The pull request from April allows you to setup WiFi on a previously unconfigured camera? |
@ant-thomas As I said in april:
Hope it also works with other models. |
I just tried this with a new GUUDGO GD-SC03 Snowman (with the read only rootfs) and didnt get much luck. I replaced the updated binary on the sd card and edited the debug_cmd.sh to add the following..
When the device boots it doesnt connect to my wifi and the chinese voice tells me to use the app to configure wifi. I checked over ethernet and it doesnt look like wpa_supplicant is started...
After starting wpa_supplicant manually and running ifconfig wlan0 up.. still no luck. I ran out of patience and used the shady android app to get it connected to my wifi :( |
In the description of goke_p2pcam_param I read you can supply ANY value for both SSID (-w) and Passphrase (-k), as long as the correct values are supplied in wpa_supplicant.conf. Using the persistenthack on a DG-MyQ Digoo Cloudcam So for now I also seem to be stuck at using the DigooCloud app to initialize the camera for the first time (and whenever it goes back to factory settings). |
It seems for me, that there is a bug in this goke_p2pcam_param. I got an Segmentation fault, if i used this binary. If the keyphrase is too long (more than 13 characters) i got this segmentation fault.
In both cases, as @edsub said, i can also see only the first 8 characters in the devParam.dat
|
Just another hint: It is not only the length, to get the segmentation fault
|
Maybe @deorder can help in the problem with only 8 characters for the passphrase. The code with this implementation was written from him. Where did you get the restriction of 8 from?
|
Yes I have to fix that apparently, sorry everyone. Will do it this weekend. |
Very nice. Please upload the binary of goke_p2pcam_param then here, so i can test it on my camera. It is still in lan mode and not connected to cloud but i will use wlan in future. So best testing environment. |
The new binary and code are inside the attached archive, as follows: Max SSID character length is now 32 according to specs and the max WiFi password character length is now 64. |
Ok, i am not getting the seg fault any more. Used the new goke-tool and edited the /home/wpa_supplicant.conf with my correct wlan settings. But on reboot i only here the voice to use the mobile phone app. Any ideas, what i can do? |
Fix checksum when changing
devParam.dat
file.I used as reference explanation of checksum algo by @xjikka from #54
Quick and dirty fix: only tested on PC, newer tried to crosscompile for ARM.
Nevertheless, it solved big problem for me: I was able to setup DIGOO DG-MYQ camera without app.
./goke_p2pcam_param -f /home/devParam.dat -wtest -ktest
. Any SSID and PSK are fine, this is not used at all AFAIK, but without thiswpa_supplicant
is never started./home/wpa_supplicant.conf
.