CN112601201A - Method for automatically distributing network, routing equipment and computer readable storage medium - Google Patents
Method for automatically distributing network, routing equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112601201A CN112601201A CN202011377570.4A CN202011377570A CN112601201A CN 112601201 A CN112601201 A CN 112601201A CN 202011377570 A CN202011377570 A CN 202011377570A CN 112601201 A CN112601201 A CN 112601201A
- Authority
- CN
- China
- Prior art keywords
- network
- password
- intelligent
- account
- bluetooth
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 description 22
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000006855 networking Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 206010063385 Intellectualisation Diseases 0.000 description 2
- 239000000470 constituent Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides a network configuration method, which is applied to routing equipment and comprises the following steps: receiving a network configuration request; acquiring a preset network account and a preset password; searching any intelligent device near the routing device and establishing Bluetooth connection with the intelligent device; the network account and the password are sent to the intelligent equipment through the Bluetooth connection, so that the intelligent equipment utilizes the network account and the password to carry out network connection; and receiving and displaying a network connection result returned by the intelligent equipment. The invention also provides a routing device and a computer storage medium. By using the method and the device, the automatic network distribution efficiency can be improved, the workload is reduced, and the user experience is improved.
Description
Technical Field
The invention relates to the field of smart home, in particular to an automatic network distribution method, routing equipment and a computer readable storage medium.
Background
With the development of social science and technology, the living standard of people is improved, and intelligent equipment is more and more appeared in daily life. People connect various intelligent home appliances such as a refrigerator, a washing machine, an air conditioner, a desk lamp, a television and the like through a wireless network such as bluetooth, WiFi and the like, and perform unified voice control through a designated voice input interface. For example, a speaker is used to receive a voice command, and a home appliance is controlled.
However, at present, wireless network connection of the intelligent device is a very time-consuming and tedious work, and often needs to be manually connected to the network one by one, and if power failure, new purchase of the device, network failure and other conditions occur, network connection of related intelligent devices all needs to be manually reconfigured one by one, so that the workload is large, and the user experience is low.
Disclosure of Invention
In view of this, the present invention provides a network configuration method, a routing device, and a computer-readable storage medium, which can simplify the distribution network workflow of an intelligent device, implement automation and intelligence of network configuration, reduce the workload of a user, and improve the user experience.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, a network configuration method is provided, which is applied to a routing device, and includes:
receiving a network configuration request;
acquiring a preset network account and a preset password;
searching any intelligent device near the routing device and establishing Bluetooth connection with the intelligent device;
the network account and the password are sent to the intelligent equipment through the Bluetooth connection, so that the intelligent equipment utilizes the network account and the password to carry out network connection;
and receiving and displaying a network connection result returned by the intelligent equipment.
Preferably, the step of acquiring the preset network account and the preset password specifically includes:
reading the network account and the password from the routing equipment; or
And receiving the network account and the password input by the user through the routing equipment.
Preferably, the smart device and one or more other smart devices form a bluetooth mesh network.
Preferably, the method further comprises the following steps:
and broadcasting the network account and the password to the mesh network through the intelligent equipment so as to enable other intelligent equipment in the mesh network to receive the network account and the password and carry out network connection by utilizing the network account and the password.
Preferably, the step of searching for any intelligent device near the routing device and establishing bluetooth connection with the intelligent device includes:
searching intelligent equipment near the routing equipment, and judging whether intelligent equipment in a slave equipment mode exists or not;
and if the Bluetooth connection exists, selecting an intelligent device from the intelligent devices in the slave device mode to establish Bluetooth connection with the routing device.
Preferably, the network account is a wireless network name (SSID) of the wireless router, and the password is a wireless network password of the wireless router.
Preferably, the step of the intelligent device performing network connection by using the network account and the password specifically includes:
searching a corresponding wireless router according to the wireless network name;
and when the wireless router is searched, connecting the wireless router through the wireless network password.
Preferably, the step of receiving and displaying the network connection result returned by the intelligent device specifically includes:
judging whether a network connection result returned by the intelligent equipment is received within preset time;
if so, judging that the network connection result is valid, and displaying the network connection result;
if not, judging that the network connection result is fed back overtime, and prompting that the automatic distribution network fails.
In a second aspect, a routing device is proposed, which comprises a memory, a processor, and a network configuration program stored on the memory and executable by the processor, wherein the network configuration program, when executed by the processor, can implement the network configuration method as described above.
In a third aspect, a computer-readable storage medium is proposed, on which a network configuration program is stored, which, when executed by at least one processor, may implement the network configuration method as described above.
The invention has the beneficial effects that:
compared with the prior art, according to the network configuration method, the routing equipment and the computer-readable storage medium provided by the invention, when the user terminal initiates the network configuration request, the routing equipment establishes Bluetooth connection with an intelligent device (such as an intelligent home device) through Bluetooth search, and then sends the network account and the password to the intelligent device, so that the intelligent device can broadcast the network account and the password through the Bluetooth mesh network, all the intelligent devices in the mesh network can receive the network account and the password, the network configuration and connection can be automatically carried out, manual operation of a user is not needed, the work flow of a distribution network is simplified, the automation and the intellectualization of the network configuration are realized, the workload is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention.
FIG. 1 is a schematic illustration of an alternative operating environment for various embodiments of the present invention;
FIG. 2 is a diagram illustrating a hardware architecture of an alternative routing device according to embodiments of the present invention;
fig. 3 is a flowchart illustrating a network configuration method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
Hereinafter, various embodiments of the present invention will be described more fully. The invention is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit various embodiments of the invention to the specific embodiments disclosed herein, but on the contrary, the intention is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of various embodiments of the invention.
Hereinafter, the terms "includes" or "may include" used in various embodiments of the present invention indicate the presence of disclosed functions, operations, or elements, and do not limit the addition of one or more functions, operations, or elements. Furthermore, as used in various embodiments of the present invention, the terms "comprises," "comprising," "includes," "including," "has," "having" and their derivatives are intended to mean that the specified features, numbers, steps, operations, elements, components, or combinations of the foregoing, are only meant to indicate that a particular feature, number, step, operation, element, component, or combination of the foregoing, is not to be understood as first excluding the existence of, or adding to the possibility of, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the invention, the expression "a or/and B" includes any or all combinations of the words listed simultaneously, e.g., may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present invention may modify various constituent elements in various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present invention.
It should be noted that: in the present invention, unless otherwise explicitly stated or defined, the terms "mounted," "connected," "fixed," and the like are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium; there may be communication between the interiors of the two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, it should be understood by those skilled in the art that the terms indicating an orientation or a positional relationship herein are based on the orientations and the positional relationships shown in the drawings and are only for convenience of describing the present invention and simplifying the description, but do not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation and operate, and thus, should not be construed as limiting the present invention.
The terminology used in the various embodiments of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the present invention. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an alternative operating environment of the embodiments of the invention is shown.
As shown in fig. 1, the present invention can be applied to an operating environment including, but not limited to, a routing device 1, a cloud server 2, at least one smart device 3, and a user terminal 4. The routing device 1 may be a portable electronic device such as a mobile phone, a smart phone, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), and the like. The cloud server 2 may be a computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server, and the cloud server 2 may be an independent computing device or a computing device cluster composed of a plurality of electronic devices. The smart device 3 includes, but is not limited to, smart home devices such as a smart panel, a smart switch, a smart speaker, a smart television, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, a smart door lock, a digital screen, a desktop computer, and a navigator. The user terminal 4 may be a portable intelligent terminal such as a smart phone, a tablet computer, a multimedia device, and the like.
In this embodiment, during normal operation, the user terminal 4 and one or more of the intelligent devices 3 are both connected to a communication network through a network interface provided by the routing device 1, and are further connected to the cloud server 2 through the communication network in a communication manner. The communication network may be a wired or wireless network such as an Intranet (Intranet), the Internet (Internet), a Global System for mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
The routing device 1 mainly refers to hardware devices such as a wired or wireless router and is mainly used for connecting an intelligent home network and an external public network. Generally, the smart device 3 is connected to the routing device 1 through a smart home network, connected to an external network through the routing device 1, and communicatively connected to the cloud server 2. The cloud server 2 is generally used as an intelligent home cloud platform, the intelligent home cloud platform can provide at least one intelligent home account for a user, and the user can manage the intelligent home devices installed in a home through the home account, for example, the intelligent device 3 and the like. The user terminal 4 is generally a portable electronic device such as a user smart phone, a client program which can cooperate with the smart home cloud platform is installed in the user terminal 4, and the client program can be used for providing a user operation interface and facilitating management and remote control of the smart home device by a user. The smart device 3 generally refers to various smart home devices installed in a home of the user, such as a smart sound box, a smart television, a smart air conditioner, and the like, and the smart device 3 is generally configured to respond to a control instruction issued by the cloud server 2 and provide various functions required by the user for the user.
In order to ensure the normal operation of the routing device 1, the cloud server 2, and the at least one smart device 3, the smart device 3 generally needs to maintain a network communication connection with the cloud server 2 in real time. However, when a home network, power interruption, network account password update, factory equipment restoration of the intelligent device 3, and other special conditions occur, to complete network communication connection between the intelligent device 3 and the cloud server 2, a user often needs to perform network configuration on the intelligent device 3 one by one, so that the intelligent device 3 is network-connected with the cloud server 2 again through a network, which is heavy in workload and low in user experience.
In order to avoid the above situation, in this embodiment, the routing device 1 is integrated with a Bluetooth module, and the Bluetooth module at least supports Bluetooth Low Energy (BLE) connection. In this way, when the above special case occurs, the routing device 1 is operable to:
first, a network configuration request is received. Wherein the network configuration request is generally sent by a user through the user terminal 4 to initiate a network configuration process for one or more intelligent devices 3. For example, a module of a one-key distribution network may be added to the smart home account or the client program, and when network configuration is required, a user may trigger the network configuration request by clicking the one-key distribution network key.
And secondly, acquiring a preset network account and a preset password. The network account and the password are generally an account and a password of a wireless network in a user's home, and the routing device 1 may directly read the network account and the password from the routing device 1, or may receive a network account and a password input by the user in an account password input interface provided by the routing device 1 and/or the user terminal 4. Further, the network account may be a wireless network name (SSID) of a wireless router in the user's home network; correspondingly, the password may be a wireless network password of a wireless router in the user's home network.
Then, any smart device 3 in the vicinity of the routing device 1 is searched and a bluetooth connection is established therewith. The smart device 3 needs to maintain one or more smart home devices in real time, where the smart home devices are in network communication with the cloud server 2. In this embodiment, the smart device 3 is also equipped with a Bluetooth module, and the Bluetooth module also supports at least a Bluetooth Low Energy (BLE) connection. To facilitate bluetooth searching of the routing device 1, the bluetooth module of the smart device 3 may be configured in a bluetooth slave mode, while the routing device 1 may be configured in a bluetooth master mode. For example, before issuing the network configuration request, the user processes the smart device 3 in advance, so that the smart device 3 enters a bluetooth slave mode in advance to facilitate bluetooth search and identification of the routing device 1 as a bluetooth master. In this way, when the routing device 1 performs bluetooth search, it may be determined whether there are smart devices 3 in the slave device mode nearby, and if so, the number of smart devices 3 in the slave device mode may be determined, and a smart device 3 may be selected from the smart devices 3 in the slave device mode to establish bluetooth connection with the routing device 1. It should be noted that, in this embodiment, the number of the smart devices 3 may be one or more, and when there is more than one smart device 3, the routing device 1 selects one smart device 3 from the smart devices 3 to establish a low-power consumption (BLE) bluetooth connection and/or a classic bluetooth connection, so as to prepare for the subsequent transmission of the network account and the password.
And finally, sending the network account and the password to the intelligent device 3 through the Bluetooth connection, so that the intelligent device 3 utilizes the network account and the password to perform network connection. In this embodiment, after the bluetooth connection between the routing device 1 and the intelligent device 3 is established, the routing device 1 may send a network account and a password necessary for network connection to the intelligent device 3 through the bluetooth connection. Because the number of the intelligent devices 3 establishing the bluetooth connection is one, the routing device 1 may send the network account and the password to the intelligent device 3 through a classic bluetooth connection, or send the network account and the password to the intelligent device 3 through a low-power-consumption bluetooth connection.
Corresponding to the routing device 1, the smart device 3 is operable to:
firstly, a Bluetooth slave device mode of each intelligent device 3 is started so as to facilitate Bluetooth search of the routing device 1 and establishment of Bluetooth connection with any intelligent device 3; secondly, when the routing device 1 sends the network account and the password through the Bluetooth connection, the network account and the password are received; and finally, performing network connection by using a wireless network interface (such as a wifi module) equipped in the intelligent device 3 and the received network account and password. The step of performing network connection by using the network account and the password by the intelligent device 3 specifically includes: searching a corresponding wireless router according to the wireless network name; when the wireless router is searched, the wireless router is connected through the wireless network password, and then network communication connection is carried out between the wireless router and the cloud server 2 through network service provided by the wireless router.
Further, in this embodiment, in order to ensure that each of the smart devices 3 can complete the network connection with the cloud server 2. After the above-mentioned smart device 3 receives the network account and the password sent by the routing device 1 through the bluetooth connection, the smart device 3 may further be configured to: a bluetooth mesh network is pre-established with one or more other smart devices 3.
In this embodiment, all the smart devices 3 are configured with bluetooth modules, and the bluetooth modules at least support BLE bluetooth connection and mesh networking protocols. One or more of the smart devices 3 may construct the mesh network by the mesh networking protocol. The mesh network may be used to broadcast data packets and/or messages between the smart devices 3 that are components of the mesh network. As can be seen from the foregoing, the routing device 1 may perform bluetooth connection with any intelligent device 3 in the mesh network, and send the network account and the password to the intelligent device 3. Therefore, when the smart device 3 receives the network account and the password, the smart device 3 may send the network account and the password to the mesh network, and broadcast the network account and the password through the mesh network, so that other smart devices 3 in the mesh network can receive the network account and the password and perform network connection by using the network account and the password.
Furthermore, in order to avoid the network connection waiting too long, a preset time may be set in this embodiment to determine whether the network connection of the intelligent device 3 is overtime. Specifically, for example, the preset time may be set to 10 seconds, and after the intelligent device 3 receives the network account and the password, if the network connection is not completed within 10 seconds, it may be determined that the network connection of the intelligent device 3 is overtime, and the network connection fails. Accordingly, for the routing device 1, the routing device 1 is further configured to: and receiving and displaying the network connection result returned by the intelligent equipment 3. The routing device 1 may also set a preset time for waiting for the intelligent device 3 to feed back the network connection result corresponding to the timeout determination time of the intelligent device 3, for example, a time equal to the preset time may be set, for example, 10 seconds, for determining whether the feedback of the network connection result is timeout; of course, different times, such as 15 seconds, may be set. Specifically, the routing device 1 may be configured to determine whether a network connection result returned by the intelligent device 3 is received within a preset time; if so, judging that the network connection result is valid, and displaying the network connection result; if not, judging that the network connection result is fed back overtime, and prompting that the automatic distribution network fails.
Fig. 2 is a schematic diagram of a hardware architecture of an optional routing device 1 according to various embodiments of the present invention.
In this embodiment, the routing device 1 may include, but is not limited to, a memory 11, a processor 12, a display unit 13, a bluetooth module 14, a WIFI module 15, and a communication interface 16, which may be communicatively connected to each other through a system bus. It is noted that fig. 1 shows the routing device 1 with various components, but it is to be understood that not all of the shown components are required to be implemented. More or fewer components may alternatively be implemented. The elements of the routing device 1 will be described in detail below.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the routing device 1, such as a hard disk or a memory of the routing device 1. In other embodiments, the memory 11 may also be an external storage device of the routing device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the routing device 1. Of course, the memory 11 may also comprise both an internal memory unit of the routing device 1 and an external memory device thereof. In this embodiment, the memory 11 is generally used for storing an operating system installed in the routing device 1 and various types of application software, such as computer readable program codes related to network configuration in this embodiment. Furthermore, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12, in some embodiments, may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip. The processor 12 is typically used to control the overall operation of the routing device 1. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, for example, execute the computer readable program code related to network configuration.
The display unit 13 may display information processed in the routing device 1. For example, when the routing device 1 is in a phone call mode, the display unit 13 may display a User Interface (UI) or Graphical User Interface (GUI) associated with a call or other communication (e.g., text messaging, multimedia file download, etc.). When the routing device 1 is in a video call mode or an image capturing mode, the display unit 13 may display captured images and/or received images, a UI or GUI showing videos or images and related functions, and the like. Meanwhile, when the display unit 13 and the touch panel are superimposed on each other in the form of layers to form a touch screen, the display unit 13 may function as an input device and an output device. The display unit 13 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. The routing device 1 may comprise two or more display units 13 (or other display means) according to a particularly desired embodiment, for example the routing device 1 may comprise an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The bluetooth module 14 includes at least a classic bluetooth module and a Bluetooth Low Energy (BLE) module. The classic bluetooth module and the BLE module may be respectively configured to establish classic bluetooth connection and BLE bluetooth connection between the routing device 1 and the smart device 3, and perform bluetooth data transmission and communication. In general, the bluetooth module 14 may support different device modes, including but not limited to a slave device mode and a master device mode, and when the routing device 1 enters the master device mode, the routing device 1 may actively search for nearby bluetooth devices and make bluetooth connections. When the routing device 1 enters the slave device mode, the routing device 1 can only passively send out a bluetooth signal, and waits for the master device mode apparatus to actively search and connect the routing device 1.
The WIFI module 15 is generally used for performing a wireless network connection between the routing device 1 and a routing device to support network communication of the routing device 1.
The communication interface 16 may be a communication interface of a wireless or wired network, such as an Intranet (Internet), the Internet (Internet), a Global System for mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, a Bluetooth (Bluetooth), or Wi-Fi. The communication interface 16 is typically used for communication connections between the routing device 1 and other intelligent devices.
It should be noted that the bluetooth module 14 and the WIFI module 15 are not only stored in the routing device 1, but in this embodiment, the bluetooth module 14 and the WIFI module 15 are also configured in the smart device 3.
The hardware structure and functions of the related devices of the present invention have been described in detail so far. Hereinafter, various embodiments of the present invention will be proposed based on the above-described hardware structure and function.
First, the present invention provides a network configuration method.
Please refer to fig. 3, which is a flowchart illustrating a network configuration method according to an embodiment of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 3 may be changed and some steps may be omitted according to different requirements. The network configuration method comprises the following steps:
step S110, a network configuration request is received.
In this embodiment, the network configuration request is generally sent by the user through the user terminal 4, so as to initiate a network configuration process for one or more intelligent devices 3. For example, a one-key distribution network module may be added to the smart home account or the client program, so that when the smart device 3 needs to be configured in a network under the special condition described above, the user may trigger the network configuration request by clicking the one-key distribution network key.
And step S120, acquiring a preset network account and a preset password.
In this embodiment, the network account and the password are generally an account and a password of a wireless network in a home of the user, and the routing device 1 may directly read the network account and the password from the routing device 1, or may receive a network account and a password input by the user in an account password input interface provided by the routing device 1 and/or the user terminal 4. Further, the network account may be a wireless network name (SSID) of a wireless router in the user's home network; correspondingly, the password may be a wireless network password of a wireless router in the user's home network.
Step S130, searching for the smart device 3 near the routing device, and establishing a bluetooth connection therewith.
In this embodiment, the smart device 3 needs to maintain one or more smart home devices in real time, where the smart home devices are in network communication with the cloud server 2. The smart device 3 is also equipped with a Bluetooth module that supports at least a Bluetooth Low Energy (BLE) connection. To facilitate bluetooth searching of the routing device 1, the bluetooth module of the smart device 3 may be configured in a bluetooth slave mode, while the routing device 1 may be configured in a bluetooth master mode. For example, before issuing the network configuration request, the user processes the smart device 3 in advance, so that the smart device 3 enters a bluetooth slave mode in advance to facilitate bluetooth search and identification of the routing device 1 as a bluetooth master. In this way, when the routing device 1 performs bluetooth search, it may be determined whether there are smart devices 3 in the slave device mode nearby, and if so, the number of smart devices 3 in the slave device mode may be determined, and a smart device 3 may be selected from the smart devices 3 in the slave device mode to establish bluetooth connection with the routing device 1. It should be noted that, in this embodiment, the number of the smart devices 3 may be one or more, and when there is more than one smart device 3, the routing device 1 selects one smart device 3 from the smart devices 3 to establish a low-power consumption (BLE) bluetooth connection and/or a classic bluetooth connection, so as to prepare for the subsequent transmission of the network account and the password.
Step S140, sending the network account and the password to the intelligent device 3 through the bluetooth connection, so that the intelligent device 3 performs a network by using the network account and the password.
In this embodiment, after the bluetooth connection between the routing device 1 and the intelligent device 3 is established, the routing device 1 may send a network account and a password necessary for network connection to the intelligent device 3 through the bluetooth connection. Because the number of the intelligent devices 3 establishing the bluetooth connection is one, the routing device 1 may send the network account and the password to the intelligent device 3 through a classic bluetooth connection, or send the network account and the password to the intelligent device 3 through a low-power-consumption bluetooth connection.
And S150, receiving and displaying the network connection result returned by the intelligent equipment.
In this embodiment, after the bluetooth slave device mode of each of the intelligent devices 3 is turned on, the bluetooth connection is established with the routing device 1, and the network account and the password sent by the routing device 1 through the bluetooth connection are received, the intelligent devices 3 perform network connection by using a equipped wireless network interface (for example, a WIFI module) and the received network account and password. The step of performing network connection by using the network account and the password by the intelligent device 3 specifically includes: searching a corresponding wireless router according to the wireless network name; when the wireless router is searched, the wireless router is connected through the wireless network password, and then network communication connection is carried out between the wireless router and the cloud server 2 through network service provided by the wireless router.
Further, in this embodiment, in order to ensure that each of the smart devices 3 can complete the network connection with the cloud server 2. After the above-mentioned smart device 3 receives the network account and the password sent by the routing device 1 through the bluetooth connection, the smart device 3 may further be configured to: a bluetooth mesh network is pre-established with one or more other smart devices 3.
In this embodiment, all the smart devices 3 are configured with bluetooth modules, and the bluetooth modules at least support BLE bluetooth connection and mesh networking protocols. One or more of the smart devices 3 may construct the mesh network by the mesh networking protocol. The mesh network may be used to broadcast data packets and/or messages between the smart devices 3 that are components of the mesh network. As can be seen from the foregoing, the routing device 1 may perform bluetooth connection with any intelligent device 3 in the mesh network, and send the network account and the password to the intelligent device 3. Therefore, when the smart device 3 receives the network account and the password, the smart device 3 may send the network account and the password to the mesh network, and broadcast the network account and the password through the mesh network, so that other smart devices 3 in the mesh network can receive the network account and the password and perform network connection by using the network account and the password.
Furthermore, in order to avoid the network connection waiting too long, a preset time may be set in this embodiment to determine whether the network connection of the intelligent device 3 is overtime. Specifically, for example, the preset time may be set to 10 seconds, and after the intelligent device 3 receives the network account and the password, if the network connection is not completed within 10 seconds, it may be determined that the network connection of the intelligent device 3 is overtime, and the network connection fails. Accordingly, for the routing device 1, the routing device 1 is further configured to: and receiving and displaying the network connection result returned by the intelligent equipment 3. The routing device 1 may also set a preset time for waiting for the intelligent device 3 to feed back the network connection result corresponding to the timeout determination time of the intelligent device 3, for example, a time equal to the preset time may be set, for example, 10 seconds, for determining whether the feedback of the network connection result is timeout; of course, different times, such as 15 seconds, may be set. Specifically, the routing device 1 may be configured to determine whether a network connection result returned by the intelligent device 3 is received within a preset time; if so, judging that the network connection result is valid, and displaying the network connection result; if not, judging that the network connection result is fed back overtime, and prompting that the automatic distribution network fails.
Through the steps S110 to S150, according to the network configuration method provided by the present invention, when the user terminal 4 initiates a network configuration request, the routing device 1 establishes a bluetooth connection with an intelligent device 3 (e.g., an intelligent home device) through a bluetooth search, and then sends a network account and a password to the intelligent device 3, so that the intelligent device 3 can broadcast the network account and the password through the bluetooth mesh network, and all the intelligent devices 3 in the mesh network can receive the network account and the password, thereby automatically performing network configuration and connection, without a manual operation of a user, simplifying a network configuration workflow, realizing automation and intellectualization of network configuration, reducing workload, and improving user experience.
Secondly, the invention also provides a routing device 1.
As shown in fig. 2, the routing device 1 includes the memory 11, the processor 12, a display unit 13, a bluetooth module 14, a WIFI module 15, and a communication module 16. Wherein, the memory 11 stores a network configuration program executable by the processor 12, and when the network configuration program is executed by the processor 12, the following steps can be implemented:
step S110, a network configuration request is received.
In this embodiment, the network configuration request is generally sent by the user through the user terminal 4, so as to initiate a network configuration process for one or more intelligent devices 3. For example, a one-key distribution network module may be added to the smart home account or the client program, so that when the smart device 3 needs to be configured in a network under the special condition described above, the user may trigger the network configuration request by clicking the one-key distribution network key.
And step S120, acquiring a preset network account and a preset password.
In this embodiment, the network account and the password are generally an account and a password of a wireless network in a home of the user, and the routing device 1 may directly read the network account and the password from the routing device 1, or may receive a network account and a password input by the user in an account password input interface provided by the routing device 1 and/or the user terminal 4. Further, the network account may be a wireless network name (SSID) of a wireless router in the user's home network; correspondingly, the password may be a wireless network password of a wireless router in the user's home network.
Step S130, searching for the smart device 3 near the routing device, and establishing a bluetooth connection therewith.
In this embodiment, the smart device 3 needs to maintain one or more smart home devices in real time, where the smart home devices are in network communication with the cloud server 2. The smart device 3 is also equipped with a Bluetooth module that supports at least a Bluetooth Low Energy (BLE) connection. To facilitate bluetooth searching of the routing device 1, the bluetooth module of the smart device 3 may be configured in a bluetooth slave mode, while the routing device 1 may be configured in a bluetooth master mode. For example, before issuing the network configuration request, the user processes the smart device 3 in advance, so that the smart device 3 enters a bluetooth slave mode in advance to facilitate bluetooth search and identification of the routing device 1 as a bluetooth master. In this way, when the routing device 1 performs bluetooth search, it may be determined whether there are smart devices 3 in the slave device mode nearby, and if so, the number of smart devices 3 in the slave device mode may be determined, and a smart device 3 may be selected from the smart devices 3 in the slave device mode to establish bluetooth connection with the routing device 1. It should be noted that, in this embodiment, the number of the smart devices 3 may be one or more, and when there is more than one smart device 3, the routing device 1 selects one smart device 3 from the smart devices 3 to establish a low-power consumption (BLE) bluetooth connection and/or a classic bluetooth connection, so as to prepare for the subsequent transmission of the network account and the password.
Step S140, sending the network account and the password to the intelligent device 3 through the bluetooth connection, so that the intelligent device 3 performs a network by using the network account and the password.
In this embodiment, after the bluetooth connection between the routing device 1 and the intelligent device 3 is established, the routing device 1 may send a network account and a password necessary for network connection to the intelligent device 3 through the bluetooth connection. Because the number of the intelligent devices 3 establishing the bluetooth connection is one, the routing device 1 may send the network account and the password to the intelligent device 3 through a classic bluetooth connection, or send the network account and the password to the intelligent device 3 through a low-power-consumption bluetooth connection.
And S150, receiving and displaying the network connection result returned by the intelligent equipment.
In this embodiment, after the bluetooth slave device mode of each of the intelligent devices 3 is turned on, the bluetooth connection is established with the routing device 1, and the network account and the password sent by the routing device 1 through the bluetooth connection are received, the intelligent devices 3 perform network connection by using a equipped wireless network interface (for example, a WIFI module) and the received network account and password. The step of performing network connection by using the network account and the password by the intelligent device 3 specifically includes: searching a corresponding wireless router according to the wireless network name; when the wireless router is searched, the wireless router is connected through the wireless network password, and then network communication connection is carried out between the wireless router and the cloud server 2 through network service provided by the wireless router.
Further, in this embodiment, in order to ensure that each of the smart devices 3 can complete the network connection with the cloud server 2. After the above-mentioned smart device 3 receives the network account and the password sent by the routing device 1 through the bluetooth connection, the smart device 3 may further be configured to: a bluetooth mesh network is pre-established with one or more other smart devices 3.
In this embodiment, all the smart devices 3 are configured with bluetooth modules, and the bluetooth modules at least support BLE bluetooth connection and mesh networking protocols. One or more of the smart devices 3 may construct the mesh network by the mesh networking protocol. The mesh network may be used to broadcast data packets and/or messages between the smart devices 3 that are components of the mesh network. As can be seen from the foregoing, the routing device 1 may perform bluetooth connection with any intelligent device 3 in the mesh network, and send the network account and the password to the intelligent device 3. Therefore, when the smart device 3 receives the network account and the password, the smart device 3 may send the network account and the password to the mesh network, and broadcast the network account and the password through the mesh network, so that other smart devices 3 in the mesh network can receive the network account and the password and perform network connection by using the network account and the password.
Furthermore, in order to avoid the network connection waiting too long, a preset time may be set in this embodiment to determine whether the network connection of the intelligent device 3 is overtime. Specifically, for example, the preset time may be set to 10 seconds, and after the intelligent device 3 receives the network account and the password, if the network connection is not completed within 10 seconds, it may be determined that the network connection of the intelligent device 3 is overtime, and the network connection fails. Accordingly, for the routing device 1, the routing device 1 is further configured to: and receiving and displaying the network connection result returned by the intelligent equipment 3. The routing device 1 may also set a preset time for waiting for the intelligent device 3 to feed back the network connection result corresponding to the timeout determination time of the intelligent device 3, for example, a time equal to the preset time may be set, for example, 10 seconds, for determining whether the feedback of the network connection result is timeout; of course, different times, such as 15 seconds, may be set. Specifically, the routing device 1 may be configured to determine whether a network connection result returned by the intelligent device 3 is received within a preset time; if so, judging that the network connection result is valid, and displaying the network connection result; if not, judging that the network connection result is fed back overtime, and prompting that the automatic distribution network fails.
Through the steps S110 to S150, when the user terminal 4 initiates a network configuration request, the routing device 1 establishes bluetooth connection with an intelligent device 3 (e.g., an intelligent home device) through bluetooth search, and then sends a network account and a password to the intelligent device 3, so that the intelligent device 3 can broadcast the network account and the password through a bluetooth mesh network, and all the intelligent devices 3 in the mesh network can receive the network account and the password to automatically perform network configuration and connection.
Finally, the invention also provides a computer readable storage medium.
In this embodiment, the computer readable storage medium stores a network configuration program, and when the network configuration program is executed by at least one processor, the network configuration method can be implemented as described above. Since the foregoing has been described in considerable detail, it is not necessary here to describe this detail.
Based on the foregoing in all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-described embodiments are merely illustrative of several embodiments of the present invention, which are described in more detail and detail, but are not to be construed as limiting the scope of the present invention. It should be noted that, for those skilled in the art, other various changes and modifications can be made according to the above-described technical solutions and concepts, and all such changes and modifications should fall within the protection scope of the present invention.
Claims (10)
1. A network configuration method is applied to a routing device, and is characterized by comprising the following steps:
receiving a network configuration request;
acquiring a preset network account and a preset password;
searching any intelligent device near the routing device and establishing Bluetooth connection with the intelligent device;
the network account and the password are sent to the intelligent equipment through the Bluetooth connection, so that the intelligent equipment utilizes the network account and the password to carry out network connection;
and receiving and displaying a network connection result returned by the intelligent equipment.
2. The method according to claim 1, wherein the step of obtaining the preset network account and the password specifically includes:
reading the network account and the password from the routing equipment; or
And receiving the network account and the password input by the user through the user terminal.
3. The method of claim 2, wherein the smart device forms a bluetooth mesh network with one or more other smart devices.
4. The method of claim 3, further comprising:
and broadcasting the network account and the password to the mesh network through the intelligent equipment so as to enable other intelligent equipment in the mesh network to receive the network account and the password and carry out network connection by utilizing the network account and the password.
5. The method according to claim 1, wherein the step of searching for any intelligent device in the vicinity of the routing device and establishing a bluetooth connection therewith specifically comprises:
searching intelligent equipment near the routing equipment, and judging whether intelligent equipment in a slave equipment mode exists or not;
and if the Bluetooth connection exists, selecting an intelligent device from the intelligent devices in the slave device mode to establish Bluetooth connection with the routing device.
6. The method of any one of claims 1-5, wherein the network account is a wireless network name (SSID) of the wireless router, and the password is a wireless network password of the wireless router.
7. The method according to claim 6, wherein the step of using the network account and the password by the smart device to perform network connection specifically includes:
searching a corresponding wireless router according to the wireless network name;
and when the wireless router is searched, connecting the wireless router through the wireless network password.
8. The method according to claim 7, wherein the step of receiving and displaying the network connection result returned by the smart device specifically includes:
judging whether a network connection result returned by the intelligent equipment is received within preset time;
if so, judging that the network connection result is valid, and displaying the network connection result;
if not, judging that the network connection result is fed back overtime, and prompting that the automatic distribution network fails.
9. A routing device comprising a memory, a processor, and a network configuration program stored on the memory and executable by the processor, the network configuration program when executed by the processor implementing the network configuration method of any one of claims 1-8.
10. A computer-readable storage medium having stored thereon a network configuration program executable by at least one processor to implement the network configuration method of any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011377570.4A CN112601201A (en) | 2020-11-30 | 2020-11-30 | Method for automatically distributing network, routing equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011377570.4A CN112601201A (en) | 2020-11-30 | 2020-11-30 | Method for automatically distributing network, routing equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112601201A true CN112601201A (en) | 2021-04-02 |
Family
ID=75187360
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011377570.4A Pending CN112601201A (en) | 2020-11-30 | 2020-11-30 | Method for automatically distributing network, routing equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112601201A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113965916A (en) * | 2021-10-14 | 2022-01-21 | 上海庆科信息技术有限公司 | A device network distribution method, device, device, and computer-readable storage medium |
| CN114422995A (en) * | 2022-01-04 | 2022-04-29 | 太仓市同维电子有限公司 | A method for automatic home networking without perception |
| CN114567870A (en) * | 2022-02-28 | 2022-05-31 | 海信视像科技股份有限公司 | GATT-based distribution network account allocation method, control terminal and display device |
| CN116633711A (en) * | 2023-04-26 | 2023-08-22 | 海信冰箱有限公司 | Refrigerator and control method thereof |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105392181A (en) * | 2015-10-20 | 2016-03-09 | 广东欧珀移动通信有限公司 | Networking method, device and system for intelligent equipment |
| US20160330597A1 (en) * | 2015-05-08 | 2016-11-10 | Blackberry Limited | Electronic device and method of determining suggested responses to text-based communications |
| US20170026777A1 (en) * | 2015-07-26 | 2017-01-26 | Qualcomm Incorporated | Bluetooth low energy interlaced advertising and scanning |
| CN107124341A (en) * | 2017-06-28 | 2017-09-01 | 广东美的制冷设备有限公司 | Intelligent home device match somebody with somebody network method and intelligent domestic system |
| CN109995621A (en) * | 2017-12-30 | 2019-07-09 | 成都标制文化创意有限公司 | Smart home device matches network method and smart home system |
| CN110636483A (en) * | 2019-09-16 | 2019-12-31 | 珠海格力电器股份有限公司 | Network distribution method and system |
-
2020
- 2020-11-30 CN CN202011377570.4A patent/CN112601201A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160330597A1 (en) * | 2015-05-08 | 2016-11-10 | Blackberry Limited | Electronic device and method of determining suggested responses to text-based communications |
| US20170026777A1 (en) * | 2015-07-26 | 2017-01-26 | Qualcomm Incorporated | Bluetooth low energy interlaced advertising and scanning |
| CN105392181A (en) * | 2015-10-20 | 2016-03-09 | 广东欧珀移动通信有限公司 | Networking method, device and system for intelligent equipment |
| CN107124341A (en) * | 2017-06-28 | 2017-09-01 | 广东美的制冷设备有限公司 | Intelligent home device match somebody with somebody network method and intelligent domestic system |
| CN109995621A (en) * | 2017-12-30 | 2019-07-09 | 成都标制文化创意有限公司 | Smart home device matches network method and smart home system |
| CN110636483A (en) * | 2019-09-16 | 2019-12-31 | 珠海格力电器股份有限公司 | Network distribution method and system |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113965916A (en) * | 2021-10-14 | 2022-01-21 | 上海庆科信息技术有限公司 | A device network distribution method, device, device, and computer-readable storage medium |
| CN114422995A (en) * | 2022-01-04 | 2022-04-29 | 太仓市同维电子有限公司 | A method for automatic home networking without perception |
| CN114567870A (en) * | 2022-02-28 | 2022-05-31 | 海信视像科技股份有限公司 | GATT-based distribution network account allocation method, control terminal and display device |
| CN114567870B (en) * | 2022-02-28 | 2024-04-16 | 海信视像科技股份有限公司 | GATT-based network and account number distribution method, control terminal and display device |
| CN116633711A (en) * | 2023-04-26 | 2023-08-22 | 海信冰箱有限公司 | Refrigerator and control method thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12425675B2 (en) | Remote control of concurrent media playback on multiple devices via centralized network services | |
| CN112601202A (en) | Method for automatically distributing network, electronic device and computer readable storage medium | |
| CN112601201A (en) | Method for automatically distributing network, routing equipment and computer readable storage medium | |
| US9742868B2 (en) | Method, device and system for processing instant messaging information and setting terminal priority | |
| US20190052476A1 (en) | Smart appliance control method and smart appliance | |
| US8769030B2 (en) | Device event notification registration through direct interaction with mobile device | |
| US10701532B2 (en) | System and method of providing sensing data to an electronic device using a template to identify a data type and format for the electronic device | |
| WO2020223854A1 (en) | Device network configuration method and apparatus, electronic device and storage medium | |
| US10104537B2 (en) | Terminal peripheral control method, M2M gateway, and communications system | |
| US20160124403A1 (en) | Method and server of customizing scenario mode for smart devices | |
| JP2017076430A (en) | Server, control method and program | |
| CN116760567A (en) | Account association methods, devices, electronic devices and storage media | |
| CN110351225A (en) | A kind of networking method of hardware device, device, system and storage medium | |
| CN105792025A (en) | Device information obtaining method and terminal | |
| CN109218994B (en) | Equivalent equipment Bluetooth communication method and device based on gateway | |
| CN106028307A (en) | Communication terminal and single card multi-communication number communication control method and device | |
| US20090216864A1 (en) | Methods, apparatuses, and computer program products, for automatically finding configuration settings for services | |
| CN105978989B (en) | service resource recommendation system, method and device | |
| CN112351074A (en) | Network distribution method and device, electronic equipment and storage medium | |
| CN111355782B (en) | Equipment management method and device, storage medium and electronic equipment | |
| KR101869983B1 (en) | A mobile terminal, an operating methods using it, and human machine interface system | |
| EP4535755A1 (en) | Communication method and apparatus | |
| CN117749861A (en) | MICE-compatible screen-throwing auxiliary equipment connection method and related equipment | |
| CN114070729A (en) | Method and device for unified configuration management of telephones by using telephones | |
| CN114666779A (en) | Device connection method and device, computer device and storage medium |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210402 |
|
| WD01 | Invention patent application deemed withdrawn after publication |