CN106060970A - Intelligent terminal and network configuration method thereof - Google Patents

Intelligent terminal and network configuration method thereof Download PDF

Info

Publication number
CN106060970A
CN106060970A CN201610141032.2A CN201610141032A CN106060970A CN 106060970 A CN106060970 A CN 106060970A CN 201610141032 A CN201610141032 A CN 201610141032A CN 106060970 A CN106060970 A CN 106060970A
Authority
CN
China
Prior art keywords
network
intelligent terminal
client
station mode
wpa
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610141032.2A
Other languages
Chinese (zh)
Inventor
韦巧
胡宇光
朱翼鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610141032.2A priority Critical patent/CN106060970A/en
Publication of CN106060970A publication Critical patent/CN106060970A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an intelligent terminal and a network configuration method thereof. The network configuration method comprises the steps of establishing a network group which conforms to the WIFI P2P specification so as to complete the starting process of a hotspot mode of the intelligent terminal and enabling the hotspot mode to operate in a coexistence manner with a site mode of the intelligent terminal; invoking a network daemon process at the system highest authority to modify network shared configuration information so as to establish network connection between the hotspot mode and the site mode; and after a client accesses to the network group, establishing connection of the client with an external network maintained by the site mode. According to the processing disclosed by the invention, the Android system-based intelligent terminal is enabled to run in dual modes, that is, the intelligent terminal not only can serve as a hotspot for other equipment to access, but also can serve as a site to access to an external network access point. In addition, the intelligent terminal plays the role of a router, and client equipment accessed to the intelligent terminal is allowed to access to the external network through the intelligent terminal.

Description

