Android system debugging wifi Summary
I. Environment
Platform: CES-C110 Platform
Processor: CortexTM-A8 kernel CPU S5PC110
System: android2.2
Ii. Problems
# Wpa_cli-iwlan0
Appearance: cocould not connect to wpa_supplicant-re-trying
This error may be caused by the failure to start your wpa_supplicant process.
See the following command:
1) modify the wpa_supplicant.conf File
Comment out all the content and leave only this line of statement:
#/Etc/wpa_supplicant.conf
Ctrl_interface =/var/run/wpa_supplicant
#
2) Start the wpa_supplicant process:
Wpa_supplicant-Dwext-iwlan0-c/etc/wifi/wpa_supplicant.conf &
Or wpa_supplicant-B-Dwext-iwlan0-c/etc/wpa_supplicant.conf
Wpa_supplicant-dd-Dwext-iwlan0-c/data/misc/wifi/wpa_supplicant.conf &
3) Run ps-aux to check whether the startup is complete. 4) if this process exists, you can use the wpa_cli command for further configuration.
Wpa_cli-iwlan0
In this case, the error message "cocould not connect to wpa_supplicant-re-trying" will no longer appear.
And a new prompt ">" is displayed"
Iii. debugging
Wpa_supplicant-Dwext-iwlan0-c/data/misc/wifi/wpa_supplicant.conf-dd-B
Wpa_cli-I wlan0-p/data/system/wpa_supplicant
Then scan
> Scan
OK
> Scan_results
Bssid/frequency/signal level/flags/ssid
Add_network
Set_network 0 ssid "TP-LINK_RAINJET"
Set_network 0 key_mgmt WPA-PSK
Set_network 0 psk '"1234 abcd "'
Set_network 0 pairwise CCMP
Set_network 0 group CCMP
Set_network 0 proto WPA
Enable_network 0
Quit
Then configure the IP address
Ping it.