A kind of wireless connection method, device, terminal and storage medium
Technical field
The present embodiments relate to wireless communication technique more particularly to a kind of wireless connection method, device, terminal and storages
Medium.
Background technique
Currently, wireless communication technique is related to bluetooth, (Near Field Communication, near radio are logical by NFC
News) or the technologies such as WIFI (Wireless Fidelity, WLAN).In wireless communication technique, the connection of each equipment is adopted
Mode is the mode of principal and subordinate link or interconnection, and all devices form wireless communication networks.By taking mutual contact mode as an example, each equipment
Position fix, when wherein have an equipment because failure, suspend mode or due to distance signal is weaker farther out when can not connect upper when, lead
It causes the connection with this equipment that can not carry out, influences the work of entire wireless communication networks.
Summary of the invention
The embodiment of the present invention provides a kind of wireless connection method, device, terminal and storage medium, solves current be wirelessly connected
Wireless communication networks in an equipment be in can not connect state when, cause with the connection of this equipment disconnect, cause whole
The problem of a wireless communication networks can not work.
In a first aspect, the embodiment of the invention provides a kind of wireless connection method, this method includes:
Obtain at least one wireless terminal can connection status;
Determine at least one described wireless terminal in it is non-can connection status wireless terminal destination locations information;
According to the destination locations information, determine that predeterminated position, control substitute wireless terminal are moved to the predeterminated position
So that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete foundation.
Further, it is described it is non-can connection status include at least:
Wireless signal strength is less than the weak signal state of preset strength threshold value, or there is no the malfunctions of wireless signal.
Further, when it is described it is non-can connection status be the weak signal state when, it is described according to the destination locations believe
Breath, determines predeterminated position, control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status nothing
The corresponding wireless connection of line terminal is completed to establish, including:
According to wireless transmission task transmission path direction, determine it is described it is non-can connection status wireless terminal higher level without
The location information of line terminal, the location information are upper level position;
According to the destination locations and upper level position, determine that predeterminated position is the position among purpose position and upper level position
It sets;
Control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless terminal pair
The wireless connection answered is completed to establish.
Further, when it is described it is non-can connection status be the malfunction when, it is described according to the destination locations information,
Determine predeterminated position, control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless end
Corresponding wireless connection is held to complete to establish, including:
According to the destination locations, determine that predeterminated position is the destination locations;
Control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless terminal pair
The wireless connection answered is completed to establish.
Further, the control substitute wireless terminal is moved to the predeterminated position, including:
Obtain the current location information of substitute wireless terminal;
According to the current location information and the preset position information, driving path is planned;
According to the driving path, control substitute wireless terminal is moved to the predeterminated position.
Further, it is described obtain at least one wireless terminal can connection status, including:
Periodically acquire at least one wireless terminal can connection status;Or, after being wirelessly connected mission failure, starting
Obtain at least one corresponding wireless terminal of the wireless connection task can connection status.
Wherein, the substitute wireless terminal includes at least:Sweeping robot.
Second aspect, the embodiment of the invention also provides a kind of wireless connection device, which includes:
State acquisition module, can connection status for obtain at least one wireless terminal;
Location information determining module, for determine at least one described wireless terminal in it is non-can connection status it is wireless
The destination locations information of terminal;
Mobile control module, for determining that predeterminated position, control substitute wireless terminal are moved according to the destination locations information
Move to the predeterminated position so that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete foundation.
The third aspect, the embodiment of the invention also provides a kind of terminal, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realize any embodiment of that present invention provide it is any as described in wireless connection method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program, when which is executed by processor realize any embodiment of that present invention provide it is any as described in wireless connection method.
The embodiment of the present invention by obtain at least one wireless terminal can connection status, determining that at least one is wireless eventually
In end in it is non-can connection status wireless terminal destination locations information after, control substitute wireless terminal be moved to default position
Set, realize in the cordless communication network of wireless connection an equipment be in can not connect state when, pass through substitute nothing
Line terminal is moved to predeterminated position, realizes being successfully established for the relevant connection of the equipment that can not be connected, and guarantees wireless communication
It goes on smoothly, realizes the transmission of wireless transmission task, improve the reliability of cordless communication network.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is a kind of flow diagram for wireless connection method that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of wireless connection device provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart for wireless connection method that the embodiment of the present invention one provides.The technical solution of the present embodiment
It can be adapted for a case where equipment can not work in cordless communication network.This method can be by provided in an embodiment of the present invention
A kind of wireless connection device executes, which can be realized by the way of software and/or hardware, and be configured at intelligent end
End, such as applied in mobile phone, tablet computer, intelligent sound box or sweeping robot.This method specifically includes following operation:
S110, obtain at least one wireless terminal can connection status.
Wireless device is connected with each other by radio connection, constitutes cordless communication network.It is indigo plant with radio connection
For tooth, bluetooth group is constituted, each equipment realizes the transmission of task by each node as the node in bluetooth group.
Bluetooth group for example can be the mutual bluetooth connection of each equipment in domestic environment, as intelligent sound box, smart television,
Any connection of intelligent lamp and intelligent socket.
Specifically, it is described obtain at least one wireless terminal can connection status, may include:Periodically acquire at least one
A wireless terminal can connection status;Or, it is corresponding that starting obtains the wireless connection task after being wirelessly connected mission failure
At least one wireless terminal can connection status.It can carry out obtaining other by any wireless terminal in cordless communication network
Wireless terminal can connection status.Starting obtains wireless task corresponding at least one is wireless after being wirelessly connected mission failure
Terminal can connection status can be by the superior node of the corresponding node of wireless connection mission failure, superior node is according to wireless
The transmission direction of transformation task determines.
S120, determine described at least one wireless terminal in it is non-can connection status wireless terminal destination locations letter
Breath.
Wherein, it is described it is non-can connection status include at least:Wireless signal strength is less than the weak signal shape of preset strength threshold value
State, or there is no the malfunctions of wireless signal.Weak signal state can be due to caused by physical obstacle, or apart from too far
Caused by, there are connected possibilities for the wireless terminal of weak signal state, i.e., mobile node are moved to weak signal state
The signal strength of wireless terminal is greater than at preset strength threshold value, guarantees that the wireless terminal of the weak signal state can be by mobile node
Connection, is attached, mobile node plays signal by higher level's wireless terminal of mobile node and the wireless terminal of weak signal state
The effect of transmitting, as weak signal state wireless terminal and higher level's wireless terminal connection bridge, guarantee be wirelessly connected at
Function is established, and realizes the smooth transmission of wireless transmission task.And the wireless terminal in malfunction need using mobile node into
Row replacement, the transformation task of higher level's wireless terminal of the wireless terminal of malfunction is received by mobile node, guarantees malfunction
Wireless terminal as intermediate node when connection smooth foundation, guarantee the smooth transmission of task.
S130, according to the destination locations information, determine that predeterminated position, control substitute wireless terminal are moved to described default
Position so that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete foundation.
Illustratively, when it is described it is non-can connection status be the weak signal state when, it is described according to the destination locations believe
Breath, determines predeterminated position, control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status nothing
The corresponding wireless connection of line terminal is completed to establish, including:According to wireless transmission task transmission path direction, determine it is described it is non-can
The location information of higher level's wireless terminal of the wireless terminal of connection status, the location information are upper level position;According to the mesh
Position and upper level position, determine that predeterminated position is the position among purpose position and upper level position;Control substitute wireless terminal
Be moved to predeterminated position so that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete foundation.
When a node be in signal it is weaker in the case where, need a mobile node to carry out signal transmitting, such as bedroom
In intelligent lamp cause the Bluetooth signal of intelligent lamp weaker due to the closing of bedroom door, the intelligent sound box in parlor issues control
It when the signal of intelligent lamp processed, can not be directly attached with intelligent lamp, at this point, intelligent sound box control mobile node equipment is substituted
Wireless terminal is moved between intelligent sound box and intelligent lamp, and intelligent sound box connects mobile node first, and mobile node reconnects intelligence
Energy lamp guarantees the case where intelligent modulating signal is weaker, and intelligent sound box can not be directly connected thereto.
Illustratively, when it is described it is non-can connection status be the malfunction when, it is described according to the destination locations information,
Determine predeterminated position, control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless end
Corresponding wireless connection is held to complete to establish, including:According to the destination locations, determine that predeterminated position is the destination locations;Control
System substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can the wireless terminal of connection status corresponding wirelessly connect
Completion is connect to establish.
Specifically, the control substitute wireless terminal is moved to the predeterminated position, including:Obtain substitute wireless terminal
Current location information;According to the current location information and the preset position information, driving path is planned;According to the traveling
Path, control substitute wireless terminal are moved to the predeterminated position.
Wherein, the substitute wireless terminal includes at least:Sweeping robot.
The embodiment of the present invention by obtain at least one wireless terminal can connection status, determining that at least one is wireless eventually
In end in it is non-can connection status wireless terminal destination locations information after, control substitute wireless terminal be moved to default position
Set, realize in the cordless communication network of wireless connection an equipment be in can not connect state when, pass through substitute nothing
Line terminal is moved to predeterminated position, realizes being successfully established for the relevant connection of the equipment that can not be connected, and guarantees wireless communication
It goes on smoothly, realizes the transmission of wireless transmission task, improve the reliability of cordless communication network.
Embodiment two
Fig. 2 is a kind of structural block diagram of wireless connection device provided by Embodiment 2 of the present invention.The device is for executing
State a kind of wireless connection method provided by any embodiment.The device includes:
State acquisition module 210, can connection status for obtain at least one wireless terminal;
Location information determining module 220, for determine at least one described wireless terminal in it is non-can connection status
The destination locations information of wireless terminal;
Mobile control module 230, for determining predeterminated position according to the destination locations information, control substitute is wireless eventually
End be moved to the predeterminated position so that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete to build
It is vertical.
The embodiment of the present invention by obtain at least one wireless terminal can connection status, determining that at least one is wireless eventually
In end in it is non-can connection status wireless terminal destination locations information after, control substitute wireless terminal be moved to default position
Set, realize in the cordless communication network of wireless connection an equipment be in can not connect state when, pass through substitute nothing
Line terminal is moved to predeterminated position, realizes being successfully established for the relevant connection of the equipment that can not be connected, and guarantees wireless communication
It goes on smoothly, realizes the transmission of wireless transmission task, improve the reliability of cordless communication network.
Wherein, it is described it is non-can connection status include at least:
Wireless signal strength is less than the weak signal state of preset strength threshold value, or there is no the malfunctions of wireless signal.
Further, when it is described it is non-can connection status be the weak signal state when, the mobile control module is specific to use
In:
According to wireless transmission task transmission path direction, determine it is described it is non-can connection status wireless terminal higher level without
The location information of line terminal, the location information are upper level position;
According to the destination locations and upper level position, determine that predeterminated position is the position among purpose position and upper level position
It sets;
Control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless terminal pair
The wireless connection answered is completed to establish.
Further, when it is described it is non-can connection status be the malfunction when, the mobile control module is specific to use
In:
According to the destination locations, determine that predeterminated position is the destination locations;
Control substitute wireless terminal be moved to predeterminated position so that it is described in it is non-can connection status wireless terminal pair
The wireless connection answered is completed to establish.
Further, the mobile control module, is specifically used for:
Obtain the current location information of substitute wireless terminal;
According to the current location information and the preset position information, driving path is planned;
According to the driving path, control substitute wireless terminal is moved to the predeterminated position.
Further, the state acquisition module, is specifically used for:
Periodically acquire at least one wireless terminal can connection status;Or, after being wirelessly connected mission failure, starting
Obtain at least one corresponding wireless terminal of the wireless connection task can connection status.
Wherein, the substitute wireless terminal includes at least:Sweeping robot.
Wireless connection device provided by Embodiment 2 of the present invention realizes in the cordless communication network of wireless connection one
When platform equipment is in the state that can not be connected, by substituting, wireless terminal is moved to predeterminated position, realizes that this can not connect sets
Standby relevant connection is successfully established, and guarantees going on smoothly for wireless communication, realizes the transmission of wireless transmission task, is improved wireless
The reliability of communication network.
Wireless connection device provided by the embodiment of the present invention, which can be performed, provided by any embodiment of the invention wirelessly to be connected
Method is connect, has the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides, as shown in figure 3, the terminal includes place
Manage device 30, memory 31, input unit 32 and output device 33;The quantity of processor 30 can be one or more in terminal,
In Fig. 3 by taking a processor 30 as an example;Processor 30, memory 31, input unit 32 and output device 33 in terminal can be with
It is connected by bus or other modes, in Fig. 3 for being connected by bus.
Memory 31 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the wireless connection method in the embodiment of the present invention is (for example, state obtains mould
Block 210, location information determining module 220 and mobile control module 230).Processor 30 is stored in memory 31 by operation
Software program, instruction and module realize above-mentioned nothing thereby executing the various function application and data processing of equipment
Line connection method.
Memory 31 mainly include storing program area and storage data area, wherein storing program area can storage program area,
Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.In addition,
Memory 31 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 31 can be wrapped further
The memory remotely located relative to processor 30 is included, these remote memories can pass through network connection to equipment.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 32 can be used for receiving the number or character information of input, and generate with the user setting of equipment and
The related key signals input of function control.Output device 33 may include that display screen etc. shows equipment.
Example IV
The embodiment of the present invention four also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
When being executed by computer processor for executing a kind of wireless connection method, this method includes for row instruction:
Obtain at least one wireless terminal can connection status;
Determine at least one described wireless terminal in it is non-can connection status wireless terminal destination locations information;
According to the destination locations information, determine that predeterminated position, control substitute wireless terminal are moved to the predeterminated position
So that it is described in it is non-can corresponding wirelesss connection of wireless terminal of connection status complete foundation.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed wireless connection provided by any embodiment of the invention
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.