Intelligent terminal and network collocating method thereof
Technical field
The present invention relates to the networking technology of intelligent terminal, specifically, the present invention relates to a kind of intelligent terminal and network thereof Collocation method.
Background technology
The intelligent terminal of android system, including mobile phone, panel computer, drive recorder, wearable wrist-watch, glasses Etc., generally this type of intelligent terminal is equipped with observing accordingly the WiFi module of IEEE802.11 protocol specification, loads corresponding Driving, it is provided that corresponding interface calling for process more than ccf layer.
The WiFi module typically complying with 802.11 agreements all supports multiple-working mode, such as IBSS, Managed, AP, AP/VLAN, Monitor, mesh point, P2P-Client, P2P-GO isotype, kind pattern can realize different networking merits Energy.Wherein, Station (STA) the i.e. workstation mode that Managed namely custom are known, the access points pattern that AP is i.e. commonly called as (Access Point);IBSS is then the most direct-connected pattern of adhoc, the WiFi Direct technology that P2P is i.e. commonly called as, and belongs to Wi-Fi The important technology specification that Alliance (Wi-Fi Alliance) releases.Under STA mode, it is a work station that intelligent terminal becomes, A terminal being under ap mode can be accessed.In like manner, P2P-Client is equivalent to STA, can access one and be equivalent to AP P2P-GO (P2P Group Owner) pattern under intelligent terminal.Visible, at least two kinds of bodies of IBSS and WiFi Direct System can realize carrying out multiple stage intelligent terminal networking, same portion intelligent terminal, based on same WiFi module, both may act as heat Point, can also act as website.
In a kind of application demand, it is desirable to make the WiFi module of same intelligent terminal simultaneously work in website and two kinds of moulds of focus Formula, is so easy to after this intelligent terminal utilizes its station mode accessing external network, by its hotspot pattern to other WiFi equipment There is provided and access and the shared service of network.In reality, intelligent terminal based on Windows or IOS, it is possible to kind with the offer of WiFi module Function, enable this intelligent terminal to fictionalize two equipment, i.e. site apparatus and hotspot device, on this basis, permit Permitted this intelligent terminal and on the one hand can be accessed wireless aps, on the other hand can serve as AP and access for other WiFi equipment.
But Android intelligent terminal does not the most possess this function.In the functional realiey of Andoid system, do not have to User opens focus and the ability of website both of which of WiFi module simultaneously.Thus, in practical application, when intelligent terminal is with station Dot pattern utilizes WiFi to access after corporate lan AP, it is desirable to by another without the WiFi equipment of display interface digital independent also Uploading to high in the clouds, such a needs can not to open the hotspot pattern (Yin Qikai of himself because of this intelligent terminal simultaneously Open and necessarily cause suspension) and station mode and be not being met.In like manner, utilize intelligent terminal with hotspot pattern and the 3rd such as user During square tube letter, certain LAN need to be accessed with station mode and obtain data, it is clear that also not accomplish.
Visible, intelligent terminal based on Android realize focus and two kinds of WiFi networking models of website this functionally It is congenital defect, thus, it will be seen that solving this problem is that the networking condition to Android intelligent terminal is carried out efficiently The important prerequisite utilized.
The problems referred to above suitably solve under WiFi P2P technical specification, it may be considered that make the WiFi module structure of Android Make one and can access external website with STA mode, the access of other clients can be supplied to P2P GO pattern the most again and realize net The framework of network extension.The problem thus brought is the client and service end connected in P2P mode, point-to-point because originally only considering The problem connected, therefore its route each other all will not change, and client to be realized can connect external network by service end, The route enabling the client to reasonably configure self is then needed to arrange so that it can go to access outer net for gateway with service end.
Summary of the invention
Present invention aims to present at least one aspect not enough, it is provided that a kind of intelligent terminal and network thereof Collocation method.
In order to realize this purpose, the present invention adopts the following technical scheme that:
A kind of intelligent terminal network collocation method of the present invention, comprises the steps:
Set up and meet the network group of WiFi P2P specification to complete the startup of the hotspot pattern of this intelligent terminal so that it is with The station mode of this intelligent terminal also deposits work;
Call network guard process amendment network configuration sharing information with system highest weight limit and make connection hotspot pattern and station Network between dot pattern connects;
After client accesses described network group, set up this client and the outer net maintained by described station mode Connect.
Further, controlled and start the foundation of described network group.
It is also preferred that the left control button by providing in user interface, for receiving control instruction, to start described network group The foundation of group.
Concrete, described station mode is reality by the website process i.e. wpa_supplicant process of startup system offer Existing.
It is also preferred that the left described station mode works prior to hotspot pattern.
Further, starting described hotspot pattern when making it with station mode and deposit, display is used for characterizing at this intelligent terminal Third party's icon in the concurrent state that hotspot pattern and station mode coexist.
Concrete, provide according to the specification of WiFi P2P agreement by calling android system The createGroup method of WifiP2pManager class realizes the foundation of described network group.
Concrete, described network guard process is the Netd finger daemon of android system, by this network guard process The ndc instrument provided controls this network guard process and completes described network configuration sharing information.
Concrete, described network configuration sharing information is modified to possess following purposes:
Open the packet forwarding capability that the network between connection hotspot pattern and station mode is connected;
That revises the Packet Filtering table that is connected for network between unimpeded hotspot pattern and station mode arranges content;
Remove client shared verification and limit the option resolving DNS.
Further, before amendment network configuration sharing information, first positive closing is that client distributes network configuration information Configuration process.
Concrete, described after client accesses described network group, set up this client and by described station mode institute In the step of the connection of the outer net maintained, including the processing procedure of following both direction:
Receive client-access outer net packet, be forwarded through described station mode path transmission give described outside Net;
Receive extranet access client packet, be forwarded through described hotspot pattern path transmission give this client End.
Further, this method also comprises the steps:
In response to exiting the user instruction of shared verification, the network configuration sharing information described in recovery.
A kind of intelligent terminal of the present invention, including:
Set up unit, meet the network group of WiFi P2P specification to complete the hotspot pattern of this intelligent terminal for setting up Startup so that it is with the station mode of this intelligent terminal deposit work;
Dispensing unit, makes connection for calling network guard process amendment network configuration sharing information with system highest weight limit Network between hotspot pattern with station mode is connected;
Communication unit, after accessing described network group in client, sets up this client and by described station mode The connection of the outer net maintained.
Further, described set up in unit, controlled and start the foundation of described network group.
It is also preferred that the left described unit of setting up is by providing control button in user interface, for receiving control instruction, to open The foundation of dynamic described network group.
Concrete, described to set up in unit, described station mode is by starting the website process i.e. wpa_ that system provides Supplicant process and realize.
Setting up in unit it is also preferred that the left described, described station mode works prior to hotspot pattern.
Further, described setting up unit, start described hotspot pattern when making it with station mode and deposit, display is used for characterizing Third party's icon of the concurrent state that this intelligent terminal is in hotspot pattern and station mode coexists.
Concrete, described set up unit, provide according to the specification of WiFi P2P agreement by calling android system The createGroup method of WifiP2pManager class realizes the foundation of described network group.
Concrete, in described dispensing unit, described network guard process is the Netd finger daemon of android system, logical The ndc instrument that crossing this network guard process provides controls this network guard process and completes described network configuration sharing information.
Further, in described dispensing unit, described network configuration sharing information is modified to possess following purposes:
Open the packet forwarding capability that the network between connection hotspot pattern and station mode is connected;
That revises the Packet Filtering table that is connected for network between unimpeded hotspot pattern and station mode arranges content;
Remove client shared verification and limit the option resolving DNS.
It is also preferred that the left described dispensing unit is before amendment network configuration sharing information, first positive closing is client distribution The configuration process of network configuration information.
Concrete, described communication unit, it is configured to process as follows the packet of following both direction:
Receive client-access outer net packet, be forwarded through described station mode path transmission give described outside Net;
Receive extranet access client packet, be forwarded through described hotspot pattern path transmission give this client End.
Further, this intelligent terminal also includes recovery unit, is configured to respond to exit the user instruction of shared verification, Network configuration sharing information described in recovery.
Compared with prior art, the present invention at least has the advantage that
The present invention makes full use of the characteristic that android system provides, and first sets up base according to the specification of WiFi P2P agreement In the network group of P2P GO (P2P Group Owner), intelligent terminal is forged into hotspot so that it is can operate at heat Dot pattern, with station mode cooperation, breaks through android system and cannot open hotspot pattern and station mode two the most simultaneously The limitation of the pattern of kind.On this basis, the present invention limits further with system highest weight, the machine provided by android system System, drives network guard process to go to revise network configuration information, it is ensured that this amendment makes this intelligent terminal energy as service end Enough clients to accessing its hotspot pattern provide external network to connect so that client can by with the network group owner The i.e. connection of service end, realizes extranet access via the station mode of service end, thus solves the problem that network is shared.? Eventually, even if not relying on the mobile network that operator provides, as long as service end can be at station mode accessing external network, then, described Client just can utilize the hotspot pattern of service end carry out outer net share.
Generally, the enforcement of the present invention, solve under WiFi P2P agreement, the route between client and service end is joined Put problem so that client can access outer net via service end.But, I have much more to say than I can write in this letter, aspect that the present invention adds and advantage To part be given in the following description, these will become apparent from the description below, or is understood by the practice of the present invention Arrive.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially with easy to understand, wherein:
Fig. 1 is the schematic flow sheet of the intelligent terminal network collocation method of the present invention;
Fig. 2 is the structural representation of the intelligent terminal of the present invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, the most from start to finish Same or similar label represents same or similar element or has the element of same or like function.Below with reference to attached The embodiment that figure describes is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein " ", " Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that use in the description of the present invention arranges Diction " including " refers to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existence or adds Other features one or more, integer, step, operation, element, assembly and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connections or wireless couple.Used herein arrange Diction "and/or" includes that one or more list the whole of item or any cell being associated combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technology art Language and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning.Also should Be understood by, those terms defined in such as general dictionary, it should be understood that have with in the context of prior art The meaning that meaning is consistent, and unless by specific definitions as here, otherwise will not use idealization or the most formal implication Explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal unit " had both included wireless communication The equipment of number receptor, it only possesses the equipment of wireless signal receiver of non-emissive ability, includes again receiving and launching hardware Equipment, its have on bidirectional communication link, can carry out two-way communication reception and launch hardware equipment.This equipment May include that honeycomb or other communication equipments, it has single line display or multi-line display or does not has multi-line to show The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can Process with combine voice, data, fax and/or its communication ability;PDA (Personal Digital Assistant, individual Digital assistants), it can include the access of radio frequency receiver, pager, the Internet/intranet, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receptor;Conventional laptop and/or palm Type computer or other equipment, its have and/or include the conventional laptop of radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured at local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal unit " can also is that communication terminal, on Network termination, music/video playback terminal, such as, can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or there is the mobile phone of music/video playing function, it is also possible to it is the equipment such as intelligent television, Set Top Box.
The realization of the present invention, being suitable for Android provides and installs an application program, it start, in the system of acquisition In the case of highest weight limit or open system highest weight limit, and provide interactive function to system, it is achieved the control needed for this method System.
As it is shown in figure 1, a kind of intelligent terminal network collocation method of the present invention, comprise the steps S11-S13:
Step S11, foundation meet the network group of WiFi P2P specification to complete opening of the hotspot pattern of this intelligent terminal Dynamic so that it is with the station mode of this intelligent terminal deposit work.
Described hotspot pattern can be set up in theory by focus process Hostapd of android system, but, In actual measurement, during hostapd process initiation, website process can be automatically switched off, cause intelligent terminal cannot simultaneously work in focus mould Under formula and station mode, thus, then use the mode setting up network group voluntarily, sending out of this fault can be prevented effectively from Raw.
According to the specification of WiFi P2P agreement, can make multiple intelligent terminal's group a network group, at this network group In group, have and only one of which service end role, the rest is client role.Described service end and two kinds of roles of client, In the present invention, for two intelligent terminal with WiFi P2P agreement institute specification, wherein, as the intelligence of client The chip module of energy terminal works under the P2P-Client pattern of this agreement institute specification, i.e. shows as client role;And with The intelligent terminal of the relative present invention then work under P2P-Group Owner (P2P GO) pattern of this agreement institute specification, I.e. show as service end role.
In android system, encapsulate point-to-point connection management a class, i.e. WiFiP2pManager, as the term suggests, should Class is i.e. for managing the point-to-point connection between Android terminal according to the specification of WiFi P2P agreement.Such constructs one The individual method function for setting up described network group, concrete reform is WiFiP2pManager.createGroup (wifip2pmanger.chanenl, wifip2pmanager.ActionListener), calls the method, can create one Focus, makes intelligent terminal start hotspot pattern, and self is set to service end, and the focus thus created can also be for not propping up The traditional WiFi equipment holding WiFi P2P agreement is attached thereto.The network group being consequently formed, it is possible to use such the opposing party Method function: requestConnectionInfo (wifip2pmanger.chanenl, Wifip2pmanager.ActionListener) go to obtain detailed link information.This wifip2pInfo link information bag Contained have the address groupOwnerAddress of group person namely service end and one go to illustrate whether current device is this The mark isGroupOwer of the owner of p2p group, the client of a p2p therefore can be with p2p group owner by one Socket connection communicates.
Under Android operation system default situations, the WiFi chip module not allowing for same intelligent terminal works simultaneously Under client and service end both of which, but, but can solve this problem by creating described network group voluntarily, its The calling of middle createGroup () function plays the effect of key, and it completes the startup of hotspot pattern of this intelligent terminal.
Due to the present invention it is important that hope solves the WiFi function visit of the smart machine allowing client pass through service end place Ask the netconfig problem of outer net.On the premise of not considering that client connects outer net voluntarily, outside this intelligent terminal is able to access that Net, is the premise of the client-access outer net accessing present networks group.It is therefore advantageous to mode in, be to make this intelligent terminal exist Before completing the startup of above-mentioned hotspot pattern, just have been turned on station mode.
The station mode of android system to be started, can arrange manually opened on page by user in system or pass through The website process of system is set up.Described website process, the wpa_supplicant that refering in particular to android system self provides enters Journey, wpa_supplicant is originally open source projects source code, adds android mobile platform, be primarily used to after being revised by Google Support WEP, WPA/WPA2 and WAPI wireless protocols and encrypt certification, and actual job content is by socket (no Pipe is that wpa_supplicant uses socket communication with upper strata or wpa_supplicant with driving) and drive on mutual Count off is according to user, and user can send commands to wpa_supplicant transfer driving by socket and to grasp WiFi chip Make.Briefly, wpa_supplicant is exactly that WiFi drives and the terminal of user is additional props up agreement and encryption certification Hold.Wpa_supplicant source program after compiling is it can be seen that two main performed instrument: wpa_ Supplicant and wpa_cli.Wpa_supplicant is kernel program, and it services and client exactly with the relation of wpa_cli The relation of end: running background wpa_supplicant, uses wpa_cli to search for, arrange and connect network.
An example utilizing wpa_cli to connect to complete network presented below understands this for those skilled in the art's reference Invention, but should not be construed as the restriction of the realization to the present invention.
Network connecting function to be realized, it is necessary first to run wpa_supplicant program to load basic function;
Perform :/system/bin/wpa_supplicant-d-Dwext-iwlan0-c/data/misc/wif i/wpa_ supplicant.conf
Wherein:
-d: increase Debugging message
-Dwext:wext, drives title
-iwlan0:wlan0, network interface title
/ system/bin/wpa_supplicant:wpa_supplicant, executable program path
The Profile Path of/data/misc/wifi/wpa_supplicant.conf:wpa_supplicant
Then, command-line tool wpa_cli is run;
Perform: wpa_cli-iwlan0-p/data/system/wpa_supplicant
Noting, the wpa_supplicant in-p/data/system/wpa_supplicant is not executable program, But individual control socket.
Now can enter interactive mode.The wherein order of interactive mode such as following table:
Full command
Short command
Description
status
stat
displays the current connection status
disconnect
disc
prevents wpa_supplicant from connecting to any access point
quit
q
exits wpa_cli
terminate
term
kills wpa_supplicant
reconfigure
recon
reloads wpa_supplicant with the configuration file supplied(-c parameter)
scan
scan
scans for available access points(only scans it,doesn't display anything)
scan_result
scan_r
displays the results of the last scan
list_networks
list_n
displays a list of configured networks and their status(active or not,enabled or disabled)
select_network
select_n
select a network among those defined to initiate a connection(ie select_network 0)
enable_network
enable_n
makes a configured network available for selection(ie enable_network 0)
disable_network
disable_n
makes a configured network unavailable for selection(ie disable_ network 0)
remove_network
remove_n
removes a network and its configuration from the list(ie remove_ network 0)
add_network
add_n
adds a new network to the list.Its id will be created automatically
set_network
set_n
shows a very short list of available options to configure a network when supplied with no parameters.
See next section for a list of extremely useful parameters to be used with set_network and get_network.
get_network
get_n
displays the required parameter for the specified network.See next section for a list of parameters
save_config
save_c
saves the configuration
Above command entry can be checked from the public technology document of Android, the most only for reference.
The instruction of the basic format arranging network is: set_network<network id><key><parameter>[< parameter>]
The instruction of the basic format of display networks is: get_network<network id><key>
Corresponding parameter such as following table:
Key
Description
Parameters
ssid
Access point name
string
id_str
String identifying the network
string
priority
Connection priority over other APs
number(0 being the default low priority)
bssid
Mac address of the access point
mac address
scan_ssid
Enable/disbale ssid scan
0,1,2
key_mgmt
Type of key management
WPA-PSK,WPA_EAP,None
pairwise
Pairwise ciphers for WPA
CCMP,TKIP
Group=TKIP
Group ciphers for WPA
CCMP,TKIP,WEP104,WEP40
psk
Pre-Shared Key(clear or encrypted)
string
wep_key0
WEP key(up to 4:wep_key[0123])
string
eap
Extensible Authentication Protocol
MD5,MSCHAPV2,OTP,GTC,TLS,PEAP,TTLS
identity
EAP identity string
string
password
EAP password
string
ca_cert
Pathname to CA certificate file
/full/path/to/certificate
client_cert
Pathname to client certificate
/full/path/to/certificate(PEM/DER)
private_key
Pathname to a client private key file
/full/path/to/private_key(PEM/DER/PFX)
In like manner, above parameter list also can be obtained from Android official by public approach, only for reference, pardons and does not repeats.With Lower one is utilized to illustrate how that realizing network connects for connecting the instantiation of AP without encryption:
> add_network (network ID will be shown, it is assumed that return value is 0)
>set_network 0ssid"666"
>set_network 0key_mgmt NONE
>enable_network 0
>quit
Recycling one is illustrated for the instantiation connecting the AP of WEP encryption:
> add_network (assuming that network ID returns 1)
>set_network 1ssid"666"
>set_network 1key_mgmt NONE
>set_network 1wep_key0"your ap password"
>enable_network 1
Example as the AP connecting WPA-PSK/WPA2-PSK encryption is as follows:
> add_network (assuming that network ID returns 2)
>set_network 2ssid"666"
>set_network 2psk"your pre-shared key"
>enable_network 2
Arriving this, wifi module just can connect AP.
It is above being realized the connection of wifi network by command-line tool wpa_cli.It is of course also possible to pass through wpa_ The configuration file of supplicant realizes connecting.
Might as well look back again above run wpa_supplicant time perform order:
/system/bin/wpa_supplicant-d-Dwext-iwlan0-c/data/misc/wifi/wpa_ supplicant.conf
We add-c/data/misc/wifi/wpa_supplicant.conf upon execution, so can The AP connected is arranged with in certain form write wpa_supplicant.conf configuration file.Such as:
Ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system Update_config=1
Network={
Ssid=" my access point "
Proto=WPA
Key_mgmt=WPA-PSK
Psk=" you pass words "
}
Visible, even the station mode of call site process initiation intelligent terminal's WiFi chip module, it is possible to by with Upper utilization instruction, utilization two kinds of different modes of configuration file, realize being controlled described website voluntarily by program process and enter The unlatching of journey, so that intelligent terminal works under station mode.
As can be known from the above analysis, the present invention can activate the station mode of intelligent terminal by various ways, and passes through Calling the createGroup method of point-to-point connection management class to activate the hotspot pattern of intelligent terminal, both patterns are permissible And be stored in Android intelligent terminal.So that intelligent terminal can utilize its station mode accessing external network, utilize heat simultaneously One mininet of dot pattern construction.
For making above-mentioned concurrent state be physically easier to perform, embody more preferably Consumer's Experience, the program process of the present invention Can be the most perfect by user interface being designed to this.
User interface refers to and is implemented for man-machine interaction and is able to receive that the display interface of user's control instruction, example As, can be android system arrange in the page option (or button, is added wherein by described application program, under With), it is also possible to it is an option from the informing or interaction page of desktop exhalation, it is also possible to be described application program An option in the page that one moving component is constructed.
The present invention is preferably as follows two ways, for receiving described control instruction:
One, by providing single control button in user interface, receives described control instruction for one-touch, This mode is easy to user and is realized operating in a key.
Its two, by providing control button respectively, with the most right at user interface correspondence hotspot pattern and station mode Different key is answered to produce the corresponding control instruction starting corresponding pattern.
The control button provided according to above mode, generally these buttons can be preferably provided at system desktop informing At list, or provide in the way of desktop suspended window, be both easy to user's touch-control and controlled, the most do not affected user's visual effect, when Activate when the most also can open WiFi button as the default feature of system with user.It is also preferred that the left described application program can be by Self it is set to self-starting item so that during system start-up, described button can be loaded voluntarily, consequently facilitating user operation.
When user is by described user interface, after the control button described in touch-control, just produce corresponding control instruction, This control instruction will be received by the process of described application program, thus the control hotspot pattern of correspondence and/or station mode are opened.
Specifically, user both can open hotspot pattern and station mode by single control button simultaneously, it is possible to Open with the button corresponding with both of which by two, essentially provide multiple operation change case.Corresponding these become Change, illustrate further below.
If user interface provides single control button, user triggers its user instruction by this single control button, this Place just can first call createGroup () and create focus.Then, the program process of the present invention starts this website the most voluntarily Process, the most just can realize both of which and deposit.Otherwise, it is also possible to leading initiating station point process, after it completes to open, Go again and open hotspot pattern with reference to above-mentioned example.It is to say, the control instruction caused corresponding to single control button, can be with Hotspot pattern and the boot sequence of station mode described in different embodiment flexible arrangement.
And correspondence user interface provides different control buttons, for characterizing the example opening different patterns respectively, then Can click on the different order controlling button by user and sequentially open corresponding pattern, this measure has no effect on the enforcement of the present invention.
In preferred scheme, it is recommended that preferentially allow station mode open prior to hotspot pattern, guaranteeing that this intelligent terminal can In the case of connecting outer net, provide access function to other intelligent terminal, some idle works can be exempted, the most energy-conservation.
As can be seen here, after station mode and hotspot pattern being sequentially activated, coexisting of both of which can just be realized.At this On the basis of, the program process of the present invention can export some object informations to user interface, to inform this intelligence of user eventually The concurrent state that end currently coexists already at hotspot pattern and station mode.As for the expression-form of described object information, Both can be to be shown in informing by system message, it is also possible to pop-up shows on the table, more excellent mode can be to adjust With default third party's icon, for characterizing the bimodulus shape that this intelligent terminal is in hotspot pattern and station mode coexists State, is shown to this third party's icon in the system mode hurdle of user interface so that user is easier to know that corresponding result is believed Breath.
Step S12, with system highest weight limit call network guard process amendment network configuration sharing information make connection focus Network between pattern with station mode is connected.
Relate to the operation that network guard process is directly invoked, according to the specification of Android, need acquisition system High authority, thus, on the premise of acquisition android system highest weight limit or android system have opened highest weight limit, Can be by described network guard process be called, amendment relates to the configuration information that network is shared, i.e. network altogether whereby Enjoy configuration information, in order to the network between connection hotspot pattern and station mode is connected, client can be come by service end Access outer net.
Described network guard process, i.e. the abbreviation of Netd, Network Daemon.Netd is responsible for relating to physics with some The functional realiey that the network operation of port is relevant, such as bandwidth control (Bandwidth), network address translation (NAT), Ge Renju Territory net (pan), PPP links, soft-ap, the shared verification (Tether) etc. involved by the hotspot pattern of this intelligent terminal Deng ... all it is organized under netd file directory according to module (.cpp+.h).
Four major parts of the basic framework that Android Netd is relevant:
(1) Linux Kernel is for detecting all events that network is relevant.
(2) Netd is as the bridge communicated between Kernel (inner nuclear layer) and Framework (ccf layer).
(3) ccf layer operation Netd, sends operational order to Netd.
(4) application layer is mutual with ccf layer, carries out the manipulation of network for user.
Android is that Netd provides testing tool, i.e. a ndc, and its major function has:
Monitor event in Netd.
Support that sending commands to Netd by order line goes to perform.Ndc realizes principle, is to be positioned at netd on connecting to enter " netd " in journey monitors socket, then receives information from Netd or sends commands to Netd.
As can be seen here, network guard process can be driven to perform dependent instruction, in the present invention, it is achieved to net by ndc The function of the amendment of network configuration sharing information, just may utilize ndc order and implements.
Observation process please also refer to as follows android system being implemented:
First, by analyzing, after finding that createGroup () creates focus, although can be connected by client, but its As follows for the parameter of configuration process DNSmasq to user feedback DHCP configuration information:
/system/bin/dnsmasq--keep-in-foreground--no-resolv--no-poll--dhcp- Auth oritative--dhcp-option-force=43, ANDROID_METERED--pid-file--dhcp-rang e =192.168.42.2,192.168.42.254,1h--dhcp-range=192.168.43.2,192.168.43.254, 1h--dhcp-range=192.168.44.2,192.168.44.254,1h--dhcp-rang e=192.168.45.2, 192.168.45.254,1h--dhcp-range=192.168.46.2,192.168.46.25 4,1h--dhcp-range= 192.168.47.2,192.168.47.254,1h--dhcp-range=192.168.48.2,192.168.48.254,1h-- Dhcp-range=192.168.49.2,192.168.49.254,1h
There it can be seen that with addition of the control option i.e. dhcp-option-force forcing configuration sequence to be 43 =43, ANDROID_METERED, official's lexical or textual analysis of sequence number 43 is manufacturer's specified option, is used for representing that being currently connected as charging connects Connecing, in this case, the outer net that can not utilize service end is connected by client, in order to avoid producing enormous expenditure.But, this set Meter logic is to provide, by being connected by the charging of operator, the outer net service that accesses with service end, but service end exists with WiFi Station mode set up free outer net connect situation, not by Android compatibility.
Then, by analyzing in Android official document the source generation for TetherController (shared control unit) Code understands, and in this case, at this, ANDROID_METERED has been carried out specification, but, but have no setting of default gateway Put.
And to client is analyzed, from core.java.android.net.DhcpInfoInternal namely Dhcp client over there, utilizes following code implementation to detect:
Above analysis shows, as client to be made connects outer net by service end, needs to avoid above-mentioned control choosing The impact of item.
And then, by analyze this intelligent terminal hotspot pattern open before and open after packet forward switch and data Packet filtering table i.e. iptables, it has been found that affect the factor of client online.
Specifically, switch is forwarded for packet, it is found that cat/proc/sys/net/ipv4/ip_forward Result be 1 rather than 0, thus echo " 1 " >/proc/sys/net/ipv4/ip_forward can be passed through in theory Enable changes this switch and arranges so that it is open packet forwarding capability.But, in this case, owing to being subject to The impact of iptables, even if making above-mentioned change, client carries out extranet access and still fails to unimpeded.When intelligent terminal's The interface corresponding to p2p0 mark under hotspot pattern receives packet, though route can be searched, and is dealt under its station mode Interface corresponding to wlan0 mark, but can be abandoned by the filtering rule of iptables.
For iptables, finding that it affects of both existing, the first wherein includes the data of interface p2p0 The rule that abandons of bag, it two is the NAT rule that intelligent terminal is mapped to public network by shortcoming.For the former, following finger can be passed through Order processes: iptables-D FORWARD 4, i.e. deletes the 4th rule in forward, namely natctrl_FORWARD rule Then.At this time receive bag as p2p0, can send from wlan0.But the source ip of this bag is Intranet ip.Accordingly, it would be desirable to it is right The latter processes as follows: iptables-t nat-A POSTROUTING-o wlan0-j MASQUERADE, i.e. to iptables Filter table increases a nat rule, after interpolation, on another mobile phone, just can lead to outer net ip with ping.By client to The connection of outer net, the most unimpeded.Naturally, and combining practice analysis, gateway is the most correctly configured.
By above-mentioned process, the problem that only address only IP layer, for the function of dns resolution, the most unrealized.Enter one Walking the configuration parameter by analyzing DNSmasq, find this carry--no-resolv option, this option causes impact visitor just Family end obtains the reason of correct dns resolution.Thus, it is possible to by amendment startTethering method or increase by StartTetheringWithDns () method, removes--no-resolv parameter.Completing these operations, client arrives through service end Outer net, specific to the access of WWW based on domain name, the most unblocked.
Above, generally, the present invention is for realizing client by service end access outer net by ndc tool drives net What network finger daemon was made relates to the amendment of network configuration sharing information, is mainly concerned with following aspect:
The packet forwarding capability that one, the network opened between connection hotspot pattern and station mode are connected: concrete table It is now 1 to open for its parameter can be arranged by echo instruction.
Two, revise the setting of the Packet Filtering table being connected for the network between unimpeded hotspot pattern and station mode Content: be embodied in and iptables form is removed corresponding filtering items and interpolation NAT map record.
Three, remove client shared verification and limit the option resolving DNS: be embodied in and can pass through shared control unit (TetherController) method is removed--no-resolv option.
As can be seen here, by above-mentioned method, just can make the intelligent terminal of the present invention realize connecting its hotspot pattern and its Network between under station mode connects, and provides the service of accessing external network for client.
Above by the announcement analysis process to the system principle of Android, disclose the principle that realizes of the present invention, and carry Supply how to revise a kind of embodiment of network configuration sharing information, in addition, revise net also by following mode Network configuration sharing information:
This mode specifically, is i.e. called ndc instrument with system highest weight limit and is realized repairing by network guard process The mode changed, refers to following code and explanation thereof:
ndc ipfwd enable
ndc tether dns set 0 114.114.114.114
// if it fails, generally mean that and above have manual operations to cancel the most completely.Performing ps | grep dnsmasq is first Positive closing configuration process.If also remaining process, such as:
shell@CP8681_A01:/#ps|grep dnsmasq
dhcp 3557 325 10272 740 001a0338b66f61ac S/system/bin/dnsmasq
// execution kill 3557 kills, then
Ndc tether stop, // stop sharing
Ndc tether start 192.168.49.2 192.168.49.254//startup is shared, and configures the network segment
Ndc tether dns set 0 114.114.114.114//DNS is set
Ndc nat enable p2p0wlan0 0//interpolation NAT rule
After tested, the effect that above code is risen is consistent with the manual modification process that top is disclosed, and makees through thus section code With, packet forwarding capability is opened, and iptables filter table obtains correct configuration, and dns resolution function also obtains correct Safeguard.Therefore, the application program of the present invention after starting hotspot pattern, can perform this under system highest weight limit state Section code, just achieves the correct amendment to network configuration sharing information, and client just can be surfed the Net by service end.
Most android system intelligent terminal, due to the restriction of manufacturer, does not open its system highest weight limit, or Unsuccessful by ROOT, for this situation, above instruction with NDC directly drives network guard to carry out implementing network configuration sharing letter The operation of the amendment of breath can not be successful.Accordingly, it would be desirable to look for another way.
The mode of a kind of improvement is that the code wrap expressed with NDC above is become a method function (configuration interface), right The Open Source Code file i.e. WifiP2pServiceImpl.java of WiFiP2pManager class modifies, due to The function that WifiP2pServiceImpl.java can directly be derived by mNwService realizes those ndc orders, because of, Can inside increase the method function, and derive to the use of WiFiP2pManager class, so, the application program of the present invention is only Directly need to call this configuration interface by WiFiP2pManager class, the amendment to network configuration sharing information can be implemented, and Acquisition without Help of System highest weight limit.
As can be seen here, described network guard process is controlled in the way of amendment network configuration sharing parameter by ndc order Also it is diversified.
By implementing above-mentioned multiple control modes, the network between the hotspot pattern of service end and station mode all can be made Connection interconnects, and the problem of route has solution therewith.
Step S13, access after described network group in client, set up this client and maintained with by described station mode The connection of outer net.
After the network group that client access service end provides, DHCP request will be sent to service end, joining of service end Process of putting reads the correct network configuration sharing information after above-mentioned amendment, feeds back to client.Client completes accordingly After the network settings of self, just can be through accessing outer net as the focus interface of service end intelligent terminal of the present invention, site interface. For this intelligent terminal, when it receives the packet of client-access outer net, this packet is forwarded through described website The path transmission of pattern gives described outer net;When it receives the packet of extranet access client, it is forwarded through described heat The path transmission of dot pattern gives this client.
Further, for improving the function of the program process of the present invention, subsequent step can be increased: this step responds In exiting the user instruction of shared verification, the network configuration sharing information described in recovery.
Specifically, the application program of the present invention is referred to aforesaid mode, provides one to share to user interface The control button of net, also may be used as continued to use the above-mentioned final election control operation controlling button providing user interface.When When this control button is triggered, just producing described user instruction, acted on by this user instruction, the present invention just can implement to disconnect Described hotspot pattern, disconnects external connection the most automatically.
Further, it is possible to use mode the most thoroughly, the network configuration sharing letter in advance aforementioned processing process produced Breath is cleared up, such as, and the ndc instruction refering to following:
Ndc ipfwd disable//closedown packet forwarding capability
Ndc tether stop//stopping online sharing functionality
Ndc nat disable p2p0wlan0 0//closedown NAT mapping function
Perform above-mentioned order by the program process of the present invention, just can pass through SOCKET port controlling network guard Process performs corresponding function, thus avoids the aforesaid potential shadow using network configuration sharing information to the machine and being brought Ring.Could be aware that, the program process of the present invention directly invokes the above-mentioned network guard process described in order control Premise be obtained system highest weight limit.
In like manner, according to above-mentioned building method function the example that is implanted in WiFiP2pManager, herein Thrashing code can be configured to method function (interface of clearing up and discharging) completely in the same way, add WiFiP2pManager class to Code file in, export as such corresponding member function, follow-up directly called this by the program process of the present invention Interface of clearing up and discharging can perform, without considering currently to have obtained system ROOT authority.
In sum, the method for the present invention solves Android intelligent terminal and opens hotspot pattern and station mode simultaneously Technical barrier, and allow the client accessing the network group under its hotspot pattern via its station mode corresponding outside Network interface accesses outer net.
According to the modularized thoughts of computer software, the present invention also provides for a kind of intelligent terminal, and this intelligent terminal includes building Vertical unit 11, dispensing unit 12 and communication unit 13, the concrete function that unit introduced below is realized:
Described sets up unit 11, meets the network group of WiFi P2P specification to complete this intelligent terminal's for setting up The startup of hotspot pattern so that it is with the station mode of this intelligent terminal deposit work.
Described hotspot pattern can be set up in theory by focus process Hostapd of android system, but, In actual measurement, during hostapd process initiation, website process can be automatically switched off, cause intelligent terminal cannot simultaneously work in focus mould Under formula and station mode, thus, then use the mode setting up network group voluntarily, sending out of this fault can be prevented effectively from Raw.
According to the specification of WiFi P2P agreement, can make multiple intelligent terminal's group a network group, at this network group In group, have and only one of which service end role, the rest is client role.Described service end and two kinds of roles of client, In the present invention, for two intelligent terminal with WiFi P2P agreement institute specification, wherein, as the intelligence of client The chip module of energy terminal works under the P2P-Client pattern of this agreement institute specification, i.e. shows as client role;And with The intelligent terminal of the relative present invention then work under P2P-Group Owner (P2P GO) pattern of this agreement institute specification, I.e. show as service end role.
In android system, encapsulate point-to-point connection management a class, i.e. WiFiP2pManager, as the term suggests, should Class is i.e. for managing the point-to-point connection between Android terminal according to the specification of WiFi P2P agreement.Such constructs one The individual method function for setting up described network group, concrete reform is WiFiP2pManager.createGroup (wifip2pmanger.chanenl, wifip2pmanager.ActionListener), calls the method, can create one Focus, makes intelligent terminal start hotspot pattern, and self is set to service end, and the focus thus created can also be for not propping up The traditional WiFi equipment holding WiFi P2P agreement is attached thereto.The network group being consequently formed, it is possible to use such the opposing party Method function: requestConnectionInfo (wifip2pmanger.chanenl, Wifip2pmanager.ActionListener) go to obtain detailed link information.This wifip2pInfo link information bag Contained have the address groupOwnerAddress of group person namely service end and one go to illustrate whether current device is this The mark isGroupOwer of the owner of p2p group, the client of a p2p therefore can be with p2p group owner by one Socket connection communicates.
Under Android operation system default situations, the WiFi chip module not allowing for same intelligent terminal works simultaneously Under client and service end both of which, but, but can solve this problem by creating described network group voluntarily, its The calling of middle createGroup () function plays the effect of key, and it completes the startup of hotspot pattern of this intelligent terminal.
Due to the present invention it is important that hope solves the WiFi function visit of the smart machine allowing client pass through service end place Ask the netconfig problem of outer net.On the premise of not considering that client connects outer net voluntarily, outside this intelligent terminal is able to access that Net, is the premise of the client-access outer net accessing present networks group.It is therefore advantageous to mode in, be to make this intelligent terminal exist Before completing the startup of above-mentioned hotspot pattern, just have been turned on station mode.
The station mode of android system to be started, can arrange manually opened on page by user in system or pass through The website process of system is set up.Described website process, the wpa_supplicant that refering in particular to android system self provides enters Journey, wpa_supplicant is originally open source projects source code, adds android mobile platform, be primarily used to after being revised by Google Support WEP, WPA/WPA2 and WAPI wireless protocols and encrypt certification, and actual job content is by socket (no Pipe is that wpa_supplicant uses socket communication with upper strata or wpa_supplicant with driving) and drive on mutual Count off is according to user, and user can send commands to wpa_supplicant transfer driving by socket and to grasp WiFi chip Make.Briefly, wpa_supplicant is exactly that WiFi drives and the terminal of user is additional props up agreement and encryption certification Hold.Wpa_supplicant source program after compiling is it can be seen that two main performed instrument: wpa_ Supplicant and wpa_cli.Wpa_supplicant is kernel program, and it services and client exactly with the relation of wpa_cli The relation of end: running background wpa_supplicant, uses wpa_cli to search for, arrange and connect network.
An example utilizing wpa_cli to connect to complete network presented below understands this for those skilled in the art's reference Invention, but should not be construed as the restriction of the realization to the present invention.
Network connecting function to be realized, it is necessary first to run wpa_supplicant program to load basic function;
Perform :/system/bin/wpa_supplicant-d-Dwext-iwlan0-c/data/misc/wif i/wpa_ supplicant.conf
Wherein:
-d: increase Debugging message
-Dwext:wext, drives title
-iwlan0:wlan0, network interface title
/ system/bin/wpa_supplicant:wpa_supplicant, executable program path
The Profile Path of/data/misc/wifi/wpa_supplicant.conf:wpa_supplicant
Then, command-line tool wpa_cli is run;
Perform: wpa_cli-iwlan0-p/data/system/wpa_supplicant
Noting, the wpa_supplicant in-p/data/system/wpa_supplicant is not executable program, But individual control socket.
Now can enter interactive mode.The wherein order of interactive mode such as following table:
Full command
Short command
Description
status
stat
displays the current connection status
disconnect
disc
prevents wpa_supplicant from connecting to any access point
quit
q
exits wpa_cli
terminate
term
kills wpa_supplicant
reconfigure
recon
reloads wpa_supplicant with the configuration file supplied(-c parameter)
scan
scan
scans for available access points(only scans it,doesn't display anything)
scan_result
scan_r
displays the results of the last scan
list_networks
list_n
displays a list of configured networks and their status(active or not,enabled or disabled)
select_network
select_n
select a network among those defined to initiate a connection(ie select_network 0)
enable_network
enable_n
makes a configured network available for selection(ie enable_network 0)
disable_network
disable_n
makes a configured network unavailable for selection(ie disable_ network 0)
remove_network
remove_n
removes a network and its configuration from the list(ie remove_ network 0)
add_network
add_n
adds a new network to the list.Its id will be created automatically
set_network
set_n
shows a very short list of available options to configure a network when supplied with no parameters.
See next section for a list of extremely useful parameters to be used with set_network and get_network.
get_network
get_n
displays the required parameter for the specified network.See next section for a list of parameters
save_config
save_c
saves the configuration
Above command entry can be checked from the public technology document of Android, the most only for reference.
The instruction of the basic format arranging network is: set_network<network id><key><parameter>[< parameter>]
The instruction of the basic format of display networks is: get_network<network id><key>
Corresponding parameter such as following table:
Key
Description
Parameters
ssid
Access point name
string
id_str
String identifying the network
string
priority
Connection priority over other APs
number(0being the default low priority)
bssid
Mac address of the access point
mac address
scan_ssid
Enable/disbale ssid scan
0,1,2
key_mgmt
Type of key management
WPA-PSK,WPA_EAP,None
pairwise
Pairwise ciphers for WPA
CCMP,TKIP
Group=TKIP
Group ciphers for WPA
CCMP,TKIP,WEP104,WEP40
psk
Pre-Shared Key(clear or encrypted)
string
wep_key0
WEP key(up to 4:wep_key[0123])
string
eap
Extensible Authentication Protocol
MD5,MSCHAPV2,OTP,GTC,TLS,PEAP,TTLS identity
EAP identity string
string
password
EAP password
string
ca_cert
Pathname to CA certificate file
/full/path/to/certificate
client_cert
Pathname to client certificate
/full/path/to/certificate(PEM/DER)
private_key
Pathname to a client private key file
/full/path/to/private_key(PEM/DER/PFX)
In like manner, above parameter list also can be obtained from Android official by public approach, only for reference, pardons and does not repeats.With Lower one is utilized to illustrate how that realizing network connects for connecting the instantiation of AP without encryption:
> add_network (network ID will be shown, it is assumed that return value is 0)
>set_network 0ssid"666"
>set_network 0key_mgmt NONE
>enable_network 0
>quit
Recycling one is illustrated for the instantiation connecting the AP of WEP encryption:
> add_network (assuming that network ID returns 1)
>set_network 1ssid"666"
>set_network 1key_mgmt NONE
>set_network 1wep_key0"your ap password"
>enable_network 1
Example as the AP connecting WPA-PSK/WPA2-PSK encryption is as follows:
> add_network (assuming that network ID returns 2)
>set_network 2ssid"666"
>set_network 2psk"your pre-shared key"
>enable_network 2
Arriving this, wifi module just can connect AP.
It is above being realized the connection of wifi network by command-line tool wpa_cli.It is of course also possible to pass through wpa_ The configuration file of supplicant realizes connecting.
Might as well look back again above run wpa_supplicant time perform order:
/system/bin/wpa_supplicant-d-Dwext-iwlan0-c/data/misc/wifi/wpa_ supplicant.conf
We add-c/data/misc/wifi/wpa_supplicant.conf upon execution, so can The AP connected is arranged with in certain form write wpa_supplicant.conf configuration file.Such as:
Ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system Update_config=1
Network={
Ssid=" my access point "
Proto=WPA
Key_mgmt=WPA-PSK
Psk=" you pass words "
}
Visible, even the station mode of call site process initiation intelligent terminal's WiFi chip module, it is possible to by with Upper utilization instruction, utilization two kinds of different modes of configuration file, realize being controlled described website voluntarily by program process and enter The unlatching of journey, so that intelligent terminal works under station mode.
As can be known from the above analysis, the present invention can activate the station mode of intelligent terminal by various ways, and passes through Calling the createGroup method of point-to-point connection management class to activate the hotspot pattern of intelligent terminal, both patterns are permissible And be stored in Android intelligent terminal.So that intelligent terminal can utilize its station mode accessing external network, utilize heat simultaneously One mininet of dot pattern construction.
For making above-mentioned concurrent state be physically easier to perform, embody more preferably Consumer's Experience, the program process of the present invention Can be the most perfect by user interface being designed to this.
User interface refers to and is implemented for man-machine interaction and is able to receive that the display interface of user's control instruction, example As, can be android system arrange in the page option (or button, is added wherein by described application program, under With), it is also possible to it is an option from the informing or interaction page of desktop exhalation, it is also possible to be described application program An option in the page that one moving component is constructed.
The present invention is preferably as follows two ways, for receiving described control instruction:
One, by providing single control button in user interface, receives described control instruction for one-touch, This mode is easy to user and is realized operating in a key.
Its two, by providing control button respectively, with the most right at user interface correspondence hotspot pattern and station mode Different key is answered to produce the corresponding control instruction starting corresponding pattern.
The control button provided according to above mode, generally these buttons can be preferably provided at system desktop informing At list, or provide in the way of desktop suspended window, be both easy to user's touch-control and controlled, the most do not affected user's visual effect, when Activate when the most also can open WiFi button as the default feature of system with user.It is also preferred that the left described application program can be by Self it is set to self-starting item so that during system start-up, described button can be loaded voluntarily, consequently facilitating user operation.
When user is by described user interface, after the control button described in touch-control, just produce corresponding control instruction, This control instruction will be received by the process of described application program, thus corresponding control hotspot pattern and/or station mode are opened.
Specifically, user both can wish to open hotspot pattern and station mode by single control button simultaneously, Can also be opened by two buttons corresponding with both of which, essentially provide multiple operation change case.Corresponding this A little changes, illustrate further below.
If user interface provides single control button, user triggers its user instruction by this single control button, this Place just can first call createGroup () and create focus.Then, the program process of the present invention starts this website the most voluntarily Process, the most just can realize both of which and deposit.Otherwise, it is also possible to leading initiating station point process, after it completes to open, Go again and open hotspot pattern with reference to above-mentioned example.It is to say, the control instruction caused corresponding to single control button, can be with Hotspot pattern and the boot sequence of station mode described in different embodiment flexible arrangement.
And correspondence user interface provides different control buttons, for characterizing the example opening different patterns respectively, then Can click on the different order controlling button by user and sequentially open corresponding pattern, this measure has no effect on the enforcement of the present invention.
In preferred scheme, it is recommended that preferentially allow station mode open prior to hotspot pattern, guaranteeing that this intelligent terminal can In the case of connecting outer net, provide access function to other intelligent terminal, some idle works can be exempted, the most energy-conservation.
As can be seen here, after station mode and hotspot pattern being sequentially activated, coexisting of both of which can just be realized.At this On the basis of, the program process of the present invention can export some object informations to user interface, to inform this intelligence of user eventually The concurrent state that end currently coexists already at hotspot pattern and station mode.As for the expression-form of described object information, Both can be to be shown in informing by system message, it is also possible to pop-up shows on the table, more excellent mode can be to adjust With default third party's icon, for characterizing the bimodulus shape that this intelligent terminal is in hotspot pattern and station mode coexists State, is shown to this third party's icon in the system mode hurdle of user interface so that user is easier to know that corresponding result is believed Breath.
Described dispensing unit 12, be configured to system highest weight limit call network guard process amendment network share join Confidence breath makes the network between connection hotspot pattern and station mode be connected.
Relate to the operation that network guard process is directly invoked, according to the specification of Android, need acquisition system High authority, thus, on the premise of acquisition android system highest weight limit or android system have opened highest weight limit, Can be by described network guard process be called, amendment relates to the configuration information that network is shared, i.e. network altogether whereby Enjoy configuration information, in order to the network between connection hotspot pattern and station mode is connected, client can be come by service end Access outer net.
Described network guard process, i.e. the abbreviation of Netd, Network Daemon.Netd is responsible for relating to physics with some The functional realiey that the network operation of port is relevant, such as bandwidth control (Bandwidth), network address translation (NAT), Ge Renju Territory net (pan), PPP links, soft-ap, the shared verification (Tether) etc. involved by the hotspot pattern of this intelligent terminal Deng ... all it is organized under netd file directory according to module (.cpp+.h).
Four major parts of the basic framework that Android Netd is relevant:
(1) Linux Kernel is for detecting all events that network is relevant.
(2) Netd is as the bridge communicated between Kernel (inner nuclear layer) and Framework (ccf layer).
(3) ccf layer operation Netd, sends operational order to Netd.
(4) application layer is mutual with ccf layer, carries out the manipulation of network for user.
Android is that Netd provides testing tool, i.e. a ndc, and its major function has:
Monitor event in Netd.
Support that sending commands to Netd by order line goes to perform.Ndc realizes principle, is to be positioned at netd on connecting to enter " netd " in journey monitors socket, then receives information from Netd or sends commands to Netd.
As can be seen here, network guard process can be driven to perform dependent instruction, in the present invention, it is achieved to net by ndc The function of the amendment of network configuration sharing information, just may utilize ndc order and implements.
Observation process please also refer to as follows android system being implemented:
First, by analyzing, after finding that createGroup () creates focus, although produce and can be connected by client, But it is for as follows to the parameter of configuration process DNSmasq of user feedback DHCP configuration information:
/system/bin/dnsmasq--keep-in-foreground--no-resolv--no-poll--dhcp- Auth oritative--dhcp-option-force=43, ANDROID_METERED--pid-file--dhcp-rang e =192.168.42.2,192.168.42.254,1h--dhcp-range=192.168.43.2,192.168.43.254, 1h--dhcp-range=192.168.44.2,192.168.44.254,1h--dhcp-rang e=192.168.45.2, 192.168.45.254,1h--dhcp-range=192.168.46.2,192.168.46.25 4,1h--dhcp-range= 192.168.47.2,192.168.47.254,1h--dhcp-range=192.168.48.2,192.168.48.254,1h-- Dhcp-range=192.168.49.2,192.168.49.254,1h
There it can be seen that with addition of the control option i.e. dhcp-option-force forcing configuration sequence to be 43 =43, ANDROID_METERED, official's lexical or textual analysis of sequence number 43 is manufacturer's specified option, is used for representing that being currently connected as charging connects Connecing, in this case, the outer net that can not utilize service end is connected by client, in order to avoid producing enormous expenditure.But, this set Meter logic is to provide, by being connected by the charging of operator, the outer net service that accesses with service end, but service end exists with WiFi Station mode set up free outer net connect situation, not by Android compatibility.
Then, by analyzing in Android official document the source generation for TetherController (shared control unit) Code understands, and in this case, at this, ANDROID_METERED has been carried out specification, but, but have no setting of default gateway Put.
And to client is analyzed, from core.java.android.net.DhcpInfoInternal namely Dhcp client over there, utilizes following code implementation to detect:
Above analysis shows, as client to be made connects outer net by service end, needs to avoid above-mentioned control choosing The impact of item.
And then, by analyze this intelligent terminal hotspot pattern open before and open after packet forward switch and data Packet filtering table i.e. iptables, it has been found that affect the factor of client online.
Specifically, switch is forwarded for packet, it is found that cat/proc/sys/net/ipv4/ip_forward Result be 1 rather than 0, thus echo " 1 " >/proc/sys/net/ipv4/ip_forward can be passed through in theory Enable changes this switch and arranges so that it is open packet forwarding capability.But, in this case, owing to being subject to The impact of iptables, even if making above-mentioned change, client carries out extranet access and still fails to unimpeded.When intelligent terminal's The interface corresponding to p2p0 mark under hotspot pattern receives packet, though route can be searched, and is dealt under its station mode Interface corresponding to wlan0 mark, but can be abandoned by the filtering rule of iptables.
For iptables, finding that it affects of both existing, the first wherein includes the data of interface p2p0 The rule that abandons of bag, it two is the NAT rule that intelligent terminal is mapped to public network by shortcoming.For the former, following finger can be passed through Order processes: iptables-D FORWARD 4, i.e. deletes the 4th rule in forward, namely natctrl_FORWARD rule Then.At this time receive bag as p2p0, can send from wlan0.But the source ip of this bag is Intranet ip.Accordingly, it would be desirable to it is right The latter processes as follows: iptables-t nat-A POSTROUTING-o wlan0-j MASQUERADE, i.e. to iptables Filter table increases a nat rule, after interpolation, on another mobile phone, just can lead to outer net ip with ping.By client to The connection of outer net, the most unimpeded.Naturally, and combining practice analysis, gateway is the most correctly configured.
By above-mentioned process, the problem that only address only IP layer, for the function of dns resolution, the most unrealized.Enter one Walking the configuration parameter by analyzing DNSmasq, find this carry--no-resolv option, this option causes impact visitor just Family end obtains the reason of correct dns resolution.Thus, it is possible to by amendment startTethering method or increase by StartTetheringWithDns () method, removes--no-resolv parameter.Completing these operations, client arrives through service end Outer net, specific to the access of WWW based on domain name, the most unblocked.
Above, generally, the present invention is for realizing client by service end access outer net by ndc tool drives net What network finger daemon was made relates to the amendment of network configuration sharing information, is mainly concerned with following aspect:
The packet forwarding capability that one, the network opened between connection hotspot pattern and station mode are connected: concrete table It is now 1 to open for its parameter can be arranged by echo instruction.
Two, revise the setting of the Packet Filtering table being connected for the network between unimpeded hotspot pattern and station mode Content: be embodied in and iptables form is removed corresponding filtering items and interpolation NAT map record.
Three, remove client shared verification and limit the option resolving DNS: be embodied in and can pass through shared control unit (TetherController) method is removed--no-resolv option.
As can be seen here, by above-mentioned method, just can make the intelligent terminal of the present invention realize connecting its hotspot pattern and its Network between under station mode connects, and provides the service of accessing external network for client.
Above by the announcement analysis process to the system principle of Android, disclose the principle that realizes of the present invention, and carry Supply how to revise a kind of embodiment of network configuration sharing information, in addition, revise net also by following mode Network configuration sharing information:
This mode specifically, is i.e. called ndc instrument with system highest weight limit and is realized repairing by network guard process The mode changed, refers to following code and explanation thereof:
ndc ipfwd enable
ndc tether dns set 0 114.114.114.114
// if it fails, generally mean that and above have manual operations to cancel the most completely.Performing ps | grep dnsmasq is first Positive closing configuration process.If also remaining process, such as:
shell@CP8681_A01:/#ps|grep dnsmasq
dhcp 3557 325 10272 740 001a0338b66f61ac S/system/bin/dnsmasq
// execution kill 3557 kills, then
Ndc tether stop, // stop sharing
Ndc tether start 192.168.49.2 192.168.49.254//startup is shared, and configures the network segment
Ndc tether dns set 0 114.114.114.114//DNS is set
Ndc nat enable p2p0wlan0 0//interpolation NAT rule
After tested, the effect that above code is risen is consistent with the manual modification process that top is disclosed, and makees through thus section code With, packet forwarding capability is opened, and iptables filter table obtains correct configuration, and dns resolution function also obtains correct Safeguard.Therefore, the application program of the present invention after starting hotspot pattern, can perform this under system highest weight limit state Section code, just achieves the correct amendment to network configuration sharing information, and client just can be surfed the Net by service end.
Most android system intelligent terminal, due to the restriction of manufacturer, does not open its system highest weight limit, or Unsuccessful by ROOT, for this situation, above instruction with NDC directly drives network guard to carry out implementing network configuration sharing letter The operation of the amendment of breath can not be successful.Accordingly, it would be desirable to look for another way.
The mode of a kind of improvement is that the code wrap expressed with NDC above is become a method function (configuration interface), right The Open Source Code file i.e. WifiP2pServiceImpl.java of WiFiP2pManager class modifies, due to The function that WifiP2pServiceImpl.java can directly be derived by mNwService realizes those ndc orders, because of, Can inside increase the method function, and derive to the use of WiFiP2pManager class, so, the application program of the present invention is only Directly need to call this configuration interface by WiFiP2pManager class, the amendment to network configuration sharing information can be implemented, and Acquisition without Help of System highest weight limit.
As can be seen here, described network guard process is controlled in the way of amendment network configuration sharing parameter by ndc order Also it is diversified.
By implementing above-mentioned multiple control modes, the network between the hotspot pattern of service end and station mode all can be made Connection interconnects, and the problem of route has solution therewith.
Described communication unit 13, for accessing after described network group in client, set up this client with by described The connection of the outer net that station mode is maintained.
After the network group that client access service end provides, DHCP request will be sent to service end, joining of service end Process of putting reads the correct network configuration sharing information after above-mentioned amendment, feeds back to client.Client completes accordingly After the network settings of self, just can be through accessing outer net as the focus interface of service end intelligent terminal of the present invention, site interface. For this intelligent terminal, when it receives the packet of client-access outer net, this packet is forwarded through described website The path transmission of pattern gives described outer net;When it receives the packet of extranet access client, it is forwarded through described heat The path transmission of dot pattern gives this client.
Further, for improving the function of the program process of the present invention, recovery unit can be increased, this recovery unit It is configured to respond to exit the user instruction of shared verification, the network configuration sharing information described in recovery.
Specifically, the application program of the present invention is referred to aforesaid mode, provides one to share to user interface The control button of net, also may be used as continued to use the above-mentioned final election control operation controlling button providing user interface.When When this control button is triggered, just producing described user instruction, acted on by this user instruction, the present invention just can implement to disconnect Described hotspot pattern, disconnects external connection the most automatically.
Further, it is possible to use mode the most thoroughly, the network configuration sharing letter in advance aforementioned processing process produced Breath is cleared up, such as, and the ndc instruction refering to following:
Ndc ipfwd disable//closedown packet forwarding capability
Ndc tether stop//stopping online sharing functionality
Ndc nat disable p2p0wlan0 0//closedown NAT mapping function
Perform above-mentioned order by the program process of the present invention, just can pass through SOCKET port controlling network guard Process performs corresponding function, thus avoids the aforesaid potential shadow using network configuration sharing information to the machine and being brought Ring.Could be aware that, the program process of the present invention directly invokes the above-mentioned network guard process described in order control Premise be obtained system highest weight limit.
In like manner, according to above-mentioned building method function the example that is implanted in WiFiP2pManager, herein Thrashing code can be configured to method function (interface of clearing up and discharging) completely in the same way, add WiFiP2pManager class to Code file in, export as such corresponding member function, follow-up directly called this by the program process of the present invention Interface of clearing up and discharging can perform, without considering currently to have obtained system ROOT authority.
In sum, the method for the present invention solves Android intelligent terminal and opens hotspot pattern and station mode simultaneously Technical barrier, and allow the client accessing the network group under its hotspot pattern via its station mode corresponding outside Network interface accesses outer net.
In brief, by the process of the present invention, the intelligent terminal of android system has just possessed dual mode capability, namely Both may act as focus to access for other equipment, it is possible to serve as website and access external network access point, and road can be played simultaneously By the effect of device, it is allowed to the client device accessing this intelligent terminal accesses outer net by this intelligent terminal.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to perform in operation described herein One or more equipment.These equipment can be required purpose and specialized designs and manufacture, or can also include general Known device in computer.These equipment have storage computer program within it, and these computer programs are optionally Activate or reconstruct.Such computer program can be stored in equipment (such as, computer) computer-readable recording medium or be stored in In being suitable to store e-command and be coupled to any kind of medium of bus respectively, described computer-readable medium include but not Be limited to any kind of dish (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memorizer), RAM (Random Access Memory, memorizer immediately), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Sheet.It is, computer-readable recording medium includes by equipment (such as, computer) with the form storage that can read or any Jie of transmission information Matter.
Those skilled in the art of the present technique be appreciated that can with computer program instructions realize these structure charts and/or The combination of the frame in each frame in block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other The processor of programmable data processing method realizes, thus by computer or the process of other programmable data processing methods Device performs the scheme specified in structure chart disclosed by the invention and/or block diagram and/or the frame of flow graph or multiple frame.
Those skilled in the art of the present technique be appreciated that the various operations discussed in the present invention, method, in flow process Step, measure, scheme can be replaced, changed, combined or deleted.Further, there is discussed in the present invention each Other steps in kind operation, method, flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, of the prior art have and the step in the various operations disclosed in the present invention, method, flow process, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only the some embodiments of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. an intelligent terminal network collocation method, it is characterised in that comprise the steps:
Set up and meet the network group of WiFi P2P specification to complete the startup of the hotspot pattern of this intelligent terminal so that it is with this intelligence Can the station mode of terminal deposit work;
Call network guard process amendment network configuration sharing information with system highest weight limit and make connection hotspot pattern and website mould Network between formula connects;
After client accesses described network group, set up the company of this client and the outer net maintained by described station mode Connect.
Method the most according to claim 1, it is characterised in that controlled and start the foundation of described network group.
Method the most according to claim 2, it is characterised in that control button, for connecing by providing in user interface Receive control instruction, to start the foundation of described network group.
Method the most according to claim 1, it is characterised in that the website that described station mode is provided by startup system enters Journey i.e. wpa_supplicant process and realize.
Method the most according to claim 1, it is characterised in that described station mode works prior to hotspot pattern.
Method the most according to claim 1, it is characterised in that start described hotspot pattern and make it with station mode and deposit Time, display is for characterizing this intelligent terminal and be in hotspot pattern and third party's icon of concurrent state that station mode coexists.
Method the most according to claim 1, it is characterised in that by calling android system according to WiFi P2P agreement Specification and the createGroup method of WifiP2pManager class that provides realizes the foundation of described network group.
Method the most according to claim 1, it is characterised in that described network guard process is the Netd of android system Finger daemon, by this network guard process provide ndc instrument control this network guard process complete described network share Configuration information.
Method the most according to claim 1, it is characterised in that described network configuration sharing information is modified to possess as follows Purposes:
Open the packet forwarding capability that the network between connection hotspot pattern and station mode is connected;
That revises the Packet Filtering table that is connected for network between unimpeded hotspot pattern and station mode arranges content;
Remove client shared verification and limit the option resolving DNS.
10. an intelligent terminal, it is characterised in that including:
Set up unit, meet the network group of WiFi P2P specification to complete opening of the hotspot pattern of this intelligent terminal for setting up Dynamic so that it is with the station mode of this intelligent terminal deposit work;
Dispensing unit, makes connection focus for calling network guard process amendment network configuration sharing information with system highest weight limit Network between pattern with station mode is connected;
Communication unit, after accessing described network group in client, sets up this client and is tieed up with by described station mode The connection of the outer net held.
CN201610141032.2A 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof Pending CN106060970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610141032.2A CN106060970A (en) 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610141032.2A CN106060970A (en) 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof

Publications (1)

Publication Number Publication Date
CN106060970A true CN106060970A (en) 2016-10-26

Family

ID=57484336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610141032.2A Pending CN106060970A (en) 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof

Country Status (1)

Country Link
CN (1) CN106060970A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817742A (en) * 2016-12-30 2017-06-09 南京中科创达软件科技有限公司 A kind of method that wireless WiFi double working modes are realized on Android
CN109246258A (en) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 DNS query method and related product
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
CN112165474A (en) * 2020-09-22 2021-01-01 珠海市魅族科技有限公司 Network monitoring method and device
CN112312394A (en) * 2020-11-27 2021-02-02 展讯半导体(成都)有限公司 Wireless fidelity Wi-Fi management method, device and related equipment
WO2021218544A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Wireless connection providing system, method, and electronic apparatus
CN113766605A (en) * 2021-07-23 2021-12-07 深圳市智微智能科技股份有限公司 android device network sharing method, system, terminal and storage medium
CN116055581A (en) * 2022-11-23 2023-05-02 广东博力威科技股份有限公司 Data transmission control method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140050146A1 (en) * 2012-03-07 2014-02-20 Qualcomm Incorporated Multi-radio interference mitigation via frequency selectivity
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN104427488A (en) * 2013-08-29 2015-03-18 中兴通讯股份有限公司 Terminal and wireless networking method
CN104796932A (en) * 2015-03-20 2015-07-22 四川长虹电器股份有限公司 Method for building sub-local area network with anti-interference capacity by utilizing single WiFi terminal device
US20150244876A1 (en) * 2009-03-03 2015-08-27 Mobilitie, Llc Billing engine and method of use
CN105101340A (en) * 2015-09-09 2015-11-25 深圳市唯传科技有限公司 Message multi-hop control method based on intelligent mobile terminal and system thereof
CN105228150A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 A kind of mobile device carries out the method and apparatus of relaying
CN105227693A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 The collocation method of a kind of DNS of mobile device and device
CN105228213A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 A kind of mobile device carries out the method and apparatus of relaying
CN105307290A (en) * 2015-09-30 2016-02-03 青岛海信移动通信技术股份有限公司 Method and device for configuring relay channel of mobile equipment
CN105375970A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device
CN105375969A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150244876A1 (en) * 2009-03-03 2015-08-27 Mobilitie, Llc Billing engine and method of use
US20140050146A1 (en) * 2012-03-07 2014-02-20 Qualcomm Incorporated Multi-radio interference mitigation via frequency selectivity
CN104427488A (en) * 2013-08-29 2015-03-18 中兴通讯股份有限公司 Terminal and wireless networking method
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN104796932A (en) * 2015-03-20 2015-07-22 四川长虹电器股份有限公司 Method for building sub-local area network with anti-interference capacity by utilizing single WiFi terminal device
CN105101340A (en) * 2015-09-09 2015-11-25 深圳市唯传科技有限公司 Message multi-hop control method based on intelligent mobile terminal and system thereof
CN105228150A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 A kind of mobile device carries out the method and apparatus of relaying
CN105227693A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 The collocation method of a kind of DNS of mobile device and device
CN105228213A (en) * 2015-09-30 2016-01-06 青岛海信移动通信技术股份有限公司 A kind of mobile device carries out the method and apparatus of relaying
CN105307290A (en) * 2015-09-30 2016-02-03 青岛海信移动通信技术股份有限公司 Method and device for configuring relay channel of mobile equipment
CN105375970A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device
CN105375969A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
毛澄宇: ""基于Android终端的Wi-Fi中继功能的研究和实现"", 《电子质量》 *
邓凡平: "《深入理解Android Wi Fi、NFC和GPS卷》", 30 March 2014 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817742A (en) * 2016-12-30 2017-06-09 南京中科创达软件科技有限公司 A kind of method that wireless WiFi double working modes are realized on Android
CN106817742B (en) * 2016-12-30 2020-07-24 南京中科创达软件科技有限公司 Method for realizing wireless WiFi dual-working mode on Android
CN109246258A (en) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 DNS query method and related product
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
WO2021218544A1 (en) * 2020-04-30 2021-11-04 华为技术有限公司 Wireless connection providing system, method, and electronic apparatus
CN113676902A (en) * 2020-04-30 2021-11-19 华为技术有限公司 System and method for providing wireless internet access and electronic equipment
CN113676902B (en) * 2020-04-30 2024-04-23 华为技术有限公司 System, method and electronic equipment for providing wireless internet surfing
CN112165474A (en) * 2020-09-22 2021-01-01 珠海市魅族科技有限公司 Network monitoring method and device
CN112312394A (en) * 2020-11-27 2021-02-02 展讯半导体(成都)有限公司 Wireless fidelity Wi-Fi management method, device and related equipment
CN112312394B (en) * 2020-11-27 2023-03-31 展讯半导体(成都)有限公司 Wireless fidelity Wi-Fi management method, device and related equipment
CN113766605A (en) * 2021-07-23 2021-12-07 深圳市智微智能科技股份有限公司 android device network sharing method, system, terminal and storage medium
CN116055581A (en) * 2022-11-23 2023-05-02 广东博力威科技股份有限公司 Data transmission control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105721220B (en) Intelligent terminal and its network bottom layer configuration method
CN105704226A (en) Intelligent terminal and network configuration method thereof
CN106060970A (en) Intelligent terminal and network configuration method thereof
CN105847321A (en) Intelligent terminal and system permission-free network configuration method thereof
CN102137395B (en) Method, device and system for configuring access device
US7620065B2 (en) Mobile connectivity solution
EP1935143B1 (en) Virtual lan override in a multiple bssid mode of operation
CN101335666B (en) Configuration transmitting method, access control equipment and access point
EP2389781B1 (en) System and method for providing wireless local area networks as a service
EP2846586B1 (en) A method of accessing a network securely from a personal device, a corporate server and an access point
CN102651707B (en) Automatic configuration method of wireless bridge
US9191378B2 (en) Communication apparatus and communication method
CN103634794B (en) By the WLAN terminal personal identification method for integrating Portal
CN102026263A (en) Wireless communication network connection method
CN103297968B (en) A kind of method, equipment and the system of wireless terminal certification
CN104702608A (en) WiFi sharing system
US20180183666A1 (en) Secure plug and play configuration of wireless distribution system (wds) wi-fi range extenders
CN103313230A (en) Mesh points and configuration and issuing method thereof in WLN (Wireless Local Area Network) mesh network
CN106993302A (en) A kind of method of testing and system of AP equipment
WO2007010319A1 (en) Mobile connectivity solution
CN102035703A (en) Family wireless network and implementation method thereof
CN109640350A (en) The long-distance maintenance method and device of AP
CN105722076B (en) A kind of communication system and method for realizing WIFI network covering using road surface manhole
CN103781071B (en) The method of access points and relevant device
WO2016065920A1 (en) Method and system for providing virtual network service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170719

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161026