CN106612530B - Control method, device and system of networking equipment - Google Patents

Control method, device and system of networking equipment Download PDF

Info

Publication number
CN106612530B
CN106612530B CN201510701649.0A CN201510701649A CN106612530B CN 106612530 B CN106612530 B CN 106612530B CN 201510701649 A CN201510701649 A CN 201510701649A CN 106612530 B CN106612530 B CN 106612530B
Authority
CN
China
Prior art keywords
beacon frame
mac address
pseudo
identification code
networking equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510701649.0A
Other languages
Chinese (zh)
Other versions
CN106612530A (en
Inventor
周子航
卢伟山
毕志国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Original Assignee
Midea Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201510701649.0A priority Critical patent/CN106612530B/en
Publication of CN106612530A publication Critical patent/CN106612530A/en
Application granted granted Critical
Publication of CN106612530B publication Critical patent/CN106612530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Abstract

The invention discloses a method, a device and a system for controlling networking equipment, wherein the method comprises the following steps: acquiring category information of the networking equipment and acquiring an individual identification code of the networking equipment; generating a pseudo MAC address of the networking equipment according to the category information, the individual identification code and a preset rule; and generating a pseudo beacon frame according to the pseudo MAC address, and sending the pseudo beacon frame, so that the intelligent terminal receives the beacon frame sent by the networking equipment, analyzes the pseudo beacon frame to obtain the category information and the individual identification code of the networking equipment when judging that the beacon frame is the pseudo beacon frame, and performs network access configuration on the networking equipment according to the category information and the individual identification code. The method actively sends the beacon frame through the networking equipment to realize the automatic discovery of the networking equipment, and prompts the beacon frame to the user through the intelligent terminal, thereby simplifying the operation of the user, improving the user experience, accurately identifying the category of the networking equipment, distinguishing the individual of the networking equipment and the like.

Description

Control method, device and system of networking equipment
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method, a device and a system for controlling networking equipment.
Background
Along with the continuous fire and heat of the Internet of things, various kinds of networking equipment come out endlessly, such as an intelligent socket, an intelligent kettle, an air purifier, an intelligent water purifier and the like. Because the devices do not have a display or a display screen due to the problem of the space size of the devices, how to conveniently and quickly add the devices into a household wireless network is an important subject for improving the user experience and popularizing the household devices of the internet of things.
It will be appreciated that a key issue in joining devices of the type described above to a wireless network within a home is how to enable the smart terminal to quickly discover these devices to enable their network entry configuration. In the related art, the fast network access method of the networking device is generally as follows: the intelligent terminal sends a data packet with a specific rule in a network, when networking equipment (such as household appliances and the like) monitors the data packet, the networking equipment can analyze the wireless hotspot information of network access contained in the data packet, then the networking equipment requests to join the wireless hotspot, and after the networking equipment receives the network access information of the networking equipment in a network layer, the intelligent terminal can prompt the searching of the networking equipment, so that the purposes of discovery and network access of the networking equipment are realized.
But there are problems in that: the network access mode needs a user to enter a device control application program with a corresponding control function at an intelligent terminal, then enters a menu similar to 'add device' in the application program, and can start to 'search' the device, specifically, the network access device is firstly configured to a specified wireless access point and then is prompted to find the network access device, the network access mode is a passive device search mode, the discovery or search of the network access device can be completed only by the participation of the user, the user operation is increased, and the user experience is poor.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
To this end, a first object of the present invention is to propose a method of controlling a networked device. The method actively sends the beacon frame through the networking equipment to realize the automatic discovery of the networking equipment, and prompts the beacon frame to the user through the intelligent terminal, thereby simplifying the operation of the user, improving the user experience, accurately identifying the category of the networking equipment, distinguishing the individual of the networking equipment and the like.
The second objective of the present invention is to further provide a control method for a networking device.
A third object of the present invention is to provide a control apparatus for a networked device.
A fourth object of the present invention is to provide a control apparatus for a networked device.
A fifth object of the present invention is to propose a control system of a networked device.
In order to achieve the above object, a method for controlling a network-connected device according to an embodiment of the first aspect of the present invention includes: acquiring category information of the networking equipment and acquiring an individual identification code of the networking equipment; generating a pseudo MAC address of the networking equipment according to the category information, the individual identification code and a preset rule; and generating a pseudo beacon frame according to the pseudo MAC address, sending the pseudo beacon frame to enable the intelligent terminal to receive the beacon frame sent by the networking equipment, analyzing the pseudo beacon frame to obtain the category information and the individual identification code of the networking equipment when the beacon frame is judged to be the pseudo beacon frame, and carrying out network access configuration on the networking equipment according to the category information and the individual identification code.
According to the control method of the networking equipment, the category information of the networking equipment can be obtained, the individual identification code of the networking equipment is obtained, then the pseudo MAC address of the networking equipment can be generated according to the category information, the individual identification code and the preset rule, finally, the pseudo beacon frame is generated according to the pseudo MAC address, the pseudo beacon frame is sent, so that the intelligent terminal receives the beacon frame sent by the networking equipment, when the beacon frame is judged to be the pseudo beacon frame, the pseudo beacon frame is analyzed to obtain the category information and the individual identification code of the networking equipment, and the networking equipment is subjected to network access configuration according to the category information and the individual identification code, and the control method has the advantages that: 1) the networking equipment actively sends the beacon frame to realize automatic discovery of the networking equipment, and the beacon frame is prompted to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
According to one embodiment of the invention, the individual identification code is a unique random code randomly generated by the networked device.
According to one embodiment of the invention, the individual identification code is generated by: and acquiring the real MAC address of the networking equipment, and generating the personal identification code according to the real MAC address.
According to an embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, wherein the preset rule is: the first 3 bytes of the pseudo MAC address are manufacturer identification codes distributed by the International standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
According to an embodiment of the present invention, after the intelligent terminal obtains the category information and the individual identification code of the network-connected device, the method further includes: and acquiring the real MAC address of the networking equipment, generating a corresponding beacon frame according to the real MAC address and transmitting the beacon frame so that the intelligent terminal can carry out network access configuration on the networking equipment according to the beacon frame, the category information of the networking equipment and the individual identification code.
In order to achieve the above object, a method for controlling a network-connected device according to a second aspect of the present invention includes: receiving a first beacon frame sent by a networking device; judging whether the first beacon frame is a pseudo beacon frame, wherein the pseudo beacon frame is generated by the networking equipment according to the category information, the individual identification code and a preset rule of the networking equipment and is generated according to the pseudo MAC address; if the first beacon frame is the pseudo beacon frame, analyzing the first beacon frame according to the preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment; and providing the category information and the individual identification code of the networked device to a user.
According to the control method of the networking device of the embodiment of the invention, the first beacon frame sent by the networking device can be received firstly, and then whether the first beacon frame is a pseudo beacon frame or not can be judged, if the first beacon frame is the pseudo beacon frame, the first beacon frame is analyzed according to the preset rule to obtain the category information of the networking device and the individual identification code of the networking device, and the category information and the individual identification code of the networking device are provided for a user, so that the control method of the networking device at least has the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and prompts the beacon frame to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
According to one embodiment of the invention, after providing the category information and the individual identification code of the networked device to the user, the method further comprises: when receiving a network access request input by the user for the networking device, receiving a second beacon frame transmitted by the networking device, wherein the second beacon frame is generated by the networking device according to a real MAC address of the networking device; and performing network access configuration on the networking equipment according to the second beacon frame, the category information and the individual identification code.
According to an embodiment of the present invention, determining whether the first beacon frame is a pseudo beacon frame specifically includes: analyzing the first beacon frame to acquire a MAC address in the first beacon frame; judging whether the MAC address is a pseudo MAC address or not according to the MAC address, wherein the MAC address comprises bytes which can be used for distinguishing authenticity of the MAC address; and if the MAC address is the pseudo MAC address, judging that the first beacon frame is the pseudo beacon frame.
In order to achieve the above object, a control apparatus for networked devices according to an embodiment of a third aspect of the present invention includes: the first acquisition module is used for acquiring the category information of the networking equipment and acquiring the individual identification code of the networking equipment; the first generation module is used for generating a pseudo MAC address of the networking equipment according to the category information, the individual identification code and a preset rule; a second generating module, configured to generate a pseudo beacon frame according to the pseudo MAC address; and the sending module is used for sending the pseudo beacon frame so that the intelligent terminal receives the beacon frame sent by the networking equipment, analyzing the pseudo beacon frame to acquire the category information and the individual identification code of the networking equipment when judging that the beacon frame is the pseudo beacon frame, and carrying out network access configuration on the networking equipment according to the category information and the individual identification code.
According to the control device of the networking equipment, the category information of the networking equipment can be acquired through the first acquisition module, the individual identification code of the networking equipment is acquired, the first generation module generates the pseudo MAC address of the networking equipment according to the category information, the individual identification code and the preset rule, the second generation module generates the pseudo beacon frame according to the pseudo MAC address, the sending module sends the pseudo beacon frame, so that the intelligent terminal receives the beacon frame sent by the networking equipment, when the beacon frame is judged to be the pseudo beacon frame, the pseudo beacon frame is analyzed to acquire the category information and the individual identification code of the networking equipment, and the networking equipment is subjected to network access configuration according to the category information and the individual identification code, and the control device has the advantages that: 1) the networking equipment actively sends the beacon frame to realize automatic discovery of the networking equipment, and the beacon frame is prompted to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
According to one embodiment of the invention, the individual identification code is a unique random code randomly generated by the networked device.
According to one embodiment of the invention, the individual identification code is generated by: and acquiring the real MAC address of the networking equipment, and generating the personal identification code according to the real MAC address.
According to an embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, wherein the preset rule is: the first 3 bytes of the pseudo MAC address are manufacturer identification codes distributed by the International standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
According to an embodiment of the invention, the apparatus further comprises: the second acquisition module is used for acquiring the real MAC address of the networking equipment after the intelligent terminal acquires the category information and the individual identification code of the networking equipment; and the third generation module is used for generating a corresponding beacon frame according to the real MAC address and sending the beacon frame so that the intelligent terminal can carry out network access configuration on the networking equipment according to the beacon frame, the category information of the networking equipment and the individual identification code.
In order to achieve the above object, a control apparatus for a networked device according to a fourth aspect of the present invention includes: the first receiving module is used for receiving a first beacon frame sent by the networking equipment; the judging module is used for judging whether the first beacon frame is a pseudo beacon frame, wherein the pseudo beacon frame is generated by the networking equipment according to the category information, the individual identification code and a preset rule of the networking equipment and is generated according to the pseudo MAC address; the analysis module is used for analyzing the first beacon frame according to the preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment when the first beacon frame is the pseudo beacon frame; and a providing module for providing the category information and the individual identification code of the networked device to a user.
According to the control device of the networking device in the embodiment of the invention, the first receiving module can receive the first beacon frame sent by the networking device, the judging module judges whether the first beacon frame is a pseudo beacon frame, if the first beacon frame is the pseudo beacon frame, the analyzing module analyzes the first beacon frame according to the preset rule to obtain the category information of the networking device and the individual identification code of the networking device, and the providing module provides the category information and the individual identification code of the networking device for a user, so that the control device of the networking device at least has the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and prompts the beacon frame to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
According to an embodiment of the invention, the apparatus further comprises: a second receiving module, configured to receive a second beacon frame sent by the networking device after the providing module provides the category information and the individual identification code of the networking device to a user and when a network access request input by the user for the networking device is received, where the second beacon frame is generated by the networking device according to a real MAC address of the networking device; and the network access configuration module is used for carrying out network access configuration on the networking equipment according to the second beacon frame, the category information and the individual identification code.
According to an embodiment of the present invention, the determining module is specifically configured to: analyzing the first beacon frame to acquire a MAC address in the first beacon frame; judging whether the MAC address is a pseudo MAC address or not according to the MAC address, wherein the MAC address comprises bytes which can be used for distinguishing authenticity of the MAC address; and if the MAC address is the pseudo MAC address, judging that the first beacon frame is the pseudo beacon frame.
To achieve the above object, a control system of a networked device according to an embodiment of a fifth aspect of the present invention includes: a control apparatus for a networked device according to an embodiment of the third aspect of the present invention and a control apparatus for a networked device according to an embodiment of the fourth aspect of the present invention.
The control system of the networking equipment according to the embodiment of the invention has at least the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and the intelligent terminal prompts the beacon frame to a user, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1(a) is a flow chart of a method of controlling networked devices according to one embodiment of the present invention;
fig. 1(b) is a diagram illustrating a structure of a beacon frame according to an embodiment of the present invention;
FIG. 2 is a block diagram of a control apparatus of a networked device according to one embodiment of the present invention;
fig. 3 is a block diagram of a control apparatus of a networked device according to another embodiment of the present invention;
FIG. 4 is a flow chart of a method of controlling networked devices according to another embodiment of the present invention;
FIG. 5 is a flow chart of a method of controlling networked devices according to yet another embodiment of the present invention;
fig. 6 is a block diagram of a control apparatus of a networked device according to still another embodiment of the present invention;
fig. 7 is a block diagram of a control apparatus of a networked device according to still another embodiment of the present invention;
FIG. 8 is a block diagram of a control system for networked devices according to one embodiment of the present invention; and
fig. 9 is an exemplary diagram of a control process for networked devices according to one embodiment of the invention.
Reference numerals:
the network access configuration module comprises a control device 100 of the network-connected equipment, a control device 200 of the network-connected equipment, a first acquisition module 110, a first generation module 120, a second generation module 130, a sending module 140, a second acquisition module 150, a third generation module 160, a first receiving module 210, a judging module 220, an analysis module 230, a providing module 240, a second receiving module 250 and a network access configuration module 260.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A method, an apparatus, and a system for controlling a network-connected device according to an embodiment of the present invention are described below with reference to the accompanying drawings.
Fig. 1(a) is a flowchart of a control method of a network-connected device according to one embodiment of the present invention. It should be noted that the control method of the networked device according to the embodiment of the present invention may be described from the side of the networked device. In addition, the networked device may be a household appliance, which may be, but is not limited to, an intelligent kettle, an air purifier, an intelligent water purifier, an intelligent refrigerator, an intelligent washing machine, an air conditioner, and the like.
As shown in fig. 1(a), the method for controlling a network-connected device may include:
s101, obtaining category information of the networking equipment and obtaining an individual identification code of the networking equipment.
It should be noted that, as an application premise of the control method for a network-connected device according to the embodiment of the present invention, the network-connected device may be in a power-on state and has not been configured for network entry, where the network-entry-not-configured may be understood as that the network-connected device is newly installed or initialized.
Specifically, when the networking device that has not been configured to access the network is in the powered-on state, the networking device may first obtain its own category information, for example, the category information of the networking device that has been stored may be obtained from its own storage function module, where the category information is, for example, an air conditioner type, a refrigerator type, an air purifier type, and the like, and may also obtain an individual identification code of the networking device.
The individual identification code may be randomly generated by the networking device, or obtained by a real MAC (Media Access Control) address operation, or generated by other methods, and it is understood that the generation method of the individual identification code is not specifically limited in the present invention. Specifically, in one embodiment of the present invention, the individual identification code may be a unique random code randomly generated by the networked device. In another embodiment of the present invention, the individual identification code may be generated by: and acquiring the real MAC address of the networking equipment, and generating an individual identification code according to the real MAC address. In the embodiment of the present invention, the process of generating the individual identification code according to the real MAC address may be as follows: the encoding of six bytes in the real MAC address can be calculated by simple mathematical operation to obtain the individual identification code, wherein the mathematical operation can be addition, subtraction, multiplication, division, or the like, and the specific operation manner is not specifically limited in the present invention.
And S102, generating a pseudo MAC address of the networking equipment according to the category information, the individual identification code and a preset rule.
It should be noted that in the 802.11 protocol (i.e., the standard established by the international Institute of Electrical and Electronic Engineering (IEEE) for wireless lan), the Beacon frame (i.e., Beacon frame) is mainly used to declare the existence of a certain wireless network. The networking device may periodically send a beacon to make a handset or OTT (Over The Top, which refers to providing various application services to users Over The internet) device aware of The presence of The wireless network. The frame structure is shown in fig. 1(b), and may be used to convey information about a wireless network hotspot. In particular, in the beacon frame, the contents of the BSSID field and the SSID field can be acquired by a device including a wireless network card, such as a mobile phone, a tablet, or a computer of a user, and can also be acquired in an application layer. The BSSID field is the MAC address of the device that sent the beacon frame. It is understood that the MAC address is assigned by IEEE (Institute of Electrical and Electronics Engineers), which is characterized by global uniqueness of MAC addresses of individual devices. In addition, the MAC is composed of 6 bytes, the first three bytes are specified by IEEE and can represent the codes of the manufacturers for distribution, and the last three bytes can be distributed to each product by the manufacturers for application, i.e. the last 3 bytes can be distributed by the manufacturers according to the requirements of the manufacturers.
Therefore, the control method of the networking device of the embodiment of the present invention utilizes the BSSID information and the MAC address characteristics of the Beacon frame (i.e., Beacon frame). That is, after the networking device acquires the category information and the individual identification code of the networking device, the category information and the individual identification code can be merged into the last three bytes of the MAC address according to a rule, that is, a pseudo MAC address is generated. In the embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, where the preset rule may be: the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
And S103, generating a pseudo beacon frame according to the pseudo MAC address, sending the pseudo beacon frame to enable the intelligent terminal to receive the beacon frame sent by the networking equipment, analyzing the pseudo beacon frame to acquire the category information and the individual identification code of the networking equipment when the beacon frame is judged to be the pseudo beacon frame, and performing network access configuration on the networking equipment according to the category information and the individual identification code.
In the embodiment of the present invention, the intelligent terminal may be, but is not limited to, a mobile terminal, a Personal Computer (PC), a network television box, or the like. The mobile terminal can be a mobile phone, a tablet computer, a personal digital assistant and other hardware devices with various operating systems.
Specifically, after the pseudo MAC address is generated, the pseudo MAC address may be filled in a corresponding frame section (i.e., BSSID field) of the beacon frame to generate a pseudo beacon frame, and the beacon frame may be periodically transmitted in a wireless manner. After receiving the beacon frame, the intelligent terminal may analyze the beacon frame to obtain the MAC address of the beacon frame, and then may determine whether the MAC address is a pseudo MAC address according to the MAC address, for example, may determine whether the MAC address is true or false through a byte (such as an identification code end number) in the MAC address used for distinguishing authenticity of the MAC address, and if the MAC address is determined to be a pseudo MAC address, may determine that the beacon frame is a pseudo beacon frame, and then may analyze the pseudo MAC address in the pseudo beacon frame according to a preset rule to obtain the category information and the individual identification code of the networking device therein and provide the category information and the individual identification code to the user.
It should be noted that the above-mentioned pseudo MAC address field is not available in the real MAC of the official product, and the pseudo beacon frame belongs to a forged beacon, and is only used in the automatic discovery process of the networked device, and is not available in the networking. Therefore, when networking devices are networked, real beacon frames can be generated according to real MAC addresses to realize networking. Specifically, in an embodiment of the present invention, after the intelligent terminal acquires the category information and the individual identification code of the networked device, or when the intelligent terminal receives a network access request input by a user for the networked device, the control method further includes: and acquiring the real MAC address of the networking equipment, generating a corresponding beacon frame according to the real MAC address and transmitting the beacon frame so that the intelligent terminal can carry out network access configuration on the networking equipment according to the beacon frame, the category information of the networking equipment and the individual identification code.
More specifically, when the intelligent terminal receives a network access request input by a user for the networking device, the networking device may acquire its own real MAC address, and fill the real MAC address into a corresponding frame segment (i.e., BSSID field) of the Beacon frame to generate and transmit a real Beacon frame. After receiving the real beacon frame, the intelligent terminal can perform network access configuration on the networking equipment according to the real beacon frame, the category information of the networking equipment and the individual identification code, namely, can enter a network access configuration program of the equipment to realize the configuration and network access of the networking equipment.
It should be noted that, in the embodiment of the present invention, when generating the pseudo MAC address, the definition rule of the pseudo MAC address may be customized according to the requirement of the manufacturer, and the type information, the individual identification code, and the byte bit for distinguishing the true MAC address from the false MAC address of the represented networking device are not specifically limited.
According to the control method of the networking equipment, the category information of the networking equipment can be obtained, the individual identification code of the networking equipment is obtained, then the pseudo MAC address of the networking equipment can be generated according to the category information, the individual identification code and the preset rule, finally, the pseudo beacon frame is generated according to the pseudo MAC address, the pseudo beacon frame is sent, so that the intelligent terminal receives the beacon frame sent by the networking equipment, when the beacon frame is judged to be the pseudo beacon frame, the pseudo beacon frame is analyzed to obtain the category information and the individual identification code of the networking equipment, and the networking equipment is subjected to network access configuration according to the category information and the individual identification code, and the control method has the advantages that: 1) the networking equipment actively sends the beacon frame to realize automatic discovery of the networking equipment, and the beacon frame is prompted to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
In order to implement the above embodiments, the present invention further provides a control device of a networking device.
Fig. 2 is a block diagram of a control apparatus of a networked device according to an embodiment of the present invention. It should be noted that, in the embodiment of the present invention, the control device of the network-connected device may be a network-connected device. Wherein, this networking equipment can be domestic appliance, and this domestic appliance can be but not limited to intelligent kettle, air purifier, intelligent water purifier, intelligent refrigerator, intelligent washing machine, air conditioner etc..
As shown in fig. 2, the control apparatus 100 of the network-connected device may include: a first acquisition module 110, a first generation module 120, a second generation module 130, and a transmission module 140.
Specifically, the first obtaining module 110 may be configured to obtain category information of the network-connected device and obtain an individual identification code of the network-connected device. It should be noted that, the control apparatus of the networking device according to the embodiment of the present invention may be applied on the premise that the networking device is in a power-on state and has not been configured for network entry, where the network entry is not configured for network entry, which may mean that the networking device is newly installed or initialized.
More specifically, when a networking device that has not been configured to access a network is in a powered-on state, the first obtaining module 110 in the networking device may first obtain category information of itself, for example, may obtain stored category information to which the networking device belongs from a module having a storage function of itself, where the category information is, for example, an air conditioner type, a refrigerator type, an air purifier type, and the like, and may also obtain an individual identification code of the networking device.
The individual identification code may be randomly generated by the networking device, or obtained by calculating a real MAC address, or generated by other methods, and it is understood that the generation method of the individual identification code is not specifically limited in the present invention. Specifically, in one embodiment of the present invention, the individual identification code may be a unique random code randomly generated by the networked device. In another embodiment of the present invention, the individual identification code may be generated by: and acquiring the real MAC address of the networking equipment, and generating the personal identification code according to the real MAC address. In the embodiment of the present invention, the process of generating the individual identification code according to the real MAC address may be as follows: the encoding of six bytes in the real MAC address can be calculated by simple mathematical operation to obtain the individual identification code, wherein the mathematical operation can be addition, subtraction, multiplication, division, or the like, and the specific operation manner is not specifically limited in the present invention.
The first generating module 120 may be configured to generate a pseudo MAC address of a networked device according to the category information, the individual identification code, and a preset rule.
It should be noted that in the 802.11 protocol (i.e., the standard established by the international Institute of Electrical and Electronic Engineering (IEEE) for wireless lan), the Beacon frame (i.e., Beacon frame) is mainly used to declare the existence of a certain wireless network. The networking device may periodically send a beacon to make a handset or OTT (Over The Top, which refers to providing various application services to users Over The internet) device aware of The presence of The wireless network. The frame structure is shown in fig. 1(b), and may be used to convey information about a wireless network hotspot. In particular, in the beacon frame, the contents of the BSSID field and the SSID field can be acquired by a device including a wireless network card, such as a mobile phone, a tablet, or a computer of a user, and can also be acquired in an application layer. The BSSID field is the MAC address of the device that sent the beacon frame. It is understood that MAC addresses are assigned by IEEE and are characterized by global uniqueness of the MAC address of a single device. In addition, the MAC is composed of 6 bytes, the first three bytes are specified by IEEE and can represent the codes of the manufacturers for distribution, and the last three bytes can be distributed to each product by the manufacturers for application, i.e. the last 3 bytes can be distributed by the manufacturers according to the requirements of the manufacturers.
Therefore, the control apparatus of the networking device of the embodiment of the present invention utilizes the BSSID information and the MAC address characteristics of the Beacon frame (i.e., Beacon frame). That is, after the first obtaining module 110 obtains the category information and the individual identification code of itself, the first generating module 120 may merge the category information and the individual identification code into the last three bytes of the MAC address according to a rule, that is, generate a pseudo MAC address. In the embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, where the preset rule is: the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
The second generating module 130 may be configured to generate a pseudo beacon frame according to the pseudo MAC address. More specifically, after the first generation module 120 generates the pseudo MAC address, the second generation module 130 may fill the pseudo MAC address into a corresponding frame section (i.e., BSSID field) of the beacon frame to generate the pseudo beacon frame.
The sending module 140 may be configured to send a pseudo beacon frame, so that the intelligent terminal receives the beacon frame sent by the networking device, and when it is determined that the beacon frame is the pseudo beacon frame, analyzes the pseudo beacon frame to obtain category information and an individual identification code of the networking device, and performs network access configuration on the networking device according to the category information and the individual identification code. In the embodiment of the present invention, the intelligent terminal may be, but is not limited to, a mobile terminal, a PC, or a network television box. The mobile terminal can be a mobile phone, a tablet computer, a personal digital assistant and other hardware devices with various operating systems.
More specifically, the transmitting module 140 may transmit the beacon frame periodically in a wireless manner. After receiving the beacon frame, the intelligent terminal may analyze the beacon frame to obtain the MAC address of the beacon frame, and then may determine whether the MAC address is a pseudo MAC address according to the MAC address, for example, may determine whether the MAC address is true or false through a byte (such as an identification code end number) in the MAC address used for distinguishing authenticity of the MAC address, and if the MAC address is determined to be a pseudo MAC address, may determine that the beacon frame is a pseudo beacon frame, and then may analyze the pseudo MAC address in the pseudo beacon frame according to a preset rule to obtain the category information and the individual identification code of the networking device therein and provide the category information and the individual identification code to the user.
It should be noted that the above-mentioned pseudo MAC address field is not available in the real MAC of the official product, and the pseudo beacon frame belongs to a forged beacon, and is only used in the automatic discovery process of the networked device, and is not available in the networking. Therefore, when networking devices are networked, real beacon frames can be generated according to real MAC addresses to realize networking. Specifically, in an embodiment of the present invention, after the intelligent terminal acquires the category information and the individual identification code of the networked device, or when the intelligent terminal receives a network access request input by a user for the networked device, as shown in fig. 3, the control apparatus 100 of the networked device may further include a second acquiring module 150 and a third generating module 160.
In particular, the second acquisition module 150 may be used to acquire the real MAC address of the networked device. The third generating module 160 may be configured to generate and transmit a corresponding beacon frame according to the real MAC address, so that the intelligent terminal performs network access configuration on the networking device according to the beacon frame, the category information of the networking device, and the individual identification code.
More specifically, when the smart terminal receives a network access request input by a user for a networking device, the second obtaining module 150 may obtain its own real MAC address, and the third generating module 160 may fill the real MAC address into a corresponding frame segment (i.e., BSSID field) of the Beacon frame to generate and transmit a real Beacon frame. After receiving the real beacon frame, the intelligent terminal can perform network access configuration on the networking equipment according to the real beacon frame, the category information of the networking equipment and the individual identification code, namely, can enter a network access configuration program of the equipment to realize the configuration and network access of the networking equipment.
It should be noted that, in the embodiment of the present invention, when generating the pseudo MAC address, the definition rule of the pseudo MAC address may be customized according to the requirement of the manufacturer, and the type information, the individual identification code, and the byte bit for distinguishing the true MAC address from the false MAC address of the represented networking device are not specifically limited.
According to the control device of the networking equipment, the category information of the networking equipment can be acquired through the first acquisition module, the individual identification code of the networking equipment is acquired, the first generation module generates the pseudo MAC address of the networking equipment according to the category information, the individual identification code and the preset rule, the second generation module generates the pseudo beacon frame according to the pseudo MAC address, the sending module sends the pseudo beacon frame, so that the intelligent terminal receives the beacon frame sent by the networking equipment, when the beacon frame is judged to be the pseudo beacon frame, the pseudo beacon frame is analyzed to acquire the category information and the individual identification code of the networking equipment, and the networking equipment is subjected to network access configuration according to the category information and the individual identification code, and the control device has the advantages that: 1) the networking equipment actively sends the beacon frame to realize automatic discovery of the networking equipment, and the beacon frame is prompted to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
In order to implement the above embodiments, the present invention further provides another method for controlling a network-connected device.
Fig. 4 is a flowchart of a method of controlling networked devices according to another embodiment of the present invention. It should be noted that the control method of the networking device according to the embodiment of the present invention may be described from the intelligent terminal side. The intelligent terminal can be, but is not limited to, a mobile terminal, a PC, or a network television box. The mobile terminal can be a mobile phone, a tablet computer, a personal digital assistant and other hardware devices with various operating systems.
As shown in fig. 4, the method for controlling the network-connected device may include:
s401, receiving a first beacon frame sent by a networking device.
In the embodiment of the present invention, the network device may be a household appliance, and the household appliance may be, but is not limited to, an intelligent kettle, an air purifier, an intelligent water purifier, an intelligent refrigerator, an intelligent washing machine, an air conditioner, and the like.
S402, judging whether the first beacon frame is a pseudo beacon frame, wherein the pseudo beacon frame is generated by the networking equipment according to the category information, the individual identification code and the preset rule of the networking equipment, and is generated according to the pseudo MAC address.
It should be noted that, when a networking device that has not been configured for network entry is in a power-on state, the networking device may first obtain category information of itself, for example, may obtain category information of the networking device that is already stored from a module having a storage function of itself, where the category information is, for example, an air conditioner type, a refrigerator type, an air purifier type, and the like, and may also obtain an individual identification code of the networking device, and then may generate a corresponding pseudo MAC address according to the category information, the individual identification code, and a preset rule, and merge the pseudo MAC address into a frame segment corresponding to a beacon frame according to the pseudo MAC address to generate a pseudo beacon frame, and periodically transmit the pseudo beacon frame in a wireless manner. In the embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, where the preset rule may be: the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
After the intelligent terminal receives the beacon frame sent by the networking device, the intelligent terminal may determine the beacon frame first to determine whether the beacon frame (i.e., the first beacon frame) is true or false. Specifically, in the embodiment of the present invention, the first beacon frame may be analyzed to obtain the MAC address in the first beacon frame, and then, whether the MAC address is a pseudo MAC address may be determined according to the MAC address, where the MAC address includes bytes that represent authenticity of the MAC address, and if the MAC address is the pseudo MAC address, the first beacon frame is determined to be the pseudo beacon frame.
And S403, if the first beacon frame is a pseudo beacon frame, analyzing the first beacon frame according to a preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment.
Specifically, when it is determined that the received beacon frame is a pseudo beacon frame, the first beacon frame may be analyzed to obtain a BSSID field in the beacon frame (it may be understood that the content of the BSSID field is the MAC address of the device that sends the beacon frame), and then the content of the BSSID field may be analyzed according to a preset rule to obtain category information and an individual identification code of the networking device therein.
S404, providing the category information and the individual identification code of the networking equipment to the user.
According to the control method of the networking device of the embodiment of the invention, the first beacon frame sent by the networking device can be received firstly, and then whether the first beacon frame is a pseudo beacon frame or not can be judged, if the first beacon frame is the pseudo beacon frame, the first beacon frame is analyzed according to the preset rule to obtain the category information of the networking device and the individual identification code of the networking device, and the category information and the individual identification code of the networking device are provided for a user, so that the control method of the networking device at least has the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and prompts the beacon frame to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
Fig. 5 is a flowchart of a method of controlling networked devices according to yet another embodiment of the present invention. It should be noted that the control method of the networking device according to the embodiment of the present invention may be described from the intelligent terminal side.
It should be further noted that the above-mentioned pseudo MAC address field is not available in the real MAC of the official product, and the pseudo beacon frame belongs to a forged beacon, and is only used in the automatic discovery process of the networked device, and is not available in the networking. Therefore, when networking devices are networked, real beacon frames can be generated according to real MAC addresses to realize networking. For example, after providing the category information and the individual identification code of the networking device to the user, or when the intelligent terminal receives a network access request input by the user for the networking device, the network access configuration of the networking device can be realized according to a real beacon frame sent by the networking device. Specifically, as shown in fig. 5, the method for controlling a network-connected device may include:
s501, receiving a first beacon frame sent by a networking device.
S502, judging whether the first beacon frame is a pseudo beacon frame, wherein the pseudo beacon frame is generated by the networking equipment according to the category information, the individual identification code and the preset rule of the networking equipment, and is generated according to the pseudo MAC address.
Specifically, in the embodiment of the present invention, the first beacon frame may be analyzed to obtain the MAC address in the first beacon frame, and then, whether the MAC address is a pseudo MAC address may be determined according to the MAC address, where the MAC address includes bytes that represent authenticity of the MAC address, and if the MAC address is the pseudo MAC address, the first beacon frame is determined to be the pseudo beacon frame.
S503, if the first beacon frame is a pseudo beacon frame, analyzing the first beacon frame according to a preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment.
S504, the category information and the individual identification code of the networking equipment are provided for the user.
And S505, when a network access request input by a user for the networking equipment is received, receiving a second beacon frame sent by the networking equipment, wherein the second beacon frame is generated by the networking equipment according to the real MAC address of the networking equipment.
For example, when the intelligent terminal receives a network access request input by a user for a networking device, the intelligent terminal may notify the networking device according to the category information and the individual identification code of the networking device, and the networking device may acquire its own real MAC address and fill the real MAC address into a corresponding frame segment (i.e., BSSID field) of the Beacon frame to generate a real Beacon frame and periodically transmit the real Beacon frame in a wireless manner.
And S506, performing network access configuration on the networking equipment according to the second beacon frame, the category information and the individual identification code.
That is, upon confirmation by the user to join the networked device to the home wireless network, a network entry configuration procedure for the device may be entered to enable configuration of the networked device for network entry.
According to the control method of the networking equipment, when the intelligent terminal controls the networking equipment to carry out network access configuration, the networking equipment can carry out network access configuration according to the beacon frame generated by the networking equipment according to the real MAC address, the category information of the networking equipment and the individual identification code, the network access configuration of the networking equipment is realized, and the network access configuration is distinguished from the pseudo MAC address in the automatic discovery process of the networking equipment, so that the conflict is prevented.
In order to implement the above embodiments, the present invention further provides another control apparatus for networked devices.
Fig. 6 is a block diagram of a control apparatus of a network-connected device according to still another embodiment of the present invention. It should be noted that, in the embodiment of the present invention, the control device of the networked device may be an intelligent terminal. The intelligent terminal can be, but is not limited to, a mobile terminal, a PC, or a network television box. The mobile terminal can be a mobile phone, a tablet computer, a personal digital assistant and other hardware devices with various operating systems.
As shown in fig. 6, the control device 200 of the network-connected apparatus may include: a first receiving module 210, a determining module 220, a parsing module 230, and a providing module 240.
In particular, the first receiving module 210 may be used to receive a first beacon frame transmitted by a networked device. In the embodiment of the present invention, the network device may be a household appliance, and the household appliance may be, but is not limited to, an intelligent kettle, an air purifier, an intelligent water purifier, an intelligent refrigerator, an intelligent washing machine, an air conditioner, and the like.
The determining module 220 may be configured to determine whether the first beacon frame is a pseudo beacon frame, where the pseudo beacon frame is generated by the networking device according to the category information of the networking device, the individual identification code, and the preset rule, and is generated according to the pseudo MAC address.
It should be noted that, when a networking device that has not been configured for network entry is in a power-on state, the networking device may first obtain category information of itself, for example, may obtain category information of the networking device that is already stored from a module having a storage function of itself, where the category information is, for example, an air conditioner type, a refrigerator type, an air purifier type, and the like, and may also obtain an individual identification code of the networking device, and then may generate a corresponding pseudo MAC address according to the category information, the individual identification code, and a preset rule, and merge the pseudo MAC address into a frame segment corresponding to a beacon frame according to the pseudo MAC address to generate a pseudo beacon frame, and periodically transmit the pseudo beacon frame in a wireless manner. In the embodiment of the present invention, the pseudo MAC address is composed of 6 bytes, where the preset rule may be: the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE; the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address.
After the first receiving module 210 receives the beacon frame sent by the networking device, the judging module 220 may judge the beacon frame to determine whether the beacon frame (i.e., the first beacon frame) is true or false. Specifically, in the embodiment of the present invention, the determining module 220 may first analyze the first beacon frame to obtain the MAC address in the first beacon frame, and then determine whether the MAC address is a pseudo MAC address according to the MAC address, where the MAC address includes bytes representing authenticity of the MAC address, and if the MAC address is the pseudo MAC address, determine that the first beacon frame is the pseudo beacon frame.
The parsing module 230 may be configured to, when the first beacon frame is a pseudo beacon frame, parse the first beacon frame according to a preset rule to obtain category information of the networking device and an individual identification code of the networking device. More specifically, when the determining module 220 determines that the received beacon frame is a pseudo beacon frame, the parsing module 230 may first parse the first beacon frame to obtain a BSSID field in the beacon frame (it may be understood that the content of the BSSID field is the MAC address of the device that sends the beacon frame), and then may parse the content of the BSSID field according to a preset rule to obtain the category information and the individual identification code of the networked device therein.
The providing module 240 may be used to provide category information and individual identification codes of networked devices to a user.
It should be noted that the above-mentioned pseudo MAC address field is not available in the real MAC of the official product, and the pseudo beacon frame belongs to a forged beacon, and is only used in the automatic discovery process of the networked device, and is not available in the networking. Therefore, when networking devices are networked, real beacon frames can be generated according to real MAC addresses to realize networking. For example, after providing the category information and the individual identification code of the networking device to the user, or when the intelligent terminal receives a network access request input by the user for the networking device, the network access configuration of the networking device can be realized according to a real beacon frame sent by the networking device. Specifically, in one embodiment of the present invention, as shown in fig. 7, the control device 200 of the network-connected device may further include: a second receiving module 250 and a network entry configuration module 260.
Specifically, the second receiving module 250 may be configured to receive a second beacon frame transmitted by the networking device after the providing module provides the category information and the individual identification code of the networking device to the user and when a network access request input by the user for the networking device is received, where the second beacon frame is generated by the networking device according to the real MAC address of the networking device.
For example, when receiving a network access request input by a user for a networking device, the second receiving module 250 may notify the networking device according to the category information and the individual identification code of the networking device, and the networking device may acquire its own real MAC address and fill the real MAC address into a corresponding frame segment (i.e., BSSID field) of the Beacon frame to generate a real Beacon frame and periodically transmit the real Beacon frame wirelessly, so that the second receiving module 250 may receive the real Beacon frame transmitted by the networking device.
The network entry configuration module 260 may be configured to configure the networking device for network entry according to the second beacon frame, the category information, and the individual identification code. That is, upon confirmation by the user to join the networked device to the home wireless network, the network entry configuration module 260 may enter the device's network entry configuration program to enable configuration of the networked device for network entry.
Therefore, when the intelligent terminal controls the networking equipment to carry out network access configuration, the networking equipment can carry out network access configuration according to the beacon frame generated by the networking equipment according to the real MAC address, the category information and the individual identification code of the networking equipment, the network access configuration of the networking equipment is realized, and the network access configuration is distinguished from the pseudo MAC address in the automatic discovery process of the networking equipment, so that the conflict is prevented.
According to the control device of the networking device in the embodiment of the invention, the first receiving module can receive the first beacon frame sent by the networking device, the judging module judges whether the first beacon frame is a pseudo beacon frame, if the first beacon frame is the pseudo beacon frame, the analyzing module analyzes the first beacon frame according to the preset rule to obtain the category information of the networking device and the individual identification code of the networking device, and the providing module provides the category information and the individual identification code of the networking device for a user, so that the control device of the networking device at least has the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and prompts the beacon frame to a user through the intelligent terminal, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
In order to implement the above embodiments, the present invention further provides a control system of a networking device.
Fig. 8 is a block diagram of a control system of networked devices according to one embodiment of the present invention. As shown in fig. 8, the control system of the networked device may include: the control apparatus 100 of the network-connected device of any one of the above embodiments and the control apparatus 200 of the network-connected device of any one of the above embodiments.
Specifically, the detailed functional description of the control apparatus 100 of the networked device may refer to the functional description of fig. 2 and 3 described above.
The detailed functional description of the control apparatus 200 of the networked device may refer to the functional description of fig. 6 and 7 described above.
For example, taking the control device 100 of the networking device as the networking device and the control device 200 of the networking device as the intelligent terminal as an example, as shown in fig. 9, when the networking device that has not been configured for network access is in a power-on state, the networking device may first obtain its category information and its individual identification code, then may merge the category information and the individual identification code into the MAC address according to a certain rule to obtain a pseudo MAC address, and then may fill the pseudo MAC address into a corresponding frame segment (i.e., BSSID field) in the beacon frame to obtain a pseudo beacon frame and transmit the beacon frame. After receiving a beacon frame sent by networking equipment, the intelligent terminal can firstly analyze the MAC address of the beacon frame and judge whether the beacon frame is a pseudo beacon frame according to the MAC address, if so, the intelligent terminal can analyze the MAC address according to the rule to obtain the category information and the individual identification code of the networking equipment and provide the category information and the individual identification code of the networking equipment for a user, and when the user inquires the networking equipment to be added into a home wireless network, the intelligent terminal can enter a network access configuration program of the equipment to realize the configuration and network access of the networking equipment.
The control system of the networking equipment according to the embodiment of the invention has at least the following advantages: 1) the intelligent terminal receives and analyzes the beacon frame actively sent by the networking equipment to realize automatic discovery of the networking equipment, and the intelligent terminal prompts the beacon frame to a user, so that the operation of the user is simplified, and the user experience is improved; 2) by fusing the information of the networking equipment into the forged beacon frame, the category of the networking equipment can be accurately identified, and the individual of the networking equipment can be distinguished; 3) the wireless network device conforms to the 802.11 protocol and can be compatible with all wireless network devices on the market; 4) the identification mode is difficult to forge by users, and the equipment identification rate is improved.
In the description of the present invention, it is to be understood that the terms "first", "second" and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (13)

1. A method for controlling a networked device, comprising the steps of:
acquiring category information of the networking equipment and acquiring an individual identification code of the networking equipment;
generating a pseudo MAC address of the networking device according to the category information, the individual identification code and a preset rule, wherein the preset rule is as follows: the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address; and
generating a pseudo beacon frame according to the pseudo MAC address, sending the pseudo beacon frame to enable an intelligent terminal to receive the beacon frame sent by the networking equipment, analyzing the pseudo beacon frame to obtain the category information and the individual identification code of the networking equipment when the beacon frame is judged to be the pseudo beacon frame, obtaining the real MAC address of the networking equipment after the intelligent terminal obtains the category information and the individual identification code of the networking equipment, generating a corresponding beacon frame according to the real MAC address and sending the beacon frame to enable the intelligent terminal to carry out network access configuration on the networking equipment according to the beacon frame, the category information and the individual identification code of the networking equipment; the generating a pseudo beacon frame according to the pseudo MAC address comprises: and filling the pseudo MAC address into a corresponding frame section of a beacon frame to generate a pseudo beacon frame, wherein the pseudo beacon frame is used for automatic discovery of the networking equipment.
2. The method for controlling a network-connected device according to claim 1, wherein the individual identification code is a random code having uniqueness randomly generated by the network-connected device.
3. The method for controlling a network-connected device according to claim 1, wherein the individual identification code is generated by:
and acquiring the real MAC address of the networking equipment, and generating the individual identification code according to the real MAC address.
4. The method of controlling a networked device according to claim 1, wherein the pseudo MAC address is composed of 6 bytes, wherein the preset rule is:
the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE.
5. A method for controlling a networked device, comprising the steps of:
receiving a first beacon frame sent by a networking device;
judging whether the first beacon frame is a pseudo beacon frame, wherein the pseudo beacon frame is generated by the networking equipment according to the category information, the individual identification code and a preset rule of the networking equipment, and is generated according to the pseudo MAC address, wherein the preset rule is as follows: the last 3 bytes of the pseudo MAC address are an identification code end number, a category code of the networking device, and an individual identification code of the networking device, respectively, where the identification code end number is used to distinguish authenticity of the MAC address, and the generating of the pseudo beacon frame according to the pseudo MAC address includes: filling the pseudo MAC address into a corresponding frame section of a beacon frame to generate a pseudo beacon frame, wherein the pseudo beacon frame is used for automatic discovery of the networking equipment;
if the first beacon frame is the pseudo beacon frame, analyzing the first beacon frame according to the preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment; and
providing category information and an individual identification code of the networked device to a user;
when receiving a network access request input by the user for the networking device, receiving a second beacon frame transmitted by the networking device, wherein the second beacon frame is generated by the networking device according to a real MAC address of the networking device;
and performing network access configuration on the networking equipment according to the second beacon frame, the category information and the individual identification code.
6. The method for controlling networking devices according to claim 5, wherein determining whether the first beacon frame is a pseudo beacon frame specifically comprises:
analyzing the first beacon frame to acquire a MAC address in the first beacon frame;
judging whether the MAC address is a pseudo MAC address or not according to the MAC address, wherein the MAC address comprises bytes which can be used for distinguishing authenticity of the MAC address;
and if the MAC address is the pseudo MAC address, judging that the first beacon frame is the pseudo beacon frame.
7. A control apparatus of a networked device, comprising:
the first acquisition module is used for acquiring the category information of the networking equipment and acquiring the individual identification code of the networking equipment;
a first generating module, configured to generate a pseudo MAC address of the networking device according to the category information, the individual identification code, and a preset rule, where the preset rule is: the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address;
a second generating module, configured to generate a pseudo beacon frame according to the pseudo MAC address, where the generating a pseudo beacon frame according to the pseudo MAC address includes: filling the pseudo MAC address into a corresponding frame section of a beacon frame to generate a pseudo beacon frame, wherein the pseudo beacon frame is used for automatic discovery of the networking equipment; and
the sending module is used for sending the pseudo beacon frame so that the intelligent terminal receives the beacon frame sent by the networking equipment, analyzing the pseudo beacon frame to acquire the category information and the individual identification code of the networking equipment when the beacon frame is judged to be the pseudo beacon frame, and carrying out network access configuration on the networking equipment according to the category information and the individual identification code;
the second acquisition module is used for acquiring the real MAC address of the networking equipment after the intelligent terminal acquires the category information and the individual identification code of the networking equipment;
and the third generation module is used for generating a corresponding beacon frame according to the real MAC address and sending the beacon frame so that the intelligent terminal can carry out network access configuration on the networking equipment according to the beacon frame, the category information of the networking equipment and the individual identification code.
8. The control apparatus of a network-connected device according to claim 7, wherein the individual identification code is a random code having uniqueness randomly generated by the network-connected device.
9. The control apparatus of a network-connected device according to claim 7, wherein the individual identification code is generated by:
and acquiring the real MAC address of the networking equipment, and generating the individual identification code according to the real MAC address.
10. The control apparatus of networked devices according to claim 7, wherein the pseudo MAC address is composed of 6 bytes, wherein the preset rule is:
the first 3 bytes of the pseudo MAC address are a vendor identification code assigned by the international standards organization IEEE.
11. A control apparatus of a networked device, comprising:
the first receiving module is used for receiving a first beacon frame sent by the networking equipment;
a determining module, configured to determine whether the first beacon frame is a pseudo beacon frame, where the pseudo beacon frame is generated by the networking device according to the category information of the networking device, an individual identification code, and a preset rule, and is generated according to the pseudo MAC address, where the preset rule is: the last 3 bytes of the pseudo MAC address are respectively an identification code end number, a category code of the networking equipment and an individual identification code of the networking equipment, wherein the identification code end number is used for distinguishing the authenticity of the MAC address; the generating a pseudo beacon frame according to the pseudo MAC address comprises: filling the pseudo MAC address into a corresponding frame section of a beacon frame to generate a pseudo beacon frame, wherein the pseudo beacon frame is used for automatic discovery of the networking equipment;
the analysis module is used for analyzing the first beacon frame according to the preset rule to acquire the category information of the networking equipment and the individual identification code of the networking equipment when the first beacon frame is the pseudo beacon frame; and
a providing module for providing category information and an individual identification code of the networked device to a user;
a second receiving module, configured to receive a second beacon frame sent by the networking device after the providing module provides the category information and the individual identification code of the networking device to a user and when a network access request input by the user for the networking device is received, where the second beacon frame is generated by the networking device according to a real MAC address of the networking device;
and the network access configuration module is used for carrying out network access configuration on the networking equipment according to the second beacon frame, the category information and the individual identification code.
12. The control apparatus of networked devices according to claim 11, wherein the determining module is specifically configured to:
analyzing the first beacon frame to acquire a MAC address in the first beacon frame;
judging whether the MAC address is a pseudo MAC address or not according to the MAC address, wherein the MAC address comprises bytes which can be used for distinguishing authenticity of the MAC address;
and if the MAC address is the pseudo MAC address, judging that the first beacon frame is the pseudo beacon frame.
13. A control system for a networked device, comprising:
control means of a networked device according to any of claims 7 to 10; and
control means of a networked device according to any of claims 11 to 12.
CN201510701649.0A 2015-10-22 2015-10-22 Control method, device and system of networking equipment Active CN106612530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510701649.0A CN106612530B (en) 2015-10-22 2015-10-22 Control method, device and system of networking equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510701649.0A CN106612530B (en) 2015-10-22 2015-10-22 Control method, device and system of networking equipment

Publications (2)

Publication Number Publication Date
CN106612530A CN106612530A (en) 2017-05-03
CN106612530B true CN106612530B (en) 2022-03-25

Family

ID=58613446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510701649.0A Active CN106612530B (en) 2015-10-22 2015-10-22 Control method, device and system of networking equipment

Country Status (1)

Country Link
CN (1) CN106612530B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246797A (en) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 A kind of method, apparatus, system and equipment connecting wireless network
CN110225516B (en) * 2018-03-01 2023-11-17 鸿合科技股份有限公司 Connection method and system of wireless network
CN110191499A (en) * 2019-04-28 2019-08-30 深圳市亿联智能有限公司 Intelligent radio networking method and intelligent radio interconnection device
CN111884864B (en) * 2020-08-04 2023-04-18 北京立通智联科技有限公司 Method and device for managing Internet of things equipment
CN112073276B (en) * 2020-09-21 2022-02-25 国家电网有限公司 Power Internet of things communication method and system based on intelligent socket

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853336A (en) * 2015-05-18 2015-08-19 小米科技有限责任公司 Method for discovering intelligent equipment, method for accessing to internet and devices thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9338130B2 (en) * 2013-02-11 2016-05-10 Broadcom Corporation Apparatus and method to register Wi-Fi clients on a Wi-Fi network
US20140335858A1 (en) * 2013-05-08 2014-11-13 Electronics & Telecommunications Research Institute Cell search method for supporting discontinuous transmission and/or reception of base station
CN103369035A (en) * 2013-06-24 2013-10-23 四川长虹电器股份有限公司 Two dimensional code-based intelligent household electrical appliance communication method
CN104460329A (en) * 2014-10-29 2015-03-25 小米科技有限责任公司 Intelligent device connection method and device
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853336A (en) * 2015-05-18 2015-08-19 小米科技有限责任公司 Method for discovering intelligent equipment, method for accessing to internet and devices thereof

Also Published As

Publication number Publication date
CN106612530A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN106612530B (en) Control method, device and system of networking equipment
US11510167B2 (en) Method and apparatus for registering wireless device in wireless communication system
CN109600252B (en) Equipment network distribution method and device and household electrical appliance
US9401982B2 (en) Device capable of notifying operation state change thereof through network and communication method of the device
JP6263612B2 (en) Communication event notification method, apparatus and system
US9462410B2 (en) Providing service description
CN111314864B (en) Network distribution method, device and equipment
US20190200287A1 (en) Method for Identifying Access Point and Hotspot and Terminal
CN104581647A (en) Network access method and device of intelligent equipment
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
CN105830503A (en) Connection method for smart home device and apparatus thereof
US11071045B2 (en) Electronic device, communication method of electronic device, and communication method of mobile terminal
CN111741509A (en) Network distribution method and device, storage medium and processor
CN106211271A (en) The method of network entry of intelligent home device, device and intelligent home device
CN111263338A (en) Network distribution method of Bluetooth Mesh network and related network distribution equipment and system
CN106550332B (en) Method and system for acquiring network access information of networking equipment
CN107205210B (en) Method, device, system and computer program for configuring wireless network node
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN113824617A (en) Network distribution method, storage medium, household appliance and cloud server
CN113965904A (en) Device registration method, device and storage medium
US20180255446A1 (en) Remote access to an accessory device
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN104426858A (en) Information processing method and electronic equipment
CN108337741B (en) Method, apparatus and computer-readable storage medium for establishing communication connection
JP2017509273A (en) Advertise storage capabilities accessible via wireless local area networks

Legal Events

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