CN112073276B - Power Internet of things communication method and system based on intelligent socket - Google Patents

Power Internet of things communication method and system based on intelligent socket Download PDF

Info

Publication number
CN112073276B
CN112073276B CN202010993015.8A CN202010993015A CN112073276B CN 112073276 B CN112073276 B CN 112073276B CN 202010993015 A CN202010993015 A CN 202010993015A CN 112073276 B CN112073276 B CN 112073276B
Authority
CN
China
Prior art keywords
network access
intelligent socket
server
mac address
request message
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
CN202010993015.8A
Other languages
Chinese (zh)
Other versions
CN112073276A (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.)
Shibei Power Supply Branch Of State Grid Chongqing Electric Power Co
State Grid Corp of China SGCC
Original Assignee
Shibei Power Supply Branch Of State Grid Chongqing Electric Power Co
State Grid Corp of China SGCC
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 Shibei Power Supply Branch Of State Grid Chongqing Electric Power Co, State Grid Corp of China SGCC filed Critical Shibei Power Supply Branch Of State Grid Chongqing Electric Power Co
Priority to CN202010993015.8A priority Critical patent/CN112073276B/en
Publication of CN112073276A publication Critical patent/CN112073276A/en
Application granted granted Critical
Publication of CN112073276B publication Critical patent/CN112073276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention provides an electric power Internet of things communication method and system based on an intelligent socket, wherein the method comprises the following steps: the intelligent socket monitors whether the household appliance establishes a connection relation in real time; when the connection relation of the household appliances is established, the intelligent socket broadcasts a first beacon frame in a local networking; the household appliance unicast-sends a first network access request message to the intelligent socket according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to the server; the server authenticates the second MAC address in the first network access request message, generates a first network access reply message according to the authentication result and sends the first network access reply message to the household appliance through the intelligent socket; the invention solves the problem that networking of electric appliances in power supply companies and users' homes cannot be realized due to different communication protocols of the intelligent socket-based power internet of things communication method in the prior art, so that the users and the power supply companies can accurately acquire detailed power utilization conditions of the electric appliances.

Description

Power Internet of things communication method and system based on intelligent socket
Technical Field
The invention relates to the technical field of communication, in particular to an electric power Internet of things communication method and system based on an intelligent socket.
Background
The intelligent home is characterized in that a home is taken as a platform, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, an efficient home facility and a management system of daily matters of the home are constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized.
Along with the popularization of the internet of things, the intelligent socket is widely applied to an intelligent home system, can visually reflect information such as running power, current and voltage of household appliances on the socket, and can open or close the household appliances according to control instructions. However, the communication protocols of the current intelligent sockets designed for users are different and difficult to realize unification, so that power supply companies cannot accurately acquire the details of the power utilization information of the users.
Therefore, in the prior art, communication protocols of the power internet of things communication method based on the intelligent socket are different, networking of the power supply company and electrical equipment in the home of the user cannot be realized, and the power supply company cannot accurately acquire detailed information of the power utilization condition of the user.
Disclosure of Invention
Aiming at the defects in the prior art, the electric power Internet of things communication method and system based on the intelligent socket solve the problem that networking of electric appliances in power supply companies and the homes of users cannot be realized due to different communication protocols of the electric power Internet of things communication method based on the intelligent socket in the prior art, and enable the users and the power supply companies to accurately acquire detailed power utilization conditions of the electric appliances.
In a first aspect, the invention provides a smart socket-based power internet of things communication method, which includes: the intelligent socket monitors whether the household appliance establishes a connection relation in real time; when a connection relation of household appliances exists, broadcasting a first beacon frame in a local networking by the intelligent socket, wherein the first beacon frame comprises a first MAC address of the intelligent socket; the household appliance device unicast-transmits a first network access request message to the intelligent socket according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server, wherein the first network access request message comprises a second MAC address of the household appliance device; and the server authenticates the second MAC address in the first network access request message, generates a first network access reply message according to the authentication result, and sends the first network access reply message to the household appliance through the intelligent socket.
Optionally, before the smart socket monitors whether a connection relationship between the household electrical appliances is established in real time, the method further includes: the intelligent socket monitors a communication channel to acquire a network beacon frame; according to the time indication in the network beacon frame, a second network access request message is sent to the server in a unicast mode in a CSMA period; the server acquires a source address for sending the second network access request message according to the second network access request message; the server acquires the node type of the second network access request message according to the source address; when the node type is the intelligent socket, the server generates a unique private MAC address in the local networking; and the server generates a second network access reply message from the private MAC address and sends the second network access reply message to the intelligent socket, so that the intelligent socket takes the private MAC address as the first MAC address in the local networking.
Optionally, the authenticating, by the server, the second MAC address in the first network access request message, and sending, to the home appliance device, a first network access reply message generated by an authentication result through the smart socket includes: the server compares a second MAC address in the first network access request message with a preset white list; and when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the household appliance through the intelligent socket, so that the household appliance is added into the local networking.
Optionally, the method further comprises: and when the second MAC address does not exist in the preset white list, the server sends a network access rejection message to the household appliance through the intelligent socket, so that the household appliance waits for a preset time and then sends the first network access request message.
Optionally, when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the home appliance device through the smart socket, so that the home appliance device joins the local networking, and the method further includes: the intelligent socket monitors the operation parameters of the household appliance; the intelligent socket carries out formatting processing on the operation parameters to obtain a data packet; the intelligent socket sends the data packet to the server in a unicast mode; and the server monitors the household appliance according to the operation parameters obtained after the data packet is analyzed.
Optionally, the smart socket formats the operating parameters to obtain a data packet, including: the intelligent socket packages each operation parameter into a data sub-package according to the data type and the format of the numerical value; the intelligent socket packages a plurality of data sub-packets into the data packet; wherein the data type and the byte length of the value are fixed values.
Optionally, the server, according to the operation parameter obtained by analyzing the data packet, includes: initializing variable parameters, wherein the variable parameters comprise a type value index and a type value number; acquiring a byte length value of the data packet; judging whether the length value of the byte is larger than a first preset value or not; when the length value of the byte is larger than the first preset value, acquiring the number of the type values in the data packet; sequentially extracting each type value and a numerical value corresponding to the type value by taking the offset as a second preset value according to the number of the type values; wherein the second preset value is the sum of the byte length of the data type and the byte length of the numerical value.
Optionally, after determining whether the byte length value is greater than a first preset value, the method further includes: and when the byte length value is less than or equal to the first preset value, sending data error prompt information.
Optionally, the smart socket sends the data packet unicast to the server, including: acquiring a byte length value of the data packet; judging whether the length value of the byte is larger than a third preset value or not; when the length of the bytes is smaller than or equal to the third preset value, the data packet is sent to the server; and when the byte length is larger than the third preset value, sending a data packet uploading request to the server, and sending the data packet to the server after receiving uploading approval information sent by the server.
In a second aspect, the present invention provides a smart socket-based power internet of things communication system, including: the intelligent socket is used for monitoring whether the household appliances establish a connection relation in real time; the intelligent socket is further used for broadcasting a first beacon frame in a local networking when the connection relation of the household electrical appliance is established, wherein the first beacon frame comprises a first MAC address of the intelligent socket; the household appliance device is used for sending a first network access request message to the intelligent socket in a unicast mode according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server, and the first network access request message comprises the second MAC address of the household appliance device; and the server is used for authenticating the second MAC address in the first network access request message and generating a first network access reply message according to the authentication result and sending the first network access reply message to the household appliance through the intelligent socket.
Compared with the prior art, the invention has the following beneficial effects:
the electric power Internet of things communication method based on the intelligent socket continuously detects whether a household appliance is plugged into the socket or not through the intelligent socket, when the household appliance is detected to be plugged into the intelligent socket, a beacon frame comprising an MAC address of the household appliance is broadcasted to the household appliance, the household appliance sends a network access request message comprising the MAC address of the household appliance to the intelligent socket according to the MAC address in the beacon frame, the intelligent socket forwards the received network access request message to a server, the server authenticates the network access request message of the household appliance, and then the authentication result is sent to the household appliance through the intelligent socket, so that the connection between the household appliance and the electric power Internet of things is realized; therefore, the household appliance plugged with the intelligent socket can be connected to the power internet of things, so that the power acquisition equipment in the power internet of things can acquire the power utilization information of the household appliance in real time, a user and a power supply company can accurately acquire the detailed power utilization condition of the household appliance in real time, and the household appliance can be remotely controlled according to the power utilization condition of the household appliance, so that potential safety hazards are eliminated.
Drawings
Fig. 1 is a schematic flow chart of a smart socket-based power internet of things communication method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating another smart socket-based power internet of things communication method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a network access process of an intelligent socket and a home appliance according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a format of a data packet according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data transmission process according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a data parsing process according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of a communication method of an electric power internet of things based on a smart jack according to an embodiment of the present invention, and as shown in fig. 1, the communication method of the electric power internet of things based on the smart jack specifically includes the following steps:
and S101, the intelligent socket monitors whether the household appliances establish a connection relation in real time.
Specifically, the smart socket monitors whether a household appliance home connection relationship exists in real time, that is, the smart socket continuously detects whether a household appliance is plugged into the socket.
And step S102, when the connection relation of the household appliances is established, the intelligent socket broadcasts a first beacon frame in the local networking.
Specifically, when detecting that the household appliance is plugged into the smart socket, the smart socket broadcasts a first beacon frame in a first subsequent CSMA period, wherein the first beacon frame comprises a first MAC address of the smart socket.
Step S103, the household appliance unicast-sends a first network access request message to the intelligent socket according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server.
Specifically, after the household appliance is plugged into an intelligent socket and connected to a power network, a beacon frame is continuously monitored, and if a first beacon frame sent by the intelligent socket is received, a network access request message is sent to a source node of the first beacon frame in a unicast mode in a subsequent first CSMA period, so that the intelligent socket forwards the network access request message to a server, wherein the first network access request message comprises a second MAC address of the household appliance.
And step S104, the server authenticates the second MAC address in the first network access request message, generates a first network access reply message according to the authentication result, and sends the first network access reply message to the household appliance through the intelligent socket.
Specifically, the authenticating, by the server, the second MAC address in the first network entry request message includes: the server compares a second MAC address in the first network access request message with a preset white list; when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the household appliance through the intelligent socket, so that the household appliance is added into the local networking; when the second MAC address does not exist in the preset white list, the server sends a network access rejection message to the household appliance through the intelligent socket, so that the household appliance waits for a preset time and then sends the first network access request message; the server in this embodiment may be a central coordinator or a data center server in the power grid.
It should be noted that the smart socket-based power internet-of-things communication method provided by the present invention continuously detects whether a home appliance is plugged into a socket through a smart socket, and when detecting that the home appliance is plugged into the smart socket, broadcasts a beacon frame including its own MAC address to the home appliance, so that the home appliance sends a network access request message including the MAC address of the home appliance to the smart socket according to the MAC address in the beacon frame, and the smart socket forwards the received network access request message to a server, so that the server performs authentication processing on the network access request message of the home appliance, and then sends an authentication result to the home appliance through the smart socket, thereby realizing connection between the home appliance and the power internet-of-things; therefore, the household appliance plugged with the intelligent socket can be connected to the power internet of things, so that the power acquisition equipment in the power internet of things can acquire the power utilization information of the household appliance in real time, a user and a power supply company can accurately acquire the detailed power utilization condition of the household appliance in real time, and the household appliance can be remotely controlled according to the power utilization condition of the household appliance, so that potential safety hazards are eliminated.
Fig. 2 is a schematic flow chart of another smart socket-based power internet-of-things communication method according to an embodiment of the present invention, and as shown in fig. 2, the smart socket-based power internet-of-things communication method further includes the following steps:
step S201, the intelligent socket monitors a communication channel to acquire a network beacon frame;
step S202, according to the time indication in the network beacon frame, a second network access request message is sent to the server in a unicast mode in a CSMA period;
step S203, the server acquires a source address for sending the second network access request message according to the second network access request message;
step S204, the server acquires the node type of the second network access request message according to the source address;
step S205, when the node type is the intelligent socket, the server generates a unique private MAC address in the local networking;
step S206, the server generates a second network access reply message from the private MAC address and sends the second network access reply message to the smart socket, so that the smart socket uses the private MAC address as the first MAC address in the local networking.
In another embodiment of the present invention, when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the home appliance through the smart socket, so that the home appliance joins in the local networking, and the method further includes: the intelligent socket monitors the operation parameters of the household appliance; the intelligent socket carries out formatting processing on the operation parameters to obtain a data packet; the intelligent socket sends the data packet to the server in a unicast mode; and the server monitors the household appliance according to the operation parameters obtained after the data packet is analyzed.
It should be noted that, in this embodiment, in order to assign addresses to a large number of smart sockets, the server configures a 48-bit private MAC address for a smart socket in the local network group, which is unique in the local network group to which it belongs, but does not have global uniqueness; the household appliance equipment is addressed by a manufacturer for producing the household appliance equipment, and the determined MAC address has global uniqueness.
Fig. 3 is a schematic diagram illustrating a network access process of an intelligent socket and a home appliance according to an embodiment of the present invention, where the network access process of the intelligent socket is as follows: after the intelligent socket is connected with a power grid, a frame listening channel is adopted, if a beacon frame is received, a network access request frame is unicast, the original address of the frame is a randomly generated 48bits address with the I/G bit of 1, the fact that the intelligent socket does not have a globally unique MAC address is indicated, and the intelligent socket needs to be distributed by a server; after searching for a network access request from a server to an intelligent socket, randomly generating an MAC address, after verification and verification that the MAC address does not conflict, allocating the MAC address to the intelligent socket as a private MAC address of the intelligent socket, and then replying a network access reply frame which contains the private MAC address allocated to the intelligent socket; and the intelligent socket receives the network access reply frame, extracts the private MAC address from the network access reply frame, uses the private MAC address as the MAC address of the intelligent socket and uses the private MAC address in the subsequent communication process.
The network access process of the household appliance is as follows: the intelligent socket continuously detects whether the household appliance is plugged into the socket, and when the household appliance is detected to be plugged into the intelligent socket, a beacon frame containing the MAC address of the intelligent socket is broadcast in the subsequent first CSMA period; after the household appliance is plugged into an intelligent socket and connected with a power network, continuously monitoring a beacon frame; if the beacon frame is received, a network access request message is sent to a source node of the beacon frame in a unicast mode in the subsequent first CSMA time period, the intelligent socket receives the network access request message and then forwards the network access request message to the server, the server performs authentication processing on the network access request message, and then a network access reply message is sent to the household appliance in a unicast mode; if the home appliance does not receive the network access reply message within the preset waiting time, the home appliance can reinitiate the network access request, and if the network access request is refused, the home appliance can request network access again after waiting for a period of time interval according to the reassociation time, or can select another network to request to join the network.
Further, the smart socket formats the operating parameters to obtain a data packet, including: the intelligent socket packages each operation parameter into a data sub-package according to the data type and the format of the numerical value; the intelligent socket packages a plurality of data sub-packets into the data packet; wherein the data type and the byte length of the value are fixed values.
Fig. 4 is a schematic diagram of a format of a data packet according to an embodiment of the present invention, and as shown in fig. 4, the smart socket encapsulates detected operating parameters into a data sub-packet according to a format of "type and value", so that a plurality of type values of the home appliance, such as a model, a voltage, a current, an address, a temperature, a status, and the like of the home appliance, can be carried at one time, where in this embodiment, a data type is 2 bytes long, a data value is 8 bytes long, and then one data sub-packet is 10 bytes long.
In another embodiment of the present invention, the smart socket transmitting the data packet unicast to the server includes: acquiring a byte length value of the data packet; judging whether the length value of the byte is larger than a third preset value or not; when the length of the bytes is smaller than or equal to the third preset value, the data packet is sent to the server; and when the byte length is larger than the third preset value, sending a data packet uploading request to the server, and sending the data packet to the server after receiving uploading approval information sent by the server.
It should be noted that, in the embodiment of the present invention, the transmission of the long packet and the transmission of the short packet are included, before the smart socket sends the packet, the length of the packet is determined, and if the length exceeds the threshold, the long packet transmission mechanism is used: firstly, performing two-time handshake, performing path detection, and then transmitting a packet; waiting for a confirmation message after the packet is sent; and if the packet sending fails, retransmitting the packet. Before sending a long data packet, a node needs to perform two handshaking with a destination node of the data packet, so that the reliability of a transmission path is ensured; when the node sends a short data packet, a two-time handshake mechanism is not needed, the data packet is directly sent, and the confirmation of the destination node on the data packet is waited; the data transmission process provided by this embodiment is shown in fig. 5, and specifically includes the following steps:
step a, initializing the retransmission times i of the data packet to be 0;
step b, setting the maximum short packet length as L, the retransmission timeout time as T and the maximum retransmission times as M;
step c, formatting the data uploaded by the node into a form of 2+8 bytes;
d, judging whether the length of the book content is greater than L, if not, executing the step e, otherwise, executing the step g;
step e, judging whether i is larger than M, if not, executing step f, otherwise, executing step j;
step f, sending the current short bag, then judging whether a confirmation bag is received within T time, if so, executing step j, otherwise, adding 1 to the value of i, and continuing to execute step e;
step g, sending an upload request message, then judging whether an upload approval message is received, if not, continuing to execute the step g, otherwise, executing the step h;
step h, judging whether i is larger than M, if not, executing step i, otherwise, executing step j;
step i, sending a current long data packet, then judging whether a confirmation packet is received within T time, if so, executing step j, otherwise, adding 1 to the value of i, and continuing to execute step h;
and j, resetting the value of i to be 0, and closing the data connection.
In another embodiment of the present invention, the server, according to the operation parameters obtained by parsing the data packet, includes: initializing variable parameters, wherein the variable parameters comprise a type value index and a type value number; acquiring a byte length value of the data packet; judging whether the length value of the byte is larger than a first preset value or not; when the length value of the byte is larger than the first preset value, acquiring the number of the type values in the data packet; sequentially extracting each type value and a numerical value corresponding to the type value by taking the offset as a second preset value according to the number of the type values; wherein the second preset value is the sum of the byte length of the data type and the byte length of the numerical value; further, when the byte length value is smaller than or equal to the first preset value, sending a data error prompt message.
It should be noted that, after the server receives the data packet sent by the smart jack, the number of the type values of the data reported this time can be calculated according to the length field of the data packet, and each data value is stored according to a fixed length, so that each type of data value can be obtained through sequential analysis. The detailed process of analyzing the complete data information carried in the data packet is shown in fig. 6, and the specific steps are as follows:
step 1, initializing relevant variables, wherein a type value index i is 0, and the number k of the type values is 0;
step 2, acquiring the data content length Len of the data packet;
step 3, judging whether Len is less than 0, if yes, indicating that the data packet is wrong, and not processing; otherwise, executing step 4;
step 4, calculating the number of the type values reported this time, namely k equals len/10;
step 5, judging whether i is smaller than k, if not, indicating that the last type value is analyzed, and ending the analysis; otherwise, executing step 6;
step 6, extracting the ith type value by taking the offset as 10 bytes;
step 7, saving the ith type and a corresponding numerical value thereof;
and 8, performing the operation of adding 1 to the i, and then performing the step 5.
In another embodiment of the present invention, there is provided a smart socket-based power internet of things communication system, including: the intelligent socket is used for monitoring whether the household appliances establish a connection relation in real time; the intelligent socket is further used for broadcasting a first beacon frame in a local networking when the connection relation of the household electrical appliance is established, wherein the first beacon frame comprises a first MAC address of the intelligent socket; the household appliance device is used for sending a first network access request message to the intelligent socket in a unicast mode according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server, and the first network access request message comprises the second MAC address of the household appliance device; and the server is used for authenticating the second MAC address in the first network access request message and generating a first network access reply message according to the authentication result and sending the first network access reply message to the household appliance through the intelligent socket.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A smart socket-based power Internet of things communication method is characterized by comprising the following steps:
the intelligent socket monitors a communication channel to obtain a network beacon frame;
according to the time indication in the network beacon frame, a second network access request message is sent to a server in a unicast mode in a CSMA period;
the server acquires a source address for sending the second network access request message according to the second network access request message;
the server acquires the node type of the second network access request message according to the source address;
when the node type is the intelligent socket, the server generates a unique private MAC address in local networking;
the server generates a second network access reply message from the private MAC address and sends the second network access reply message to the intelligent socket, so that the intelligent socket takes the private MAC address as a first MAC address in the local networking;
the intelligent socket monitors whether a household appliance establishes a connection relation in real time, namely whether the household appliance is plugged into the intelligent socket;
when a connection relation of household appliances exists, broadcasting a first beacon frame in a local networking by the intelligent socket, wherein the first beacon frame comprises a first MAC address of the intelligent socket;
the household appliance device unicast-transmits a first network access request message to the intelligent socket according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server, wherein the first network access request message comprises a second MAC address of the household appliance device;
the server authenticates the second MAC address in the first network access request message, generates a first network access reply message according to the authentication result and sends the first network access reply message to the household appliance through the intelligent socket;
and collecting the power utilization information of the household appliance.
2. The smart socket-based power internet-of-things communication method as claimed in claim 1, wherein the server authenticates the second MAC address in the first network access request message, and generates a first network access reply message according to the authentication result, and sends the first network access reply message to the home appliance through the smart socket, and the method comprises:
the server compares a second MAC address in the first network access request message with a preset white list;
and when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the household appliance through the intelligent socket, so that the household appliance is added into the local networking.
3. The smart socket-based power internet of things communication method of claim 2, further comprising:
and when the second MAC address does not exist in the preset white list, the server sends a network access rejection message to the household appliance through the intelligent socket, so that the household appliance waits for a preset time and then sends the first network access request message.
4. The smart socket-based power internet of things communication method as claimed in claim 2, wherein when the second MAC address exists in the preset white list, the server sends a network access confirmation message to the home appliance through the smart socket, so that the home appliance joins the local networking, and the method further comprises:
the intelligent socket monitors the operation parameters of the household appliance;
the intelligent socket carries out formatting processing on the operation parameters to obtain a data packet;
the intelligent socket sends the data packet to the server in a unicast mode;
and the server monitors the household appliance according to the operation parameters obtained after the data packet is analyzed.
5. The smart-jack-based power internet-of-things communication method as claimed in claim 4, wherein the smart jack formats the operation parameters to obtain a data packet, and the method comprises:
the intelligent socket packages each operation parameter into a data sub-package according to the data type and the format of the numerical value;
the intelligent socket packages a plurality of data sub-packets into the data packet;
wherein the data type and the byte length of the value are fixed values.
6. The smart socket-based power internet of things communication method as claimed in claim 5, wherein the server, according to the operation parameters obtained by parsing the data packet, comprises:
initializing variable parameters, wherein the variable parameters comprise a type value index and a type value number;
acquiring a byte length value of the data packet;
judging whether the length value of the byte is larger than a first preset value or not;
when the length value of the byte is larger than the first preset value, acquiring the number of the type values in the data packet;
sequentially extracting each type value and a numerical value corresponding to the type value by taking the offset as a second preset value according to the number of the type values;
wherein the second preset value is the sum of the byte length of the data type and the byte length of the numerical value.
7. The smart socket-based power internet of things communication method of claim 6, wherein after determining whether the byte length value is greater than a first preset value, the method further comprises:
and when the byte length value is less than or equal to the first preset value, sending data error prompt information.
8. The smart-jack-based power internet-of-things communication method according to claim 5, wherein the smart jack sends the data packet unicast to the server, and the method comprises the following steps:
acquiring a byte length value of the data packet;
judging whether the length value of the byte is larger than a third preset value or not;
when the length of the bytes is smaller than or equal to the third preset value, the data packet is sent to the server;
and when the byte length is larger than the third preset value, sending a data packet uploading request to the server, and sending the data packet to the server after receiving uploading approval information sent by the server.
9. An electric power internet of things communication system based on a smart socket, the system comprising:
the intelligent socket is used for monitoring whether the household appliances establish a connection relation in real time;
the intelligent socket is further used for broadcasting a first beacon frame in a local networking when the household appliance establishes a connection relation, wherein the first beacon frame comprises a first MAC address of the intelligent socket; the intelligent socket is also used for monitoring a communication channel, acquiring a network beacon frame, and sending a second network access request message to the server in a unicast mode in a CSMA period according to the time indication in the network beacon frame;
the household appliance device is used for sending a first network access request message to the intelligent socket in a unicast mode according to the first MAC address of the first beacon frame, so that the intelligent socket forwards the first network access request message to a server, and the first network access request message comprises the second MAC address of the household appliance device;
the server is used for authenticating the second MAC address in the first network access request message and generating a first network access reply message according to an authentication result and sending the first network access reply message to the household appliance through the intelligent socket; the server is further used for acquiring a source address for sending the second network access request message according to the second network access request message; acquiring the node type of the second network access request message according to the source address; when the node type is the intelligent socket, the server generates a unique private MAC address in the local networking; and generating a second network access reply message from the private MAC address and sending the second network access reply message to the intelligent socket, so that the intelligent socket takes the private MAC address as the first MAC address in the local networking.
CN202010993015.8A 2020-09-21 2020-09-21 Power Internet of things communication method and system based on intelligent socket Active CN112073276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010993015.8A CN112073276B (en) 2020-09-21 2020-09-21 Power Internet of things communication method and system based on intelligent socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010993015.8A CN112073276B (en) 2020-09-21 2020-09-21 Power Internet of things communication method and system based on intelligent socket

