CN104683248B - The method and apparatus of switching working mode - Google Patents

The method and apparatus of switching working mode Download PDF

Info

Publication number
CN104683248B
CN104683248B CN201510081163.1A CN201510081163A CN104683248B CN 104683248 B CN104683248 B CN 104683248B CN 201510081163 A CN201510081163 A CN 201510081163A CN 104683248 B CN104683248 B CN 104683248B
Authority
CN
China
Prior art keywords
network
route pattern
wireless
routing device
auxiliary route
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
CN201510081163.1A
Other languages
Chinese (zh)
Other versions
CN104683248A (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
Original Assignee
Xiaomi Inc
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 filed Critical Xiaomi Inc
Priority to CN201510081163.1A priority Critical patent/CN104683248B/en
Publication of CN104683248A publication Critical patent/CN104683248A/en
Application granted granted Critical
Publication of CN104683248B publication Critical patent/CN104683248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present disclosure is on a kind of method and apparatus of switching working mode, belongs to field of computer technology.Methods described includes:In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device, when detecting upper level routing device with local disconnect, obtain the network identity of the local belonging network under wired auxiliary route pattern, and detect wireless network corresponding to network identity, if detecting wireless network corresponding to network identity, based on the wireless network, mode of operation is switched into default wireless auxiliary route pattern.Using the disclosure, the efficiency for being operated pattern switching can be improved.

Description

The method and apparatus of switching working mode
Technical field
The disclosure is directed to field of computer technology, especially with respect to a kind of method and apparatus of switching working mode.
Background technology
With the popularization of wireless network, increasing user is increased by multistage routing device or extended wireless net Network, experienced with improving existing wireless networking.Generally, in the network of multistage routing device, can include main routing device and Auxiliary routing device, the mode of operation of auxiliary routing device can include wired bypass by pattern and wireless auxiliary route pattern, wherein, have The auxiliary route pattern of line can include a variety of, such as wired access point mode, wired bridge mode, and wireless auxiliary route pattern can also Including a variety of, such as wireless relay pattern, wireless bridging pattern.Wherein, under access in radio dot pattern, the bypass as access point It is connected by equipment with main routing device by netting twine, under wireless relay pattern, the auxiliary routing device as relaying is with main road by setting Standby by wireless connection, both mode of operations are with bridging the difference of mode of operation, as relaying or the bypass of access point There is no one's own subnet, not responsible subnet management by equipment.
User can select a kind of mode of operation, work of the routing device based on selection according to actual conditions for routing device Operation mode is operated, and the process of routing device mode of operation switching can be:The work that user passes through terminal access routing device Operation mode sets interface, in the mode of operation sets interface, selects a kind of mode of operation, now can then trigger the routing device Mode of operation is switched to the mode of operation of user's selection.
The content of the invention
In order to overcome problem present in correlation technique, present disclose provides a kind of method of switching working mode and dress Put.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of switching working mode, methods described include:
In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device;
When detecting the upper level routing device with local disconnect, obtain locally in wired bypass by mould The network identity of belonging network under formula, and detect wireless network corresponding to the network identity;
If detecting wireless network corresponding to the network identity, based on the wireless network, mode of operation is cut It is changed to default wireless auxiliary route pattern.
Alternatively, wired auxiliary route pattern is access in radio dot pattern, and the default wireless auxiliary route pattern is Wireless relay pattern.
Alternatively,, will based on the wireless network if described detect wireless network corresponding to the network identity Mode of operation switches to default wireless auxiliary route pattern, including:
If detecting wireless network corresponding to the network identity, according to wired auxiliary route pattern for prestoring with The corresponding relation of wireless auxiliary route pattern, it is determined that the first wireless auxiliary route pattern corresponding to current wired auxiliary route pattern;
Based on the wireless network, mode of operation is switched into the described first wireless auxiliary route pattern.
Alternatively, the network identity for obtaining the local belonging network under wired auxiliary route pattern, including:
Obtain the network identity of the local belonging network under wired auxiliary route pattern prestored;Or
The interface data of the network identity query interface prestored is sent to and is locally created the end of data connection End;The network identity confirmation message that the terminal is sent is received, wherein, carry user in the network identity confirmation message and exist The network identity inputted in the network identity query interface.
Alternatively, methods described also includes:
If being not detected by wireless network corresponding to the network identity, to the terminal being connected with data are locally created Send the prompting message of network connection failure.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of switching working mode, described device include:
Detection module, in the state of wired auxiliary route pattern, detecting the wired connection with upper level routing device State;
Acquisition module, for when detecting the upper level routing device with local disconnect, obtaining local in institute The network identity of belonging network under wired auxiliary route pattern is stated, and detects wireless network corresponding to the network identity;
Handover module, if for detecting wireless network corresponding to the network identity, based on the wireless network, Mode of operation is switched into default wireless auxiliary route pattern.
Alternatively, wired auxiliary route pattern is access in radio dot pattern, and the default wireless auxiliary route pattern is Wireless relay pattern.
Alternatively, the handover module, including:
Determination sub-module, if for detecting wireless network corresponding to the network identity, according to what is prestored The corresponding relation of wired auxiliary route pattern and wireless auxiliary route pattern, it is determined that the first nothing corresponding to current wired auxiliary route pattern The auxiliary route pattern of line;
Switching submodule, for based on the wireless network, mode of operation to be switched into the described first wireless bypass by mould Formula.
Alternatively, the acquisition module, including:
Acquisition submodule, for obtaining the network of the local belonging network under wired auxiliary route pattern prestored Mark;Or
The acquisition module, including:
Sending submodule, for the interface data of the network identity prestored query interface to be sent to and be locally created There is the terminal that data connect;
Receiving submodule, the network identity confirmation message sent for receiving the terminal, wherein, the network identity is true Recognize in message and carry the network identity that user inputs in the network identity query interface.
Alternatively, described device also includes:
Sending module, if for being not detected by wireless network corresponding to the network identity, to being locally created The terminal of data connection sends the prompting message of network connection failure.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of switching working mode, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device;
When detecting the upper level routing device with local disconnect, obtain locally in wired bypass by mould The network identity of belonging network under formula, and detect wireless network corresponding to the network identity;
If detecting wireless network corresponding to the network identity, based on the wireless network, mode of operation is cut It is changed to default wireless auxiliary route pattern.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, in the state of wired auxiliary route pattern, detection and wired company of upper level routing device State is connect, when detecting upper level routing device with local disconnect, is obtained local affiliated under wired auxiliary route pattern The network identity of network, and wireless network corresponding to network identity is detected, if detecting wireless network corresponding to network identity, The wireless network is then based on, mode of operation is switched into default wireless auxiliary route pattern, so, routing device can enter automatically Row mode of operation switches, and the mode of operation of the routing device is manually selected or set without user, it is thus possible to improve It is operated the efficiency of pattern switching.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for switching working mode according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the method for switching working mode according to an exemplary embodiment;
Fig. 3 is a kind of system framework schematic diagram according to an exemplary embodiment;
Fig. 4 is a kind of schematic diagram of the device of switching working mode according to an exemplary embodiment;
Fig. 5 is a kind of schematic diagram of the device of switching working mode according to an exemplary embodiment;
Fig. 6 is a kind of schematic diagram of the device of switching working mode according to an exemplary embodiment;
Fig. 7 is a kind of schematic diagram of the device of switching working mode according to an exemplary embodiment;
Fig. 8 is a kind of schematic diagram of the device of switching working mode according to an exemplary embodiment;
Fig. 9 is a kind of structural representation of routing device according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of method of switching working mode, as shown in figure 1, the handling process of this method can With including the steps:
In a step 101, in the state of wired auxiliary route pattern, detection and the wired connection shape of upper level routing device State.
In a step 102, when detecting upper level routing device with local disconnect, obtain local in wired bypass By the network identity of belonging network under pattern, and detect wireless network corresponding to network identity.
In step 103, if detecting wireless network corresponding to network identity, based on the wireless network, by work Pattern switching is default wireless auxiliary route pattern.
In the embodiment of the present disclosure, in the state of wired auxiliary route pattern, detection and wired company of upper level routing device State is connect, when detecting upper level routing device with local disconnect, is obtained local affiliated under wired auxiliary route pattern The network identity of network, and wireless network corresponding to network identity is detected, if detecting wireless network corresponding to network identity, The wireless network is then based on, mode of operation is switched into default wireless auxiliary route pattern, so, routing device can enter automatically Row mode of operation switches, and the mode of operation of the routing device is manually selected or set without user, it is thus possible to improve It is operated the efficiency of pattern switching.
The embodiment of the present disclosure provides a kind of method of switching working mode, and the method for switching working mode can be used for road By in equipment, wherein, routing device can be the arbitrary equipment for having routing function, such as router, mobile phone, wireless network card. Multiple routing devices can be included in LAN, wherein main routing device and auxiliary routing device can be included, auxiliary routing device Upper level routing device is main routing device, the embodiment of the present disclosure with included in network a main routing device and a bypass by Carry out the detailed description of scheme exemplified by equipment, the executive agent of the embodiment of the present disclosure can supplemented by routing device.
As shown in Fig. 2 the embodiment of the present disclosure provide switching working mode method handling process can include it is as follows The step of:
In step 201, in the state of wired auxiliary route pattern, detection and the wired connection shape of upper level routing device State.
Wherein, wired auxiliary route pattern can be connected between main routing device and auxiliary routing device by netting twine, and lead to Cross both connection network cable transmission data mode of operation, wired mode of operation can include it is a variety of, such as wired access point mode, Wired bridge mode etc., routing device can be based on a kind of mode of operations (such as wired access point mode) in wired mode of operation It is operated.
In force, wired or wireless connection, auxiliary routing device can be passed through between main routing device and auxiliary routing device It can pass through wired or wireless connection with terminal.For auxiliary routing device before start-up operation, user can be the auxiliary routing device choosing Select a kind of mode of operation, such as wired auxiliary route pattern.Routing device is generally previously provided with the network address of acquiescence, such as 192.168.1.1 etc., the interface data that mode of operation sets interface is also stored with routing device.Main routing device can with it is auxiliary Routing device is connected by netting twine, and its processing procedure can be:User can be connected by terminal with main routing device, be connected into After work(, user can input the network address of default main routing device, input in the address field for the browser that terminal is installed After the completion of, terminal can obtain the boundary that the mode of operation prestored in main routing device sets interface by the network address Face data, terminal can show that the mode of operation sets interface, and user can set interface to select and set by the mode of operation A kind of mode of operation is put, the mode of operation that main routing device can be selected based on user is operated.Similarly, user can use Routing device selects and sets wired bypass by pattern supplemented by aforesaid way, such as wired access point mode, line relay pattern, After being provided with, one end of netting twine can be connected by user with the LAN connectivity port (such as LAN port) of main routing device, separately One end is connected with the wide area network connectivity port of auxiliary routing device, wherein, wide area network connectivity port can be the WAN in routing device (Wide Area Network, wide area network) port, so, auxiliary routing device can receive main routing device and be sent by netting twine Network data.
After the completion of above-mentioned setting up procedure, the terminal of connection is established with auxiliary routing device to send data to auxiliary routing device Request, and then, auxiliary routing device can be to main road by the device forwards request of data, so that terminal obtains corresponding data.Together When, auxiliary routing device can detect wide area network connectivity port and upper level in real time in the state of above-mentioned wired auxiliary route pattern The wired connection state of routing device, wherein, routing device detection and the mode of the wired connection state of upper level routing device Can with varied, for example, routing device can by detect wide area network connectivity port whether there is lasting electric signal to input come Judge whether wide area network connectivity port keeps connecting with upper level routing device.
In step 202, when detecting upper level routing device with local disconnect, obtain local in wired bypass By the network identity of belonging network under pattern, and detect wireless network corresponding to network identity.
Wherein, network identity can be the network name of wireless network, SSID (Service Set Identifier, clothes Business set identifier) etc..
In force, connected between main routing device and auxiliary routing device by netting twine, so, if main routing device with It is distant between auxiliary routing device, and user does not have between sufficiently long netting twine, or main routing device and auxiliary routing device Because the presence of barrier can not be connected by netting twine, or the connection between two routing devices disconnects that (such as user is not suddenly Carefully netting twine is extracted from the port of routing device etc.), then auxiliary routing device can be caused to cannot connect to main routing device institute The network of category and be stopped.Do not have when auxiliary routing device is detected in the wide area network connectivity port being connected with upper level routing device When having electric signal input, it may be determined that the wide area network connectivity port of itself disconnects with upper level routing device, now, bypass The reception of wireless signals function of itself can be opened by equipment, surrounding certain limit can be obtained by way of active scan The network identity of interior wireless network.Connected, and be operated in wired by netting twine between auxiliary routing device and main routing device During the state of auxiliary route pattern, auxiliary routing device can obtain the network identity of itself current belonging network, and be stored in bypass By in the memory cell of equipment, so, the network that auxiliary routing device can prestore the network identity and auxiliary routing device Mark is contrasted, if two network identities are identical, there is routing device supplemented by the network identity that can determine to get The network identity of belonging network under the auxiliary route pattern of line, if two network identity differences, the network got can be determined Mark is not the network identity of auxiliary routing device belonging network under wired auxiliary route pattern, and now, auxiliary routing device can be after It is continuous to carry out above-mentioned processing procedure, until the network identity identical network identity for finding and prestoring.
Alternatively, in above-mentioned steps 202, auxiliary routing device obtains the net of the local belonging network under wired auxiliary route pattern The processing mode of network mark two kinds of optional processing modes presented below, can include herein below with varied:
Mode one, obtain the network identity of the local belonging network under wired auxiliary route pattern prestored.
In force, under above-mentioned wired auxiliary route pattern, auxiliary routing device can send network mark to main routing device Know and obtain request, the network identity obtains the device identification that auxiliary routing device can be carried in request, and main routing device receives After obtaining request to network identity, whether routing device corresponding to the device identification can be judged by device identification therein It is the auxiliary routing device of itself, if it is the bypass of itself by setting that main routing device, which determines routing device corresponding to the device identification, It is standby, then network identity corresponding to main routing device can be sent to auxiliary routing device, auxiliary routing device receives the network mark After knowledge, it can be operated based on wireless network corresponding to the network identity, and the network identity can be stored in itself In memory cell, now, auxiliary routing device can be consistent with the network identity of main routing device and corresponding password.When auxiliary When routing device detects upper level routing device with local disconnect, the network can be extracted in the memory cell of itself Mark.
Technical staff can set the interface for obtaining network identity for each routing device in advance, and the interface can be based on Some Data Transport Protocols and set, such as UDP (User Datagram Protocol, UDP) etc..Above-mentioned Under wired auxiliary route pattern, if the network identity of auxiliary routing device and main routing device is inconsistent, or, auxiliary routing device with The network identity of main routing device and corresponding password are inconsistent, then auxiliary routing device can be based on default Data Transport Protocol The interface of (such as UDP etc.) obtains network identity corresponding to main routing device, i.e., by sending corresponding UDP numbers to main routing device Network identity corresponding to main routing device is obtained according to the mode of bag, and is stored it in the memory cell of itself, wherein passing through The processing procedure that corresponding interface obtains network identity corresponding to main routing device may refer to above-mentioned related content, herein no longer Repeat.
Mode two, the interface data of the network identity query interface prestored is sent to and has been locally created data company The terminal connect;The network identity confirmation message that receiving terminal is sent, wherein, user is carried in network identity confirmation message in net The network identity inputted in network mark query interface.
In force, under above-mentioned wired auxiliary route pattern, if the network identity of auxiliary routing device and main routing device It is inconsistent, or, auxiliary routing device and the network identity of main routing device and corresponding password are inconsistent, and by default The interface of Data Transport Protocol can not also get network identity corresponding to main routing device, then the network that will can be prestored The interface data of mark query interface is sent to and is locally created the terminal of data connection, and terminal receives network identity inquiry After the interface data at interface, network identity query interface can be shown, can include prompting user in network identity query interface The prompt message of network identity corresponding to main routing device under above-mentioned wired auxiliary route pattern is inputted, user can be in network identity Network identity and corresponding password corresponding to above-mentioned main routing device are inputted in query interface, after the completion of input, user can point The determination button hit in network identity query interface, triggering terminal obtain the data in network identity query interface, generate network Identity validation message, is sent to auxiliary routing device, and auxiliary routing device can receive the network identity confirmation message.
In step 203, if detecting wireless network corresponding to network identity, based on the wireless network, by work Pattern switching is default wireless auxiliary route pattern.
Wherein, wireless auxiliary route pattern can be between main routing device and auxiliary routing device by wireless connection, and then The mode of operation of data is transmitted based on both wireless connections, wireless auxiliary route pattern can be including a variety of, such as wireless relay mould Formula, wireless bridging pattern etc., auxiliary routing device can be based on a kind of mode of operation (such as wireless relay in wireless auxiliary route pattern Pattern) it is operated.
In force, if as shown in figure 3, auxiliary routing device is found in the network identity of the wireless network around it, It is present in the network identity identical network identity prestored, then auxiliary routing device can determine the network identity pair found The wireless network answered is the network belonging to above-mentioned main routing device, and now, auxiliary routing device can be corresponding to the wireless network Main routing device send network connecting request, when main routing device receives the network connecting request, the network can be connected The information (the device identification information of such as auxiliary routing device) that carries in request is connect to be verified, if the verification passes, then can be with Network connection response is sent to auxiliary routing device, can be with main road by setting when auxiliary routing device receives network connection response It is standby to establish wireless connection, and the mode of operation of itself can be switched to default nothing by auxiliary routing device by wireless mode of operation The auxiliary route pattern of line, for example, if line route pattern is access in radio dot pattern, the wireless auxiliary route pattern pre-set is Wireless relay pattern, then the wired mode of operation pre-set is switched to by wireless mode of operation to be:By super joint Pattern switching is to wireless relay pattern.
Alternatively, the processing mode of above-mentioned steps 203 can be with varied, a kind of optional processing mode presented below, It may comprise steps of:
Step 1, if detecting wireless network corresponding to above-mentioned network identity, according to the wired bypass prestored By pattern and the corresponding relation of wireless auxiliary route pattern, it is determined that the first wireless bypass corresponding to current wired auxiliary route pattern by Pattern.
Wherein, the first wireless auxiliary route pattern can be any wireless auxiliary route pattern, such as wireless relay pattern or wireless Bridge mode etc..
In force, pair of wired auxiliary route pattern and wireless auxiliary route pattern can be previously stored with auxiliary routing device It should be related to, the corresponding relation can store in table form, as shown in table 1.
Table 1
Wired auxiliary route pattern Wireless auxiliary route pattern
Access in radio dot pattern Wireless relay pattern
Wired bridge mode Wireless bridging pattern
If auxiliary routing device by the way that the network identity around it is contrasted in the network identity prestored, it is determined that Both are identical, then auxiliary routing device can determine that main routing device corresponding to the network identity is above-mentioned wired auxiliary route pattern pair The main routing device answered, now, auxiliary routing device can main routing device carry out wireless connection, after successful connection, bypass is by setting It is standby wireless auxiliary route pattern (i.e. first corresponding to current wired auxiliary route pattern to be searched by the corresponding relation of such as table 1 Wireless auxiliary route pattern), for example, current wired auxiliary route pattern is access in radio dot pattern, then auxiliary routing device passes through table 1 Corresponding relation, it is wireless relay pattern that can obtain wireless auxiliary route pattern corresponding to access in radio dot pattern, then in wireless After pattern be the first wireless auxiliary route pattern.
Step 2, based on above-mentioned wireless network, mode of operation is switched into the first wireless auxiliary route pattern.
In force, it is wireless auxiliary by wireless mode of operation can be switched to first by auxiliary routing device for the mode of operation of itself Route pattern, auxiliary routing device can be operated based on the first wireless auxiliary route pattern.
Alternatively, in 201~step 203 of above-mentioned steps wireless auxiliary route pattern and wired auxiliary route pattern can include it is more Kind, a kind of optional wireless auxiliary route pattern presented below and wired auxiliary route pattern, herein below can be included:Wired bypass It is access in radio dot pattern by pattern, default wireless auxiliary route pattern is wireless relay pattern.
Wherein, under access in radio dot pattern, auxiliary routing device can be connected with main routing device by netting twine.Wireless relay Under pattern, auxiliary routing device can be by wireless connection with main routing device, both mode of operations and bridge joint mode of operation Difference is that the routing device as relaying or access point does not have one's own subnet, not responsible subnet management.
It is access in radio dot pattern for wired auxiliary route pattern, default wireless auxiliary route pattern is wireless relay pattern Situation, corresponding processing procedure may refer to the processing procedure of 201~step 203 of above-mentioned steps, will not be repeated here.
In step 204, if being not detected by wireless network corresponding to above-mentioned network identity, to number has been locally created The prompting message of network connection failure is sent according to the terminal of connection.
In force, detection cycle can be previously provided with auxiliary routing device, such as 5 minutes, 3 minutes.Bypass is by setting It is standby to detect wireless network corresponding to above-mentioned network identity in detection cycle, if being not detected by this in detection cycle Wireless network corresponding to network identity, then auxiliary routing device can be to itself establishing the terminal for having data to be connected transmission network company The prompting message of failure is connect, there are data to be connected if currently there are multiple terminals to be established with auxiliary routing device, auxiliary routing device can The prompting message is sent to carry out the terminal of data interaction with it to the last time., can be with after terminal receives the prompting message User network connection failure is prompted in the form of pop-up box, if user needs to be continuing with the auxiliary routing device, can be led to The mode of operation setting interface that terminal opens auxiliary routing device is crossed, interface is set by the mode of operation, selects and sets corresponding Mode of operation, after being provided with, auxiliary routing device can be operated based on the mode of operation after setting, wherein mode of operation Setting up procedure may refer to above-mentioned related content, will not be repeated here.
The processing procedure of above-mentioned steps 204 can be optional processing procedure, and in practical situations both, routing device carries out work The processing of operation mode switching can not include the processing procedure of above-mentioned steps 204, or, for being not detected by above-mentioned network identity The situation of corresponding wireless network, other arbitrary default processing can be performed, can not also be dealt with.
In 201~step 204 of above-mentioned steps, auxiliary routing device is kept after switching with cutting when being operated pattern switching The service set (i.e. SSID) and password of wireless network before changing are constant, in this way it can be ensured that being established with routing device has number According to the network fluency of the terminal of connection.
In the embodiment of the present disclosure, in the state of wired auxiliary route pattern, detection and wired company of upper level routing device State is connect, when detecting upper level routing device with local disconnect, is obtained local affiliated under wired auxiliary route pattern The network identity of network, and wireless network corresponding to network identity is detected, if detecting wireless network corresponding to network identity, The wireless network is then based on, mode of operation is switched into default wireless auxiliary route pattern, so, routing device can enter automatically Row mode of operation switches, and the mode of operation of the routing device is manually selected or set without user, it is thus possible to improve It is operated the efficiency of pattern switching.
Based on identical technical concept, the embodiment of the present disclosure additionally provides a kind of device of switching working mode, such as Fig. 4 institutes Show, the device includes:Detection module 410, acquisition module 420 and handover module 430.
Detection module 410 is configured as in the state of wired auxiliary route pattern, and detection has with upper level routing device Line connection status;
When acquisition module 420 is configured as detecting the upper level routing device with local disconnect, this is obtained The network identity of ground belonging network under wired auxiliary route pattern, and detect wireless network corresponding to the network identity;
Handover module 430, if being configured as detecting wireless network corresponding to the network identity, based on the nothing Gauze network, mode of operation is switched into default wireless auxiliary route pattern.
Alternatively, wired auxiliary route pattern is access in radio dot pattern, and the default wireless auxiliary route pattern is Wireless relay pattern.
Alternatively, as shown in figure 5, handover module 430, including:
Determination sub-module 431, if being configured as detecting wireless network corresponding to the network identity, according in advance The corresponding relation of wired auxiliary route pattern of storage and wireless auxiliary route pattern, it is determined that corresponding to current wired auxiliary route pattern First wireless auxiliary route pattern;
Switching submodule 432, it is configured as being based on the wireless network, mode of operation is switched to described first wireless auxiliary Route pattern.
Alternatively, as shown in fig. 6, acquisition module 420, including:
Acquisition submodule 421, it is configured as obtaining the local affiliated net under wired auxiliary route pattern prestored The network identity of network;Or
As shown in fig. 7, acquisition module 420, including:
Sending submodule 422, the interface data of the network identity query interface for being configured as prestoring be sent to The terminal of data connection is locally created;
Receiving submodule 423, it is configured as receiving the network identity confirmation message that the terminal is sent, wherein, the net The network identity that user inputs in the network identity query interface is carried in network identity validation message.
Alternatively, as shown in figure 8, the device also includes:
Sending module 440, if being configured as being not detected by wireless network corresponding to the network identity, to local The terminal that establishing has data to connect sends the prompting message of network connection failure.
In the embodiment of the present disclosure, in the state of wired auxiliary route pattern, detection and wired company of upper level routing device State is connect, when detecting upper level routing device with local disconnect, is obtained local affiliated under wired auxiliary route pattern The network identity of network, and wireless network corresponding to network identity is detected, if detecting wireless network corresponding to network identity, The wireless network is then based on, mode of operation is switched into default wireless auxiliary route pattern, so, routing device can enter automatically Row mode of operation switches, and the mode of operation of the routing device is manually selected or set without user, it is thus possible to improve It is operated the efficiency of pattern switching.
The device for the switching working mode that above-described embodiment provides is in switching working mode, only with above-mentioned each functional module Division progress for example, in practical application, can be complete by different functional modules by above-mentioned function distribution as needed Into the internal structure of routing device being divided into different functional modules, to complete all or part of work(described above Energy.In addition, the device of switching working mode and the embodiment of the method for switching working mode that above-described embodiment provides belong to same Design, its specific implementation process refer to embodiment of the method, repeated no more here.
A kind of structural representation for routing device that the embodiment of the present disclosure also illustrates.The routing device can have route The arbitrary equipment of function, such as router, mobile phone, wireless network card.
Reference picture 9, routing device 900 can include following one or more assemblies:Processing component 902, memory 904, Power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of input/output (I/O), sensor cluster 914, And communication component 916.
Processing component 902 generally controls the integrated operation of routing device 900, such as leads to display, call, data The operation that letter, camera operation and record operation are associated.Processing component 902 can include one or more processors 920 to hold Row instruction, to complete all or part of step of above-mentioned method.In addition, processing component 902 can include one or more moulds Block, the interaction being easy between processing component 902 and other assemblies.For example, processing component 902 can include multi-media module, with Facilitate the interaction between multimedia groupware 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in routing device 900.These data Example include being used for the instruction of any application program or method operated on routing device 900, contact data, telephone directory Data, message, picture, video etc..Memory 904 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) can Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, Flash memory, disk or CD.
Power supply module 906 provides electric power for the various assemblies of routing device 900.Power supply module 906 can include power supply Management system, one or more power supplys, and other components associated with generating, managing and distributing electric power for routing device 900.
Multimedia groupware 908 is included in the screen of one output interface of offer between the routing device 900 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip The border of action, but also detect the duration and pressure related to the touch or slide.In certain embodiments, Multimedia groupware 908 includes a front camera and/or rear camera.When routing device 900 is in operator scheme, such as clap When taking the photograph pattern or video mode, front camera and/or rear camera can receive outside multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 910 is configured as output and/or input audio signal.For example, audio-frequency assembly 910 includes a Mike Wind (MIC), when routing device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone It is configured as receiving external audio signal.The audio signal received can be further stored in memory 904 or via logical Letter component 916 is sent.In certain embodiments, audio-frequency assembly 910 also includes a loudspeaker, for exports audio signal.
I/O interfaces 912 provide interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 914 includes one or more sensors, for providing the state of various aspects for routing device 900 Assess.For example, sensor cluster 914 can detect opening/closed mode of routing device 900, the relative positioning of component, example Such as the display and keypad that the component is routing device 900, sensor cluster 914 can also detect routing device 900 or The position of 900 1 components of routing device changes, the existence or non-existence that user contacts with routing device 900, routing device 900 The temperature change of orientation or acceleration/deceleration and routing device 900.Sensor cluster 914 can include proximity transducer, be configured For detecting the presence of object nearby in no any physical contact.Sensor cluster 914 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 914 may be used also With including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between routing device 900 and other equipment. Routing device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 916 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 916 also includes near-field communication (NFC) module, to promote Junction service.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wide can be based in NFC modules Band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, routing device 900 can by one or more application specific integrated circuits (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field-programmable gate array Arrange (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 904 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 920 of routing device 900.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of routing device When device performs so that routing device is able to carry out a kind of method of switching working mode, and this method includes:
In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device;
When detecting the upper level routing device with local disconnect, obtain locally in wired bypass by mould The network identity of belonging network under formula, and detect wireless network corresponding to the network identity;
If detecting wireless network corresponding to the network identity, based on the wireless network, mode of operation is cut It is changed to default wireless auxiliary route pattern.
Alternatively, wired auxiliary route pattern is access in radio dot pattern, and the default wireless auxiliary route pattern is Wireless relay pattern.
Alternatively,, will based on the wireless network if described detect wireless network corresponding to the network identity Mode of operation switches to default wireless auxiliary route pattern, including:
If detecting wireless network corresponding to the network identity, according to wired auxiliary route pattern for prestoring with The corresponding relation of wireless auxiliary route pattern, it is determined that the first wireless auxiliary route pattern corresponding to current wired auxiliary route pattern;
Based on the wireless network, mode of operation is switched into the described first wireless auxiliary route pattern.
Alternatively, the network identity for obtaining the local belonging network under wired auxiliary route pattern, including:
Obtain the network identity of the local belonging network under wired auxiliary route pattern prestored;Or
The interface data of the network identity query interface prestored is sent to and is locally created the end of data connection End;The network identity confirmation message that the terminal is sent is received, wherein, carry user in the network identity confirmation message and exist The network identity inputted in the network identity query interface.
Alternatively, methods described also includes:
If being not detected by wireless network corresponding to the network identity, to the terminal being connected with data are locally created Send the prompting message of network connection failure.
In the embodiment of the present disclosure, in the state of wired auxiliary route pattern, detection and wired company of upper level routing device State is connect, when detecting upper level routing device with local disconnect, is obtained local affiliated under wired auxiliary route pattern The network identity of network, and wireless network corresponding to network identity is detected, if detecting wireless network corresponding to network identity, The wireless network is then based on, mode of operation is switched into default wireless auxiliary route pattern, so, routing device can enter automatically Row mode of operation switches, and the mode of operation of the routing device is manually selected or set without user, it is thus possible to improve It is operated the efficiency of pattern switching.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (9)

  1. A kind of 1. method of switching working mode, it is characterised in that methods described includes:
    In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device;
    When detecting the upper level routing device with local disconnect, obtain local under wired auxiliary route pattern The network identity of belonging network, and detect wireless network corresponding to the network identity;
    If detecting wireless network corresponding to the network identity, according to the wired auxiliary route pattern prestored and wirelessly The corresponding relation of auxiliary route pattern, it is determined that the first wireless auxiliary route pattern corresponding to current wired auxiliary route pattern;
    Based on the wireless network, mode of operation is switched into the described first wireless auxiliary route pattern.
  2. 2. according to the method for claim 1, it is characterised in that wired auxiliary route pattern is access in radio dot pattern, The default wireless auxiliary route pattern is wireless relay pattern.
  3. 3. according to the method for claim 1, it is characterised in that described to obtain the local institute under wired auxiliary route pattern Belong to the network identity of network, including:
    Obtain the network identity of the local belonging network under wired auxiliary route pattern prestored;Or
    The interface data of the network identity query interface prestored is sent to and is locally created the terminal of data connection;Connect The network identity confirmation message that the terminal is sent is received, wherein, user is carried described in the network identity confirmation message The network identity inputted in network identity query interface.
  4. 4. according to the method for claim 1, it is characterised in that methods described also includes:
    If being not detected by wireless network corresponding to the network identity, sent to the terminal being connected with data are locally created The prompting message of network connection failure.
  5. 5. a kind of device of switching working mode, it is characterised in that described device includes:
    Detection module, in the state of wired auxiliary route pattern, detecting the wired connection state with upper level routing device;
    Acquisition module, for when detecting the upper level routing device with local disconnect, obtain locally to have described The network identity of belonging network under the auxiliary route pattern of line, and detect wireless network corresponding to the network identity;
    Determination sub-module, if for detecting wireless network corresponding to the network identity, it is wired according to prestoring The corresponding relation of auxiliary route pattern and wireless auxiliary route pattern, it is determined that first wireless auxiliary corresponding to current wired auxiliary route pattern Route pattern;
    Switching submodule, for based on the wireless network, mode of operation to be switched into the described first wireless auxiliary route pattern.
  6. 6. device according to claim 5, it is characterised in that wired auxiliary route pattern is access in radio dot pattern, The default wireless auxiliary route pattern is wireless relay pattern.
  7. 7. device according to claim 5, it is characterised in that the acquisition module, including:
    Acquisition submodule, for obtaining the network mark of the local belonging network under wired auxiliary route pattern prestored Know;Or
    The acquisition module, including:
    Sending submodule, for being sent to and being locally created number by the interface data of the network identity prestored query interface According to the terminal of connection;
    Receiving submodule, the network identity confirmation message sent for receiving the terminal, wherein, the network identity confirms to disappear The network identity that user inputs in the network identity query interface is carried in breath.
  8. 8. device according to claim 5, it is characterised in that described device also includes:
    Sending module, if for being not detected by wireless network corresponding to the network identity, to data have been locally created The terminal of connection sends the prompting message of network connection failure.
  9. A kind of 9. device of switching working mode, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    In the state of wired auxiliary route pattern, detection and the wired connection state of upper level routing device;
    When detecting the upper level routing device with local disconnect, obtain local under wired auxiliary route pattern The network identity of belonging network, and detect wireless network corresponding to the network identity;
    If detecting wireless network corresponding to the network identity, according to the wired auxiliary route pattern prestored and wirelessly The corresponding relation of auxiliary route pattern, it is determined that the first wireless auxiliary route pattern corresponding to current wired auxiliary route pattern;
    Based on the wireless network, mode of operation is switched into the described first wireless auxiliary route pattern.
CN201510081163.1A 2015-02-14 2015-02-14 The method and apparatus of switching working mode Active CN104683248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510081163.1A CN104683248B (en) 2015-02-14 2015-02-14 The method and apparatus of switching working mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510081163.1A CN104683248B (en) 2015-02-14 2015-02-14 The method and apparatus of switching working mode

Publications (2)

Publication Number Publication Date
CN104683248A CN104683248A (en) 2015-06-03
CN104683248B true CN104683248B (en) 2018-03-06

Family

ID=53317867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510081163.1A Active CN104683248B (en) 2015-02-14 2015-02-14 The method and apparatus of switching working mode

Country Status (1)

Country Link
CN (1) CN104683248B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159259B (en) 2014-08-26 2018-06-08 北京智谷技术服务有限公司 Wireless communications method and wireless communication device
CN105024788B (en) * 2015-07-24 2019-01-22 深圳市联文精密制造有限公司 A kind of switching method and its intelligent buffet of the multiple network mode of intelligence buffet
CN107040425B (en) * 2017-06-02 2020-02-21 广东汇泰龙科技有限公司 Method for automatically identifying network environment to switch working modes and intelligent cloud lock
CN109150671B (en) * 2017-06-13 2021-10-01 中国电信股份有限公司 Access equipment mode switching method, network access equipment and intelligent networking system
CN107453945A (en) * 2017-07-14 2017-12-08 上海斐讯数据通信技术有限公司 Because router netting twine disconnects the solution method and system for causing network not connect
CN110089089B (en) * 2017-10-17 2021-06-08 华为技术有限公司 Network access method and equipment
WO2019159356A1 (en) * 2018-02-19 2019-08-22 三菱電機ビルテクノサービス株式会社 Wireless communication device
CN108449125A (en) * 2018-03-06 2018-08-24 四川斐讯信息技术有限公司 A kind of extended method of wireless network, system, trunking and router
CN112130877A (en) * 2020-09-08 2020-12-25 深圳市共进电子股份有限公司 Router firmware upgrading method and device, router and readable storage medium
CN112533264B (en) * 2020-11-10 2022-04-19 烽火通信科技股份有限公司 Method and device for realizing networking scene mode
CN113660169B (en) * 2021-08-18 2023-02-17 青岛海信宽带多媒体技术有限公司 Router and router Mesh networking return link switching method
CN114286405A (en) * 2021-12-22 2022-04-05 西安诺瓦星云科技股份有限公司 Equipment control method and device, wireless communication module and multimedia player
CN115550967A (en) * 2022-08-25 2022-12-30 深圳市格林科数码有限公司 Connection mode switching method and device based on wireless repeater

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1491509A (en) * 2001-02-17 2004-04-21 Ħ��������˾ Method and apparatus for switching ongoing communication of user information between wireless connection and wired connection
CN1540881A (en) * 2003-04-22 2004-10-27 ���ǵ�����ʽ���� Mixed wired and wireless communicaton device and wired and wireless communicaton method
CN101227290A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Data transmission method of household network and system and device of household network building
CN102612030A (en) * 2012-02-09 2012-07-25 中国联合网络通信集团有限公司 Wireless access configuration method and system, wireless access equipment, and terminal
CN103401790A (en) * 2013-08-05 2013-11-20 深圳市华讯方舟科技有限公司 Method for accessing wireless router in AP (Access Point) mode or relay mode by intelligent equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2661925A2 (en) * 2011-01-09 2013-11-13 Boingo Wireless, Inc. System, method and apparatus for dynamic wireless network discovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1491509A (en) * 2001-02-17 2004-04-21 Ħ��������˾ Method and apparatus for switching ongoing communication of user information between wireless connection and wired connection
CN1540881A (en) * 2003-04-22 2004-10-27 ���ǵ�����ʽ���� Mixed wired and wireless communicaton device and wired and wireless communicaton method
CN101227290A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Data transmission method of household network and system and device of household network building
CN102612030A (en) * 2012-02-09 2012-07-25 中国联合网络通信集团有限公司 Wireless access configuration method and system, wireless access equipment, and terminal
CN103401790A (en) * 2013-08-05 2013-11-20 深圳市华讯方舟科技有限公司 Method for accessing wireless router in AP (Access Point) mode or relay mode by intelligent equipment

Also Published As

Publication number Publication date
CN104683248A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN104683248B (en) The method and apparatus of switching working mode
CN104159226B (en) Method for connecting network and device
CN104318741B (en) Bluetooth equipment control method and device
CN104780155B (en) Apparatus bound method and device
CN104159218B (en) Internetwork connection establishing method and device
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN105517103A (en) Network access method and device based on intelligent terminal device
CN105228224A (en) The cut-in method of wireless network and device
CN105472771B (en) Wireless connection method and device
CN105933899A (en) Access method and device of wireless access point
CN105049416A (en) Method and apparatus for accessing to wifi network
CN104765990A (en) Setting method and device for management account of intelligent device
CN105208631A (en) Network connection method and device
CN106713418B (en) Reset result confirmation method, device, server and mobile terminal
CN105101339A (en) Use permission obtaining method and device
CN105472778A (en) Method and device for establishing wireless connection
CN104853336A (en) Method for discovering intelligent equipment, method for accessing to internet and devices thereof
CN105120505A (en) Method, apparatus and system for making intelligent equipment accessed to router
CN104735670A (en) Network access method and device
CN104954371A (en) Equipment information display method and device
CN105246074A (en) Method and device for establishing connections
CN104506443A (en) Router setting interface display method and device
CN104684106A (en) Network connection method and device
CN104320830A (en) Wireless device list display method and apparatus, wireless device and broadcasting method thereof
CN105578557A (en) Routing information transmission 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