CN107070707B - Method and device for determining initialization mode of router - Google Patents
Method and device for determining initialization mode of router Download PDFInfo
- Publication number
- CN107070707B CN107070707B CN201710184075.3A CN201710184075A CN107070707B CN 107070707 B CN107070707 B CN 107070707B CN 201710184075 A CN201710184075 A CN 201710184075A CN 107070707 B CN107070707 B CN 107070707B
- Authority
- CN
- China
- Prior art keywords
- router
- initialization mode
- terminal
- initialization
- mode
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
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 method and a device for determining an initialization mode of a router, wherein the method comprises: the terminal determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one wireless fidelity WiFi signal; the terminal determines whether a second router bound by the terminal exists in the at least one router; the terminal determines an initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router; and the terminal pushes the initialization mode of the first router. The method and the device for determining the initialization mode of the router, provided by the disclosure, enable a user to rapidly determine the initialization mode of the first router according to the initialization mode of the first router pushed by the terminal, and improve user experience.
Description
Technical Field
The present disclosure relates to router technologies, and in particular, to a method and an apparatus for determining an initialization mode of a router.
Background
With the continuous improvement of living standard, intelligent devices such as intelligent terminals and intelligent household appliances are more and more popularized in families. Currently, in the process of using these smart devices, these smart devices need to access the public network through a Wireless-Fidelity (WiFi) network provided by a Wireless router, so as to provide diversified services for users. Therefore, users are increasingly paying more attention to the coverage of WiFi networks provided by wireless routers in homes.
Limited by WiFi technology, a wireless router provides limited coverage over the WiFi network and may not cover all rooms of the home. Therefore, more and more users will add a wireless router and make the wireless router operate in relay mode to extend the coverage of WiFi network.
In the related art, before a user uses a wireless router for the first time, the user needs to perform initialization setting on the wireless router, so that the wireless router can implement a function required by the user, that is, operate in an operating mode corresponding to the function required by the user. Because the initialization modes corresponding to different working modes of the wireless router are different, and the wireless router belongs to professional equipment, and the operation and setting of the wireless router have usage thresholds, how to enable a user to quickly determine the initialization mode of the router is an urgent problem to be solved.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and an apparatus for determining an initialization mode of a router. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for determining a router initialization mode is provided, including:
the terminal determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one wireless fidelity WiFi signal;
the terminal determines whether a second router bound by the terminal exists in at least one router;
the terminal determines the initialization mode of the first router according to whether a second router bound by the terminal exists in at least one router;
and the terminal pushes the initialization mode of the first router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the terminal determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal, whether a second router bound by the terminal exists in the at least one router can be determined, and further, the initialization mode of the first router can be determined according to whether the second router bound by the terminal exists in the at least one router, and the determined initialization mode of the first router is pushed to a user, so that the user can quickly determine the initialization mode of the first router, and user experience is improved.
Optionally, the determining, by the terminal, the initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router includes:
when a terminal has a second router bound by the terminal in at least one router, determining whether the second router is connected with a network or not;
and the terminal determines the initialization mode of the first router according to whether the second router is connected with the network or not.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the terminal has the second router bound by the terminal in at least one router, the initialization mode of the first router can be accurately determined by whether the second router bound by the terminal is connected with the network, so that after the terminal pushes the determined initialization mode of the first router to a user, the accuracy of the initialization mode of the first router acquired by the user is improved, and the user experience is further improved.
Optionally, the determining, by the terminal, the initialization mode of the first router according to whether the second router is connected to the network includes:
and when the terminal is connected with the network by the second router, determining that the initialization mode of the first router is a relay initialization mode.
Optionally, when the terminal determines that the initialization mode of the first router is the relay initialization mode when the second router is connected to the network, the method further includes:
the terminal determines a connection mode of a first router and a second router;
when the first router and the second router are in wired connection, the terminal determines that the initialization mode of the first router is a wired relay initialization mode;
when the first router is in wireless connection with the second router, the terminal determines that the initialization mode of the first router is a wireless relay initialization mode.
Optionally, the determining, by the terminal, the initialization mode of the first router according to whether the second router is connected to the network includes:
when the second router is not connected with the network, the terminal determines that the initialization mode of the first router is a switch initialization mode; the switch initialization mode is used to instruct the first router to import the configuration on the second router during initialization.
Optionally, the determining, by the terminal, the initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router includes:
and when the terminal does not have a second router bound by the terminal in at least one router, determining the initialization mode of the first router as a new router initialization mode.
Optionally, after the terminal pushes the initialization mode of the first router, the method further includes:
the terminal receives an initialization instruction; the initialization instruction is used for instructing the terminal to perform initialization operation on the first router according to the initialization mode of the first router;
and the terminal establishes connection with the first router according to the initialization instruction and initializes the first router according to the initialization mode of the first router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the determined initialization mode of the first router is pushed to the user, the terminal can receive an initialization instruction input by the user, and then can automatically establish connection with the first router according to the initialization instruction, and automatically perform initialization operation on the first router according to the determined initialization mode of the first router, so that the initialization operation of the first router is simpler and more intelligent, and the user experience is further improved.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for determining an initialization mode of a router, including:
the first determining module is configured to determine that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal;
a second determination module configured to determine whether a second router to which the terminal is bound exists in the at least one router;
a third determining module configured to determine an initialization mode of the first router according to whether a second router to which the terminal is bound exists in the at least one router;
a push module configured to push an initialization mode of the first router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the first determining module determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal, the second determining module may determine whether a second router bound by a terminal exists in the at least one router, and then the third determining module may determine an initialization mode of the first router according to whether the second router bound by the terminal exists in the at least one router, so that the pushing module may push the determined initialization mode of the first router to a user, so that the user may quickly determine the initialization mode of the first router, and user experience is improved.
Optionally, the third determining module is configured to determine whether the second router is connected to the network when the second router bound by the terminal exists in the at least one router, and determine the initialization mode of the first router according to whether the second router is connected to the network.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when a second router bound by the terminal exists in at least one router, the third determining module can accurately determine the initialization mode of the first router further through whether the second router bound by the terminal is connected with the network, so that after the determined initialization mode of the first router is pushed to a user by the pushing module, the accuracy of the initialization mode of the first router obtained by the user is improved, and the user experience is further improved.
Optionally, the third determining module is configured to determine that the initialization mode of the first router is the relay initialization mode when the second router is connected to the network.
Optionally, the third determining module is configured to determine, when the second router is connected to the network, a connection mode between the first router and the second router after determining that the initialization mode of the first router is the relay initialization mode; when the first router and the second router are in wired connection, determining that the initialization mode of the first router is a wired relay initialization mode; when the first router is in wireless connection with the second router, the initialization mode of the first router is determined to be a wireless relay initialization mode.
Optionally, the third determining module is configured to determine that the initialization mode of the first router is an initialization mode of the switch machine when the second router is not connected to the network; the switch initialization mode is used to instruct the first router to import the configuration on the second router during initialization.
Optionally, the third determining module is configured to determine that the initialization mode of the first router is the new router initialization mode when the second router bound by the terminal does not exist in the at least one router.
Optionally, the apparatus further comprises:
the receiving module is configured to receive an initialization instruction after the pushing module pushes the initialization mode of the first router; the initialization instruction is used for instructing the terminal to perform initialization operation on the first router according to the initialization mode of the first router;
and the processing module is configured to establish connection with the first router according to the initialization instruction and perform initialization operation on the first router according to the initialization mode of the first router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the determined initialization mode of the first router is pushed to the user by the pushing module, the receiving module can receive an initialization instruction input by the user, so that the processing module can automatically establish connection with the first router according to the initialization instruction, and automatically perform initialization operation on the first router according to the determined initialization mode of the first router, so that the initialization operation of the first router is simpler and more intelligent, and the user experience is further improved.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for determining an initialization mode of a router, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
determining that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one wireless fidelity WiFi signal;
determining whether a second router bound by a terminal exists in at least one router;
determining an initialization mode of a first router according to whether a second router bound by a terminal exists in at least one router;
and pushing an initialization mode of the first router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after determining that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal, the router initialization mode determination device may determine whether a second router bound by a terminal exists in the at least one router, and further may determine an initialization mode of the first router according to whether a second router bound by a terminal exists in the at least one router, and push the determined initialization mode of the first router to a user, so that the user may quickly determine the initialization mode of the first router, and user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method for determination of a router initialization mode in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method for determination of a router initialization mode in accordance with another illustrative embodiment;
FIG. 3 is a block diagram illustrating an apparatus for determining a router initialization mode in accordance with an exemplary embodiment;
fig. 4 is a block diagram illustrating an apparatus for determining an initialization mode of a router in accordance with another illustrative embodiment;
fig. 5 is a block diagram illustrating an apparatus 500 for determining a router initialization mode according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical solution of the present disclosure is explained in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flow chart illustrating a method for determining a router initialization mode in accordance with an exemplary embodiment. The executing agent of the method may be a determining device of the router initialization mode, or may be a terminal integrated with the determining device of the router initialization mode, and the following description will take the executing agent as a terminal (simply referred to as a terminal) integrated with the determining device of the router initialization mode as an example. As shown in fig. 1, the method may include the steps of:
in step S101, the terminal determines, according to the scanned at least one WiFi signal, that an uninitialized first router exists in at least one router corresponding to the at least one WiFi signal.
Specifically, the terminal may be any terminal having a wireless communication function, for example: mobile phones, tablet computers, personal digital assistants, computers, and the like. The router may be any router providing a WiFi network. The uninitialized first router may be a new wireless router, or a reset router (i.e. a router which has been pressed by the reset key), etc.
In this embodiment, the terminal may scan WiFi signals broadcast by all routers covering the location of the terminal in a manner of scanning WiFi signals. At this time, since the terminal can scan the WiFi signals broadcast by the routers, which indicates that the terminal is currently located in the WiFi network provided by the routers, the terminal may determine, according to the scanned WiFi signals, whether a new router exists in the routers corresponding to the WiFi signals, or whether a reset router, that is, whether an uninitialized router exists. In this disclosure, the router is the first router.
Optionally, the router may carry an identifier in the WiFi signal broadcasted by the router, where the identifier is used to indicate to the terminal whether the router is an uninitialized router. Therefore, the terminal can analyze each WiFi signal scanned by the terminal to read the identifier carried in the WiFi signal, and then determine whether the router broadcasting the WiFi signal is the uninitialized first router according to the identifier. In a specific implementation, the above identification may be implemented by one bit, for example: 0 can be used to indicate that the router is an uninitialized router, and 1 is used to indicate that the router is an initialized router; or, 1 indicates that the router is an uninitialized router, and 0 indicates that the router is an initialized router.
Optionally, after scanning WiFi signals broadcast by all routers covering the location of the terminal, the terminal indicates that the terminal is located within the coverage of the WiFi network provided by the routers, so that the terminal may sequentially establish a connection with each router and read information of the router after establishing the connection with the terminal. The information may carry indication information of whether the router is an uninitialized router, so that the terminal may determine whether the router broadcasting the WiFi signal is an uninitialized router through the indication information. How to establish a connection between a terminal and a router covering the location of the terminal can refer to related technologies, which are not described herein again.
In step S102, the terminal determines whether there is a second router to which the terminal is bound among the at least one router.
Specifically, after the terminal determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal, the terminal may further determine whether a second router bound by the terminal exists in the at least one router. The second router mentioned here is a router initialized by the user through the terminal, that is, the router can operate in an operating mode corresponding to the function required by the user when operating.
Optionally, the router may carry the identifier of the router in the WiFi signal broadcasted by the router, and meanwhile, the terminal may store a mapping relationship of "the identifier of the router initialized by the terminal and the terminal", so that after the terminal scans the WiFi signals broadcasted by all routers covering the position of the terminal, the terminal may sequentially analyze other WiFi signals except the WiFi signal broadcasted by the first router to read the identifier of the router carried in the WiFi signal, and further may search for whether the identifier of the router exists in the mapping relationship. If the identifier of the router exists in the mapping relationship, it is determined that the router is the router (i.e., the second router) bound by the terminal. If the identifier of the router does not exist in the mapping relationship, it is indicated that the router is not the router bound by the terminal. In a specific implementation, the Identifier of the router carried in the WiFi signal may be, for example, one or more of an identity card (ID) of the router, a Service Set Identifier (SSID) of the router, a Serial Number (SN) of the router, and the like.
Optionally, the terminal may further store a login password of a router initialized by the terminal, so that the terminal may establish a connection with each router except the first router, and log in the router through the login password to determine whether the router is the router bound by the terminal. If the terminal can log in the router through the login password, the terminal is initialized to pass through the router, namely the router is the router bound by the terminal. If the terminal can not log in the router through the login password, it is indicated that the terminal has not initialized the router, that is, the router is not the router bound by the terminal.
In step S103, the terminal determines the initialization mode of the first router according to whether a second router to which the terminal is bound exists in the at least one router.
Specifically, the initialization mode may be, for example: a relay initialization mode, a change machine initialization mode, a new router initialization mode, and the like. The relay initialization mode is suitable for a scene that a router already exists at the position of the terminal, and the uninitialized router can work in the relay mode after being initialized through the relay initialization mode so as to expand the coverage range of the WiFi network provided by the original router. The switch initialization mode is suitable for a scene that a router already exists at the position of the terminal, and when the uninitialized router is initialized through the switch initialization mode, the configuration in the original router can be imported in the initialization process, so that the router can replace the original router to provide a WiFi network after initialization. The new router initialization mode is suitable for a scenario that a router is not set at the position of the terminal, that is, after the uninitialized router is initialized through the new router initialization mode, the router can provide a WiFi network at the position of the terminal.
Therefore, in this embodiment, after determining whether a second router bound by the terminal exists in at least one router, the terminal may determine the initialization mode of the first router according to a result of whether the second router exists, that is, whether a router initialized by the terminal exists. When the second router bound by the terminal exists in the at least one router, it is indicated that the router already exists at the location of the terminal, and therefore, the terminal may determine that the initialization mode of the first router may be the relay initialization mode or the switch initialization mode. When the second router bound by the terminal does not exist in the at least one router, it is indicated that the router is not set at the position of the terminal, and therefore, the terminal can determine that the initialization mode of the first router can be a new router initialization mode.
In step S104, the terminal pushes the initialization mode of the first router.
Specifically, after determining the initialization mode of the first router, the terminal may push the initialization mode of the first router to the user, so that the user may quickly determine the initialization mode of the first router, and then the user may perform correct initialization setting on the first router based on the initialization mode, so that the first router may implement functions required by the user, and user experience is improved.
According to the method for determining the initialization mode of the router, after the terminal determines that the uninitialized first router exists in the at least one router corresponding to the at least one WiFi signal according to the scanned at least one WiFi signal, whether the second router bound by the terminal exists in the at least one router can be determined, and then the initialization mode of the first router can be determined according to whether the second router bound by the terminal exists in the at least one router, and the determined initialization mode of the first router is pushed to the user, so that the user can quickly determine the initialization mode of the first router, and user experience is improved.
Further, on the basis of the foregoing embodiment, this embodiment relates to a specific process in which the terminal determines the initialization mode of the first router according to whether a second router to which the terminal is bound exists in at least one router, and then the foregoing S103 may include the following two cases:
in the first case: the terminal may further determine whether the second router is connected to the network when determining that the second router bound by the terminal exists in the at least one router, so as to determine the initialization mode of the first router according to whether the second router is connected to the network.
Specifically, in this embodiment, when the terminal has a second router bound by the terminal in at least one router, that is, when it is determined that the router already exists at the location of the terminal, the terminal may determine whether the initialization mode of the first router is the relay initialization mode or the switch initialization mode by whether the second router is connected to the network. When the terminal determines that the second router is connected to the network, it is indicated that the router already exists at the location of the terminal and the router works normally, at this time, the user may need to use the first router to extend the coverage of the WiFi network provided by the second router, and therefore, the terminal may determine that the initialization mode of the first router is the relay initialization mode. When the terminal determines that the second router is not connected to the network, it is described that the router does not work normally although the router already exists at the location of the terminal, and at this time, the user may need to use the first router to replace the second router to provide the WiFi network.
The present embodiment does not limit the implementation manner in which the terminal determines whether the second router is connected to the network. For example: the second router may carry an identification in the WiFi signal it broadcasts indicating whether the second router is connected to the network. Therefore, the terminal may analyze the WiFi signal broadcast by the second router scanned by the terminal to read the identifier carried in the WiFi signal, and then determine whether the second router is connected to the network or not through the identifier. In a specific implementation, the identifier indicating whether the second router is connected to the network may be implemented by using one bit, for example: the second router can be represented by 0 and not connected to the network by 1; or, 1 is used to indicate that the second router is connected to the network, and 0 is used to indicate that the second router is not connected to the network. Optionally, the terminal may further establish a connection with the second router, and send a test message with other devices in the network through the second router to test whether the second router is connected to the network. When the terminal can successfully send the test message to other equipment through the second router, the second router is indicated to be connected with the network. And when the terminal cannot successfully send the test message to other equipment through the second router, indicating that the second router is not connected with the network.
Further, after determining that the initialization mode of the first router is the relay initialization mode, the terminal may further determine a current connection mode between the first router and the second router. When the first router and the second router are in wired connection, the first router can work in the wired relay mode, and therefore the terminal can determine that the initialization mode of the first router is the wired relay initialization mode. When the first router and the second router are in wireless connection, the first router can work in a wireless relay mode, and therefore the terminal can determine that the initialization mode of the first router is the wireless relay initialization mode. In specific implementation, the terminal may determine a connection mode between the first router and the second router according to indication information, which is reported by the first router, of whether a Wide Area Network (WAN) port of the first router is connected with a Network cable. When the WAN port of the first router is connected to a network cable, it is described that the first router and the second router are connected by a cable. When the WAN port of the first router has no network cable, it is described that the first router and the second router are in wireless connection.
In the second case: when the terminal determines that the second router bound by the terminal exists in at least one router, it indicates that the router is not set at the position of the terminal, at this time, the user may need to use the first router to provide the WiFi network at the position of the terminal, so the terminal may determine that the initialization mode of the first router is the new router initialization mode.
Through the two conditions, the terminal can accurately determine the initialization mode of the first router, so that after the terminal pushes the determined initialization mode of the first router to a user, the accuracy of the initialization mode of the first router acquired by the user is improved, and the user experience is further improved.
According to the method for determining the initialization mode of the router, after the terminal determines that the uninitialized first router exists in the at least one router corresponding to the at least one WiFi signal according to the scanned at least one WiFi signal, whether the second router bound by the terminal exists in the at least one router can be determined, and then the initialization mode of the first router can be determined according to whether the second router bound by the terminal exists in the at least one router, and the determined initialization mode of the first router is pushed to the user, so that the user can quickly determine the initialization mode of the first router, and user experience is improved.
Fig. 2 is a flowchart illustrating a method of determining a router initialization mode according to another exemplary embodiment. As shown in fig. 2, after the step S104, the method may further include:
in step S201, the terminal receives an initialization instruction.
Specifically, after the terminal pushes the determined initialization mode of the first router to the user, when the user determines to initialize the first router by using the initialization mode determined by the terminal, the user may input an initialization instruction to the terminal to instruct the terminal to initialize the first router according to the initialization mode of the first router determined by the terminal.
In step S202, the terminal establishes a connection with the first router according to the initialization instruction, and performs an initialization operation on the first router according to an initialization mode of the first router.
Specifically, after receiving an initialization instruction input by a user, the terminal may automatically establish a connection with the first router according to the initialization instruction, and automatically perform an initialization operation on the first router according to the determined initialization mode of the first router. By the method, the initialization operation of the first router is simpler and more intelligent, and the user experience is further improved. For how the terminal initializes the router according to the initialization mode of the router, reference may be made to related technologies, which is not described herein again.
According to the method for determining the initialization mode of the router, the terminal can receive the initialization instruction input by the user after pushing the determined initialization mode of the first router to the user, then can automatically establish connection with the first router according to the initialization instruction, and automatically performs initialization operation on the first router according to the determined initialization mode of the first router, so that the initialization operation of the first router is simpler and more intelligent, and the user experience is further improved.
It should be noted that the method provided in this embodiment may be implemented by a system function of the terminal itself, may also be implemented by an Application program (APP) for managing the router, which is set in the terminal, may also be implemented by a Web management background for managing the router, which is registered by the terminal, and may also be implemented by a PC client for managing the router, which is registered by the terminal, and the like, which is not limited in this disclosure.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a block diagram illustrating an apparatus for determining an initialization mode of a router according to an example embodiment. As shown in fig. 3, the router initialization mode determination means may implement part or all of the terminal by software, hardware, or a combination of both. The determining means of the router initialization mode may include:
the first determining module 11 is configured to determine, according to the scanned at least one WiFi signal, that there is an uninitialized first router in at least one router corresponding to the at least one WiFi signal.
A second determining module 12 configured to determine whether there is a second router to which the terminal is bound among the at least one router.
A third determining module 13 configured to determine an initialization mode of the first router according to whether a second router of the terminal binding exists in the at least one router. In a specific implementation, the third determining module 13 may determine that the initialization mode of the first router is the new router initialization mode when there is no second router with a terminal binding in at least one router. The third determining module 13 may further determine whether the second router is connected to the network when the second router bound by the terminal exists in the at least one router, and further determine the initialization mode of the first router according to whether the second router is connected to the network. For example: when a second router is connected with a network, determining that the initialization mode of the first router is a relay initialization mode, and when the second router is not connected with the network, determining that the initialization mode of the first router is a switch initialization mode; the switch initialization mode is used for instructing the first router to import the configuration on the second router in the initialization process. Optionally, the third determining module 13 may further determine, when the second router is connected to the network, a connection mode between the first router and the second router after determining that the initialization mode of the first router is the relay initialization mode, and further determine, when the first router and the second router are in wired connection, that the initialization mode of the first router is the wired relay initialization mode; when the first router is in wireless connection with the second router, the initialization mode of the first router is determined to be a wireless relay initialization mode.
A push module 14 configured to push an initialization mode of the first router.
According to the device for determining the initialization mode of the router, after the first determining module determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal, the second determining module can determine whether a second router bound by a terminal exists in the at least one router, and then the third determining module can determine the initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router, so that the pushing module can push the determined initialization mode of the first router to a user, the user can quickly determine the initialization mode of the first router, and user experience is improved.
Fig. 4 is a block diagram illustrating an apparatus for determining an initialization mode of a router according to another exemplary embodiment. As shown in fig. 4, based on the block diagram shown in fig. 3, the apparatus for determining the router initialization mode may further include:
a receiving module 15 configured to receive an initialization instruction after the pushing module 14 pushes the initialization mode of the first router; the initialization instruction is used for instructing the terminal to perform initialization operation on the first router according to the initialization mode of the first router;
and the processing module 16 is configured to establish a connection with the first router according to the initialization instruction, and perform initialization operation on the first router according to an initialization mode of the first router.
According to the device for determining the initialization mode of the router, the pushing module pushes the determined initialization mode of the first router to the user, the receiving module can receive the initialization instruction input by the user, the processing module can automatically establish connection with the first router according to the initialization instruction, and the initialization operation is automatically performed on the first router according to the determined initialization mode of the first router, so that the initialization operation of the first router is simpler and more intelligent, and the user experience is further improved.
Fig. 5 is a block diagram illustrating an apparatus 500 for determining a router initialization mode according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a touch-sensitive display screen that provides an output interface between the device 500 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a main bar button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of apparatus 500, enable apparatus 500 to perform a method of router initialization mode determination.
The method comprises the following steps:
determining that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one wireless fidelity WiFi signal;
determining whether a second router bound by a terminal exists in at least one router;
determining an initialization mode of a first router according to whether a second router bound by a terminal exists in at least one router;
and pushing an initialization mode of the first router.
Optionally, the determining the initialization mode of the first router according to whether the second router bound by the terminal exists in the at least one router includes:
when a second router bound by a terminal exists in at least one router, determining whether the second router is connected with a network or not;
an initialization mode of the first router is determined according to whether the second router is connected to the network.
Optionally, the determining the initialization mode of the first router according to whether the second router is connected to the network includes:
and when the second router is connected with the network, determining that the initialization mode of the first router is a relay initialization mode.
Optionally, after determining that the initialization mode of the first router is the relay initialization mode when the second router is connected to the network, the method further includes:
determining a connection mode of a first router and a second router;
when the first router and the second router are in wired connection, determining that the initialization mode of the first router is a wired relay initialization mode;
when the first router is in wireless connection with the second router, the initialization mode of the first router is determined to be a wireless relay initialization mode.
Optionally, the determining the initialization mode of the first router according to whether the second router is connected to the network includes:
when the second router is not connected with the network, determining that the initialization mode of the first router is a switch initialization mode; the switch initialization mode is used to instruct the first router to import the configuration on the second router during initialization.
Optionally, the determining the initialization mode of the first router according to whether the second router bound by the terminal exists in the at least one router includes:
and when a second router bound by a terminal does not exist in at least one router, determining the initialization mode of the first router as a new router initialization mode.
Optionally, after the pushing the initialization mode of the first router, the method further includes:
receiving an initialization instruction; the initialization instruction is used for instructing the terminal to perform initialization operation on the first router according to the initialization mode of the first router;
and establishing connection with the first router according to the initialization instruction, and initializing the first router according to the initialization mode of the first router.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (15)
1. A method for determining a router initialization mode, comprising:
the terminal determines that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one wireless fidelity WiFi signal;
the terminal determines whether a second router bound by the terminal exists in the at least one router;
the terminal determines an initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router; wherein the initialization mode comprises: any one of a relay initialization mode, a change machine initialization mode, and a new router initialization mode; when a second router bound by the terminal exists in the at least one router, the terminal determines that the initialization mode of the first router is the relay initialization mode or the switch initialization mode; when a second router bound by the terminal does not exist in the at least one router, the terminal determines that the initialization mode of the first router is the new router initialization mode;
and the terminal pushes the initialization mode of the first router.
2. The method of claim 1, wherein the determining, by the terminal, the initialization mode of the first router according to whether a second router to which the terminal is bound exists in the at least one router comprises:
when a second router bound by the terminal exists in the at least one router, the terminal determines whether the second router is connected with a network or not;
and the terminal determines the initialization mode of the first router according to whether the second router is connected with the network or not.
3. The method according to claim 2, wherein the terminal determines the initialization mode of the first router according to whether the second router is connected to the network, including:
and when the second router is connected with the network, the terminal determines that the initialization mode of the first router is a relay initialization mode.
4. The method according to claim 3, wherein the terminal, after determining that the initialization mode of the first router is the relay initialization mode when the second router is connected to the network, further comprises:
the terminal determines a connection mode of the first router and the second router;
when the first router and the second router are in wired connection, the terminal determines that the initialization mode of the first router is a wired relay initialization mode;
and when the first router is in wireless connection with the second router, the terminal determines that the initialization mode of the first router is a wireless relay initialization mode.
5. The method according to claim 2, wherein the terminal determines the initialization mode of the first router according to whether the second router is connected to the network, including:
when the second router is not connected with the network, the terminal determines that the initialization mode of the first router is a switch initialization mode; the switch initialization mode is used for instructing the first router to import the configuration on the second router in the initialization process.
6. The method of claim 1, wherein the determining, by the terminal, the initialization mode of the first router according to whether a second router to which the terminal is bound exists in the at least one router comprises:
and when the terminal does not have a second router bound by the terminal in the at least one router, determining that the initialization mode of the first router is a new router initialization mode.
7. The method according to claim 1, wherein after the terminal pushes the initialization mode of the first router, the method further comprises:
the terminal receives an initialization instruction; the initialization instruction is used for instructing the terminal to initialize the first router according to the initialization mode of the first router;
and the terminal establishes connection with the first router according to the initialization instruction and performs initialization operation on the first router according to the initialization mode of the first router.
8. An apparatus for determining an initialization mode of a router, comprising:
the first determining module is configured to determine that an uninitialized first router exists in at least one router corresponding to at least one WiFi signal according to the scanned at least one WiFi signal;
a second determination module configured to determine whether a second router to which the terminal is bound exists in the at least one router;
a third determining module configured to determine an initialization mode of the first router according to whether a second router to which the terminal is bound exists in the at least one router; wherein the initialization mode comprises: any one of a relay initialization mode, a change machine initialization mode, and a new router initialization mode; when a second router bound by the terminal exists in the at least one router, the terminal determines that the initialization mode of the first router is the relay initialization mode or the switch initialization mode; when a second router bound by the terminal does not exist in the at least one router, the terminal determines that the initialization mode of the first router is the new router initialization mode;
a push module configured to push an initialization mode of the first router.
9. The apparatus of claim 8, wherein the third determining module is configured to determine whether the second router is connected to the network when a second router to which the terminal is bound exists in the at least one router, and determine the initialization mode of the first router according to whether the second router is connected to the network.
10. The apparatus of claim 9, wherein the third determining module is configured to determine that the initialization mode of the first router is a relay initialization mode when the second router is connected to a network.
11. The apparatus according to claim 10, wherein the third determining module is configured to determine a connection mode between the first router and the second router after determining that the initialization mode of the first router is the relay initialization mode when the second router is connected to the network; when the first router is in wired connection with the second router, determining that the initialization mode of the first router is a wired relay initialization mode; and when the first router is in wireless connection with the second router, determining that the initialization mode of the first router is a wireless relay initialization mode.
12. The apparatus according to claim 9, wherein the third determining module is configured to determine that the initialization mode of the first router is a switch initialization mode when the second router is not connected to a network; the switch initialization mode is used for instructing the first router to import the configuration on the second router in the initialization process.
13. The apparatus of claim 8, wherein the third determining module is configured to determine that the initialization mode of the first router is a new router initialization mode when a second router of the terminal binding does not exist in the at least one router.
14. The apparatus of claim 8, further comprising:
a receiving module configured to receive an initialization instruction after the pushing module pushes the initialization mode of the first router; the initialization instruction is used for instructing the terminal to initialize the first router according to the initialization mode of the first router;
and the processing module is configured to establish connection with the first router according to the initialization instruction, and perform initialization operation on the first router according to an initialization mode of the first router.
15. An apparatus for determining an initialization mode of a router, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
according to the scanned at least one wireless fidelity WiFi signal, determining that an uninitialized first router exists in at least one router corresponding to the at least one WiFi signal;
determining whether a second router bound by a terminal exists in the at least one router;
determining an initialization mode of the first router according to whether a second router bound by the terminal exists in the at least one router; wherein the initialization mode comprises: any one of a relay initialization mode, a change machine initialization mode, and a new router initialization mode; when a second router bound by the terminal exists in the at least one router, the terminal determines that the initialization mode of the first router is the relay initialization mode or the switch initialization mode; when a second router bound by the terminal does not exist in the at least one router, the terminal determines that the initialization mode of the first router is the new router initialization mode;
and pushing an initialization mode of the first router.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184075.3A CN107070707B (en) | 2017-03-24 | 2017-03-24 | Method and device for determining initialization mode of router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184075.3A CN107070707B (en) | 2017-03-24 | 2017-03-24 | Method and device for determining initialization mode of router |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107070707A CN107070707A (en) | 2017-08-18 |
CN107070707B true CN107070707B (en) | 2020-06-02 |
Family
ID=59620505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710184075.3A Active CN107070707B (en) | 2017-03-24 | 2017-03-24 | Method and device for determining initialization mode of router |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107070707B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10316475B2 (en) | 2017-11-10 | 2019-06-11 | Caterpillar Paving Products Inc. | Paving machine with multiple zone auger control |
CN110730114B (en) * | 2019-09-02 | 2021-02-12 | 华为技术有限公司 | Method and equipment for configuring network configuration information |
CN114793338A (en) * | 2021-01-26 | 2022-07-26 | 华为技术有限公司 | Wi-Fi connection method, wireless access equipment and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401790A (en) * | 2013-08-05 | 2013-11-20 | 深圳市华讯方舟科技有限公司 | Method for accessing wireless router in AP (Access Point) mode or relay mode by intelligent equipment |
CN104244272A (en) * | 2014-09-30 | 2014-12-24 | 上海斐讯数据通信技术有限公司 | Method and system for reinforcing strength of wireless signals |
CN104902531A (en) * | 2014-03-03 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Network connection method, application authentication server, terminal and router |
CN106412940A (en) * | 2016-11-15 | 2017-02-15 | 北京小米移动软件有限公司 | Method and device for creating wireless local area network, and method and device for accessing network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7525923B2 (en) * | 2002-06-28 | 2009-04-28 | Ntt Docomo, Inc. | Catprobe |
-
2017
- 2017-03-24 CN CN201710184075.3A patent/CN107070707B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401790A (en) * | 2013-08-05 | 2013-11-20 | 深圳市华讯方舟科技有限公司 | Method for accessing wireless router in AP (Access Point) mode or relay mode by intelligent equipment |
CN104902531A (en) * | 2014-03-03 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Network connection method, application authentication server, terminal and router |
CN104244272A (en) * | 2014-09-30 | 2014-12-24 | 上海斐讯数据通信技术有限公司 | Method and system for reinforcing strength of wireless signals |
CN106412940A (en) * | 2016-11-15 | 2017-02-15 | 北京小米移动软件有限公司 | Method and device for creating wireless local area network, and method and device for accessing network |
Also Published As
Publication number | Publication date |
---|---|
CN107070707A (en) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160381629A1 (en) | Virtual sim card for accessing operator network | |
US9769667B2 (en) | Methods for controlling smart device | |
CN104219092B (en) | The compatibility method of a kind of router administration application and router firmware and device | |
EP3076716A1 (en) | Method and apparatus for network access | |
EP3065428A1 (en) | Method and device for displaying wifi list | |
CN105049416A (en) | Method and apparatus for accessing to wifi network | |
CN107071862B (en) | Account number binding method and device and intelligent equipment | |
CN106454998B (en) | Wireless local area network access method, device and terminal | |
EP3226432A1 (en) | Method and device for sharing media data between terminals | |
EP3200421A1 (en) | Method, apparatus and system for accessing wireless local area network | |
CN111328076A (en) | Equipment network distribution method, device and medium | |
CN104683248A (en) | Method and device for switching working mode | |
CN104703252A (en) | Terminal device accessing into wireless network method and device | |
CN107094094B (en) | Application networking method and device and terminal | |
CN110268746B (en) | Cell switching method and device, switching configuration method and device and user equipment | |
CN111031002B (en) | Broadcast discovery method, broadcast discovery device, and storage medium | |
US20220256497A1 (en) | Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling | |
CN104684106A (en) | Network connection method and device | |
CN107070707B (en) | Method and device for determining initialization mode of router | |
CN105049219A (en) | Network traffic ordering method and system, mobile terminal and server | |
CN106535166B (en) | Data service processing method and device | |
CN111277984A (en) | Wireless local area network access method and device | |
KR20200108878A (en) | Cell type indication method and apparatus | |
CN111010721A (en) | Wireless network distribution method, wireless network distribution device and computer readable storage medium | |
CN106792570B (en) | Positioning method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |