[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105228201B - The switching method and device of relay router - Google Patents

The switching method and device of relay router Download PDF

Info

Publication number
CN105228201B
CN105228201B CN201510660847.7A CN201510660847A CN105228201B CN 105228201 B CN105228201 B CN 105228201B CN 201510660847 A CN201510660847 A CN 201510660847A CN 105228201 B CN105228201 B CN 105228201B
Authority
CN
China
Prior art keywords
relay router
switching condition
signal strength
router
switching
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.)
Active
Application number
CN201510660847.7A
Other languages
Chinese (zh)
Other versions
CN105228201A (en
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.)
Xiaomi Inc
Beijing Smartmi Technology Co Ltd
Original Assignee
Xiaomi Inc
Beijing Smartmi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc, Beijing Smartmi Technology Co Ltd filed Critical Xiaomi Inc
Priority to CN201510660847.7A priority Critical patent/CN105228201B/en
Publication of CN105228201A publication Critical patent/CN105228201A/en
Application granted granted Critical
Publication of CN105228201B publication Critical patent/CN105228201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

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

Abstract

本公开是关于中继路由器的切换方法及装置,所述方法包括:检测当前连接的中继路由器是否满足第一切换条件,所述第一切换条件用于表征不满足通信质量的条件;若所述当前连接的中继路由器满足所述第一切换条件,则从预设中继路由器列表中选取一个满足第二切换条件的中继路由器,所述第二切换条件用于表征满足通信质量的条件;从所述当前连接的中继路由器切换至所选取的中继路由器。因此,本公开可以实现终端自动切换中继路由器,避免由于只固定连接一个中继路由器而造成的通信质量变差的问题,从而提高了用户体验。

The present disclosure relates to a relay router switching method and device, the method comprising: detecting whether the currently connected relay router satisfies a first switching condition, and the first switching condition is used to represent a condition that does not meet the communication quality; if the If the currently connected relay router satisfies the first switching condition, select a relay router satisfying the second switching condition from the preset relay router list, and the second switching condition is used to characterize the condition of satisfying the communication quality ; Switch from the currently connected relay router to the selected relay router. Therefore, in the present disclosure, the terminal can automatically switch the relay router, avoiding the problem of poor communication quality due to only one relay router being fixedly connected, thereby improving user experience.

Description

The switching method and device of relay router
Technical field
This disclosure relates to the switching method and device of network communication technology field more particularly to relay router.
Background technique
With the continuous development of network communication technology, the application of relay router is also more and more extensive.In the related technology, family It, can be by multiple relay routers, for example, 3 or 4 relay routers, form a bigger wireless network when front yard line is arranged net Network, terminal are generally fixedly connected with one of relay router and are communicated with server.But when terminal location becomes When change, for example, covering model close to the wireless signal coverage edge that the relay router currently connected provides, or even beyond it Enclose, at this time the relay router provide wireless signal will be especially weak, even without, thus affect terminal and server it Between communication quality, also reduce user experience.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides the switching method of relay router and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of switching method of relay router is provided, which comprises
Detect whether the relay router currently connected meets the first switching condition, first switching condition is for characterizing It is unsatisfactory for the condition of communication quality;
If the relay router currently connected meets first switching condition, from default relay router list The middle relay router for choosing second switching condition of satisfaction, second switching condition meet communication quality for characterizing Condition;
Selected relay router is switched to from the relay router currently connected.
Optionally, first switching condition includes that the wireless signal strength value of relay router offer is less than preset signals Intensity threshold;Second switching condition includes the wireless signal strength value of relay router offer not less than the preset signals Intensity threshold.
It is optionally, described to detect whether the relay router currently connected meets the first switching condition, comprising:
Detect the wireless signal strength value that the relay router currently connected provides;
If the wireless signal strength value detected is less than preset signal strength threshold value, it is determined that corresponding currently to connect Meet first switching condition after router.
Optionally, the transistroute that second switching condition of satisfaction is chosen from default relay router list Device, comprising:
Detect the wireless signal strength value that each relay router provides in the default relay router list;
If the wireless signal strength value detected is not less than preset signal strength threshold value, it is determined that corresponding relay router For the relay router for meeting second switching condition;
If it is determined that only one meets the relay router of second switching condition, then using the relay router as institute The relay router of selection.
If it is determined that at least two meet the relay router of second switching condition, then chosen from described at least two One as selected relay router.
It is optionally, described that one is chosen from described at least two as selected relay router, comprising:
It is chosen from least two relay router selected by the maximum relay router conduct of wireless signal strength value The relay router taken.
It is optionally, described that selected relay router is switched to from the relay router currently connected, comprising:
It disconnects, and cancels and the relay router currently connecting with the relay router currently connecting Binding relationship;
The connection with selected relay router is established, and is bound with selected relay router.
Optionally, the method also includes:
The default relay router list that server is sent is received, the default relay router list includes at least One relay router, at least one described relay router are all relay router trusty.
According to the second aspect of an embodiment of the present disclosure, a kind of switching device of relay router is provided, described device includes:
Detection module is configured as detecting the relay router currently connected and whether meets the first switching condition, and described One switching condition is for characterizing the condition for being unsatisfactory for communication quality;
Module is chosen, is detected described in the relay router satisfaction currently connected if being configured as the detection module First switching condition then chooses the relay router of second switching condition of satisfaction, institute from default relay router list The second switching condition is stated for characterizing the condition for meeting communication quality;
Switching module is configured as switching to selected by the selection module from the relay router currently connected Relay router.
Optionally, first switching condition includes that the wireless signal strength value of relay router offer is less than preset signals Intensity threshold;Second switching condition includes the wireless signal strength value of relay router offer not less than the preset signals Intensity threshold.
Optionally, the detection module includes:
First detection sub-module is configured as detecting the wireless signal strength that the relay router currently connected provides Value;
First determines submodule, presets if being configured as the wireless signal strength value that the detection sub-module detects and being less than Signal strength threshold, it is determined that the corresponding relay router currently connected meets first switching condition.
Optionally, the selection module includes:
Second detection sub-module is configured as detecting each relay router in the default relay router list and provides Wireless signal strength value;
Second determines submodule, if it is not small to be configured as the wireless signal strength value that second detection sub-module detects In preset signal strength threshold value, it is determined that corresponding relay router is the relay router for meeting second switching condition;
First chooses submodule, if being configured as described second determines that submodule determines that only one meets described second and cuts The relay router of condition is changed, then using the relay router as selected relay router.
Second chooses submodule, if being configured as described second determines that submodule determines that at least two meet described second and cut The relay router of condition is changed, then chooses one from described at least two as selected relay router.
Optionally, the second selection submodule includes:
Third chooses submodule, is configured as choosing wireless signal strength value most from least two relay router Big relay router is as selected relay router.
Optionally, the switching module includes:
Connection disconnect submodule, be configured as disconnecting with the relay router currently connecting, and cancel with The binding relationship of the relay router currently connected;
Connect setting up submodule, be configured as establishing the connection with selected relay router, and with it is selected Relay router is bound.
Optionally, described device further include:
Receiving module is configured as receiving the default relay router list that server is sent, the default relaying Router-list includes at least one relay router, at least one described relay router is all transistroute trusty Device.
According to the third aspect of an embodiment of the present disclosure, a kind of switching device of relay router is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detect whether the relay router currently connected meets the first switching condition, first switching condition is for characterizing It is unsatisfactory for the condition of communication quality;
If the relay router currently connected meets first switching condition, from default relay router list The middle relay router for choosing second switching condition of satisfaction, second switching condition meet communication quality for characterizing Condition;
Selected relay router is switched to from the relay router currently connected.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Terminal can detecte whether the relay router currently connected meets the first switching condition in the disclosure, if currently connecting The relay router connect meets the first switching condition, then chooses one from default relay router list and meet the second switching item The relay router of part switches to selected relay router from the relay router currently connected, to realize terminal Automatically switch relay router, avoid as be only fixedly connected with a relay router and caused by poor communications quality ask Topic, to improve user experience.
Terminal can also detect the wireless signal strength value that the relay router currently connected provides in the disclosure, to judge Whether the relay router currently connected meets the first switching condition, thus improve to the relay router currently connected whether The detection speed for meeting communication quality, is conducive to the communication conditions for the relay router that timely learning currently connects.
Terminal can also detect the wireless communication that each relay router provides in default relay router list in the disclosure Number intensity value, the wireless signal strength value detected are not less than preset signal strength threshold value, it is determined that corresponding relay router For the relay router for meeting the second switching condition, however, it is determined that only one meets the relay router of the second switching condition, then Using the relay router as selected relay router, however, it is determined that at least two meet the transistroute of the second switching condition Device, then from least two choose one as selected relay router, thus realize by the second switching condition come The relay router for meeting communication quality is chosen, improves the selection speed of relay router, and then improve relay router Switch speed.
In the disclosure terminal can also be disconnected with the relay router currently connecting, and cancelled and currently connect The binding relationship of relay router, and establish the connection with selected relay router, and with selected relaying road It is bound by device, enables the terminal to be switched on the better relay router of communication quality, to ensure that terminal kimonos Communication between business device is smooth.
Terminal can also receive the default relay router list of server transmission, and default transistroute in the disclosure Each relay router is all relay router trusty in device list, to ensure that the reliable of relay router switching Property.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of disclosure switching method flow chart of relay router shown according to an exemplary embodiment;
Fig. 2 is the switching method flow chart of the disclosure another relay router shown according to an exemplary embodiment;
Fig. 3 is the switching method flow chart of the disclosure another relay router shown according to an exemplary embodiment;
Fig. 4 is the switching method flow chart of the disclosure another relay router shown according to an exemplary embodiment;
Fig. 5 is a kind of disclosure application scenarios of the switching method of relay router shown according to an exemplary embodiment Figure;
Fig. 6 is a kind of disclosure block diagram of the switching device of relay router shown according to an exemplary embodiment;
Fig. 7 is the block diagram of the switching device of the disclosure another relay router shown according to an exemplary embodiment;
Fig. 8 is the block diagram of the switching device of the disclosure another relay router shown according to an exemplary embodiment;
Fig. 9 is the block diagram of the switching device of the disclosure another relay router shown according to an exemplary embodiment;
Figure 10 is the block diagram of the switching device of the disclosure another relay router shown according to an exemplary embodiment;
Figure 11 is the block diagram of the switching device of the disclosure another relay router shown according to an exemplary embodiment;
Figure 12 is the one of the disclosure a kind of switching device for relay router shown according to an exemplary embodiment Structural schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
As shown in Figure 1, Fig. 1 is a kind of disclosure switching method of relay router shown according to an exemplary embodiment Flow chart, this method can be applied in terminal, comprising the following steps:
In step 110, whether the relay router that detection currently connects meets the first switching condition.Wherein, this first Switching condition is for characterizing the condition for being unsatisfactory for communication quality.
Terminal in the disclosure can be any intelligent terminal with function of surfing the Net, for example, can be specially mobile phone, flat Plate computer, PDA (Personal Digital Assistant, personal digital assistant) etc..Wherein, terminal can pass through wireless office Domain net couple in router, and pass through the server on router access public network.
In the embodiment of the present disclosure, the first switching condition can be what terminal was set in advance according to the actual situation, can also take It is engaged in what device was specified, when the communication quality which refers to that relay router provides is unsatisfactory for the communication requirement of terminal Condition.
The content that first switching condition was related to arrive may be very much, such as: wireless signal strength value, channel width etc.. Wherein, wireless signal strength value can be major parameter.So first switching condition may include: that relay router provides Wireless signal strength value be less than preset signal strength threshold value.
In the step 120, if the relay router currently connected meets the first switching condition, from default relay router The relay router of second switching condition of satisfaction is chosen in list.Wherein, which leads to for characterizing to meet Believe the condition of quality.
In the embodiment of the present disclosure, if the relay router currently connected meets the first switching condition, show currently to connect Relay router be unsatisfactory for the communication requirement of terminal, in order to guarantee the communication quality of terminal, demand switches to full at this time The relay router of the communication requirement of sufficient terminal.Meet second so needing to choose one from default relay router list The relay router of switching condition.
Wherein, the second switching condition can be what terminal was set in advance according to the actual situation, can also be specified with server, Second switching condition refers to the condition when communication quality that relay router provides can satisfy the communication requirement of terminal.
The content that second switching condition was related to arrive may be very much, such as: wireless signal strength value, channel width etc.. Wherein, wireless signal strength value can be major parameter.So second switching condition may include: that relay router provides Wireless signal strength value be not less than preset signal strength threshold value relay router.
In addition, default relay router list can be server offer, it is also possible to terminal and mentions according to the actual situation Preceding setting.It may include at least one relay router in the default relay router list.Wherein, each relay router It is all relay router trusty.
In step 130, selected relay router is switched to from the relay router currently connected.
As seen from the above-described embodiment, by detecting whether the relay router currently connected meets the first switching condition, if The relay router currently connected meets the first switching condition, then chooses one from default relay router list and meet second The relay router of switching condition switches to selected relay router from the relay router currently connected, to realize Terminal automatically switches relay router, avoid as be only fixedly connected with relay router and caused by poor communications quality The problem of, to improve user experience.
As shown in Fig. 2, Fig. 2 is the switching side of the disclosure another relay router shown according to an exemplary embodiment Method flow chart, this method can be applied in terminal, and establish on the basis of method shown in Fig. 1, examine in executing step 110 When whether the relay router that survey currently connects meets the first switching condition, it may comprise steps of:
In step 210, the wireless signal strength value that the relay router that detection currently connects provides.
In the embodiment of the present disclosure, an important parameter of relay router is exactly wireless signal strength value, the wireless signal The size of intensity value directly affects the area coverage size of wireless signal.When wireless signal strength value is bigger, the wireless signal Area coverage is with regard to bigger;When wireless signal strength value is smaller, the wireless signal area coverage is with regard to smaller.
In a step 220, if the wireless signal strength value detected is less than preset signal strength threshold value, it is determined that corresponding The relay router currently connected meets the first switching condition.
In the embodiment of the present disclosure, the first switching condition includes the wireless signal strength value of relay router offer less than default Signal strength threshold.
If the wireless signal strength value detected is less than preset signal strength threshold value, show the nothing that the relay router provides Line signal is weaker to meet the first switching condition, needs to automatically switch to the stronger relay router of wireless signal.
As seen from the above-described embodiment, the wireless signal strength value provided by detecting the relay router currently connected, comes Judge whether the relay router currently connected meets the first switching condition, to improve to the relay router currently connected The detection speed for whether meeting communication quality, is conducive to the communication conditions for the relay router that timely learning currently connects.
As shown in figure 3, Fig. 3 is the switching side of the disclosure another relay router shown according to an exemplary embodiment Method flow chart, this method can be applied in terminal, and establish on the basis of method shown in Fig. 1, execute step 120 in from When choosing the relay router of second switching condition of satisfaction in default relay router list, it may comprise steps of:
In the step 310, the wireless signal strength that each relay router provides in default relay router list is detected Value.
In the embodiment of the present disclosure, default relay router list can be server offer, the default relay router It may include at least one relay router in list.Wherein, each relay router is all relay router trusty.
In step 320, if the wireless signal strength value detected is not less than preset signal strength threshold value, it is determined that corresponding Relay router be meet the second switching condition relay router.
In the embodiment of the present disclosure, the second switching condition includes the wireless signal strength value of relay router offer not less than pre- If signal strength threshold.
If the wireless signal strength value detected is not less than preset signal strength threshold value, show what the relay router provided Wireless signal meets the second switching condition, can switch to the transistroute from the relay router currently connected Device.
In a step 330, however, it is determined that only one meets the relay router of the second switching condition, then by the transistroute Device is as selected relay router.
In step 340, however, it is determined that at least two meet the relay router of the second switching condition, then from least two One is chosen as selected relay router.
Such as: the maximum relay router of wireless signal strength value is chosen from least two determining relay routers.
As seen from the above-described embodiment, it is provided by each relay router in the default relay router list of detection wireless Signal strength indication, the wireless signal strength value detected are not less than preset signal strength threshold value, it is determined that corresponding transistroute Device is the relay router for meeting the second switching condition, however, it is determined that only one meets the relay router of the second switching condition, Then using the relay router as selected relay router, however, it is determined that at least two meet the relaying road of the second switching condition By device, then one is chosen from least two as selected relay router, to realize through the second switching condition The relay router for meeting communication quality is chosen, improves the selection speed of relay router, and then improve transistroute The switch speed of device.
As indicated at 4, Fig. 4 is the switching method of the disclosure another relay router shown according to an exemplary embodiment Flow chart, this method can be applied in terminal, and establish on the basis of method shown in Fig. 1, from working as in executing step 130 When the relay router of preceding connection switches to selected relay router, it may comprise steps of:
In step 410, it disconnects, and cancels and the relaying road that currently connect with the relay router currently connecting By the binding relationship of device.
At step 420, establish the connection with selected relay router, and with selected relay router into Row binding.
As seen from the above-described embodiment, by being disconnected with the relay router currently connecting, and cancel and currently connect The binding relationship of the relay router connect, and establish the connection with selected relay router, and with it is selected in It is bound after router, enables the terminal to be switched on the better relay router of communication quality, to ensure that terminal Communication between server is smooth.
In an open embodiment, in method shown in Fig. 1 to Fig. 4, can also include:
The default relay router list that server is sent is received, which includes at least one After router, at least one described relay router is all relay router trusty.
As seen from the above-described embodiment, the default relay router list of server transmission, and default relaying be can receive Each relay router is all relay router trusty in router-list, thus ensure that relay router switching can By property.
As shown in figure 5, Fig. 5 is a kind of disclosure switching method of relay router shown according to an exemplary embodiment Application scenario diagram.The application scenarios include terminal, currently connect relay router i.e. relay router 1, default relaying road By at least one relay router, that is, relay router 2 and server in device list.
Whether terminal detection relay router 1 meets the first switching condition.Wherein, the first switching condition is discontented for characterizing The condition of sufficient communication quality.
If detecting, relay router 1 meets the first switching condition, and terminal is chosen from default relay router list The relay router 2 of one the second switching condition of satisfaction.Wherein, the second switching condition is for characterizing the item for meeting communication quality Part.
Terminal switches to selected relay router 2 from relay router 1.
In addition, terminal can also receive the default relay router list of server transmission, the default relay router column Table includes at least one relay router 2, and each relay router 2 is all relay router trusty.
Corresponding with the switching method embodiment of aforementioned relay router, the disclosure additionally provides the switching of relay router The embodiment of device.
As shown in fig. 6, Fig. 6 is a kind of disclosure switching device of relay router shown according to an exemplary embodiment Block diagram, described device can be applied in terminal, and the switching method for executing relay router shown in FIG. 1, described Device includes: detection module 61, chooses module 62 and switching module 63.
Wherein, detection module 61 are configured as detecting whether the relay router currently connected meets the first switching condition, First switching condition is for characterizing the condition for being unsatisfactory for communication quality;
Module 62 is chosen, if being configured as the detection module detects that the relay router currently connected meets institute The first switching condition is stated, then chooses the relay router of second switching condition of satisfaction from default relay router list, Second switching condition is for characterizing the condition for meeting communication quality;
Switching module 63 is configured as switching to selected by the selection module from the relay router currently connected Relay router.
Above-mentioned first switching condition may include that the wireless signal strength value of relay router offer is strong less than preset signals Spend threshold value;Second switching condition may include the wireless signal strength value of relay router offer not less than preset signal strength threshold Value.
As seen from the above-described embodiment, by detecting whether the relay router currently connected meets the first switching condition, if The relay router currently connected meets the first switching condition, then chooses one from default relay router list and meet second The relay router of switching condition switches to selected relay router from the relay router currently connected, to realize Terminal automatically switches relay router, avoid as be only fixedly connected with relay router and caused by poor communications quality The problem of, to improve user experience.
As shown in fig. 7, Fig. 7 is the switching dress of the disclosure another relay router shown according to an exemplary embodiment The block diagram set, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the detection module 61 may include: the first detection Submodule 71 and first determines submodule 72.
Wherein, the first detection sub-module 71 is configured as detecting the wireless of the relay router offer currently connected Signal strength indication;
First determines submodule 72, is less than in advance if being configured as the wireless signal strength value that the detection sub-module detects If signal strength threshold, it is determined that the corresponding relay router currently connected meets first switching condition.
As seen from the above-described embodiment, the wireless signal strength value provided by detecting the relay router currently connected, comes Judge whether the relay router currently connected meets the first switching condition, to improve to the relay router currently connected The detection speed for whether meeting communication quality, is conducive to the communication conditions for the relay router that timely learning currently connects.
As shown in figure 8, Fig. 8 is the switching dress of the disclosure another relay router shown according to an exemplary embodiment The block diagram set, for the embodiment on the basis of earlier figures 6 or 7 illustrated embodiment, the selection module 62 may include: the second inspection It surveys submodule 81, second and determines that submodule 82, first chooses submodule 83 and second and chooses submodule 84.
Wherein, the second detection sub-module 81 is configured as detecting each relaying road in the default relay router list The wireless signal strength value provided by device;
Second determines submodule 82, if being configured as wireless signal strength value that second detection sub-module detects not Less than preset signal strength threshold value, it is determined that corresponding relay router is the transistroute for meeting second switching condition Device;
First chooses submodule 83, if being configured as described second determines that submodule determines that only one meets described second The relay router of switching condition, then using the relay router as selected relay router.
Second chooses submodule 84, if being configured as described second determines that submodule determines that at least two meet described second The relay router of switching condition then chooses one as selected relay router from described at least two.
As seen from the above-described embodiment, it is provided by each relay router in the default relay router list of detection wireless Signal strength indication, the wireless signal strength value detected are not less than preset signal strength threshold value, it is determined that corresponding transistroute Device is the relay router for meeting the second switching condition, however, it is determined that only one meets the relay router of the second switching condition, Then using the relay router as selected relay router, however, it is determined that at least two meet the relaying road of the second switching condition By device, then one is chosen from least two as selected relay router, to realize through the second switching condition The relay router for meeting communication quality is chosen, improves the selection speed of relay router, and then improve transistroute The switch speed of device.
As shown in figure 9, Fig. 9 is the switching dress of the disclosure another relay router shown according to an exemplary embodiment The block diagram set, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 8, the second selection submodule 84 may include: the Three choose submodule 91.
Wherein, third chooses submodule 91, is configured as choosing wireless signal from least two relay router The maximum relay router of intensity value is as selected relay router.
As shown in Figure 10, Figure 10 is the switching of the disclosure another relay router shown according to an exemplary embodiment The block diagram of device, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the switching module 63 may include: that connection is disconnected Open submodule 101 and connection setting up submodule 102.
Wherein, connection disconnects submodule 101, is configured as disconnecting with the relay router currently connecting, with And cancel and the binding relationship of the relay router currently connecting;
Connect setting up submodule 102, be configured as establishing the connection with selected relay router, and with it is selected Relay router bound.
As seen from the above-described embodiment, by being disconnected with the relay router currently connecting, and cancel and currently connect The binding relationship of the relay router connect, and establish the connection with selected relay router, and with it is selected in It is bound after router, enables the terminal to be switched on the better relay router of communication quality, to ensure that terminal Communication between server is smooth.
As shown in figure 11, Figure 11 is the switching of the disclosure another relay router shown according to an exemplary embodiment The block diagram of device, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, described device can also include: receiving module 111。
Wherein, receiving module 111 are configured as receiving the default relay router list that server is sent, described Default relay router list includes at least one relay router, at least one described relay router be all it is trusty in After router.
As seen from the above-described embodiment, the default relay router list sent by receiving server, and default relaying Each relay router is all relay router trusty in router-list, thus ensure that relay router switching can By property.
With Fig. 6 correspondingly, the disclosure also provides the switching device of another relay router, described device be can be applied to In terminal, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detect whether the relay router currently connected meets the first switching condition, first switching condition is for characterizing It is unsatisfactory for the condition of communication quality;
If the relay router currently connected meets first switching condition, from default relay router list The middle relay router for choosing second switching condition of satisfaction, second switching condition meet communication quality for characterizing Condition;
Selected relay router is switched to from the relay router currently connected.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As shown in figure 12, Figure 12 is a kind of disclosure cutting for relay router shown according to an exemplary embodiment A structural schematic diagram (terminal equipment side) for changing device 1200.For example, device 1200 can be the mobile electricity with routing function Words, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment are a Personal digital assistant etc..
Referring to Fig.1 2, device 1200 may include following one or more components: processing component 1202, memory 1204, Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in device 1200.These data Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1208 includes a front camera and/or rear camera.When device 1200 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented Estimate.For example, sensor module 1214 can detecte the state that opens/closes of device 1200, the relative positioning of component, such as institute The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1 The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of switching method of relay router, which is characterized in that the described method includes:
Detect whether the relay router currently connected meets the first switching condition, first switching condition is discontented for characterizing The condition of sufficient communication quality;
If the relay router currently connected meets first switching condition, selected from default relay router list The relay router of second switching condition of satisfaction is taken, second switching condition is for characterizing the item for meeting communication quality Part;
Selected relay router is switched to from the relay router currently connected;
The method also includes:
The default relay router list that server is sent is received, the default relay router list includes at least one Relay router, at least one described relay router are all relay router trusty.
2. the method according to claim 1, wherein first switching condition includes what relay router provided Wireless signal strength value is less than preset signal strength threshold value;Second switching condition includes the wireless communication that relay router provides Number intensity value is not less than the preset signal strength threshold value.
3. according to the method described in claim 2, it is characterized in that, described detect whether the relay router currently connected meets First switching condition, comprising:
Detect the wireless signal strength value that the relay router currently connected provides;
If the wireless signal strength value detected is less than preset signal strength threshold value, it is determined that the corresponding relaying road currently connected First switching condition is met by device.
4. according to the method in claim 2 or 3, which is characterized in that described to choose one from default relay router list A relay router for meeting the second switching condition, comprising:
Detect the wireless signal strength value that each relay router provides in the default relay router list;
If the wireless signal strength value detected is not less than preset signal strength threshold value, it is determined that corresponding relay router is full The relay router of foot second switching condition;
If it is determined that only one meets the relay router of second switching condition, then using the relay router as selected by Relay router;
If it is determined that at least two meet the relay router of second switching condition, then one is chosen from described at least two As selected relay router.
5. according to the method described in claim 4, it is characterized in that, described choose from described at least two selected by a conduct The relay router taken, comprising:
The maximum relay router of wireless signal strength value is chosen from least two relay router as selected Relay router.
6. the method according to claim 1, wherein described switch to from the relay router currently connected Selected relay router, comprising:
It disconnects with the relay router currently connecting, and cancels and being tied up with the relay router currently connecting Determine relationship;
The connection with selected relay router is established, and is bound with selected relay router.
7. a kind of switching device of relay router, which is characterized in that described device includes:
Detection module is configured as detecting whether the relay router currently connected meets the first switching condition, and described first cuts Condition is changed for characterizing the condition for being unsatisfactory for communication quality;
Module is chosen, if being configured as the detection module detects that the relay router currently connected meets described first Switching condition, then choose the relay router of second switching condition of satisfaction from default relay router list, and described the Two switching conditions are for characterizing the condition for meeting communication quality;
Switching module is configured as switching to relaying selected by the selection module from the relay router currently connected Router;
Described device further include:
Receiving module is configured as receiving the default relay router list that server is sent, the default transistroute Device list includes at least one relay router, at least one described relay router is all relay router trusty.
8. device according to claim 7, which is characterized in that first switching condition includes what relay router provided Wireless signal strength value is less than preset signal strength threshold value;Second switching condition includes the wireless communication that relay router provides Number intensity value is not less than the preset signal strength threshold value.
9. device according to claim 8, which is characterized in that the detection module includes:
First detection sub-module is configured as detecting the wireless signal strength value that the relay router currently connected provides;
First determines submodule, if being configured as the wireless signal strength value that the detection sub-module detects is less than preset signals Intensity threshold, it is determined that the corresponding relay router currently connected meets first switching condition.
10. device according to claim 8 or claim 9, which is characterized in that the selection module includes:
Second detection sub-module is configured as detecting the nothing that each relay router provides in the default relay router list Line signal strength indication;
Second determines submodule, is not less than in advance if being configured as the wireless signal strength value that second detection sub-module detects If signal strength threshold, it is determined that corresponding relay router is the relay router for meeting second switching condition;
First chooses submodule, if being configured as described second determines that submodule determines that only one meets the second switching item The relay router of part, then using the relay router as selected relay router;
Second chooses submodule, if being configured as described second determines that submodule determines that at least two meet the second switching item The relay router of part then chooses one as selected relay router from described at least two.
11. device according to claim 10, which is characterized in that described second, which chooses submodule, includes:
Third chooses submodule, and it is maximum to be configured as the selection wireless signal strength value from least two relay router Relay router is as selected relay router.
12. device according to claim 7, which is characterized in that the switching module includes:
Connection disconnect submodule, be configured as disconnecting with the relay router currently connecting, and cancel with it is described The binding relationship of the relay router currently connected;
Connect setting up submodule, be configured as establishing the connection with selected relay router, and with selected relaying Router is bound.
13. a kind of switching device of relay router, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detect whether the relay router currently connected meets the first switching condition, first switching condition is discontented for characterizing The condition of sufficient communication quality;
If the relay router currently connected meets first switching condition, selected from default relay router list The relay router of second switching condition of satisfaction is taken, second switching condition is for characterizing the item for meeting communication quality Part;
Selected relay router is switched to from the relay router currently connected;
The processor is also configured to
The default relay router list that server is sent is received, the default relay router list includes at least one Relay router, at least one described relay router are all relay router trusty.
CN201510660847.7A 2015-10-13 2015-10-13 The switching method and device of relay router Active CN105228201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510660847.7A CN105228201B (en) 2015-10-13 2015-10-13 The switching method and device of relay router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510660847.7A CN105228201B (en) 2015-10-13 2015-10-13 The switching method and device of relay router

