Disclaimer: This document is purely online data collection, and the copyright is owned by the source author. Please mark it as a reprinted article during reprinting.
Now I have been familiar with the WiFi module of the Android platform for a while. Now I will make some brief summary for future reference and correction.
[WiFi module learning process]
I recently st
One: what is WiFiWiFi is a wireless connection technology, can be used in mobile phones, computers, PDA and other terminals. The purpose of WiFi technology is to improve the interoperability of wireless network products based on the IEEE802.11 standard, which means that WiFi is based on the 802.11 standard, but WiFi is not the same as wireless network.Second:the
Address: http://hi.baidu.com/wuguohu/blog/item/6b518726d6ffda018b82a176.html
I. Basic WiFi framework
The Wi-Fi system of Android contains the following content from top to bottom:
The wifi part is used as the Network Part in the Android system in the same way as the normal network. The only special part is the
I. Basic architecture of WiFi1. WiFi user space programs and libraries:
External/wpa_supplicant/
Generate libwpaclient. So and wpa_supplicant. 2. Hardware/libhardware_legary/WiFi/is the WiFi management library. 3. JNI:
Frameworks/base/CORE/JNI/android_net_wifi_wifi.cpp 4. Java part:
Frameworks/base/services/Java/COM/Android
Basic structure of WiFiThe following five statuses are defined in the official Android documentation:Wifi_state_disabling WiFi NIC is shutting down 0Wifi_state_disabled WiFi NIC is not available 1Wifi_state_enabling WiFi card is opening 2Wifi_state_enabled WiFi Card Availabl
A. Android platform WiFi Basic code path
1. wpa_supplicant Source Section
external/wpa_supplicant_6/
Build library libwpa_client.so and daemon wpa_supplicant
2. WiFi HAL Layer Code
Located in hardware/libhardware_legary/wifi/
3. The JNI part of WiFi
Located in Frameworks/ba
http://alex-yang-xiansoftware-com.iteye.com/blog/619841In some programs, you need to download data from the Internet, or other ways to generate traffic to the network, when WiFi is not available should be prompted to the user WiFi is not available, whether to continue, because if the WiFi dropped, then the program may use 3G card or other toll channels using the
(Transferred from: http://wenku.baidu.com/view/af39b3164431b90d6c85c72f.html)Nine, Android Learning day eighth-broadcasting mechanism and WiFi network operationToday you are familiar with some basic operations of the broadcast mechanism and WiFi network in Android, summarized as follows:
Android's broadcast me
Wifi Nic status1. WIFI_STATE_DISABLED: WIFI Nic unavailable2. WIFI_STATE_DISABLING: the WIFI Nic is being disabled.1. WIFI_STATE_EWNABLED: WIFI Nic available1. WIFI_STATE_ENABLING: the WIFI Nic is on.1. WIFI_STATE_UNKNOWN: Unknown Nic statusChange the status of the Wi-Fi net
Wi-Fi peer-to-peer (peer-to peers), which agrees with the corresponding hardware of the Android 4.0 (API level 14) or a higher version of the device can directly communicate via WiFi without the need for other intermediate transit nodes (Android Wi-Fi peer framework complies with the Wi-Fi affiliate Wi-Fi direct authentication logo). Use these APIs. You can searc
[Android] wifi development, androidwifi
WIFI is a wireless networking technology, commonly used by wireless routers. In this case, Wi-Fi connections can be used within the signal coverage of the wireless router. If a wireless router is connected to an ADSL line or other Internet connection lines, it is also called a "hot spot ".
For
1. System Architecture
The android WiFi system introduces wpa_supplicant. The entire WiFi system uses wpa_supplicant as the core to define upper-layer user interfaces and lower-layer driver interfaces. Shows the entire Wi-Fi system architecture:
Everything is in progress. Next we will analyze each part in detail.1.1 wifiservice
The connecttivityservice created w
1. Concepts
2. WiFi Nic status
Wifi_state_disabled: WiFi Nic unavailable (1)
Wifi_state_disabling: WiFi is being disabled (0)
Wifi_state_enabled: WiFi Nic available (3)
Wifi_state_enabling: the WiFi Nic is on (2)
Wifi_state_unknown: Unknown Nic status
3.
Android WiFi Port
Two Wi-Fi modules, vt6656 and rt2070, were transplanted on Android 2.2. First, compile the WiFi Linux driver into a module and put the driver (vntwusb. Ko or rt3070sta. KO in/system/lib/modules. Then, make the following changes:
1. Modify init. RC: Many articles have descriptions, but some of them
Tagged with: Android Wi-Fi peer networkWi-Fi peer-to-peer (peer-to-peer network), which allows Android 4.0 with the appropriate hardware (API level 14) or later devices can communicate directly via WiFi without the need for other intermediate transit nodes (Android Wi-Fi peer-to-frame complies with Wi-Fi affiliate Wi-F
1. Download the firmware from here
Http://extranet.marvell.com/drivers/driverDisplay.do? Driverid = 203.
26409. The p45-GPL is for Linux core 2.6
Parse it and you will find two files: helper_sd.bin and sd8686.bin.
Rename helper_sd.bin to sd8686_helper.bin (do not ask why it is different)
2. You have two options to use sd8686 wifi. You can put sd8686_helper.bin and sd8686.bin into the core or file system.
This is the internal core mode or mode. For me,
Transplantation of rt2870 USB wifi on mx53 Android platform
There are a lot of porting tutorials for USB wifi on the Linux platform online, but there are few complete tutorials for porting on Android. It took a whole week to transplant this driver, here are the detailed transplant notes for this week.
I. Compile the
In the previous article "Android Development Practice: The encapsulation of WiFi scanning function" describes how to use the Andriod API to achieve WiFi scanning, this article will focus on how to connect WiFi bar, here, also give a package of WiFi connection process class,
. setwifienabled (false );
The following is a simple program code:
1. Set permissions in manifest
Set the WiFi Nic status in wifiactivity. Java
Package Mars. wiFi; import android. app. activity; import android. content. context; import android.net. wiFi. wifimanager; import
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.