Publications (2)

Publication Number Publication Date
CN112073276A CN112073276A (en) 2020-12-11
CN112073276B true CN112073276B (en) 2022-02-25

Family

ID=73682208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010993015.8A Active CN112073276B (en) 2020-09-21 2020-09-21 Power Internet of things communication method and system based on intelligent socket

Country Status (1)

Country Link
CN (1) CN112073276B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114488908B (en) * 2022-02-17 2023-12-05 北京卡特加特智能科技有限公司 Method for quickly recovering control after failure of intelligent switch, intelligent switch and system
CN115065724A (en) * 2022-05-23 2022-09-16 国网河北省电力有限公司保定供电分公司 Communication method and device between non-invasive load monitoring terminal and main station

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610078A (en) * 2012-02-24 2012-07-25 东北大学 Communication implementation method of intelligent power consumption system
CN102868580A (en) * 2012-08-31 2013-01-09 鸿富锦精密工业(深圳)有限公司 Intelligent switch and intelligent home system applying same
CN103592921A (en) * 2013-11-21 2014-02-19 国网上海市电力公司 Intelligent home system
CN104038397A (en) * 2014-07-01 2014-09-10 广州合立正通信息科技有限公司 Automatic networking method of intelligent device
CN204595501U (en) * 2015-05-22 2015-08-26 国网冀北电力有限公司技能培训中心 Smart jack, domestic network system and intelligent electric power utilization system
CN105099839A (en) * 2015-07-20 2015-11-25 江苏惠通集团有限责任公司 Intelligent socket and networking method and system, wireless gateway and pairing method
CN106125709A (en) * 2016-08-31 2016-11-16 上海青橙实业有限公司 A kind of smart jack and intelligent domestic system thereof
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN106612530A (en) * 2015-10-22 2017-05-03 美的集团股份有限公司 Control method, device and system for networking equipment
CN108110894A (en) * 2017-11-27 2018-06-01 国家电网公司 A kind of intelligent socket based on broadband power carrier wave
CN108832967A (en) * 2018-05-03 2018-11-16 四川斐讯信息技术有限公司 A kind of intelligent socket, smart machine and network collocating method
CN109819426A (en) * 2019-01-31 2019-05-28 广东美的制冷设备有限公司 Household appliance matches network method, household appliance, mobile terminal and storage medium
CN110784367A (en) * 2019-11-29 2020-02-11 广东科徕尼智能科技有限公司 Network distribution method and system of intelligent equipment
CN110798343A (en) * 2019-10-22 2020-02-14 普联技术有限公司 Network configuration method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040005892A1 (en) * 2002-04-18 2004-01-08 Arnaldo Mayer System and method for managing parameter exchange between telecommunications operators
US9781087B2 (en) * 2011-09-09 2017-10-03 Kingston Digital, Inc. Private and secure communication architecture without utilizing a public cloud based routing server
CN110365108B (en) * 2019-06-12 2021-04-23 李刚 Device and method for dynamic authorized electricity price measurement and intelligent electricity utilization regulation of Internet of things
CN111239488A (en) * 2020-03-09 2020-06-05 中国能源建设集团陕西省电力设计院有限公司 Intelligent electric meter and intelligent electric meter system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610078A (en) * 2012-02-24 2012-07-25 东北大学 Communication implementation method of intelligent power consumption system
CN102868580A (en) * 2012-08-31 2013-01-09 鸿富锦精密工业(深圳)有限公司 Intelligent switch and intelligent home system applying same
CN103592921A (en) * 2013-11-21 2014-02-19 国网上海市电力公司 Intelligent home system
CN104038397A (en) * 2014-07-01 2014-09-10 广州合立正通信息科技有限公司 Automatic networking method of intelligent device
CN204595501U (en) * 2015-05-22 2015-08-26 国网冀北电力有限公司技能培训中心 Smart jack, domestic network system and intelligent electric power utilization system
CN105099839A (en) * 2015-07-20 2015-11-25 江苏惠通集团有限责任公司 Intelligent socket and networking method and system, wireless gateway and pairing method
CN106612530A (en) * 2015-10-22 2017-05-03 美的集团股份有限公司 Control method, device and system for networking equipment
CN106125709A (en) * 2016-08-31 2016-11-16 上海青橙实业有限公司 A kind of smart jack and intelligent domestic system thereof
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN108110894A (en) * 2017-11-27 2018-06-01 国家电网公司 A kind of intelligent socket based on broadband power carrier wave
CN108832967A (en) * 2018-05-03 2018-11-16 四川斐讯信息技术有限公司 A kind of intelligent socket, smart machine and network collocating method
CN109819426A (en) * 2019-01-31 2019-05-28 广东美的制冷设备有限公司 Household appliance matches network method, household appliance, mobile terminal and storage medium
CN110798343A (en) * 2019-10-22 2020-02-14 普联技术有限公司 Network configuration method, device and system
CN110784367A (en) * 2019-11-29 2020-02-11 广东科徕尼智能科技有限公司 Network distribution method and system of intelligent equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Intelligent DC power monitoring system and sensor network based on ZigBee-equipped smart sockets;Yi-shiun Tsai;《2016 5th International Symposium on Next-Generation Electronics (ISNE)》;20160815;全文 *
基于智能插座的电器状态监测系统的设计与实现;冯晓伟;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;20171130;全文 *
智能电网安全运营的问题及对策;李璨;《科技资讯》;20180731;全文 *

Also Published As

Publication number Publication date
CN112073276A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN106301785B (en) Method and system for binding intelligent household equipment and intelligent terminal
US10348906B2 (en) Method and apparatus for controlling visitor call in home network system
CN112073276B (en) Power Internet of things communication method and system based on intelligent socket
CN110830575B (en) Data transmission method and control system of intelligent household equipment and intelligent gateway equipment
CN106789462B (en) Intelligent household electrical appliance network access safety control method
CN107770226B (en) Control method and device for smart home, home gateway and mobile terminal
US7356614B2 (en) Method for detecting and regulating identifier overlap on power line communication network, electronic appliance connected to subnet of power line communication network, and communication module used in electronic appliance
CN105163364A (en) Intelligent device WiFi connection system and intelligent device WiFi connection method based on intelligent gateway
CN106101067B (en) Method and terminal for binding intelligent equipment
CN109030975B (en) Electric appliance type inference method and device based on intelligent socket
CN109525939B (en) NVR and IPC automatic pairing method and wireless video monitoring automatic networking system
CN105960027A (en) ZigBee network networking method and ZigBee coordinator
CN102932423A (en) Method for controlling limited area and equipment
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN112769762B (en) Distributed efficient Internet of things equipment access method
CN113709239A (en) Intelligent household equipment communication method, equipment and medium
CN111953573B (en) Equipment distribution network processing method, equipment distribution network processing device and intelligent panel
CN108366120A (en) A kind of internet-of-things terminal management method and device
KR100550774B1 (en) Reservation information processing apparatus for mobile home network system
CN113992466A (en) Message pushing method, device, equipment and medium for household equipment
CN105577483A (en) Slave station network accessing method based on Modbus RTU communication protocol
CN111988780A (en) Information transmission method, LoRa gateway, network access method and intelligent doorbell
TW201620268A (en) Smart appliance control method and system
CN114430289B (en) Automatic pairing method and system for power line carrier communication

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