Background
The wireless router is a combination of a simplex Access Point (AP) and a broadband router, is a router with a wireless coverage function, and is mainly applied to user internet Access and wireless coverage.
The wireless router can be regarded as a repeater, and the broadband network signal is forwarded to nearby wireless network devices, such as a notebook computer, a mobile phone supporting WIFI, a tablet and all devices with WIFI function, through an antenna.
Wireless router transmissions use frequency bands (channels), also called channels, which are data signaling channels that use wireless signals as the transmission medium for transmitting data.
The effective working distance of the wireless router transmission is the distance that other computers can perform wireless connection within the signal coverage range of the wireless router, the effective working distance of the wireless router varies with different network environments, generally, good wireless signals can be provided within a range of 50 meters indoors, and the effective working distance can reach about 100 meters and about 200 meters outdoors.
The wireless router can work in single frequency and dual-frequency, for example, the single frequency router can adopt 2.4Ghz or 5Ghz to transmit data, and the dual-frequency router adopts 2.4Ghz frequency band and 5Ghz frequency band to transmit data.
As shown in fig. 1, which is a schematic structural diagram of an intelligent home system in the prior art, a wireless router connects intelligent electronic devices in a home through WIFI, for example, the wireless router connects electronic devices such as a mobile phone, a computer, a television, a refrigerator, a washing machine, an air conditioner, and a lamp through WIFI, so as to implement network transmission.
With the development and maturity of WIFI technology, more and more wireless routers support WIFI transmission in two frequency bands of 2.4Ghz and 5Ghz to satisfy more devices.
At present, smart homes/household appliances are still in a popularization stage, and due to the popularization of a wifi network of a home, wifi and a router are generally adopted to complete connection at present, and data interaction is carried out with a mobile phone/cloud.
Because intelligent electronic equipment, such as an intelligent socket, an intelligent air conditioner and an intelligent air purifier do not have a human-computer interaction interface, can not search/select a designated router like a computer, and has an interface for inputting a connection password, the problem of correct connection routing must be solved, and the current popular wifi configuration modes generally comprise the following 2 types.
1. The intelligent electronic equipment is in an AP mode, the mobile phone is used in a station mode, the mobile phone is connected with the AP of the intelligent electronic equipment to form a local area network, the mobile phone sends a Service Set Identifier (SSID) and a password which need to be connected with the router to the intelligent electronic equipment, and the intelligent electronic equipment actively connects with the designated router and then completes the connection.
2. The method comprises the steps that a one-key configuration (smartconfig) mode is adopted, intelligent electronic equipment is in a hybrid mode, all messages in a network are monitored, a mobile phone APP encodes an SSID and a password of a hotspot into a User Datagram Protocol (UDP) message, the UDP message is sent through a broadcast packet or a multicast message, the intelligent electronic equipment receives the UDP message and then decodes the UDP message to obtain the correct SSID and password, and then the intelligent electronic equipment is actively connected with a router of a specified SSID to complete connection.
The two modes can achieve the effect of connecting the intelligent electronic equipment to the designated router.
However, some current intelligent electronic devices use WiFi modules with 2.4GHz frequency, and can only listen and analyze signals near the 2.4GHz frequency band. Most of the existing home routers are 5GHz dual-frequency routers (the routers can work at 2.4GHz and 5GHz simultaneously). The common usage mode of the home router is that the 2.4GHz WiFi module and the 5G WiFi module of the home router use the same hotspot name (SSID) and password, but only one hotspot is displayed on the mobile phone, and in fact, two hotspots work.
However, the existing smart phone can support a 2.4GHz band and a 5GHz band, and in the above description scenario, the smart phone may preferentially connect to a hot spot of 5 GHz.
At present, the network strategy of the home router is that when no device is connected in the 2.4GHz band, multicast or broadcast messages in the 5GHz band are not forwarded to the 2.4GHz band, which causes a problem that a network cannot be distributed to an intelligent electronic device with WiFi using a 2.4GHz module when a mobile phone is connected to a network in the 5GHz band.
Disclosure of Invention
The invention provides a network distribution method and system of intelligent electronic equipment in many aspects, which can realize the network distribution of the intelligent electronic equipment with WiFi using 2.4GHz module when a terminal is connected with a dual-frequency router through a 5GHz frequency band.
One aspect of the present invention provides a network distribution method for an intelligent electronic device, where a dual-band router has a first band and a second band, and the method includes:
the dual-frequency router receives a distribution network data packet sent by a terminal through the first frequency band, wherein the distribution network data packet comprises a guide packet with preset characteristics, and the guide packet with the preset characteristics is used for indicating the dual-frequency router to send the distribution network data packet on a second frequency band;
and the dual-frequency router sends the distribution network data packet on the second frequency band, so that only the intelligent electronic equipment of the second frequency band is started to carry out distribution network according to the received distribution network data packet.
Optionally, the guidance package of the preset feature is an arithmetic progression of a preset rule.
Optionally, the distribution network data packet further includes a hotspot name and a password.
Optionally, the first frequency band is a 5Ghz frequency band, and the second frequency band is a 2.4Ghz frequency band.
Optionally, the dual-band router unconditionally sends the distribution network packet on the second frequency band.
Another aspect of the present invention provides a network distribution system of an intelligent electronic device, including a dual-band router and a terminal, where the dual-band router has a first band and a second band, and includes:
the terminal is used for distributing network data packets to the dual-frequency router through the first frequency band, the network data packets comprise guide packets with preset characteristics, and the guide packets with the preset characteristics are used for indicating the dual-frequency router to send the network data packets on a second frequency band;
the dual-frequency router is used for sending the distribution network data packet on the second frequency band according to the guide packet of the preset characteristics of the distribution network data packet, so that only the intelligent electronic equipment of the second frequency band is started to carry out distribution according to the received distribution network data packet.
Optionally, the guidance package of the preset feature is an arithmetic progression of a preset rule.
Optionally, the distribution network data packet further includes a hotspot name and a password.
Optionally, the first frequency band is a 5Ghz frequency band, and the second frequency band is a 2.4Ghz frequency band.
Optionally, the dual-band router unconditionally sends the distribution network packet on the second frequency band.
By the network distribution method and system of the intelligent electronic equipment, the intelligent electronic equipment with the WiFi module of 2.4GHz can be distributed when the terminal is connected with the dual-frequency router through the 5GHz frequency band.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The techniques described herein may be used in various Communication systems, such as 2G, 3G, 4G Communication systems and next generation Communication systems (e.g., 5G), such as Global System for mobile Communication (GSM) systems, Code Division Multiple Access (CDMA) systems, Time Division Multiple Access (TDMA) systems, Wideband Code Division Multiple Access (WCDMA) systems, Frequency Division Multiple Access (FDMA) systems, Orthogonal Frequency-Division Multiple Access (OFDMA) systems, FDMA (SC-FDMA) systems, General Packet Radio Service (General Packet Radio Service, GPRS) systems, Long Term Evolution (Long Term Evolution, LTE) systems, and other Evolution systems. CDMA systems may implement radio technologies such as Universal Terrestrial Radio Access (UTRA), CDMA2000, and the like. UTRA includes wideband-CDMA (wcdma) and other CDMA variants. In addition, CDAM2000 covers IS-2000, IS-95 and IS-856 standards. TDMA systems may implement radio technologies such as global system for mobile communications (GSM). The OFDMA system may implement Radio technologies such as Evolved-UMTS Terrestrial Radio Access (E-UTRA), Ultra Mobile Broadband (UMB), IEEE802.11(Wi-Fi), IEEE802.16(WiMAX), IEEE802.20, Flash-OFDMA, and the like. UTRA and E-UTRA are part of the Universal Mobile Telecommunication System (UMTS). 3GPP Long term evolution (e.g., LTE) is a version of UMTS that uses E-UTRA, which may employ OFDMA on the downlink and SC-FDMA on the uplink. UTRA, E-UTRA, UMTS, LTE and GSM are described in the literature of the "third Generation partnership project (3 GPP)" organization. In addition, CDAM2000 and UMB are described in the literature of the third generation partnership project 2(3GPP2) organization.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Additionally, the terms "system" and "network" are often used interchangeably herein.
As shown in fig. 2, which is a schematic flow chart of a network distribution method for an intelligent electronic device according to an embodiment of the present invention, a dual-band router has a first frequency band and a second frequency band, the intelligent electronic device may be an electronic scale, a mobile phone, a computer, a television, a refrigerator, a washing machine, an air conditioner, a lamp, and other electronic devices with Wifi function, and the intelligent electronic device may communicate with the dual-band router through the first frequency band and/or the second frequency band.
Step 201, the dual-frequency router receives a distribution network data packet sent by a terminal through the first frequency band, wherein the distribution network data packet includes a guide packet with preset characteristics, and the guide packet with preset characteristics is used for indicating the dual-frequency router to send the distribution network data packet on the second frequency band.
For example, the terminal is a smart phone or an ipad, the terminal communicates with the dual-frequency router through the first frequency band, the terminal can load and run an Application program (APP) for controlling the dual-frequency router, when a one-key configuration (SmartConfig) needs to be performed on the dual-frequency router, the terminal sends a distribution network data packet to the dual-frequency router through the first frequency band, the distribution network data packet includes a guidance packet of a preset feature, and the guidance packet of the preset feature is used for indicating the dual-frequency router to send the distribution network data packet on the second frequency band.
In another embodiment of the present invention, the guiding packet with the preset characteristic is an arithmetic progression with a preset rule, and the distribution network data packet further includes a hotspot name and a password, for example, the distribution network data packet further includes a User Datagram Protocol (UDP) multicast packet or a broadcast packet, and the UDP multicast packet or the broadcast packet carries the hotspot name and the password.
In another embodiment of the present invention, the terminal sends the distribution network data twice, where the first time sends a guidance packet carrying the preset characteristics, and the second time sends a data packet carrying the hotspot name and the password.
In another embodiment of the present invention, the first frequency band is a 5Ghz frequency band, and the second frequency band is a 2.4Ghz frequency band.
Step 202, the dual-frequency router sends the distribution network data packet on the second frequency band, so that only the intelligent electronic device of the second frequency band is started to perform distribution network according to the received distribution network data packet.
For example, the dual-band router unconditionally transmits the distribution network packet on the second frequency band. For example, the dual-band router performs multicast or broadcast on the distribution network data packet received from the first frequency band through the second frequency band regardless of whether the second frequency band is connected with a terminal or an intelligent electronic device.
And if the second frequency band of the dual-frequency router does not work, the dual-frequency router automatically activates the second frequency band.
And only starting the intelligent electronic equipment of the second frequency band to start a promiscuous mode, and when the distribution network data packet is received, carrying out distribution according to the distribution network data packet, for example, only starting the intelligent electronic equipment of the second frequency band to carry out distribution according to a hotspot name and a password carried by the distribution network data packet.
In another embodiment of the present invention, the dual-band router may also send the distribution network packet on the first frequency band.
By the network distribution method, the problem that the terminal cannot distribute the network to the intelligent electronic equipment with the 2.4GHz module through the connection of the terminal with the dual-frequency router through the 5GHz frequency band can be solved.
As shown in fig. 3, which is a schematic flow chart of a network distribution method for another intelligent electronic device according to another embodiment of the present invention, the dual-band router is configured with a 2.4Ghz band module and a 5Ghz band module, and the intelligent electronic device is an electronic scale and is configured with only a 2.4Ghz band or is only turned on.
Step 301, the terminal performs SmartConfig with the dual-frequency router through the 5Ghz band by using the APP controlling the dual-frequency router.
The terminal is smart mobile phone or ipad, the terminal passes through the 5Ghz frequency channel with the dual-frenquency router communication, the terminal can load and operate and be used for controlling the AP of dual-frenquency router, when needs are right the dual-frenquency router carries out a key configuration, the terminal passes through the 5Ghz frequency channel to the dual-frenquency router sends and joins in marriage net data package, join in marriage net data package and include data packet and the direction package that contains the preset characteristic, the data packet carries SSID and password, the direction package that presets the characteristic is used for instructing the dual-frenquency router will join in marriage net data package and send on the 2.4Ghz frequency channel.
In another embodiment of the present invention, the terminal sends a distribution network data packet to the dual-frequency router through the 5Ghz band, where the distribution network data packet only includes a guidance packet with a preset characteristic, and the guidance packet with the preset characteristic is used to instruct the dual-frequency router to send the distribution network data packet on the 2.4Ghz band. The guide packet with the preset characteristics is an arithmetic progression.
And after the terminal finishes sending the guide packet, sending a packet data packet to the dual-frequency router through the 5Ghz frequency band, wherein the data packet carries an SSID (service set identifier) and a password.
302-.
The WiFi module of the electronic scale, which is 2.4GHz, works in a promiscuous mode and receives WiFi information transmitted by all surrounding hot spots.
The 5G dual-frequency router is in a normal network control strategy at ordinary times, and the 5GHz frequency band module and the 2.4GHz frequency band module are separately managed, namely if the 2.4GHz frequency band module is not connected with the intelligent electronic device, the UDP multicast packet and the broadcast packet of the 5GHz frequency band module can be only sent on the 5GHz frequency band but not sent on the 2.4GHz frequency band, so that the purpose of power saving and safety is achieved.
When the dual-frequency router detects that a guide packet contained in a group of UDP multicast packets or broadcast packets has a preset characteristic, for example, the length of the guide packet is a regular arithmetic progression, it is judged that an intelligent electronic device is in a SmartConfig distribution network, the dual-frequency router changes a network control strategy according to the preset characteristic of the guide packet, and generates a hot spot management for a 5GHz frequency band and a 2.4GHz frequency band, namely, the dual-frequency router sends all UDP multicast packets and/or broadcast packets received in the 5GHz frequency band on the 2.4GHz frequency band no matter whether an intelligent electronic device is connected with a 2.4GHz frequency band module.
For example, if the 2.4GHz band module of the dual-band router does not work, the dual-band router automatically activates the 2.4GHz band according to the preset characteristics of the guiding packet, and forwards the UDP multicast packet and/or broadcast packet on the 2.4GHz band.
The electronic scale can analyze the UDP multicast packet and/or the broadcast packet sent out from the 2.4GHz frequency band of the dual-frequency router to obtain the SSID and the password so as to carry out connection.
When the dual-frequency router detects that a new device is accessed in the 2.4GHz frequency band (for example, the dual-frequency router distinguishes different devices through a network card mac address of the mobile device), the dual-frequency router returns to a normal network control strategy, and the 5GHz frequency band and the 2.4GHz frequency band are managed separately.
And after the electronic scale is connected with the router, the SSID and the password are stored, and the distribution network is finished.
By the network distribution method, the electronic scale under the above scene can be ensured to be successfully distributed.
After the electronic scale is successfully distributed with the network, if a user manually turns off the 2.4GHz frequency band of the dual-frequency router, the electronic scale can be awakened again, and the electronic scale still does not surf the internet even though the electronic scale has a hotspot name and a password. Therefore, other wireless modules, such as a bluetooth module, can be added to the electronic scale and the dual-band router. And when the electronic scale is awakened, searching hot spots according to the stored SSID and the password. If the time is out and the searching is not carried out after a period of time, an instruction can be sent to the fixed router through the additional module, the 2.4GHz frequency band is tried to be awakened, and then connection is carried out.
Fig. 4 is a schematic structural diagram of a distribution network system of an intelligent electronic device according to another embodiment of the present invention, where the distribution network system includes a terminal 41, a dual-frequency router 42, and an intelligent electronic device 43.
The terminal 41 is a smart phone or an ipad, the terminal 41 and the dual-band router 42 communicate with each other through a first band and/or a second band, the terminal 41 may load and run an Application (APP) for controlling the dual-band router 42,
the dual-frequency router 42 is provided with a first frequency band module and a second frequency band module, the intelligent electronic device 43 can be an electronic device with a Wifi function, such as an electronic scale, a mobile phone, a computer, a television, a refrigerator, a washing machine, an air conditioner and a lamp, and the intelligent electronic device 43 and the dual-frequency router 42 can communicate through the first frequency band and/or the second frequency band.
The terminal 41 sends a distribution network data packet to the dual-frequency router 42 through the first frequency band, wherein the distribution network data packet includes a guide packet with a preset characteristic, and the guide packet with the preset characteristic is used for indicating the dual-frequency router 42 to send the distribution network data packet on the second frequency band.
For example, when a one-key configuration (SmartConfig) needs to be performed on the dual-frequency router 42, the terminal 41 sends a distribution network packet to the dual-frequency router 42 through the first frequency band, where the distribution network packet includes a guidance packet of a preset feature, and the guidance packet of the preset feature is used to instruct the dual-frequency router 42 to send the distribution network packet on the second frequency band.
In another embodiment of the present invention, the guiding packet with the preset characteristic is an arithmetic progression with a preset rule, and the distribution network data packet further includes a hotspot name and a password, for example, the distribution network data packet further includes a User Datagram Protocol (UDP) multicast packet or a broadcast packet, and the UDP multicast packet or the broadcast packet carries the hotspot name and the password.
In another embodiment of the present invention, the terminal 41 sends the distribution network data twice, where the first time sends the guidance packet carrying the preset feature, and the second time sends the data packet carrying the hotspot name and the password.
In another embodiment of the present invention, the first frequency band is a 5Ghz frequency band, and the second frequency band is a 2.4Ghz frequency band.
The dual-frequency router 42 is configured to send the distribution network data packet on the second frequency band, so that only the intelligent electronic device 43 in the second frequency band is turned on to perform distribution according to the received distribution network data packet.
For example, the dual-band router 42 is configured to unconditionally transmit the distribution network packet on the second band. For example, the dual-band router 42 multicasts or broadcasts the distribution network data packet received from the first band through the second band, regardless of whether the second band is connected to the terminal 41 or the intelligent electronic device 43.
If the second frequency band of the dual-frequency router 42 is not operating, the dual-frequency router 42 automatically activates the second frequency band.
And only starting the intelligent electronic device 43 in the second frequency band to start the promiscuous mode, and when the distribution network data packet is received, carrying out distribution according to the distribution network data packet, for example, only starting the intelligent electronic device 43 in the second frequency band carries out distribution according to the hotspot name and the password carried by the distribution network data packet.
In another embodiment of the present invention, the dual-band router 42 may also transmit the distribution network packet on the first frequency band.
Through the distribution network system, the problem that the terminal cannot distribute the network for the intelligent electronic equipment of the 2.4Ghz module through the connection of the double-frequency router with the 5Ghz frequency band can be solved.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.