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

Intelligent terminal and network configuration method thereof Download PDF

Info

Publication number
CN105704226A
CN105704226A CN201610141034.1A CN201610141034A CN105704226A CN 105704226 A CN105704226 A CN 105704226A CN 201610141034 A CN201610141034 A CN 201610141034A CN 105704226 A CN105704226 A CN 105704226A
Authority
CN
China
Prior art keywords
network
intelligent terminal
client
station mode
hotspot pattern
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
CN201610141034.1A
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
Qiku Internet Technology Shenzhen 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, Qiku Internet Technology Shenzhen Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610141034.1A priority Critical patent/CN105704226A/en
Publication of CN105704226A publication Critical patent/CN105704226A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1093Some peer nodes performing special functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses an intelligent terminal and a network configuration method thereof. The method comprises the steps of establishing a network group that conforms to the WIFI P2P specification so as to complete the starting process of the intelligent terminal in the hotspot mode and enabling the parallel operation of the hotspot mode and the site mode of the above intelligent terminal; invoking the network daemon process at the system highest authority to modify the network shared configuration information so as to establish the network connection between the hotspot mode and the site mode; after the accessing of the client to the network group, establishing the connection of the client with an external network in the site mode. According to the technical scheme of the invention, the Android system-based intelligent terminal is enabled to run in dual modes. That means, other equipment can be accessed to the intelligent terminal as a hotspot in the hotspot mode, while an external network access point can also be accessed to the intelligent terminal in the site mode at the same time. Meanwhile, the intelligent terminal plays the role of a router. Therefore, the client equipment of the intelligent terminal can be accessed to the external network via 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 collocating method thereof。
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, load 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, for instance IBSS, Managed, AP, AP/VLAN, Monitor, meshpoint, P2P-Client, P2P-GO isotype, and kind pattern can realize different networking functions。Wherein, Station (STA) the i.e. workstation mode that Managed namely custom are known, the access points pattern (AccessPoint) that namely AP is commonly called as;IBSS is then adhoc and direct-connected pattern, the WiFiDirect technology that namely P2P is commonly called as, and belongs to Wi-FiAlliance (Wi-Fi Alliance) the important technology specification released。Under STA mode, intelligent terminal just becomes a work station, it is possible to access a terminal being under ap mode。In like manner, P2P-Client is equivalent to STA, it is possible to access the intelligent terminal under P2P-GO (P2PGroupOwner) pattern being equivalent to AP。Visible, have at least two kinds of systems of IBSS and WiFiDirect can realize carrying out multiple stage intelligent terminal networking, same portion intelligent terminal, based on same WiFi module, both may act as focus, and can also act as website。
In a kind of application demand, wish to make the WiFi module of same intelligent terminal simultaneously work in website and focus both of which, so it is easy to after this intelligent terminal utilizes its station mode accessing external network, provides access and network to share service by its hotspot pattern to other WiFi equipment。In reality, intelligent terminal based on Windows or IOS, the function provided with WiFi module can be provided, this intelligent terminal is enable to fictionalize two equipment, i.e. site apparatus and hotspot device, on this basis, it is allowed to this intelligent terminal can access wireless aps on the one hand, AP can be served as on the other hand and access for other WiFi equipment。
But Android intelligent terminal does not but possess this function。In the functional realiey of Andoid system, do not have the focus simultaneously opening WiFi module to user and the ability of website both of which。Thus, in practical application, after intelligent terminal utilizes WiFi to access corporate lan AP with station mode, wishing another digital independent without the WiFi equipment of display interface and upload to high in the clouds, such a needs to be not being met because this intelligent terminal can not open himself hotspot pattern (because its unlatching necessarily causes suspension) and station mode simultaneously。In like manner, as, in the process that user utilizes intelligent terminal to communicate with third party with hotspot pattern, certain LAN need to be accessed with station mode and obtain data, it is clear that also not accomplish。
Visible, based on the intelligent terminal of Android, realizing focus and two kinds of WiFi networking models of website, this is functionally congenital defect, thus, it will be seen that solving this problem is the important prerequisite that the networking condition to Android intelligent terminal carries out efficiently utilization。
The problems referred to above are suitable under WiFiP2P technical specification to solve, it may be considered that make the WiFi modular construction one of Android can access external website with STA mode, can be supplied to other clients with P2PGO pattern again simultaneously and access the framework realizing network extension。The problem thus brought is the client and service end that connect in P2P mode, because of the problem originally only considering point-to-point connection, therefore its route each other all will not change, and to realize client and 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 service end be that gateway goes to access outer net。
Summary of the invention
Present invention aims at least one aspect of above existence not enough, it is provided that a kind of intelligent terminal and network collocating method thereof。
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 WiFiP2P 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 deposit work;
Calling network guard process amendment network configuration sharing information with system highest weight limit makes the network between connection hotspot pattern and station mode be connected;
After client accesses described network group, set up the connection of this client and the outer net maintained by described station mode。
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 the foundation of described network group。
Concrete, website process and wpa_supplicant process that described station mode is provided by startup system and realize。
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 for characterizing this intelligent terminal and be in hotspot pattern and third party's icon of concurrent state that station mode coexists。
Concrete, the foundation of described network group is realized by calling the createGroup method of the WifiP2pManager class that android system provides according to the specification of WiFiP2P agreement。
Concrete, described network guard process is the Netd finger daemon of android system, and the ndc instrument provided by this network guard process is controlled 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 the restriction of client shared verification and resolve the option of DNS。
Further, before amendment network configuration sharing information, first positive closing is the configuration process of client distribution network configuration information。
Concrete, described after client accesses described network group, set up this client with in the step of the connection of the outer net maintained by described station mode, including the processing procedure of following both direction:
Receive the packet of client-access outer net, be forwarded the path transmission through described station mode to described outer net;
Receive extranet access client packet, be forwarded through described hotspot pattern path transmission give this client。
Further, this method also comprises the steps:
In response to the user instruction exiting shared verification, recover described network configuration sharing information。
A kind of intelligent terminal of the present invention, including:
Set up unit, for setting up the network group meeting WiFiP2P 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 deposit work;
Dispensing unit, makes the network between connection hotspot pattern and station mode be connected for calling network guard process amendment network configuration sharing information with system highest weight limit;
Communication unit, for, after client accesses described network group, setting up the connection of this client and the outer net maintained by described station mode。
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 start the foundation of described network group。
Concrete, described set up in unit, website process and wpa_supplicant process that described station mode is provided by startup system 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 for characterizing this intelligent terminal and be in hotspot pattern and third party's icon of concurrent state that station mode coexists。
Concrete, described set up unit, realize the foundation of described network group by calling the createGroup method of the WifiP2pManager class that android system provides according to the specification of WiFiP2P agreement。
Concrete, in described dispensing unit, described network guard process is the Netd finger daemon of android system, and the ndc instrument provided by this network guard process is controlled 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 the restriction of client shared verification and resolve the option of DNS。
It is also preferred that the left described dispensing unit is before amendment network configuration sharing information, first positive closing is the configuration process of client distribution network configuration information。
Concrete, described communication unit, it is configured to process as follows the packet of following both direction:
Receive the packet of client-access outer net, be forwarded the path transmission through described station mode to described outer net;
Receive extranet access client packet, be forwarded through described hotspot pattern path transmission give this client。
Further, this intelligent terminal also includes recovery unit, is configured to respond to exit the user instruction of shared verification, recovers described network configuration sharing information。
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, first the network group based on P2PGO (P2PGroupOwner) is set up according to the specification of WiFiP2P agreement, intelligent terminal is forged into hotspot, hotspot pattern can be worked in, with station mode cooperation, breakthrough android system cannot open the limitation of hotspot pattern and station mode both of which voluntarily simultaneously。On this basis, the present invention limits further with system highest weight, by the mechanism that android system provides, network guard process is driven to remove amendment network configuration information, guarantee that this amendment enables this intelligent terminal as service end to provide external network to connect the client accessing its hotspot pattern, enable a client to, by the connection with the network group owner and service end, realize extranet access via the station mode of service end, thus solving the problem that network is shared。Finally, even if not relying on the mobile network that operator provides, as long as service end can at station mode accessing external network, then, it is shared that described client just can utilize the hotspot pattern of service end to carry out outer net。
Generally, the enforcement of the present invention, solve under WiFiP2P agreement, the routing configuration problem between client and service end so that client can access outer net via service end。But, I have much more to say than I can write in this letter, and aspect and advantage that the present invention adds will part provide in the following description, and these will become apparent from the description below, or is recognized by the practice of the present invention。
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will be apparent from easy to understand from the following description of the accompanying drawings of embodiments, 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
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of same or like function from start to finish。The embodiment described below with reference to accompanying drawing is illustrative of, and 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, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " may also comprise plural form。Should be further understood that, the wording " including " used in the description of the present invention 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 element to be " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements, or can also there is intermediary element。Additionally, " connection " used herein or " coupling " can include wireless connections or wireless couple。Wording "and/or" used herein includes one or more list the whole of item or any cell being associated and combines with whole。
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technical term and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning。It should also be understood that, those terms of definition in such as general dictionary, should be understood that there is the meaning consistent with the meaning in the context of prior art, and unless by specific definitions as here, otherwise will not explain by idealization or excessively formal implication。
Those skilled in the art of the present technique are appreciated that, " terminal " used herein above, " terminal unit " had both included the equipment of wireless signal receiver, it only possesses the equipment of wireless signal receiver of non-emissive ability, include again the equipment receiving and launching hardware, it has the reception that on bidirectional communication link, can carry out two-way communication and launches the equipment of hardware。This equipment may include that honeycomb or other communication equipments, and it has single line display or multi-line display or does not have honeycomb or other communication equipments of multi-line display;PCS (PersonalCommunicationsService, PCS Personal Communications System), its can combine voice, data process, fax and/or its communication ability;PDA (PersonalDigitalAssistant, personal digital assistant), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (GlobalPositioningSystem, global positioning system) receptor;Conventional laptop and/or palmtop computer or other equipment, it has and/or includes the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment。" terminal " used herein above, " terminal unit " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or it is suitable for and/or is configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run。" terminal " used herein above, " terminal unit " can also is that communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (MobileInternetDevice, mobile internet device) 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, and when obtaining system highest weight limit or open system highest weight limit, and provides interactive function to system, it is achieved the control needed for this method。
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, set up and meet the network group of WiFiP2P 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 deposit work。
Described hotspot pattern can be set up in theory by the focus process Hostapd of android system, but, in actual measurement, during hostapd process initiation, website process can be automatically switched off, cause that intelligent terminal cannot simultaneously work under hotspot pattern and station mode, thus, then adopt the mode setting up network group voluntarily, it is possible to it is prevented effectively from the generation of this fault。
Specification according to WiFiP2P agreement, it is possible to make multiple intelligent terminal's group a network group, in this network group, has 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, mainly with respect to two intelligent terminal with WiFiP2P agreement institute specification, wherein, work in as the chip module of the intelligent terminal of client under the P2P-Client pattern of this agreement institute specification, namely show as client role;The intelligent terminal of the present invention on the other side then works under P2P-GroupOwner (P2PGO) pattern of this agreement institute specification, namely shows as service end role。
In android system, encapsulate point-to-point connection management class, i.e. a WiFiP2pManager, as the term suggests, such is namely for managing the point-to-point connection between Android terminal according to the specification of WiFiP2P agreement。Such constructs a method function for setting up described network group, concrete reform is WiFiP2pManager.createGroup (wifip2pmanger.chanenl, wifip2pmanager.ActionListener), call the method, a focus can be created, making intelligent terminal start hotspot pattern, and self is set to service end, the focus thus created can also supply not support that traditional WiFi equipment of WiFiP2P agreement is attached thereto。The network group being consequently formed, it is possible to use such other method function: requestConnectionInfo (wifip2pmanger.chanenl, wifip2pmanager.ActionListener) goes to obtain detailed link information。This wifip2pInfo link information contain the address groupOwnerAddress having group person namely service end and one go to illustrate that whether current device is the mark isGroupOwer of the owner of this p2p group, therefore the client of a p2p can be communicated by a socket connection with p2p group owner。
Under Android operation system default situations, the WiFi chip module not allowing for same intelligent terminal simultaneously works under client and service end both of which, but, but this problem can be solved by creating described network group voluntarily, wherein createGroup () function call the effect playing key, it completes the startup of hotspot pattern of this intelligent terminal。
Due to the present invention it is important that hope solves the netconfig problem of the WiFi function access outer net of the smart machine allowing client pass through service end place。Under the premise being left out client and connecting outer net voluntarily, this intelligent terminal is able to access that outer net, is the premise of the client-access outer net accessing present networks group。It is therefore advantageous to mode in, be make this intelligent terminal before completing the startup of above-mentioned hotspot pattern, just had been turned on station mode。
It is intended to start the station mode of android system, it is possible to by user, manually opened on page or by system website process is set in system and sets up。Described website process, refer in particular to the wpa_supplicant process that android system self provides, wpa_supplicant is originally open source projects source code, android mobile platform is added after being revised by Google, it is primarily used to support WEP, WPA/WPA2 and WAPI wireless protocols and encryption certification, and actual job content be by socket (no matter being that wpa_supplicant adopts socket communication with upper strata or wpa_supplicant with driving) with the mutual reported data of driving to user, user can send commands to wpa_supplicant transfer driving by socket and WiFi chip is operated。Briefly, wpa_supplicant is exactly that WiFi drives the additional support to agreement and encryption certification with the terminal of user。Wpa_supplicant source program after compiling it can be seen that two main can executing means: wpa_supplicant and wpa_cli。Wpa_supplicant is kernel program, and the relation of it and wpa_cli is exactly the relation of service and client: running background wpa_supplicant, uses wpa_cli to search for, arrange and connect network。
One presented below utilizes the wpa_cli example connected to complete network to understand the present invention for those skilled in the art's reference, but should not be construed as the restriction of the realization to the present invention。
Realize network connecting function, 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:
Fullcommand
Shortcommand
Description
status
stat
displaysthecurrentconnectionstatus
disconnect
disc
preventswpa_supplicantfromconnectingtoanyaccesspoint
quit
q
exitswpa_cli
terminate
term
killswpa_supplicant
reconfigure
recon
reloadswpa_supplicantwiththeconfigurationfilesupplied(-cparameter)
scan
scan
scansforavailableaccesspoints(onlyscansit,doesn'tdisplayanything)
scan_result
scan_r
displaystheresultsofthelastscan
list_networks
list_n
displaysalistofconfigurednetworksandtheirstatus(activeornot,enabledordisabled)
select_network
select_n
selectanetworkamongthosedefinedtoinitiateaconnection(ieselect_network0)
enable_network
enable_n
makesaconfigurednetworkavailableforselection(ieenable_network0)
disable_network
disable_n
makesaconfigurednetworkunavailableforselection(iedisable_network0)
remove_network
remove_n
removesanetworkanditsconfigurationfromthelist(ieremove_network0)
add_network
add_n
addsanewnetworktothelist.Itsidwillbecreatedautomatically
set_network
set_n
showsaveryshortlistofavailableoptionstoconfigureanetworkwhensuppliedwithnoparameters.
Seenextsectionforalistofextremelyusefulparameterstobeusedwithset_networkandget_network.
get_network
get_n
displaystherequiredparameterforthespecifiednetwork.Seenextsectionforalistofparameters
save_config
save_c
savestheconfiguration
Above command entry can be checked from the public technology document of Android, only for reference herein。
The instruction of the basic format arranging network is: set_network<networkid><key><parameter>[<parameter>]
The instruction of the basic format of display networks is: get_network<networkid><key>
Corresponding parameter such as following table:
Key
Description
Parameters
ssid
Accesspointname
string
id_str
Stringidentifyingthenetwork
string
priority
ConnectionpriorityoverotherAPs
number(0beingthedefaultlowpriority)
bssid
Macaddressoftheaccesspoint
macaddress
scan_ssid
Enable/disbalessidscan
0,1,2
key_mgmt
Typeofkeymanagement
WPA-PSK,WPA_EAP,None
pairwise
PairwiseciphersforWPA
CCMP,TKIP
Group=TKIP
GroupciphersforWPA
CCMP,TKIP,WEP104,WEP40
psk
Pre-SharedKey(clearorencrypted)
string
wep_key0
WEPkey(upto4:wep_key[0123])
string
eap
ExtensibleAuthenticationProtocol
MD5,MSCHAPV2,OTP,GTC,TLS,PEAP,TTLS
identity
EAPidentitystring
string
password
EAPpassword
string
ca_cert
PathnametoCAcertificatefile
/full/path/to/certificate
client_cert
Pathnametoclientcertificate
/full/path/to/certificate(PEM/DER)
private_key
Pathnametoaclientprivatekeyfile
/full/path/to/private_key(PEM/DER/PFX)
In like manner, above parameter list obtains from Android official also by public approach, only for reference, pardons and does not repeat。Illustrate how that realizing network connects following with one for connecting the instantiation without the AP encrypted:
> add_network (network ID will be shown, it is assumed that return value is 0)
>set_network0ssid"666"
>set_network0key_mgmtNONE
>enable_network0
>quit
Recycling one is illustrated for the instantiation connecting the AP of WEP encryption:
> add_network (assuming that network ID returns 1)
>set_network1ssid"666"
>set_network1key_mgmtNONE
>set_network1wep_key0"yourappassword"
>enable_network1
Example as the AP connecting WPA-PSK/WPA2-PSK encryption is as follows:
> add_network (assuming that network ID returns 2)
>set_network2ssid"666"
>set_network2psk"yourpre-sharedkey"
>enable_network2
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 realize connecting by the configuration file of wpa_supplicant。
The order performed when above running wpa_supplicant might as well be looked back again:
/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 the AP's that can connect is arranged with in certain form write wpa_supplicant.conf configuration file。Such as:
Ctrl_interface=DIR=/data/system/wpa_supplicantGROUP=syst emupdate_config=1
Network={
Ssid=" myaccesspoint "
Proto=WPA
Key_mgmt=WPA-PSK
Psk=" youpasswords "
}
Visible, even the station mode of call site process initiation intelligent terminal's WiFi chip module, also by using instruction above, using two kinds of different modes of configuration file, realize being controlled voluntarily the unlatching of described website process by program process, 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 the hotspot pattern of intelligent terminal is activated by calling the createGroup method of point-to-point connection management class, both patterns can and be stored in Android intelligent terminal。So that intelligent terminal can utilize its station mode accessing external network, utilize one mininet of hotspot pattern construction simultaneously。
For making above-mentioned concurrent state be physically easier to perform, embodying Consumer's Experience more preferably, the program process of the present invention can be in addition 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, such as, it can be arrange in the page option (or button of android system, added wherein by described application program, lower same), can also be an option from the informing or interaction page of desktop exhalation, it is also possible to be an option in the page that constructs of a moving component of described application program。
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, and this mode is easy to user and is realized operating in a key。
Its two, by providing control button respectively at user interface correspondence hotspot pattern and station mode, produce the corresponding control instruction starting corresponding pattern with corresponding different key respectively。
According to the control button that above mode provides, generally these buttons can be preferably provided at system desktop informing list place, or provide in the way of desktop suspended window, both it had been easy to user's touch-control control, do not affect again user's visual effect, activate when certainly can open WiFi button as the default feature of system with user yet。It is also preferred that the left described application program can set itself to self-starting item so that during system start-up, it is possible to load described button voluntarily, consequently facilitating user operation。
When user is by described user interface, after the control button described in touch-control, just producing 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 also possible to is opened by two buttons corresponding with both of which, essentially provides multiple operation change case。These changes corresponding, illustrate further below。
If user interface provides single control button, user triggers its user instruction by this single control button, just can first call createGroup () herein and create focus。Then, the program process of the present invention starts this website process more voluntarily, thus just can realize both of which and deposit。Otherwise, it is also possible to leading initiating station point process, after it completes to open, then row opens hotspot pattern with reference to above-mentioned example。It is to say, the control instruction caused corresponding to single control button, it is possible to the boot sequence of hotspot pattern described in different embodiment flexible arrangement and station mode。
And correspondence user interface provides different control buttons, characterizing the example opening different patterns respectively, then can click the order of different control button by user and open corresponding pattern according to the order of sequence, 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, when guaranteeing that this intelligent terminal can connect outer net, provide access function to other intelligent terminal, it is possible to exempt some idle works, more 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。On this basis, the program process of the present invention can export some object informations to user interface, to inform the concurrent state that this intelligent terminal of user currently coexists already at hotspot pattern and station mode。Expression-form as described object information, both can be through system message and be shown in informing, can also pop-up show on the table, more excellent mode can be call default third party's icon, for characterizing the concurrent state that this intelligent terminal is in hotspot pattern and station mode coexists, this third party's icon is shown in the system mode hurdle of user interface so that user is easier to know corresponding object information。
Step S12, with system highest weight limit call network guard process amendment network configuration sharing information make the network between connection hotspot pattern and station mode be connected。
Relate to the operation that network guard process is directly invoked, specification according to Android, the highest weight needing acquisition system is limit, thus, under the premise obtaining android system highest weight limit or android system open highest weight limit, can by described network guard process be called, amendment relates to the configuration information that network is shared whereby, i.e. network configuration sharing information, so that the network connected between hotspot pattern with station mode is connected, allow client can access outer net by service end。
Described network guard process, the i.e. abbreviation of Netd, NetworkDaemon。Netd is responsible for the functional realiey being correlated with some network operations relating to physical port, such as bandwidth controls (Bandwidth), network address translation (NAT), PAN (Personal Area Network) (pan), PPP links, soft-ap, shared verification (Tether) involved by the hotspot pattern of this intelligent terminal etc.. be all organized under netd file directory according to module (.cpp+.h)。
Four major parts of the basic framework that AndroidNetd is relevant:
(1) all events relevant for detecting network for LinuxKernel。
(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 that " netd " being arranged in netd process on connecting monitors socket, then receives information from Netd or send commands to Netd。
As can be seen here, it is possible to drive network guard process to perform dependent instruction by ndc, in the present invention, it is achieved the function to the amendment of network configuration sharing information, just available ndc order is implemented。
Please also refer to the following observation process that android system is implemented:
First, by analyzing, it has been found that after createGroup () creates focus, although can be connected by client, but it is for as follows to the parameter of the configuration process DNSmasq of user feedback DHCP configuration information:
/ system/bin/dnsmasq--keep-in-foreground--no-resolv--no-po ll--dhcp-authoritative--dhcp-option-force=43, ANDROID_METERED--pid-file--dhcp-range=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-range=192.168.45.2, 192.168.45.254, 1h--dhcp-range=192.168.46.2, 192.168.46.254, 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
It can be seen that, with addition of the control option and the dhcp-option-force=43 that force configuration sequence to be 43, ANDROID_METERED, official's lexical or textual analysis of sequence number 43 is manufacturer's specified option, for representing that being currently connected as charging connects, 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 design 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 the situation that the free outer net set up with WiFi station mode connects, not by Android compatibility。
Then, by analyzing in Android official document for the source code of TetherController (shared control unit) it can be seen that in this case, ANDROID_METERED has been carried out specification by this place, but, but have no the setting of default gateway。
And to client is analyzed, from core.java.android.net.DhcpInfoInternal i.e. dhcp client over there, utilize following code implementation to detect:
Above analysis shows, as made client connect outer net by service end, it is necessary to avoid the above-mentioned impact controlling option。
And then, by analyze this intelligent terminal hotspot pattern open before and open after packet forward switch and Packet Filtering table and iptables, it has been found that affect client surf the Net the factor。
Specifically, switch is forwarded for packet, it appeared that, the result of cat/proc/sys/net/ipv4/ip_forward is 1 rather than 0, thus in theory can by echo " 1 " >/proc/sys/net/ipv4/ip_forwardenable change this one switch arrange so that it is open packet forwarding capability。But, in this case, due to the impact by iptables, even if making above-mentioned change, client carries out extranet access and still fails to unimpeded。Packet is received when the p2p0 under the hotspot pattern of intelligent terminal identifies corresponding interface, though route can be searched, and the interface being dealt under its station mode corresponding to wlan0 mark, but can be abandoned by the filtering rule of iptables。
For iptables, it has been found that it deposits impact both ways, the first wherein includes the rule of the data packet discarding by interface p2p0, and it two is the NAT rule that intelligent terminal is mapped to public network by shortcoming。For the former, it is possible to by with the process that gives an order: iptables-DFORWARD4, namely delete the 4th rule in forward namely natctrl_FORWARD rule。At this time when p2p0 receives bag, can send from wlan0。But the source ip of this bag is an Intranet ip。Accordingly, it would be desirable to the latter is processed as follows: iptables-tnat-APOSTROUTING-owlan0-jMASQUERADE, namely increase a nat rule to iptables filter table, after interpolation, on another mobile phone, just can the logical outer net ip of ping。By the connection of client to outer net, thus just unimpeded。Naturally, and in conjunction with practice analysis, gateway is also correctly configured。
By above-mentioned process, the problem that only address only IP layer, for the function of dns resolution, then still unrealized。Further by analyzing the configuration parameter of DNSmasq, it has been found that this carry--no-resolv option, this option causes that affecting client obtains the reason of correct dns resolution just。Thus, it is possible to be modified startTethering method or increase startTetheringWithDns () method, remove--no-resolv parameter。Completing these operations, client is through service end to outer net, specific to the access of the WWW based on domain name, just unblocked。
Above, generally, the present invention realizes client by service end access outer net by the amendment relating to network configuration sharing information that ndc tool drives network guard process is made, is mainly concerned with following aspect:
One, the packet forwarding capability that is connected of network opened between connection hotspot pattern and station mode: being embodied in and can arranging its parameter by echo instruction is 1 open。
That two, revises the Packet Filtering table for the network connection between unimpeded hotspot pattern and station mode arranges content: be embodied in and iptables form is removed corresponding filtering items and interpolation NAT map record。
Three, remove the restriction of client shared verification and resolve the option of DNS: be embodied in and can be removed by the method for shared control unit (TetherController)--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 with under its station mode between network be connected, the service of accessing external network is provided for client。
Above by the analysis process disclosing the system principle to Android, what disclose the present invention realizes principle, and provide a kind of embodiment how revising network configuration sharing information, in addition, revise network configuration sharing information also by following mode:
This mode specifically, namely by system highest weight limit call ndc instrument realized by network guard process amendment in the way of, refer to following code and explanation thereof:
ndcipfwdenable
ndctetherdnsset0114.114.114.114
// if it fails, generally mean that and above have manual operations not cancel completely。Perform ps | grepdnsmasq elder generation positive closing configuration process。If also having and remaining process, for instance:
shellCP8681_A01:/#ps|grepdnsmasq
dhcp355732510272740001a0338b66f61acS/system/bin/dnsmasq
// execution kill3557 kills, then
Ndctetherstop, // stop sharing
Ndctetherstart192.168.49.2192.168.49.254//startup is shared, and configures the network segment
Ndctetherdnsset0114.114.114.114//DNS is set
Ndcnatenablep2p0wlan00//interpolation NAT rule
After tested, the effect that above code is risen is consistent with the manual modification process that top is disclosed, and through thus section code effect, packet forwarding capability is opened, and iptables filter table obtains correct configuration, and dns resolution function also obtains correct maintenance。Therefore, the application program of the present invention under system highest weight limit state, after starting hotspot pattern, can perform this section of 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, not open its system highest weight limit, or unsuccessful by ROOT, for this situation, the operation of the above amendment directly driving network guard to be carried out network configuration sharing information with NDC instruction can not be successful。Accordingly, it would be desirable to look for another way。
The mode of a kind of improvement is to become a method function (configuration interface) by above with the NDC code wrap expressed, Open Source Code file and WifiP2pServiceImpl.java to WiFiP2pManager class are modified, owing to WifiP2pServiceImpl.java can realize those ndc orders either directly through the mNwService function derived, cause exists, can inside increase the method function, and derive and use to WiFiP2pManager class, so, the application program of the present invention only need to call this configuration interface either directly through WiFiP2pManager class, the amendment to network configuration sharing information can be implemented, acquisition without Help of System highest weight limit。
As can be seen here, control described network guard process by ndc order is also diversified in the way of revising network configuration sharing parameter。
By implementing above-mentioned multiple control modes, the network between the hotspot pattern of service end and station mode all can being made to connect and interconnect, the problem of route has solution therewith。
Step S13, access after described network group in client, set up the connection of this client and the outer net maintained by described station mode。
After the network group that client access service end provides, sending DHCP request to service end, the configuration process of service end reads the correct network configuration sharing information after above-mentioned amendment, feeds back to client。After client completes the network settings of self accordingly, just can 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 the path transmission of described station mode to described outer net;When its receive extranet access client packet time, be forwarded through described hotspot pattern path transmission give this client。
Further, for improving the function of the program process of the present invention, it is possible to increase subsequent step: this step, in response to the user instruction exiting shared verification, recovers described network configuration sharing information。
Specifically, the application program of the present invention is referred to aforesaid mode, provides the control button of a shared verification to user interface, also may be used as continued to use the above-mentioned final election control operation controlling button providing user interface。When this control button is triggered, just producing described user instruction, by the effect of this user instruction, the present invention just can implement to disconnect described hotspot pattern, thus just automatically disconnects external connection。
Further, it is possible to adopt mode more thoroughly, the network configuration sharing information in advance aforementioned processing process produced is cleared up, for instance, consult following ndc instruction:
Ndcipfwddisable//closedown packet forwarding capability
Ndctetherstop//stopping online sharing functionality
Ndcnatdisablep2p0wlan00//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 and perform corresponding function, thus avoiding the aforesaid potential impact that the machine use is brought by network configuration sharing information。Could be aware that, the premise directly invoking the described network guard process of above-mentioned order control in the program process of the present invention is the highest weight limit having obtained system。
In like manner, according to above-mentioned building method function and be implanted into the example in WiFiP2pManager, thrashing code herein can be configured to method function (interface of clearing up and discharging) completely in the same way, add in the code file of WiFiP2pManager class, export as such corresponding member function, follow-up directly called this interface of clearing up and discharging by the program process of the present invention and can perform, without considering currently whether obtained system ROOT authority。
In sum, the method for the present invention solves Android intelligent terminal and opens the technical barrier of hotspot pattern and station mode simultaneously, and allows the client accessing the network group under its hotspot pattern via the corresponding outer net interface accessing outer net of its station mode。
Modularized thoughts according to computer software, the present invention also provides for a kind of intelligent terminal, and this intelligent terminal includes setting up unit 11, dispensing unit 12 and communication unit 13, the concrete function that unit introduced below realizes:
Described sets up unit 11, for setting up the network group meeting WiFiP2P 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 deposit work。
Described hotspot pattern can be set up in theory by the focus process Hostapd of android system, but, in actual measurement, during hostapd process initiation, website process can be automatically switched off, cause that intelligent terminal cannot simultaneously work under hotspot pattern and station mode, thus, then adopt the mode setting up network group voluntarily, it is possible to it is prevented effectively from the generation of this fault。
Specification according to WiFiP2P agreement, it is possible to make multiple intelligent terminal's group a network group, in this network group, has 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, mainly with respect to two intelligent terminal with WiFiP2P agreement institute specification, wherein, work in as the chip module of the intelligent terminal of client under the P2P-Client pattern of this agreement institute specification, namely show as client role;The intelligent terminal of the present invention on the other side then works under P2P-GroupOwner (P2PGO) pattern of this agreement institute specification, namely shows as service end role。
In android system, encapsulate point-to-point connection management class, i.e. a WiFiP2pManager, as the term suggests, such is namely for managing the point-to-point connection between Android terminal according to the specification of WiFiP2P agreement。Such constructs a method function for setting up described network group, concrete reform is WiFiP2pManager.createGroup (wifip2pmanger.chanenl, wifip2pmanager.ActionListener), call the method, a focus can be created, making intelligent terminal start hotspot pattern, and self is set to service end, the focus thus created can also supply not support that traditional WiFi equipment of WiFiP2P agreement is attached thereto。The network group being consequently formed, it is possible to use such other method function: requestConnectionInfo (wifip2pmanger.chanenl, wifip2pmanager.ActionListener) goes to obtain detailed link information。This wifip2pInfo link information contain the address groupOwnerAddress having group person namely service end and one go to illustrate that whether current device is the mark isGroupOwer of the owner of this p2p group, therefore the client of a p2p can be communicated by a socket connection with p2p group owner。
Under Android operation system default situations, the WiFi chip module not allowing for same intelligent terminal simultaneously works under client and service end both of which, but, but this problem can be solved by creating described network group voluntarily, wherein createGroup () function call the effect playing key, it completes the startup of hotspot pattern of this intelligent terminal。
Due to the present invention it is important that hope solves the netconfig problem of the WiFi function access outer net of the smart machine allowing client pass through service end place。Under the premise being left out client and connecting outer net voluntarily, this intelligent terminal is able to access that outer net, is the premise of the client-access outer net accessing present networks group。It is therefore advantageous to mode in, be make this intelligent terminal before completing the startup of above-mentioned hotspot pattern, just had been turned on station mode。
It is intended to start the station mode of android system, it is possible to by user, manually opened on page or by system website process is set in system and sets up。Described website process, refer in particular to the wpa_supplicant process that android system self provides, wpa_supplicant is originally open source projects source code, android mobile platform is added after being revised by Google, it is primarily used to support WEP, WPA/WPA2 and WAPI wireless protocols and encryption certification, and actual job content be by socket (no matter being that wpa_supplicant adopts socket communication with upper strata or wpa_supplicant with driving) with the mutual reported data of driving to user, user can send commands to wpa_supplicant transfer driving by socket and WiFi chip is operated。Briefly, wpa_supplicant is exactly that WiFi drives the additional support to agreement and encryption certification with the terminal of user。Wpa_supplicant source program after compiling it can be seen that two main can executing means: wpa_supplicant and wpa_cli。Wpa_supplicant is kernel program, and the relation of it and wpa_cli is exactly the relation of service and client: running background wpa_supplicant, uses wpa_cli to search for, arrange and connect network。
One presented below utilizes the wpa_cli example connected to complete network to understand the present invention for those skilled in the art's reference, but should not be construed as the restriction of the realization to the present invention。
Realize network connecting function, 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:
Fullcommand
Shortcommand
Description
status
stat
displaysthecurrentconnectionstatus
disconnect
disc
preventswpa_supplicantfromconnectingtoanyaccesspoint
quit
q
exitswpa_cli
terminate
term
killswpa_supplicant
reconfigure
recon
reloadswpa_supplicantwiththeconfigurationfilesupplied(-cparameter)
scan
scan
scansforavailableaccesspoints(onlyscansit,doesn'tdisplayanything)
scan_result
scan_r
displaystheresultsofthelastscan
list_networks
list_n
displaysalistofconfigurednetworksandtheirstatus(activeornot,enabledordisabled)
select_network
select_n
selectanetworkamongthosedefinedtoinitiateaconnection(ieselect_network0)
enable_network
enable_n
makesaconfigurednetworkavailableforselection(ieenable_network0)
disable_network
disable_n
makesaconfigurednetworkunavailableforselection(iedisable_network0)
remove_network
remove_n
removesanetworkanditsconfigurationfromthelist(ieremove_network0)
add_network
add_n
addsanewnetworktothelist.Itsidwillbecreatedautomatically
set_network
set_n
showsaveryshortlistofavailableoptionstoconfigureanetworkwhensuppliedwithnoparameters.
Seenextsectionforalistofextremelyusefulparameterstobeusedwithset_networkandget_network.
get_network
get_n
displaystherequiredparameterforthespecifiednetwork.Seenextsectionforalistofparameters
save_config
save_c
savestheconfiguration
Above command entry can be checked from the public technology document of Android, only for reference herein。
The instruction of the basic format arranging network is: set_network<networkid><key><parameter>[<parameter>]
The instruction of the basic format of display networks is: get_network<networkid><key>
Corresponding parameter such as following table:
Key
Description
Parameters
ssid
Accesspointname
string
id_str
Stringidentifyingthenetwork
string
priority
ConnectionpriorityoverotherAPs
number(0beingthedefaultlowpriority)
bssid
Macaddressoftheaccesspoint
macaddress
scan_ssid
Enable/disbalessidscan
0,1,2
key_mgmt
Typeofkeymanagement
WPA-PSK,WPA_EAP,None
pairwise
PairwiseciphersforWPA
CCMP,TKIP
Group=TKIP
GroupciphersforWPA
CCMP,TKIP,WEP104,WEP40
psk
Pre-SharedKey(clearorencrypted)
string
wep_key0
WEPkey(upto4:wep_key[0123])
string
eap
ExtensibleAuthenticationProtocol
MD5,MSCHAPV2,OTP,GTC,TLS,PEAP,TTLS
identity
EAPidentitystring
string
password
EAPpassword
string
ca_cert
PathnametoCAcertificatefile
/full/path/to/certificate
client_cert
Pathnametoclientcertificate
/full/path/to/certificate(PEM/DER)
private_key
Pathnametoaclientprivatekeyfile
/full/path/to/private_key(PEM/DER/PFX)
In like manner, above parameter list obtains from Android official also by public approach, only for reference, pardons and does not repeat。Illustrate how that realizing network connects following with one for connecting the instantiation without the AP encrypted:
> add_network (network ID will be shown, it is assumed that return value is 0)
>set_network0ssid"666"
>set_network0key_mgmtNONE
>enable_network0
>quit
Recycling one is illustrated for the instantiation connecting the AP of WEP encryption:
> add_network (assuming that network ID returns 1)
>set_network1ssid"666"
>set_network1key_mgmtNONE
>set_network1wep_key0"yourappassword"
>enable_network1
Example as the AP connecting WPA-PSK/WPA2-PSK encryption is as follows:
> add_network (assuming that network ID returns 2)
>set_network2ssid"666"
>set_network2psk"yourpre-sharedkey"
>enable_network2
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 realize connecting by the configuration file of wpa_supplicant。
The order performed when above running wpa_supplicant might as well be looked back again:
/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 the AP's that can connect is arranged with in certain form write wpa_supplicant.conf configuration file。Such as:
Ctrl_interface=DIR=/data/system/wpa_supplicantGROUP=syst emupdate_config=1
Network={
Ssid=" myaccesspoint "
Proto=WPA
Key_mgmt=WPA-PSK
Psk=" youpasswords "
}
Visible, even the station mode of call site process initiation intelligent terminal's WiFi chip module, also by using instruction above, using two kinds of different modes of configuration file, realize being controlled voluntarily the unlatching of described website process by program process, 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 the hotspot pattern of intelligent terminal is activated by calling the createGroup method of point-to-point connection management class, both patterns can and be stored in Android intelligent terminal。So that intelligent terminal can utilize its station mode accessing external network, utilize one mininet of hotspot pattern construction simultaneously。
For making above-mentioned concurrent state be physically easier to perform, embodying Consumer's Experience more preferably, the program process of the present invention can be in addition 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, such as, it can be arrange in the page option (or button of android system, added wherein by described application program, lower same), can also be an option from the informing or interaction page of desktop exhalation, it is also possible to be an option in the page that constructs of a moving component of described application program。
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, and this mode is easy to user and is realized operating in a key。
Its two, by providing control button respectively at user interface correspondence hotspot pattern and station mode, produce the corresponding control instruction starting corresponding pattern with corresponding different key respectively。
According to the control button that above mode provides, generally these buttons can be preferably provided at system desktop informing list place, or provide in the way of desktop suspended window, both it had been easy to user's touch-control control, do not affect again user's visual effect, activate when certainly can open WiFi button as the default feature of system with user yet。It is also preferred that the left described application program can set itself to self-starting item so that during system start-up, it is possible to load described button voluntarily, consequently facilitating user operation。
When user is by described user interface, after the control button described in touch-control, just producing corresponding control instruction, this control instruction will be received by the process of described application program, controls hotspot pattern and/or station mode unlatching thus corresponding。
Specifically, user both can wish to open hotspot pattern and station mode by single control button simultaneously, it is also possible to is opened by two buttons corresponding with both of which, essentially provides multiple operation change case。These changes corresponding, illustrate further below。
If user interface provides single control button, user triggers its user instruction by this single control button, just can first call createGroup () herein and create focus。Then, the program process of the present invention starts this website process more voluntarily, thus just can realize both of which and deposit。Otherwise, it is also possible to leading initiating station point process, after it completes to open, then row opens hotspot pattern with reference to above-mentioned example。It is to say, the control instruction caused corresponding to single control button, it is possible to the boot sequence of hotspot pattern described in different embodiment flexible arrangement and station mode。
And correspondence user interface provides different control buttons, characterizing the example opening different patterns respectively, then can click the order of different control button by user and open corresponding pattern according to the order of sequence, 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, when guaranteeing that this intelligent terminal can connect outer net, provide access function to other intelligent terminal, it is possible to exempt some idle works, more 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。On this basis, the program process of the present invention can export some object informations to user interface, to inform the concurrent state that this intelligent terminal of user currently coexists already at hotspot pattern and station mode。Expression-form as described object information, both can be through system message and be shown in informing, can also pop-up show on the table, more excellent mode can be call default third party's icon, for characterizing the concurrent state that this intelligent terminal is in hotspot pattern and station mode coexists, this third party's icon is shown in the system mode hurdle of user interface so that user is easier to know corresponding object information。
Described dispensing unit 12, is configured to call network guard process amendment network configuration sharing information with system highest weight limit and makes the network between connection hotspot pattern and station mode be connected。
Relate to the operation that network guard process is directly invoked, specification according to Android, the highest weight needing acquisition system is limit, thus, under the premise obtaining android system highest weight limit or android system open highest weight limit, can by described network guard process be called, amendment relates to the configuration information that network is shared whereby, i.e. network configuration sharing information, so that the network connected between hotspot pattern with station mode is connected, allow client can access outer net by service end。
Described network guard process, the i.e. abbreviation of Netd, NetworkDaemon。Netd is responsible for the functional realiey being correlated with some network operations relating to physical port, such as bandwidth controls (Bandwidth), network address translation (NAT), PAN (Personal Area Network) (pan), PPP links, soft-ap, shared verification (Tether) involved by the hotspot pattern of this intelligent terminal etc.. be all organized under netd file directory according to module (.cpp+.h)。
Four major parts of the basic framework that AndroidNetd is relevant:
(1) all events relevant for detecting network for LinuxKernel。
(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 that " netd " being arranged in netd process on connecting monitors socket, then receives information from Netd or send commands to Netd。
As can be seen here, it is possible to drive network guard process to perform dependent instruction by ndc, in the present invention, it is achieved the function to the amendment of network configuration sharing information, just available ndc order is implemented。
Please also refer to the following observation process that android system is implemented:
First, by analyzing, it has been found that after createGroup () creates focus, although produce to be connected by client, but it is for as follows to the parameter of the configuration process DNSmasq of user feedback DHCP configuration information:
/ system/bin/dnsmasq--keep-in-foreground--no-resolv--no-po ll--dhcp-authoritative--dhcp-option-force=43, ANDROID_METERED--pid-file--dhcp-range=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-range=192.168.45.2, 192.168.45.254, 1h--dhcp-range=192.168.46.2, 192.168.46.254, 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
It can be seen that, with addition of the control option and the dhcp-option-force=43 that force configuration sequence to be 43, ANDROID_METERED, official's lexical or textual analysis of sequence number 43 is manufacturer's specified option, for representing that being currently connected as charging connects, 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 design 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 the situation that the free outer net set up with WiFi station mode connects, not by Android compatibility。
Then, by analyzing in Android official document for the source code of TetherController (shared control unit) it can be seen that in this case, ANDROID_METERED has been carried out specification by this place, but, but have no the setting of default gateway。
And to client is analyzed, from core.java.android.net.DhcpInfoInternal i.e. dhcp client over there, utilize following code implementation to detect:
Above analysis shows, as made client connect outer net by service end, it is necessary to avoid the above-mentioned impact controlling option。
And then, by analyze this intelligent terminal hotspot pattern open before and open after packet forward switch and Packet Filtering table and iptables, it has been found that affect client surf the Net the factor。
Specifically, switch is forwarded for packet, it appeared that, the result of cat/proc/sys/net/ipv4/ip_forward is 1 rather than 0, thus in theory can by echo " 1 " >/proc/sys/net/ipv4/ip_forwardenable change this one switch arrange so that it is open packet forwarding capability。But, in this case, due to the impact by iptables, even if making above-mentioned change, client carries out extranet access and still fails to unimpeded。Packet is received when the p2p0 under the hotspot pattern of intelligent terminal identifies corresponding interface, though route can be searched, and the interface being dealt under its station mode corresponding to wlan0 mark, but can be abandoned by the filtering rule of iptables。
For iptables, it has been found that it deposits impact both ways, the first wherein includes the rule of the data packet discarding by interface p2p0, and it two is the NAT rule that intelligent terminal is mapped to public network by shortcoming。For the former, it is possible to by with the process that gives an order: iptables-DFORWARD4, namely delete the 4th rule in forward namely natctrl_FORWARD rule。At this time when p2p0 receives bag, can send from wlan0。But the source ip of this bag is an Intranet ip。Accordingly, it would be desirable to the latter is processed as follows: iptables-tnat-APOSTROUTING-owlan0-jMASQUERADE, namely increase a nat rule to iptables filter table, after interpolation, on another mobile phone, just can the logical outer net ip of ping。By the connection of client to outer net, thus just unimpeded。Naturally, and in conjunction with practice analysis, gateway is also correctly configured。
By above-mentioned process, the problem that only address only IP layer, for the function of dns resolution, then still unrealized。Further by analyzing the configuration parameter of DNSmasq, it has been found that this carry--no-resolv option, this option causes that affecting client obtains the reason of correct dns resolution just。Thus, it is possible to be modified startTethering method or increase startTetheringWithDns () method, remove--no-resolv parameter。Completing these operations, client is through service end to outer net, specific to the access of the WWW based on domain name, just unblocked。
Above, generally, the present invention realizes client by service end access outer net by the amendment relating to network configuration sharing information that ndc tool drives network guard process is made, is mainly concerned with following aspect:
One, the packet forwarding capability that is connected of network opened between connection hotspot pattern and station mode: being embodied in and can arranging its parameter by echo instruction is 1 open。
That two, revises the Packet Filtering table for the network connection between unimpeded hotspot pattern and station mode arranges content: be embodied in and iptables form is removed corresponding filtering items and interpolation NAT map record。
Three, remove the restriction of client shared verification and resolve the option of DNS: be embodied in and can be removed by the method for shared control unit (TetherController)--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 with under its station mode between network be connected, the service of accessing external network is provided for client。
Above by the analysis process disclosing the system principle to Android, what disclose the present invention realizes principle, and provide a kind of embodiment how revising network configuration sharing information, in addition, revise network configuration sharing information also by following mode:
This mode specifically, namely by system highest weight limit call ndc instrument realized by network guard process amendment in the way of, refer to following code and explanation thereof:
ndcipfwdenable
ndctetherdnsset0114.114.114.114
// if it fails, generally mean that and above have manual operations not cancel completely。Perform ps | grepdnsmasq elder generation positive closing configuration process。If also having and remaining process, for instance:
shellCP8681_A01:/#ps|grepdnsmasq
dhcp355732510272740001a0338b66f61acS/system/bin/dnsmasq
// execution kill3557 kills, then
Ndctetherstop, // stop sharing
Ndctetherstart192.168.49.2192.168.49.254//startup is shared, and configures the network segment
Ndctetherdnsset0114.114.114.114//DNS is set
Ndcnatenablep2p0wlan00//interpolation NAT rule
After tested, the effect that above code is risen is consistent with the manual modification process that top is disclosed, and through thus section code effect, packet forwarding capability is opened, and iptables filter table obtains correct configuration, and dns resolution function also obtains correct maintenance。Therefore, the application program of the present invention under system highest weight limit state, after starting hotspot pattern, can perform this section of 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, not open its system highest weight limit, or unsuccessful by ROOT, for this situation, the operation of the above amendment directly driving network guard to be carried out network configuration sharing information with NDC instruction can not be successful。Accordingly, it would be desirable to look for another way。
The mode of a kind of improvement is to become a method function (configuration interface) by above with the NDC code wrap expressed, Open Source Code file and WifiP2pServiceImpl.java to WiFiP2pManager class are modified, owing to WifiP2pServiceImpl.java can realize those ndc orders either directly through the mNwService function derived, cause exists, can inside increase the method function, and derive and use to WiFiP2pManager class, so, the application program of the present invention only need to call this configuration interface either directly through WiFiP2pManager class, the amendment to network configuration sharing information can be implemented, acquisition without Help of System highest weight limit。
As can be seen here, control described network guard process by ndc order is also diversified in the way of revising network configuration sharing parameter。
By implementing above-mentioned multiple control modes, the network between the hotspot pattern of service end and station mode all can being made to connect and interconnect, the problem of route has solution therewith。
Described communication unit 13, for, after client accesses described network group, setting up the connection of this client and the outer net maintained by described station mode。
After the network group that client access service end provides, sending DHCP request to service end, the configuration process of service end reads the correct network configuration sharing information after above-mentioned amendment, feeds back to client。After client completes the network settings of self accordingly, just can 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 the path transmission of described station mode to described outer net;When its receive extranet access client packet time, be forwarded through described hotspot pattern path transmission give this client。
Further, for improving the function of the program process of the present invention, it is possible to increase recovery unit, this recovery unit is configured to respond to exit the user instruction of shared verification, recovers described network configuration sharing information。
Specifically, the application program of the present invention is referred to aforesaid mode, provides the control button of a shared verification to user interface, also may be used as continued to use the above-mentioned final election control operation controlling button providing user interface。When this control button is triggered, just producing described user instruction, by the effect of this user instruction, the present invention just can implement to disconnect described hotspot pattern, thus just automatically disconnects external connection。
Further, it is possible to adopt mode more thoroughly, the network configuration sharing information in advance aforementioned processing process produced is cleared up, for instance, consult following ndc instruction:
Ndcipfwddisable//closedown packet forwarding capability
Ndctetherstop//stopping online sharing functionality
Ndcnatdisablep2p0wlan00//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 and perform corresponding function, thus avoiding the aforesaid potential impact that the machine use is brought by network configuration sharing information。Could be aware that, the premise directly invoking the described network guard process of above-mentioned order control in the program process of the present invention is the highest weight limit having obtained system。
In like manner, according to above-mentioned building method function and be implanted into the example in WiFiP2pManager, thrashing code herein can be configured to method function (interface of clearing up and discharging) completely in the same way, add in the code file of WiFiP2pManager class, export as such corresponding member function, follow-up directly called this interface of clearing up and discharging by the program process of the present invention and can perform, without considering currently whether obtained system ROOT authority。
In sum, the method for the present invention solves Android intelligent terminal and opens the technical barrier of hotspot pattern and station mode simultaneously, and allows the client accessing the network group under its hotspot pattern via the corresponding outer net interface accessing outer net of its station mode。
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 for the access of other equipment simultaneously, also act as website and access external network access point, and the effect of router can be played, 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 the one or more equipment relating to perform in operation described herein。These equipment can specialized designs and manufacture for required purpose, or the known device in general purpose computer can also be included。These equipment have storage computer program within it, and these computer programs optionally activate or reconstruct。Such computer program can be stored in equipment (such as, computer) in computer-readable recording medium or be stored in and be suitable to storage e-command and be coupled to any kind of medium of bus respectively, described computer-readable medium includes but not limited to that any kind of dish (includes floppy disk, hard disk, CD, CD-ROM, and magneto-optic disk), ROM (Read-OnlyMemory, read only memory), RAM (RandomAccessMemory, memorizer immediately), EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, EEPROM), flash memory, magnetic card or light card。It is, computer-readable recording medium include by equipment (such as, computer) with can read form storage or transmission information any medium。
Those skilled in the art of the present technique are appreciated that, it is possible to the calculation machine programmed instruction combination to the frame in each frame realizing in these structure charts and/or block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph of using tricks。Those skilled in the art of the present technique are appreciated that, the processor that these computer program instructions can be supplied to general purpose computer, special purpose computer or other programmable data processing methods realizes, and performs the scheme specified in the frame of structure chart disclosed by the invention and/or block diagram and/or flow graph or multiple frame thereby through the processor of computer or other programmable data processing methods。
Those skilled in the art of the present technique are appreciated that the step in the various operations discussed in the present invention, method, flow process, measure, scheme can be replaced, change, combine or delete。Further, have the various operations discussed in the present invention, method, other steps in flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted。Further, of the prior art have with the present invention disclosed in various operations, method, the step in 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 should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded 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 WiFiP2P 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 deposit work;
Calling network guard process amendment network configuration sharing information with system highest weight limit makes the network between connection hotspot pattern and station mode be connected;
After client accesses described network group, set up the connection of this client and the outer net maintained by described station mode。
2. method according to claim 1, it is characterised in that controlled and start the foundation of described network group。
3. method according to claim 2, it is characterised in that control button by providing in user interface, for receiving control instruction, to start the foundation of described network group。
4. method according to claim 1, it is characterised in that website process and wpa_supplicant process that described station mode is provided by startup system and realize。
5. method according to claim 1, it is characterised in that described station mode works prior to hotspot pattern。
6. method according to claim 1, it is characterised in that start described hotspot pattern when making it with station mode and deposit, display is for characterizing this intelligent terminal and be in hotspot pattern and third party's icon of concurrent state that station mode coexists。
7. method according to claim 1, it is characterised in that realize the foundation of described network group by calling the createGroup method of the WifiP2pManager class that android system provides according to the specification of WiFiP2P agreement。
8. method according to claim 1, it is characterised in that described network guard process is the Netd finger daemon of android system, the ndc instrument provided by this network guard process is controlled this network guard process and completes described network configuration sharing information。
9. method according to claim 1, it is characterised in that 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 the restriction of client shared verification and resolve the option of DNS。
10. an intelligent terminal, it is characterised in that including:
Set up unit, for setting up the network group meeting WiFiP2P 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 deposit work;
Dispensing unit, makes the network between connection hotspot pattern and station mode be connected for calling network guard process amendment network configuration sharing information with system highest weight limit;
Communication unit, for, after client accesses described network group, setting up the connection of this client and the outer net maintained by described station mode。
CN201610141034.1A 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof Pending CN105704226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610141034.1A CN105704226A (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
CN201610141034.1A CN105704226A (en) 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof

Publications (1)

Publication Number Publication Date
CN105704226A true CN105704226A (en) 2016-06-22

Family

ID=56221474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610141034.1A Pending CN105704226A (en) 2016-03-11 2016-03-11 Intelligent terminal and network configuration method thereof

Country Status (1)

Country Link
CN (1) CN105704226A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412940A (en) * 2016-11-15 2017-02-15 北京小米移动软件有限公司 Method and device for creating wireless local area network, and method and device for accessing network
CN107333323A (en) * 2017-06-07 2017-11-07 青岛海信电器股份有限公司 WIFI returns method, device and the terminal device connected after Android system start
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN107920376A (en) * 2016-10-10 2018-04-17 深圳市中兴微电子技术有限公司 A kind of gateway automatic switching method and device
CN108235366A (en) * 2018-03-30 2018-06-29 四川长虹电器股份有限公司 WIFI automated testing methods based on wpa_suppliant
CN108600402A (en) * 2017-12-29 2018-09-28 龙尚科技(上海)有限公司 A kind of internet access method, device, intelligent terminal and storage medium
CN109587829A (en) * 2018-11-16 2019-04-05 青岛海信电器股份有限公司 A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously
CN110650070A (en) * 2018-06-26 2020-01-03 九阳股份有限公司 Household appliance network configuration method and WiFi module
CN110708744A (en) * 2018-07-09 2020-01-17 佛山市顺德区美的饮水机制造有限公司 Communication control method, home appliance device, and computer-readable storage medium
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
CN111867143A (en) * 2020-04-27 2020-10-30 广州朗国电子科技有限公司 Communication method and device among multiple devices in education whiteboard and education whiteboard
CN112165474A (en) * 2020-09-22 2021-01-01 珠海市魅族科技有限公司 Network monitoring method and device
CN113114543A (en) * 2021-03-08 2021-07-13 珠海格力电器股份有限公司 Household appliance network distribution method and device and household appliance
CN113709142A (en) * 2021-08-26 2021-11-26 深圳小佳科技有限公司 Hotspot network distribution method and device, intelligent terminal and storage medium
CN115001899A (en) * 2021-03-01 2022-09-02 北京小米移动软件有限公司 Network sharing method, network sharing device and storage medium
CN115397036A (en) * 2021-05-25 2022-11-25 成都极米科技股份有限公司 Method, device, equipment and storage medium for establishing soft access point

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101340A (en) * 2015-09-09 2015-11-25 深圳市唯传科技有限公司 Message multi-hop control method based on intelligent mobile terminal and system thereof
CN105245574A (en) * 2015-09-09 2016-01-13 深圳市唯传科技有限公司 Internet of things control method and system based on mobile terminal multihops
CN105338535A (en) * 2015-08-31 2016-02-17 浙江利尔达物联网技术有限公司 Method for wireless networking through employing mobile terminal
CN105375970A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338535A (en) * 2015-08-31 2016-02-17 浙江利尔达物联网技术有限公司 Method for wireless networking through employing mobile terminal
CN105101340A (en) * 2015-09-09 2015-11-25 深圳市唯传科技有限公司 Message multi-hop control method based on intelligent mobile terminal and system thereof
CN105245574A (en) * 2015-09-09 2016-01-13 深圳市唯传科技有限公司 Internet of things control method and system based on mobile terminal multihops
CN105375970A (en) * 2015-09-30 2016-03-02 青岛海信移动通信技术股份有限公司 A method and a device for relaying by a mobile device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓凡平: "《深入理解Android Wi-Fi、NFC和GPS卷》", 31 March 2014 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920376A (en) * 2016-10-10 2018-04-17 深圳市中兴微电子技术有限公司 A kind of gateway automatic switching method and device
CN106412940A (en) * 2016-11-15 2017-02-15 北京小米移动软件有限公司 Method and device for creating wireless local area network, and method and device for accessing network
CN107333323A (en) * 2017-06-07 2017-11-07 青岛海信电器股份有限公司 WIFI returns method, device and the terminal device connected after Android system start
CN107333323B (en) * 2017-06-07 2020-08-04 海信视像科技股份有限公司 WIFI (Wireless Fidelity) reconnection method and device after android system is started and terminal equipment
CN107809663A (en) * 2017-11-06 2018-03-16 深圳创维-Rgb电子有限公司 Miracast serving starting methods, intelligent television and storage medium
CN108600402A (en) * 2017-12-29 2018-09-28 龙尚科技(上海)有限公司 A kind of internet access method, device, intelligent terminal and storage medium
CN108235366A (en) * 2018-03-30 2018-06-29 四川长虹电器股份有限公司 WIFI automated testing methods based on wpa_suppliant
CN110650070B (en) * 2018-06-26 2021-12-03 九阳股份有限公司 Household appliance network configuration method and WiFi module
CN110650070A (en) * 2018-06-26 2020-01-03 九阳股份有限公司 Household appliance network configuration method and WiFi module
CN110708744A (en) * 2018-07-09 2020-01-17 佛山市顺德区美的饮水机制造有限公司 Communication control method, home appliance device, and computer-readable storage medium
CN109587829A (en) * 2018-11-16 2019-04-05 青岛海信电器股份有限公司 A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously
CN109587829B (en) * 2018-11-16 2022-01-11 海信视像科技股份有限公司 Method and device for simultaneously working as site and hotspot by terminal and terminal
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
CN111867143A (en) * 2020-04-27 2020-10-30 广州朗国电子科技有限公司 Communication method and device among multiple devices in education whiteboard and education whiteboard
CN112165474A (en) * 2020-09-22 2021-01-01 珠海市魅族科技有限公司 Network monitoring method and device
CN115001899A (en) * 2021-03-01 2022-09-02 北京小米移动软件有限公司 Network sharing method, network sharing device and storage medium
CN115001899B (en) * 2021-03-01 2024-05-07 北京小米移动软件有限公司 Network sharing method, network sharing device and storage medium
CN113114543A (en) * 2021-03-08 2021-07-13 珠海格力电器股份有限公司 Household appliance network distribution method and device and household appliance
CN113114543B (en) * 2021-03-08 2022-03-01 珠海格力电器股份有限公司 Household appliance network distribution method and device and household appliance
CN115397036A (en) * 2021-05-25 2022-11-25 成都极米科技股份有限公司 Method, device, equipment and storage medium for establishing soft access point
CN113709142A (en) * 2021-08-26 2021-11-26 深圳小佳科技有限公司 Hotspot network distribution method and device, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105704226A (en) Intelligent terminal and network configuration method thereof
CN105721220A (en) Intelligent terminal and network bottom 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
US10263839B2 (en) Remote management system for configuring and/or controlling a computer network switch
US8626147B2 (en) Virtual instance architecture for mobile device management systems
US7620065B2 (en) Mobile connectivity solution
CN100414890C (en) Method and system for centrally configurating terminal equipment
CN103973800B (en) A kind of double netcard based on Android system and the implementation method deposited
CN102026263A (en) Wireless communication network connection method
Neumann et al. Community-lab: Architecture of a community networking testbed for the future internet
CN102083023B (en) Method, system and equipment for restarting remote control equipment
US20180183666A1 (en) Secure plug and play configuration of wireless distribution system (wds) wi-fi range extenders
CN106993302A (en) A kind of method of testing and system of AP equipment
CN105915383A (en) Remote router configuration method
CN102035703A (en) Family wireless network and implementation method thereof
CN109640350A (en) The long-distance maintenance method and device of AP
WO2007010319A1 (en) Mobile connectivity solution
CN103781071B (en) The method of access points and relevant device
CN101599834B (en) Method for identification and deployment and management equipment thereof
CN105827440A (en) Intelligent terminal and route configuration method thereof
WO2016065920A1 (en) Method and system for providing virtual network service
CN105915384A (en) Active configuration method of router
Clarke 1,001 CCNA Routing and Switching Practice Questions For Dummies (+ Free Online Practice)

Legal Events

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

Effective date of registration: 20160928

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

Applicant after: Beijing Qihu 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.

Applicant before: Our Internet Network Technology (Shenzhen) Co., Ltd.

TA01 Transfer of patent application right

Effective date of registration: 20170720

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.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication