CN115474107A - Intelligent electric energy meter communication method and device, equipment and storage medium - Google Patents

Intelligent electric energy meter communication method and device, equipment and storage medium Download PDF

Info

Publication number
CN115474107A
CN115474107A CN202211122536.1A CN202211122536A CN115474107A CN 115474107 A CN115474107 A CN 115474107A CN 202211122536 A CN202211122536 A CN 202211122536A CN 115474107 A CN115474107 A CN 115474107A
Authority
CN
China
Prior art keywords
electric energy
energy meter
intelligent electric
slave
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211122536.1A
Other languages
Chinese (zh)
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.)
Zhejiang Chint Instrument and Meter Co Ltd
Original Assignee
Zhejiang Chint Instrument and Meter 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 Zhejiang Chint Instrument and Meter Co Ltd filed Critical Zhejiang Chint Instrument and Meter Co Ltd
Priority to CN202211122536.1A priority Critical patent/CN115474107A/en
Publication of CN115474107A publication Critical patent/CN115474107A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • 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
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture
    • H04Q2209/43Arrangements in telecontrol or telemetry systems using a wireless architecture using wireless personal area networks [WPAN], e.g. 802.15, 802.15.1, 802.15.4, Bluetooth or ZigBee
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides an intelligent electric energy meter communication method and device, wherein the method comprises the following steps: scanning broadcast information of slave equipment, wherein the broadcast information carries a unique identifier of the slave equipment; judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance; if so, establishing connection with the slave equipment; the intelligent electric energy meter is the master device or the slave device. The communication method of the intelligent electric energy meter can enable the intelligent electric energy meter to be quickly connected with a plurality of appointed external master and slave devices in the using process and simultaneously carry out communication interaction with the corresponding external master and slave devices.

Description

Intelligent electric energy meter communication method and device, equipment and storage medium
Technical Field
The invention relates to the technical field of electric energy meter communication, in particular to an intelligent electric energy meter communication method, device, equipment and storage medium.
Background
Compared with the old electric energy meter, the intelligent electric energy meter has the function of communicating with other peripheral auxiliary equipment, the main equipment in the peripheral auxiliary equipment is such as a Bluetooth palm machine, a Bluetooth meter reader and the like, and the auxiliary equipment is such as a Bluetooth lockset, a Bluetooth circuit breaker, a Bluetooth pulse converter and the like. However, in the actual working process, the smart electric energy meter can be configured to be used as a master device or a slave device, mainly because the bluetooth module in the smart electric energy meter belongs to a connected object or an active connection in the connection process.
As more and more peripheral auxiliary devices are required to be connected, one Bluetooth module in the intelligent electric energy meter cannot meet the requirement of simultaneously connecting a plurality of master devices and slave devices. In the prior art, two ways are generally adopted to solve the problem; the first is to extend a plurality of bluetooth modules in the intelligent electric energy meter, each bluetooth module is connected to a corresponding master device or slave device, but such extension of a plurality of bluetooth modules increases the hardware cost of the intelligent electric energy meter; in another example, a protocol 698 is adapted to the operation of the bluetooth module, and multiple master devices and slave devices can share data through the bluetooth module at the same time, which requires the bluetooth module to receive messages broadcast by the slave devices and compare and confirm the messages one by one. However, the inventor finds that, this scheme fails to consider other bluetooth devices around, and when other bluetooth devices also send broadcast messages, the identification efficiency of connecting the master device and the slave device to the electric energy meter may be seriously disturbed, even the bluetooth connected to the non-slave device, so how to quickly and effectively enable bluetooth matching communication is an urgent problem to be solved.
Disclosure of Invention
Therefore, the invention provides a communication method and device, equipment and a storage medium for an intelligent electric energy meter, and aims to solve the technical problem that the intelligent electric energy meter is difficult to be quickly and effectively connected to a plurality of designated master and slave devices in the use process in the prior art.
According to a first aspect, an embodiment of the present invention provides an intelligent electric energy meter communication method, including the following steps:
according to a first aspect, broadcast information of a slave device is scanned, wherein the broadcast information carries a unique identifier of the slave device; judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance; if so, establishing connection with the slave equipment; the intelligent electric energy meter is the master equipment or the slave equipment.
Optionally, the slave device is the intelligent electric energy meter, and after the connection is established with the slave device, the intelligent electric energy meter communication method further includes: and sending a request command frame to the Bluetooth module of the intelligent electric energy meter.
Optionally, the requesting command frame includes a destination address identifier and request data, and after the sending the requesting command frame to the bluetooth module of the smart power meter, the method further includes:
receiving a response data frame sent by a first transmission channel of a Bluetooth module of the intelligent electric energy meter, wherein the first transmission channel is a transmission channel selected when the intelligent electric energy meter recognizes that the target address identifier is the MAC address identifier of the intelligent electric energy meter, and the response data frame is generated by the request command frame stored in a main channel storage space of the intelligent electric energy meter.
Optionally, the master device is the intelligent electric energy meter, and after establishing connection with the slave device, the method further includes: sending a control command frame to the slave device.
Optionally, the sending the control command frame to the slave device includes:
and the control command frame is stored in a slave channel storage space of the intelligent electric energy meter and is sent to the slave device through a second transmission channel, wherein the second transmission channel is a transmission channel selected when the target address identifier is identified as a non-self MAC address identifier by the intelligent electric energy meter.
Optionally, the slave device is the intelligent electric energy meter, and the intelligent electric energy meter communication method further includes:
checking whether a disconnected slave device exists at preset time intervals, and receiving target broadcast information, wherein the target broadcast information and the broadcast information of the slave device adopt the same protocol;
when the disconnected slave equipment exists, judging whether the target unique identifier in the target broadcast information exists in the identifier set or not;
when the target unique identification is not present in the identification set, replacing the unique identification of the disconnected slave device in the identification set with the target unique identification.
Optionally, the unique identifier and the destination address identifier are both 6-byte MAC addresses.
According to a second aspect, an embodiment of the present invention provides an intelligent electric energy meter communication device, including:
the scanning module is used for scanning broadcast information of slave equipment, and the broadcast information carries a unique identifier of the slave equipment;
the judging module is used for judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance;
the establishing module is used for establishing connection with the slave equipment; the intelligent electric energy meter is the master device or the slave device.
According to a third aspect, an embodiment of the present invention provides a computer device, including: the intelligent electric energy meter communication method comprises a storage and a processor, wherein the storage and the processor are in communication connection with each other, the storage stores computer instructions, and the processor executes the computer instructions so as to execute the intelligent electric energy meter communication method.
According to a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing the computer to execute the above-mentioned intelligent electric energy meter communication method.
The technical scheme of the invention has the following advantages:
1. according to the embodiment of the invention, the intelligent electric energy meter can be used as both a master device and a slave device, and when the intelligent electric energy meter is used as the master device, communication connection can be established with a plurality of designated external slave devices simultaneously according to the unique identifier; when the intelligent electric energy meter is used as the slave device, communication connection can be simultaneously established with a plurality of external master devices according to the unique identification broadcasted by the intelligent electric energy meter. Therefore, the communication method for the intelligent electric energy meter provided in this embodiment can enable the intelligent electric energy meter to be quickly connected with the designated external master and slave devices and to perform communication interaction with the corresponding external master and slave devices simultaneously in the use process.
2. In this embodiment, when the intelligent electric energy meter communicates with the external master and slave devices, the data are transmitted through the first transmission channel and the second transmission channel, and the data related to the external master and slave devices are stored in the storage spaces of the master and slave channels of the intelligent electric energy meter. The data mutual independence of intelligent ammeter and outside owner, slave unit communication can effectively improve intelligent ammeter's communication efficiency to and the accuracy.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a communication method of an intelligent electric energy meter in embodiment 1 of the present application;
fig. 2 is a schematic diagram of a specific example of communication of an intelligent electric energy meter in embodiment 1 of the present application;
fig. 3 is a schematic block diagram of a specific example of an intelligent electric energy meter communication device in embodiment 2 of the present application;
fig. 4 is a schematic structural diagram of a specific example of a computer device in embodiment 3 of the present application.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1
The embodiment provides a communication method of an intelligent electric energy meter, which may be executed by a master device including a controller, a memory and a bluetooth module, where the master device may be an intelligent electric energy meter, and may be a bluetooth meter reader, a bluetooth palm device, and the like, and the connection between the intelligent electric energy meter and a plurality of master and slave devices is realized through scanning, judgment and connection of the master device, so as to realize communication of the intelligent electric energy meter, as shown in fig. 1, the communication method includes the following steps:
step S101, scanning broadcast information of slave equipment, wherein the broadcast information carries a unique identifier of the slave equipment.
Under the condition that the master device is the intelligent electric energy meter, the slave device can be a Bluetooth lockset, a Bluetooth circuit breaker, a Bluetooth pulse converter and the like, and under the condition that the master device is not the intelligent electric energy meter, the slave device can also be the intelligent electric energy meter. Under the condition that the master device is the intelligent electric energy meter, the slave device needs to receive a control command issued by a Bluetooth module of the intelligent electric energy meter. Under the condition that the main device is not the intelligent electric energy meter, the main device such as a Bluetooth palm machine and a Bluetooth meter reader needs to acquire meter data of the intelligent electric energy meter through a Bluetooth module of the intelligent electric energy meter.
The slave device broadcasts the unique identifier of the slave device through the Bluetooth equipped by the slave device, and meanwhile, the master device scans the broadcast information of the slave device through the Bluetooth equipped by the master device and identifies the unique identifier carried in the broadcast information through the controller. The unique identifier may be an address identifier, and is transmitted in a data link layer in the form of a data frame, and the master device may determine the designated slave device to be connected according to the scanned unique identifier.
Step S102, judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance;
if so, establishing connection with the slave equipment;
if not, the scanning is continued or the scanned unique identifier is written into the identifier set on the master device again. The intelligent electric energy meter is the master device or the slave device.
After scanning the unique identifier broadcast by the slave device, the master device searches whether an identifier consistent with the unique identifier exists in an identifier set written in the master device in advance, wherein the identifier set can be stored in a memory connected with the master device, and a controller connected with the master device is used for searching the identifier set in the memory. If the identifier consistent with the unique identifier exists in the identifier set, determining that the slave device is the slave device to be connected, and establishing communication connection with the slave device. Further, the master device may simultaneously scan a plurality of unique identifiers, and each slave device corresponds to its own unique identifier, that is, the master device may simultaneously scan a plurality of slave devices and establish a communication connection with the plurality of slave devices.
For example, as shown in fig. 2, when the intelligent power meter is the master device, a set of identifiers, such as { a00000000001, C00000000001, C00000000002, D00000000001}, is written into the memory of the intelligent power meter. The external slave device a, the external slave device B, the external slave device C and other devices broadcast their own unique identifiers, such as the external slave device a broadcasting their own unique identifier C00000000001, the external slave device B broadcasting their own unique identifier C00000000002 and the external slave device C broadcasting their own unique identifier C00000000003, by using their own embedded bluetooth module a, embedded bluetooth module B and embedded bluetooth module C. The Bluetooth module of the intelligent electric energy meter scans broadcast information, and according to the scanned unique identifications C00000000001, C00000000002 and C00000000003, the identifications consistent with C00000000001 and C00000000002 exist in the identification set, and at the moment, the Bluetooth module of the intelligent electric energy meter establishes communication connection with the external slave device A and the external slave device B. Further, since the external slave C does not establish a connection with the master device, the unique identifier of the external slave C may be written into the identifier set, and the master device continues to scan to establish a connection with the external slave C.
As shown in fig. 2, when the intelligent electric energy meter is a slave device, the external master device at this time may be a bluetooth meter reader, a bluetooth palm machine, or the like. After the intelligent electric energy meter is powered on, the controller configures the unique identifier for the Bluetooth module of the intelligent electric energy meter and broadcasts the unique identifier through the Bluetooth module of the intelligent electric energy meter. After the external main device 1, the external main device 2 itself embedded bluetooth module 1, and the embedded bluetooth module 2 scans the unique identifier broadcasted by the bluetooth module of the intelligent electric energy meter, it is determined whether an identifier consistent with the unique identifier broadcasted by the bluetooth module of the intelligent electric energy meter exists in the identifier set written in the external main device 1 and the external main device 2 in advance, if so, connection with the bluetooth module of the intelligent electric energy meter is established, if not, scanning is continued, or the unique identifier of the bluetooth module of the intelligent electric energy meter is written in the identifier set of the external main device 1 or the external main device 2, so as to establish communication connection. Further, when the intelligent electric energy meter is a slave device, according to the communication method provided in this embodiment, the bluetooth module of the intelligent electric energy meter can establish communication connection with a plurality of external master and slave devices at the same time.
Further, in this embodiment, the external slave devices to be connected with the master device may be screened from a plurality of bluetooth broadcast messages according to an identifier type of the unique identifier broadcast by the external slave devices, where the identifier type may be an MAC address type, and then it is determined whether an identifier consistent with the unique identifier exists in the identifier set from the screened external slave devices to be connected with the master device.
In this embodiment, the intelligent electric energy meter may be used as both a master device and a slave device, and when the intelligent electric energy meter is used as the master device, communication connection may be established with a plurality of designated external slave devices according to the unique identifier; when the intelligent electric energy meter is used as the slave device, communication connection can be simultaneously established with a plurality of external master devices according to the unique identification broadcasted by the intelligent electric energy meter. Therefore, the communication method for the intelligent electric energy meter provided in this embodiment can enable the intelligent electric energy meter to be quickly connected with the designated external master and slave devices and to perform communication interaction with the corresponding external master and slave devices simultaneously in the use process.
As an optional implementation manner, in an embodiment of the present invention, the method for communicating an intelligent electric energy meter further includes:
checking whether a disconnected slave device exists at preset time intervals, and receiving target broadcast information, wherein the target broadcast information and the broadcast information of the slave device adopt the same protocol;
when the disconnected slave equipment exists, judging whether the target unique identifier in the target broadcast information exists in the identifier set or not;
when the target unique identification is not present in the identification set, replacing the unique identification of the disconnected slave device in the identification set with the target unique identification.
As described above, in the case that the master device is the intelligent electric energy meter, the external slave device may be a bluetooth lock, a bluetooth circuit breaker, a bluetooth pulse converter, or the like, and the external slave device needs to receive a control command issued by a bluetooth module of the intelligent electric energy meter. Taking an external slave device bluetooth breaker as an example, the bluetooth breaker is a key device for realizing a remote fee control function in cooperation with an intelligent electric energy meter, and generally maintains a continuous connection state with a bluetooth module of the intelligent electric energy meter. Similarly, bluetooth tool to lock, bluetooth pulse converter also generally keep the continuous connection state with the bluetooth module of intelligent ammeter. If the external slave equipment is replaced in the normal working process of the intelligent electric energy meter and the external slave equipment, the connection with the intelligent electric energy meter is not established in time, and the problems that partial functions cannot be realized and the like occur.
In this embodiment, every preset time, the smart electric energy meter main controller checks whether an external slave device that has been disconnected exists, may check in an answering manner, receive target broadcast information, and scan whether an external slave device that waits for connection exists, where the target broadcast information and the broadcast information of the external slave device use the same protocol. When detecting that the disconnected external slave equipment exists, further judging whether the target unique identifier in the target broadcast information exists in the identifier set of the intelligent electric energy meter; in case it is not present in the identification set, the unique identification of the disconnected slave device in the identification set may be replaced by the target unique identification.
For example, the intelligent electric energy meter establishes communication connection with the external slave device a, the external slave device B and the external slave device C, the intelligent electric energy meter checks at preset time intervals, when it is checked that the disconnected external slave device C exists, and target broadcast information is received, and the target unique identifier (C00000000004) in the target broadcast information and the unique identifier of the external slave device adopt the same identifier type and have the same communication protocol, it is determined whether the target unique identifier in the target broadcast information exists in the identifier set, and if the target unique identifier does not exist, the unique identifier (C00000000003) of the disconnected external slave device C in the identifier set is replaced by the target unique identifier (C00000000004).
In this embodiment, by checking whether there is an external slave device disconnected at preset intervals, it can be ensured that effective communication between the intelligent electric energy meter and the external slave device can be quickly achieved after the external slave device is replaced, and stability of a system in communication connection with the intelligent electric energy meter is ensured.
As an optional implementation manner, in an embodiment of the present invention, after establishing a connection with the slave device, the slave device is the intelligent electric energy meter, and further includes: and sending a request command frame to a Bluetooth module of the intelligent electric energy meter.
When the intelligent electric energy meter is a slave device, the master device can be an external Bluetooth palm machine, a Bluetooth meter reader and other devices. After the external main equipment is connected with the intelligent electric energy meter, the external main equipment sends a request command frame to the Bluetooth module of the intelligent electric energy meter so as to acquire meter data of the intelligent electric energy meter. The transmission of the request command frame may be directly transmitted through the data link layer.
As an optional implementation manner, in an embodiment of the present invention, the request command frame includes a target address identifier and request data, and after the sending the request command frame to the bluetooth module of the intelligent electric energy meter, the method further includes:
receiving a response data frame sent by a first transmission channel of a Bluetooth module of the intelligent electric energy meter, wherein the first transmission channel is a transmission channel selected when the Bluetooth module of the intelligent electric energy meter recognizes that the target address identifier is the MAC address identifier of the Bluetooth module, and the response data frame is generated by the request command frame stored in a main channel storage space of the intelligent electric energy meter.
And when the intelligent electric energy meter is a slave device and is connected with an external master device, the external master device receives a response data frame sent by a Bluetooth module of the intelligent electric energy meter. Specifically, after the bluetooth module of the intelligent electric energy meter of the slave device receives a request command frame sent by the external master device, the intelligent electric energy meter determines to store the request command frame in a bluetooth module main channel storage space of the intelligent electric energy meter according to a target address identifier carried in the request command frame. The intelligent electric energy meter controller calls a request command frame from a main channel storage space of a Bluetooth module of the intelligent electric energy meter, and generates a response data frame according to a target address identifier and request data carried in the request command frame. And sending the response data frame to the external main equipment through a first transmission channel of the Bluetooth module of the intelligent electric energy meter by utilizing the Bluetooth module of the intelligent electric energy meter.
Furthermore, the response data frame is transmitted by using a first transmission channel of a Bluetooth module of the intelligent electric energy meter, and is judged according to the target address identifier. And when the Bluetooth module of the intelligent electric energy meter recognizes that the target address identifier carried in the received request command frame is the unique identifier corresponding to the Bluetooth module of the intelligent electric energy meter during broadcasting, namely the MAC address identifier of the Bluetooth module, selecting the first transmission channel for data transmission.
In this embodiment, when the intelligent electric energy meter is the slave device, the data received by the external master device are all transmitted by the first transmission channel of the intelligent electric energy meter, and the data sent by the external master device are also all stored in the storage space of the master channel of the intelligent electric energy meter, and when the intelligent electric energy meter processes the data sent by the external master device, only the data need to be called from the storage space of the master channel of the intelligent electric energy meter, and other storage spaces do not need to be searched.
As an optional implementation manner, in an embodiment of the present invention, the master device is the intelligent electric energy meter, and after establishing connection with the slave device, the method further includes: sending a control command frame to the slave device.
Under the condition that the master device is the intelligent electric energy meter, the slave device can be a Bluetooth lock, a Bluetooth breaker, a Bluetooth pulse converter and the like, and after the connection between the intelligent electric energy meter and the slave device is established, the intelligent electric energy meter can send a control command frame to the slave device so as to perform function control on the slave device.
As an optional implementation manner, in an embodiment of the present invention, the sending the control command frame to the slave device includes:
the control command frame is stored in a slave channel storage space of the intelligent electric energy meter and is sent to the slave device through a second transmission channel, wherein the second transmission channel is a transmission channel selected when the Bluetooth module of the intelligent electric energy meter recognizes that the target address identification is a non-self MAC address identification.
After the connection between the intelligent electric energy meter and the slave device is established, the intelligent electric energy meter can be sent to the corresponding slave device through the second transmission channel through the Bluetooth module of the intelligent electric energy meter. Specifically, after the bluetooth module of the intelligent electric energy meter scans the unique identifier corresponding to the slave device, the controller of the intelligent electric energy meter generates a control command frame according to the unique identifier corresponding to the slave device, wherein the control command frame includes a target address identifier and control data, and stores the control command frame in the slave channel storage space of the intelligent electric energy meter, and the bluetooth module of the intelligent electric energy meter retrieves the control command frame from the slave channel storage space of the intelligent electric energy meter and sends the control command frame to the corresponding slave device.
For example, the control command frame may be: FE FE FE-68-0A 00-01 00 00-00 00 00-00 C0-00-68-00-00-11 22 33 44 66 77 88-98-16. As shown in table one, a frame format description of the control command frame.
Wherein 01 0000 C0 is the target address identifier, 00 11 22 33 44 55 66 77 88 is the control data, that is, the link user data. Further, the request command data is similar and not illustrated here.
Table one frame format description
FE Leading symbol, 4 bytes, for calling serial port
68H Frame start symbol
L1L2 Data length
M5-M0 Destination address identification
STA1 Link status
RES2 Reservation
68H Frame start symbol
C Control code
D0~Dn Link user data
CS Check code
16H Frame end
In this embodiment, when the intelligent electric energy meter is the master device, the data sent to the external slave device are all transmitted through the second transmission channel of the intelligent electric energy meter, and the data of the slave device to be sent are also all stored in the slave channel storage space of the intelligent electric energy meter, when the bluetooth module of the intelligent electric energy meter needs to send data to the external slave device, only the slave channel storage space of the intelligent electric energy meter needs to be called, and other storage spaces do not need to be searched. In this embodiment, when the intelligent electric energy meter communicates with the external master and slave devices, the data are transmitted through the first transmission channel and the second transmission channel, and the data related to the external master and slave devices are stored in the storage spaces of the master and slave channels of the intelligent electric energy meter. The data mutual independence of intelligent ammeter and outside main, slave unit communication can effectively improve intelligent ammeter's communication efficiency to and the accuracy.
As an optional implementation manner, in the embodiment of the present invention, the unique identifier and the target address identifier are both 6-byte MAC addresses.
In this embodiment, the unique identifier corresponding to the bluetooth module of the intelligent electric energy meter, the unique identifiers corresponding to the external master and slave devices, and the target address identifiers carried in the request command frame and the control command frame all adopt 6-byte MAC addresses, and the MAC addresses can be used to quickly and accurately identify the target address identifiers, thereby ensuring that the intelligent electric energy meter is quickly and effectively connected to a plurality of designated external master and slave devices.
Example 2
This embodiment provides an intelligent electric energy meter communication apparatus, which may be configured to perform the intelligent electric energy meter communication method in embodiment 1, and the apparatus may be disposed inside a main device, where the main device may be an intelligent electric energy meter, and may be other devices such as a bluetooth meter reader and a bluetooth palm device, and modules of the main device cooperate with each other, so as to implement the intelligent electric energy meter communication method, as shown in fig. 3, the apparatus includes:
a scanning module 201, configured to scan broadcast information of a slave device, where the broadcast information carries a unique identifier of the slave device;
a judging module 202, configured to judge whether an identifier that is consistent with the unique identifier exists in an identifier set that is written in the primary device in advance;
an establishing module 203, configured to establish a connection with the slave device; the intelligent electric energy meter is the master device or the slave device.
In this embodiment, the intelligent electric energy meter may be used as both a master device and a slave device, and when the intelligent electric energy meter is used as the master device, communication connection may be established with a plurality of designated external slave devices according to the unique identifier; when the intelligent electric energy meter is used as the slave device, communication connection can be established with a plurality of external master devices simultaneously according to the unique identification broadcasted by the intelligent electric energy meter. Therefore, the communication method for the intelligent electric energy meter provided in this embodiment can enable the intelligent electric energy meter to be quickly connected with the designated external master and slave devices and to perform communication interaction with the corresponding external master and slave devices simultaneously in the use process.
Example 3
The present embodiment provides a computer device, as shown in fig. 4, the computer device includes a processor 301 and a memory 302, where the processor 301 and the memory 302 may be connected by a bus or by other means, and fig. 4 takes the example of connection by a bus as an example.
Processor 301 may be a Central Processing Unit (CPU). The Processor 301 may also be other general purpose processors, digital Signal Processors (DSPs), graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs), or other dedicated deep learning coprocessors, application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 302 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the smart electric energy meter communication method according to the embodiment of the present invention. Corresponding program instructions/modules. The processor 301 executes the non-transitory software program, instructions and modules stored in the memory 302 to execute various functional applications and data processing of the processor, that is, to implement the intelligent electric energy meter communication method in the method embodiment described above.
The memory 302 may further include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 301, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 302 may optionally include memory located remotely from the processor 301, which may be connected to the processor 301 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The memory 302 stores one or more modules, which when executed by the processor 301, perform the intelligent electric energy meter communication method in the embodiment shown in fig. 1.
The details of the computer device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute the intelligent electric energy meter communication method in any embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. This need not be, nor should it be exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. The communication method of the intelligent electric energy meter is applied to main equipment and comprises the following steps:
scanning broadcast information of slave equipment, wherein the broadcast information carries a unique identifier of the slave equipment;
judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance;
if so, establishing connection with the slave equipment;
the intelligent electric energy meter is the master equipment or the slave equipment.
2. The intelligent electric energy meter communication method according to claim 1, wherein the slave device is the intelligent electric energy meter, and after establishing connection with the slave device, the method further comprises:
and sending a request command frame to the Bluetooth module of the intelligent electric energy meter.
3. The intelligent electric energy meter communication method according to claim 2, wherein the request command frame includes a target address identifier and request data, and after the sending the request command frame to the bluetooth module of the intelligent electric energy meter, the method further comprises:
receiving a response data frame sent by a first transmission channel of a Bluetooth module of the intelligent electric energy meter, wherein the first transmission channel is a transmission channel selected when the intelligent electric energy meter recognizes that the target address identifier is the MAC address identifier of the intelligent electric energy meter, and the response data frame is generated by the request command frame stored in a main channel storage space of the intelligent electric energy meter.
4. The intelligent electric energy meter communication method according to claim 1, wherein the master device is the intelligent electric energy meter, and after establishing the connection with the slave device, the method further comprises:
sending a control command frame to the slave device.
5. The intelligent electric energy meter communication method according to claim 4, wherein the control command frame comprises a target address identifier and control data, and the sending the control command frame to the slave device comprises:
and the control command frame is stored in a slave channel storage space of the intelligent electric energy meter and is sent to the slave equipment through a second transmission channel, wherein the second transmission channel is a transmission channel selected when the target address identification is identified to be a non-self MAC address identification by the intelligent electric energy meter.
6. The intelligent electric energy meter communication method according to claim 3 or 5, wherein the slave device is the intelligent electric energy meter, and the method further comprises:
checking whether a disconnected slave device exists at preset time intervals, and receiving target broadcast information, wherein the target broadcast information and the broadcast information of the slave device adopt the same protocol;
when the disconnected slave equipment exists, judging whether the target unique identifier in the target broadcast information exists in the identifier set or not;
when the target unique identification is not present in the identification set, replacing the unique identification of the disconnected slave device in the identification set with the target unique identification.
7. The intelligent electric energy meter communication method according to claim 3 or 5, wherein the unique identifier and the target address identifier are both 6-byte MAC addresses.
8. The utility model provides an intelligence electric energy meter communication device, locates inside the master equipment, its characterized in that includes:
the scanning module is used for scanning broadcast information of slave equipment, and the broadcast information carries a unique identifier of the slave equipment;
the judging module is used for judging whether an identifier consistent with the unique identifier exists in an identifier set written in the main equipment in advance;
the establishing module is used for establishing connection with the slave equipment; the intelligent electric energy meter is the master device or the slave device.
9. A computer device, comprising:
the intelligent electric energy meter communication method comprises a storage and a processor, wherein the storage and the processor are connected with each other in a communication mode, the storage stores computer instructions, and the processor executes the computer instructions so as to execute the intelligent electric energy meter communication method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing the computer to execute the intelligent electric energy meter communication method according to any one of claims 1-7.
CN202211122536.1A 2022-09-15 2022-09-15 Intelligent electric energy meter communication method and device, equipment and storage medium Pending CN115474107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211122536.1A CN115474107A (en) 2022-09-15 2022-09-15 Intelligent electric energy meter communication method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211122536.1A CN115474107A (en) 2022-09-15 2022-09-15 Intelligent electric energy meter communication method and device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115474107A true CN115474107A (en) 2022-12-13

Family

ID=84332630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211122536.1A Pending CN115474107A (en) 2022-09-15 2022-09-15 Intelligent electric energy meter communication method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115474107A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233200A (en) * 2023-05-10 2023-06-06 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration
CN116775533A (en) * 2023-08-25 2023-09-19 北京凯芯微科技有限公司 One-to-many serial ports two-way communication conversion circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233200A (en) * 2023-05-10 2023-06-06 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration
CN116233200B (en) * 2023-05-10 2023-08-15 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration
CN116775533A (en) * 2023-08-25 2023-09-19 北京凯芯微科技有限公司 One-to-many serial ports two-way communication conversion circuit
CN116775533B (en) * 2023-08-25 2023-11-07 北京凯芯微科技有限公司 One-to-many serial ports two-way communication conversion circuit

Similar Documents

Publication Publication Date Title
CN115474107A (en) Intelligent electric energy meter communication method and device, equipment and storage medium
CN105165070B (en) System, program and the method for wireless terminal discovery access point
KR101828412B1 (en) Communication method, communication apparatus and communication system
CN110691384B (en) Network slice using method and device
EP3422772B1 (en) Beacon transmission method and device
EP1983772B1 (en) Communication system and information management method
EP3094135B1 (en) Method for establishing association between station and access point, and device
CN102932949B (en) Data communication device and data communication method
CN107528678A (en) A kind of method and apparatus of system message update
CN105637937A (en) Control device, base station, and communication terminal
CN104125652A (en) Relay link establishing method, site, and system
CN106792694B (en) Access authentication method and access equipment
CN104704447A (en) Using Bluetooth low energy
CN108012278A (en) Manage method, access point and the website of Basic Service Set color
CN105940720A (en) Method for triggering registration machine protocol interaction, access point and station point
KR101958477B1 (en) Lin communication system for vehicle and method for driving slave module in the system
US8180390B2 (en) Mobile communication terminal, mobile communication managing apparatus, mobile communication system, computer readable medium for mobile communication and mobile communication method
CN112543477B (en) Method, device, terminal and storage medium for sending measurement report
CN109039427B (en) Ship monitoring management device
CN108616971A (en) Coordinator and its control method, the communication system of wireless sensor network and method
CN103249010A (en) Communication device and communication method
EP2304993B1 (en) Method to control sleep mode, and terminal and apparatus thereof
US9832636B2 (en) Method, device and system for determining working mode of data card type terminal
CN114422288A (en) Communication system based on Modbus protocol
CN104754728B (en) Terminal positioning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Zhengtai Instrument Measurement Industrial Park, No.1 Liangce Road, Beibaixiang Town, Leqing City, Wenzhou City, Zhejiang Province, 325603

Applicant after: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd.

Address before: 325603 Wenzhou Daqiao Industrial Park, Yueqing City, Wenzhou City, Zhejiang Province

Applicant before: ZHEJIANG CHINT INSTRUMENT & METER Co.,Ltd.

CB02 Change of applicant information