Android system debugging wifi Summary

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.