Skip to content
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

Does not connect to WIFI #159

Open
krcenov opened this issue Apr 10, 2021 · 2 comments
Open

Does not connect to WIFI #159

krcenov opened this issue Apr 10, 2021 · 2 comments

Comments

@krcenov
Copy link

krcenov commented Apr 10, 2021

FIRMWARE: 3.4 READ ONLY

The camera does not want to connect to the wifi, but if i do

ip link set wlan0 up
iwconfig wlan0 essid "K!DA6A 2.4GHZ"
wpa_supplicant -c /tmp/mnt/mmc01/0/wpa_supplicant.conf -i wlan0

it connects and works like a charm

wpa_supplicant.conf - contains the SSID of the network and the psk. I have created it in the memory card

network={
        ssid="home"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="very secret passphrase"
}

Is there a way to automatically run this command after camera initialisation?

@sugakenn
Copy link

sugakenn commented May 20, 2021

Hello! krcenov

I encounted same probrem.
How about this code.
It works my enviroment.

1.make .sh file and put it into the dir that is belong to debug_cmd.sh.

2.edit debug_cmd.sh last row.
(sleep 30 && /media/changenetwork.sh) &

#!/bin/sh
#changenetwork.sh

#change wifi to ownnet-work

#add wpa_supplicant.conf
cat << EOS >> /tmp/wpa_supplicant.conf
update_config=1
network={
ssid="..."
psk="..."
}

EOS

#kill dhcpd
pkill udhcpd

#kill hostapd
pkill hostapd

#down wlan0
ip link set wlan0 down

#not found dhclient, so change ip address manually
ifconfig wlan0 192.168.1.155

#wlan0 up
ip link set wlan0 up

sleep 5

#wpa_supplicant start
wpa_supplicant -Dwext -iwlan0 -c/tmp/wpa_supplicant.conf -B

@krcenov
Copy link
Author

krcenov commented May 20, 2021

Will try!
Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants