Background technology
Along with development and the upgrading of wireless communication technology, especially popularizing of WIFI equipment, WIFI network has been one of cordless communication network of the most often using of people, the intelligent terminal that the various dependence WIFI networks of following with it interconnect communication is also more and more, comprise the smart mobile phone based on Android (operating system of Google company exploitation) operating system and iOS (American apple company Mobile operating system) operating system, and all kinds of terminal equipments based on built-in Linux operating system etc.
WIFI is a kind of short-range wireless communication technologies, can within the scope of hundreds of feet, support the wireless access of the Internet.WIFI technology has following characteristics: speed is fast, and reliability is high, and in open region, communication distance can reach more than 300 meters; In closure region, also can realize the communication distance of 100 meters of left and right.These features are convenient to and existing wired Internet Network integration WIFI network, and the cost of networking is simultaneously lower.By the support of wireless router, the wireless Internet that user can enjoy more than 100M easily connects, therefore current many public places, as dining room, office building, station etc. have all configured WIFI router and corresponding Internet connection, in the time that staying wherein, people just can be wirelessly connected at high speed Internet.Because the WIFI network of many public places is all free and speed, many smart phone users are all willing to be intended to fixed-site and are used WIFI network to carry out Internet connection.Meanwhile, increasing intelligent terminal, comprises web camera, intelligent radio audio amplifier, all kinds of wireless security protection transducer, all kinds of wireless control apparatus etc., also all starts to support that realizing wireless network by WIFI connects.In the present invention, intelligent terminal is made a general reference the terminal equipment that the support WIFI network of operation built-in Linux based on ARM core SOC main control chip or Android operating system connects.
The connection of WIFI network also has specific restriction, for example user need to be for wishing the WIFI network input access information of access, comprise the SSID (Service Set Identifier, service set) that inputs or select this WIFI network, and configuration access pin etc.; In actual life, many intelligent terminals all do not have the input information such as keyboard and display screen terminal, user often needs to use computer etc. to be carried out wired connection and carried out the configuration of WIFI access parameter by netting twine or USB and this kind equipment, make it can correctly be connected to target WIFI access point, its process is comparatively loaded down with trivial details, highly professional, and be not suitable for domestic consumer's use.Therefore be, a problem in the urgent need to address for configuring WIFI access parameter without input terminal equipment how more conveniently.
Summary of the invention
The object of the invention is need to adopt wired connection mode when overcoming current configuration without the WIFI access parameter of input terminal equipment, process is loaded down with trivial details, uses inconvenient shortcoming.
For achieving the above object, the present invention is by the following technical solutions:
A kind ofly configure the method without the WIFI access parameter of input terminal equipment by mobile phone wireless, by target WIFI access point, be located at the active access module in mobile phone and be located at without the interim WIFI access point module in input terminal equipment and realize, comprise the following steps:
(1) operation is located at the active access module in mobile phone and is located at without the interim WIFI access point module in input terminal equipment simultaneously, initiatively access module is by the information input interface input target WIFI access point parameters of mobile phone, then search for local WIFI access point signals and it is mated with target WIFI access point parameters, the match is successful and be successfully connected to and disconnect after target WIFI access point and being connected and entering next step of target WIFI access point; Interim WIFI access point module is checked without whether there being target WIFI access point parameters in input terminal device memory, if any, search for local WIFI access point signals and it is mated with target WIFI access point parameters, after the match is successful, be connected to target WIFI access point, as do not have, enter next step;
(2) interim WIFI access point module is set up an interim WIFI access point; Initiatively access module is searched for interim WIFI access point signals, as searches interim WIFI access point signals and be successfully connected to interim WIFI access point, enters next step;
(3) initiatively access module by interim WIFI access point to without input terminal equipment transmission target WIFI access point parameters;
(4) interim WIFI access point module is cancelled interim WIFI access point, and initiatively access module disconnects and being connected without input terminal equipment; Interim WIFI access point module and initiatively access module are searched for local WIFI access point signals simultaneously and it are mated with target WIFI access point parameters, both are all connected to target WIFI access point after the match is successful, make mobile phone and without the communication in target WIFI network of input terminal equipment.
Described target WIFI access point is WIFI router.
The described target WIFI access point parameters of step (1) comprises SSID and password.
Described is that web camera, intelligent radio audio amplifier, wireless security protection transducer or wireless control apparatus etc. have WIFI communication function and there is no the equipment of input terminal without input terminal equipment.
The operating system of described mobile phone adopts Android or iOS.
The described operating system without input terminal equipment adopts Android or Linux.
The present invention has designed two virtual software modules: be located at the active access module in mobile phone and be located at without the interim WIFI access point module in input terminal equipment, the interim WIFI access point of setting up by interim WIFI access point module erects interim WIFI interconnection network at mobile phone with between without input terminal equipment, active access module in mobile phone sends to target WIFI access point parameters without input terminal equipment by this interim WIFI interconnection network, make can obtain target WIFI access point parameters without input terminal equipment without the input terminal such as keyboard and display, many intelligent terminals are solved because not having input terminal to be difficult to configure WIFI network access parameters, and therefore cannot use the problem of WIFI network, convenient and swift, cost of access is low.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described:
As shown in Figure 1, the present invention is mainly made up of two kernel software functional modules, the one, using self as interim access point, smart mobile phone can be accessed and obtain interim WIFI access point Temporary Access (TA) module of target access information from it, run on need to configure WIFI access parameter without input terminal equipment, the major function of this module is to control one to become agreement a SSID and interim AP (the Access Point that is connected password without input terminal equipment, access point), wait for that smart mobile phone termination enters to obtain target WIFI access parameter, another nucleus module be control smart mobile phone initiatively search operation TA module without input terminal equipment and carry out provisional access, initiatively access Active Join (AJ) module with what send target WIFI access parameter to it, run on mobile phone, it is generally a mobile phone A PP software, for the WIFI access parameter of inputting interface with record object access point is provided, then control a continuous land wheel of mobile phone seek search agreement SSID with the TA side that is connected password without input terminal equipment, if finding its existence controls mobile phone and is attached thereto immediately, after connecting, send target WIFI access parameter to TA end, after being sent completely, information disconnects at once and being connected that TA holds.
In the present invention, smart mobile phone is that user is unique can be for the equipment of input target WIFI access parameter, therefore initial in configuration, first the connection configuration parameter of the information input interface input target WIFI access point providing by mobile phone is provided user, the SSID that comprises target WIFI access point be connected password, and mate checking, after being proved to be successful, AJ module is controlled the interim AP focus of mobile phone searching and is sent target WIFI access parameter with what attempt that access needs configuration without input terminal equipment and to it.
Without input terminal equipment side, while not obtaining any access information after device power, TA module controls is opened the interim AP focus of an agreement SSID and password without input terminal equipment, wait for that the smart mobile phone of operation AJ module accesses.The smart mobile phone of operation AJ module is obtaining and is verifying after the target WIFI access parameter of user's input, control mobile phone searching agreement SSID and password without the interim AP focus of input terminal equipment, as found, mobile phone is connected to this interim AP focus at once and to its transmission target WIFI access parameter; After interaction success, disconnect immediately, TA module and AJ module respectively simultaneously control terminal and mobile phone be connected to target WIFI access point, this target WIFI access point is generally a WIFI router, thereby realizes communication in the WIFI network that mobile phone and terminal build at this WIFI router; Otherwise, the interim AP focus (searching for overtime) of setting up without input terminal equipment side if do not find within a period of time, reminding subscriber terminal equipment does not exist and recovers mobile phone to initial condition.
As shown in Figure 2, that now arranges operation TA module is called Terminal-A without input terminal equipment, and the smart mobile phone of operation AJ module is called Phone-A, and its concrete implementation step is as follows:
The first step: user opens the AJ module application in Phone-A, and input is as SSID and the password of the WIFI router of target access, such as SSID is TEST, password is 12345678, all use Android operating system as example taking mobile phone with without input terminal equipment: after user's input, AJ module is the WIFIScan interface of calling mobile phone Android system first, the WIFI signal that in system scan current environment, mobile phone receives, and the target SSID-TEST of searched out WIFI focus SSID and user's input is done and mated, if there is the focus with target SSID coupling in the SSID scanning, AJ module can continue calling system WIFIConfig interface, by the password transmission of this SSID and user input to system, and calling system EnableNetWork interface, connect this WIFI focus, as connecting to return, system normally shows that access parameter is proved to be successful, AJ module controls system disconnects and enters next step operation, as between the target SSID of the WIFI focus SSID searching out and user input, do not mate, or focus SSID coupling but both cannot connect, show access parameter authentication failed, focus or the password of prompting user input are wrong, and return.
Meanwhile, Terminal-A powers on, TA module starts self-inspection, check in self ROM and have or not original object WIFI access information by file system interface, if any, TA is the WIFIScan interface of calling system, the WIFI signal that in scanning current environment, terminal receives, and the original SSID of the WIFI focus SSID searching out and terminal preservation is done and mated, if there is the WIFI focus with original object SSID coupling in the SSID scanning, next TA meeting calling system WIFIConfig interface, by the password transmission of this SSID and preservation to system, and calling system EnableNetWork interface, connect this WIFI focus, as in access failure or self ROM without original object access information, enter next step.
The TA module of second step: Terminal-A is set up an acquiescence AP by the WIFIAPEnable interface of calling system, and the access information that retrains this AP is the access information of agreement, for example calling system WIFIAPConfig interface, configuration SSID is TemporalAP, password is empty.
AJ module on Phone-A starts timing (as every 10 seconds) and opens WIFIScan interface, and it is TemporalAP that automatic search has or not SSID, and password is empty AP focus, and as found to exist, calling system EnableNetWork interface is attempted access.Find that as access failure or within a period of time this focus does not exist (overtime, as the setting search time is less than 5 minutes), returns; If access successfully, enter the 3rd step.
The 3rd step: the interim AP (TemporalAP) that now Terminal-A sets up has obtained the access of Phone-A, and both sides set up the direct-connected relation of interim WIFI.Now the AJ module on Phone-A is by setting up the mode of Socket and the TA module of Terminal-A connects, and then AJ module starts to issue target access information Socket packet to TA module, that is: SSID is: TEST, password is: 12345678.Successfully obtain after this access information at Terminal-A, enter the 4th step.
The 4th step: Terminal-A cancels set up interim AP:TemporalAP, and Phone-A disconnects and being connected of Terminal-A simultaneously; Both sides start to attempt accessing to target access: TEST simultaneously, and AJ and TA call respectively the WIFIScan interface of system separately, search after this focus of TEST, then call respectively WIFIConfig and EnableNetWork interface accesses this focus.After both sides all access successfully, can under this same target access (TEST), realize communication, otherwise return separately.
By use smart mobile phone, this popularizes and has the instrument of good man-machine interaction mode in a large number in the present invention, solve easily the wireless access of the WIFI without input terminal equipment allocation problem, make wireless without input terminal equipment equipment in the situation that connecting without any external input equipment or cable network, obtain the access information of target WIFI access point and set up with it WIFI and connect.