Publications (2)

Publication Number Publication Date
CN105228201A CN105228201A (en) 2016-01-06
CN105228201B true CN105228201B (en) 2018-12-25

Family

ID=54996810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510660847.7A Active CN105228201B (en) 2015-10-13 2015-10-13 The switching method and device of relay router

Country Status (1)

Country Link
CN (1) CN105228201B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231640B (en) * 2016-07-29 2019-12-13 北京小米移动软件有限公司 Wireless access point switching method and device
CN107979844A (en) * 2016-12-30 2018-05-01 上海掌门科技有限公司 For accessing the method and apparatus of network
CN109246650B (en) * 2017-06-30 2021-09-21 中国电信股份有限公司 Vehicle-to-vehicle communication method and device, relay device and vehicle-to-vehicle communication system
CN107517486A (en) * 2017-08-29 2017-12-26 深圳市盛路物联通讯技术有限公司 Relay automatic routing method and device
CN108366406A (en) * 2018-01-26 2018-08-03 乐鑫信息科技(上海)有限公司 A kind of method of the interior switching root node of mesh networks
CN109286960B (en) * 2018-11-30 2021-09-21 广东美的制冷设备有限公司 Relay network, network distribution method and device thereof, and household appliance

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1799226A (en) * 2003-10-02 2006-07-05 松下电器产业株式会社 Router selecting method and router apparatus
CN102291791A (en) * 2011-09-08 2011-12-21 上海大学 Self-adaptive router soft switching method for wireless sensor network
CN103457743A (en) * 2012-05-31 2013-12-18 瑞昱半导体股份有限公司 network connection device
CN103686896A (en) * 2013-12-12 2014-03-26 广州市地下铁道总公司 Method for switching wireless access points and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1799226A (en) * 2003-10-02 2006-07-05 松下电器产业株式会社 Router selecting method and router apparatus
CN102291791A (en) * 2011-09-08 2011-12-21 上海大学 Self-adaptive router soft switching method for wireless sensor network
CN103457743A (en) * 2012-05-31 2013-12-18 瑞昱半导体股份有限公司 network connection device
CN103686896A (en) * 2013-12-12 2014-03-26 广州市地下铁道总公司 Method for switching wireless access points and terminal

