EliasKotlyar / Xiaomi-Dafang-Hacks

4.2k stars 1k forks source link

wpa_supplicant.conf question #144

Closed ktsi closed 6 years ago

ktsi commented 6 years ago

Hi all,

I have successfully installed the microSD bootloader. Then I copied the contents of firmware_mod folder to root of micro SD card and edited the wpa_supplicant.conf file.

My file is exactly as bellow:

ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=1

network={ ssid=“myssid” key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP WEP104 WEP40 psk=“mypassword” priority=2 }

However I cannot see the camera in my local network. Is smth wrong with the wpa_supplicant.conf file?

All help appreciated.

Thanks

helio58 commented 6 years ago

@ktsi Hi I hade problems with that too.

Solvit changing: pairwise=CCMP group=CCMP

Using WPA-personal and AES on router. Giv it a try.

ktsi commented 6 years ago

Hi, I tried your approach but still nothing. Let me ask, when the camera connects to the network what colour is the LED? Is it blue?

Thanks for your reply.

helio58 commented 6 years ago

Blue is when the Mi home, with this Hack its orange. When you start the camera it gets blue for 5 seconds den orange. If it don't get blue during 5 seconds you haven't install the hack.

ktsi commented 6 years ago

When I start the camera (with SD card inserted) I get the blue light for about a second. However when I first installed the boot loader I saw the blue light for about 5 secs that’s why I am quite sure that the hack was done ok.

helio58 commented 6 years ago

Seems right, if you remove the sd card the blue light should be on for 5 secs. It should be something with the "wpa_supplicant.conf" and the router settings.

ktsi commented 6 years ago

When I boot the camera without SD card then the light goes yellow, then blue for about 5 seconds, then again yellow and then it turns off. I am confident that the bootloader is installed correctly. However when I have the micro SD card inside I cannot see the camera in my local network. How should my access it?

http:\localip\chi-bin\status

Is that it?

helio58 commented 6 years ago

http://Dafang_IP/cgi-bin/status.cgi In chrome/iexplorer

ktsi commented 6 years ago

Yeah, this is what I meant. Problem is camera does not connect. It is driving me crazy.

FreakErn commented 6 years ago

Maybe the camera does not even run the run.sh file, like mine does... ( #139 ) But i guess to find that out, you'll have to solder the pin header to connect a ftdi adapter

ktsi commented 6 years ago

How does one go back to original FW? After having flashed the boot loader I mean. Do I just remove the microSD card? #losingfaith

helio58 commented 6 years ago

Mine did not. I had to put the original firmware into the SD card and flashed as you flash the hack. The original firmware can be download at https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/tree/master/firmware_original then rename it to demo.bin.

rhass commented 6 years ago

@ktsi Is your SSID hidden?

ktsi commented 6 years ago

Hi there. My SSID is not hidden. I really cannot understand what is happening.

Can someone please share his/her version of wpa_supplicant.conf file?

Thanks a lot in advance.

rhass commented 6 years ago

@ktsi Try adding scan_ssid=1 to your wpa_supplicant.conf. If that doesn't work try adding the mac address of your wireless AP to an additional line bssid=xx:xx:xx:xx:xx:xx (where xx:xx:xx:xx:xx:xx is the MAC address of the wireless interface on your AP). If neither of those work help, then I suspect your wireless AP has some issues... I have had a couple of really terrible wireless routers and access points in the past myself where some devices couldn't connect at all to them.

Good luck!

jmtatsch commented 6 years ago

@ktsi Please try a current software version which offers a startup.log. This may help to debug your issue. Closing this for now. Reopen if still an issue.