Also Published As

Publication number Publication date
CN105228201A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105228201B (en) The switching method and device of relay router
CN105338083B (en) interface display method and device
CN105242556A (en) A speech control method and device of intelligent devices, a control device and the intelligent device
CN105204356B (en) Display methods, device and the terminal of application
CN104244045B (en) The method that control video pictures presents and device
CN105262512B (en) Switch the method and device of host
CN105288941A (en) Treadmill speed regulating method and device
CN104640166A (en) Communication method and device
CN105228118A (en) Call transferring method, device and terminal equipment
CN105162982A (en) Answering extension function display method and device
CN105549960B (en) Control the method and device of camera
CN105224171A (en) icon display method, device and terminal
CN107071862A (en) Account binding method and device and smart machine
CN104536669A (en) Information displaying method and device
CN105246068A (en) Method and device for selecting SIM (Subscriber Identity Module) card
CN105187671A (en) Recording method and device
CN105978984A (en) Method and device used for synchronizing images
CN105515923A (en) Equipment control method and device
CN105491632A (en) Wireless access point switching method and wireless access point switching device
CN105282867A (en) Network connection method and device
CN105389225A (en) Touch screen reporting point processing method and apparatus
CN105430469B (en) Playback method, device, terminal and the server of audio, video data
CN105119984B (en) Send the method and device of file
CN105188024B (en) Access the method, apparatus and system of network
CN104298576B (en) terminal test method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant