Communication management method and device of intelligent instrument, equipment, medium and product

By acquiring and processing instrument communication tasks in intelligent instrument communication management and determining the communication path based on tree communication information, the problems of low communication efficiency and long response time in the prior art are solved, and more efficient communication management and user experience are achieved.

CN119854335APending Publication Date: 2025-04-18HANGZHOU KANGJISEN AUTOMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411994801.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the existing intelligent instrument communication management solution faces the situation where the intelligent instrument communication data needs to be parsed or processed, or the intelligent instrument communication data is interoperable or logically processed according to the methods in DD, there are problems such as low communication efficiency, long response time, poor availability, and untimely data updates.

Method used

By obtaining at least one instrument communication task generated after meeting the task initiation conditions, and determining the first intelligent instrument corresponding to each instrument communication task; according to the pre-constructed tree communication information, the first communication device connected to each first intelligent instrument is determined; in the case where the number of first intelligent instruments connected to the first communication device is 1, the associated instrument communication task is directly sent to the connected first intelligent instrument through the first communication device; in the case where the number of first intelligent instruments connected to the first communication device is greater than 1, the associated instrument communication task is polled to the connected first intelligent instrument according to the set task scheduling method.

Benefits of technology

By maximizing the utilization of communication resources, communication efficiency is improved, response time, availability and timeliness of data updates are significantly improved, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854335A_ABST
    Figure CN119854335A_ABST
Patent Text Reader

Abstract

The invention discloses a communication management method, device and equipment of an intelligent instrument, a medium and a product. The method comprises the steps of obtaining at least one instrument communication task generated after a task initiation condition is met, and determining a first intelligent instrument corresponding to each instrument communication task; determining first communication devices respectively connected with the first intelligent instruments according to pre-constructed tree-shaped communication information; aiming at the condition that the number of the first intelligent instruments connected to the first communication device is 1, directly sending associated instrument communication tasks to the connected first intelligent instruments through the first communication device; and in allusion to the condition that the number of the first intelligent instruments connected to the first communication device is greater than 1, sending associated instrument communication tasks to the connected first intelligent instruments in a polling manner according to a set task scheduling mode. According to the method, the communication resources of the first communication device are utilized to the maximum extent, the communication efficiency is improved, and the problems that the electronic equipment is long in response time, poor in availability and not timely in data updating are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment management, and in particular to a communication management method, device, equipment, medium and product for an intelligent meter. Background Art

[0002] The Highway Addressable Remote Transducer (HART) protocol uses frequency shift keying technology to allow digital and analog signals to be transmitted simultaneously without interfering with each other, making it a standard communication protocol widely used in smart instrument applications. In the actual transmission process, the existing HART protocol parses the required parameters into several commands based on the parameter information defined in the smart instrument device description file DD, and completes the data communication with a smart instrument through a question-and-answer mechanism, that is, the number of communication interactions required is the number of required parameters.

[0003] However, as smart meters become increasingly complex, a single smart meter may contain hundreds of parameters, so a complete data reading may require at least hundreds of communication interactions. On the other hand, for the sake of data security and the correctness of the interaction logic, the existing communication management solutions for smart meters do not support concurrent communication between a single communication device and multiple smart meters connected to it, that is, after the management device controls a communication device to communicate data with a smart meter connected to the communication device, it cannot communicate with other smart meters under the communication device before the data communication of the meter is completed or all communication interactions defined by the DD are completed.

[0004] This results in problems such as low communication efficiency, long response time, poor availability, and untimely data updates if the management device needs to parse or process the smart meter communication data, or perform user interaction or logical processing on the smart meter communication data according to the methods in the DD, which affects the user experience. Summary of the invention

[0005] The present invention provides a communication management method, device, equipment, medium and product for smart meters to solve the problems of low communication efficiency, long response time, poor availability and untimely data update in existing smart meter communication management solutions when faced with the need to parse or process the communication data of smart meters, or to perform user interaction or logic processing on the communication data of smart meters according to the method in DD.

[0006] In a first aspect, an embodiment of the present invention provides a communication management method for a smart meter, which is applied to an electronic device, wherein the electronic device is connected to at least one communication device, each communication device includes at least one external interface, and at least one smart meter establishes a communication connection with the electronic device through an external interface of the communication device, the method comprising:

[0007] Acquire at least one instrument communication task generated after satisfying the task initiation condition, and determine the first smart instrument corresponding to each of the instrument communication tasks;

[0008] Determining, according to the pre-constructed tree-like communication information, the first communication devices to which the first smart meters are respectively connected;

[0009] In case that the number of first smart meters connected to the first communication device is 1, the associated meter communication task is directly sent to the connected first smart meter through the first communication device;

[0010] When the number of first smart meters connected to the first communication device is greater than 1, the associated meter communication tasks are sent to each of the connected first smart meters in a polling manner according to a set task scheduling method.

[0011] In a second aspect, an embodiment of the present invention provides a communication management device for a smart meter, the device comprising:

[0012] A communication task and smart meter determination module, used to obtain at least one instrument communication task generated after satisfying the task initiation condition, and determine the first smart meter corresponding to each of the instrument communication tasks;

[0013] A first communication device determining module, used to determine the first communication devices to which the first smart meters are respectively connected according to pre-constructed tree-like communication information;

[0014] A first communication task sending module, for sending the associated instrument communication task to the connected first smart meter directly through the first communication device when the number of the first smart meter connected to the first communication device is 1;

[0015] The second communication task sending module is used for, when the number of first smart meters connected to the first communication device is greater than 1, to poll and send the associated meter communication tasks to each connected first smart meter according to a set task scheduling method.

[0016] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0017] at least one processor;

[0018] and a memory communicatively coupled to the at least one processor;

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the communication management method for a smart meter described in any embodiment of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication management method of the smart meter described in any embodiment of the present invention when executed.

[0021] In a fifth aspect, an embodiment of the present invention further provides a computer program product, characterized in that the computer program product comprises a computer program, and when the computer program is executed by a processor, the communication management method of the smart meter according to any embodiment of the present invention is implemented.

[0022] The technical solution of the embodiment of the present invention is to obtain at least one instrument communication task generated after satisfying the task initiation condition, and determine the first smart instrument corresponding to each instrument communication task; determine the first communication devices connected to each first smart instrument according to the pre-constructed tree communication information; for the case where the number of first smart instruments connected to the first communication device is 1, directly send the associated instrument communication tasks to the connected first smart instruments through the first communication device; for the case where the number of first smart instruments connected to the first communication device is greater than 1, send the associated instrument communication tasks to each connected first smart instrument in a polling manner according to the set task scheduling method. The method determines the number of first smart meters connected to the first communication device. When the number of connected first smart meters is greater than 1, the method polls and sends associated meter communication tasks to the connected first smart meters when the first communication device is idle according to a set task scheduling method, thereby maximizing the use of communication resources between the first communication device and the smart meters and improving communication efficiency. In addition, when the number of first smart meters connected to the first communication device is 1, the method directly sends meter communication tasks in parallel to the first smart meters uniquely corresponding to each first communication device, thereby significantly improving the problems of long response time, poor availability and untimely data update of electronic equipment, thereby improving user experience.

[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0025] Figure 1 A flow chart of a communication management method for a smart meter provided by an embodiment of the present invention;

[0026] Figure 2 A schematic diagram of the structure of a communication management device for an intelligent meter provided by an embodiment of the present invention;

[0027] Figure 3 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] It should be noted that due to the increasing complexity of smart meters, a single smart meter may contain hundreds of commands, so a complete data reading may require at least hundreds of communication interactions; in addition, for the sake of data security and the correctness of the interaction logic, the existing communication management solutions for smart meters do not support concurrent communication between a single communication device and multiple smart meters connected to it, so that especially when it is necessary to parse or process the communication data of the smart meter, or to perform user interaction operations or logical processing on the communication data of the smart meter according to the methods in the DD, the existing communication management solutions for smart meters have problems such as low communication efficiency, long response time, poor availability and untimely data updates.

[0031] Based on this, an embodiment of the present invention provides a communication management method for a smart meter, which is applied to an electronic device, wherein the electronic device is connected to at least one communication device, each communication device includes at least one external interface, and at least one smart meter establishes a communication connection with the electronic device through an external interface of the communication device.

[0032] It should be noted that the communication connections established between the same communication device and different smart meters are independent of each other to ensure the correctness of communication. The communication between the communication device and the smart meter complies with the HART protocol.

[0033] Figure 1 A flow chart of a communication management method for a smart meter provided in an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios where electronic devices communicate with smart meters in the fields of industrial automation, energy management, environmental monitoring, etc. The method can be executed by a communication management device for a smart meter, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which is preferably a mobile terminal, a desktop computer, a laptop computer, a server, etc.

[0034] like Figure 1 As shown, the communication management method of the smart meter provided in the embodiment of the present invention may specifically include:

[0035] S101, acquiring at least one instrument communication task generated after satisfying a task initiation condition, and determining a first smart instrument corresponding to each instrument communication task.

[0036] Among them, the instrument communication task can be understood as the task of data exchange and communication between electronic equipment (such as monitoring equipment, control equipment, etc.) and intelligent instrument equipment, such as reading the real-time data of the intelligent instrument, setting the parameters of the intelligent instrument, controlling the output of the intelligent instrument, etc. The first intelligent instrument can be understood as an intelligent instrument corresponding to each instrument communication task one by one, that is, an intelligent instrument that needs to be used under the current instrument communication task. The intelligent instrument can include temperature meters, pressure meters, flow meters, analyzers, etc.

[0037] In this embodiment, when the electronic device obtains an operation task for a smart meter and performs a corresponding operation on the smart meter according to the operation task, such as starting inspection and parameter reading and writing of the whole plant (or multiple) smart meters, it is considered that the task initiation condition is met, and an instrument communication task corresponding to the executed operation is generated. After the generated instrument communication tasks are obtained in real time, the first smart meter corresponding to each instrument communication task is determined.

[0038] Exemplarily, the electronic device may obtain the operation task for the smart meter by receiving one or more operation tasks determined by the user through a drop-down list, a search box, an editable text box, or a file upload on a display interface; it may also be an operation task preset in the electronic device to be started at a scheduled time or performed in real time, etc. The operation task may be reading parameters, status monitoring, or scheduled communication, etc.

[0039] S102: Determine, according to the pre-constructed tree-like communication information, the first communication devices to which the first smart meters are respectively connected.

[0040] In this embodiment, a tree-like communication structure is constructed in advance according to the communication devices and smart meters that need to be serialized through configuration, system scanning and other operations. For example, the tree-like communication information can use the electronic device as the root node, each communication device as the parent node, and each smart meter as the child node. By analyzing the pre-constructed tree-like communication information, the communication path of each first smart meter can be determined, and the first communication device connected to each first smart meter can be determined according to the node information and the communication path. The first communication device can be a HART cat, a controller, a multiplexer, etc.

[0041] S103: When the number of first smart meters connected to the first communication device is 1, directly send an associated meter communication task to the connected first smart meter through the first communication device.

[0042] In this embodiment, for the case where the number of first smart meters connected to the first communication device is 1, that is, no other first smart meters are connected to the first communication device, the communication state of the first communication device is always idle, and the associated meter communication task is directly sent to the connected first smart meter through the first communication device. It can be understood that in the case, the method of sending the associated meter communication task to the connected first smart meter through the first communication device can be parallel communication, that is, sending the associated meter communication task to the corresponding first smart meter through each first communication device in parallel.

[0043] The method of sending the associated instrument communication task to the connected first smart meter through the first communication device can be to use a task parsing thread to decompose different instrument communication tasks into corresponding communication commands according to the smart meter device description file, encapsulate the communication commands according to the set communication protocol (i.e., the open communication HART protocol for highway addressable remote sensors) to form a communication command data packet, and send the communication command data packet to different first smart meters through the first communication device.

[0044] S104: When the number of first smart meters connected to the first communication device is greater than 1, the first communication device polls and sends associated meter communication tasks to each of the first smart meters connected according to a set task scheduling method.

[0045] In this embodiment, when the number of first smart meters connected to the first communication device is greater than 1, that is, multiple first smart meters need to send corresponding meter communication tasks to the same first communication device. At this time, according to the set task scheduling method, each first communication device polls and sends the associated meter communication tasks to each connected first smart meter.

[0046] Exemplarily, the method of polling and sending associated instrument communication tasks to each connected first smart meter according to the set task scheduling method may be that, for the instrument communication tasks corresponding to the first smart meters connected to the same first communication device, the instrument communication tasks are prioritized in real time according to a preset sorting scheme such as the urgency, importance, and / or arrival order of the instrument communication tasks, and they are decomposed into corresponding communication commands in the corresponding data parsing threads of different smart meters in sequence, and each communication command is encapsulated according to the set communication protocol (HART protocol) to form each communication command data packet, and each communication command data packet is sent to the associated first smart meter through the first communication device according to the sorting.

[0047] It should be noted that when the first communication device has sent a communication command data packet and has not received a return data packet from the smart meter, it is considered that the first communication device is in a busy state and cannot send other communication command data packets at this time. When the first communication device is not waiting to receive a return data packet returned by the smart meter, such as when the first communication device has not started to send a communication command data packet, or when the first communication device has sent a return data packet to the electronic device and has not sent a new communication command data packet, it is considered that the first communication device is in an idle state, and the communication command data packet ranked first at this time can be sent to the corresponding first smart meter through the first communication device. The first smart meter can respond to a specific command in the communication command data packet according to a preset rule, and feedback an information data packet to the first communication device, and the information data packet can include the required data or information returned according to the communication command data packet, such as diagnostic data, calibration data, troubleshooting information, and transmitter readings.

[0048] A communication management method for a smart meter provided in an embodiment of the present invention obtains at least one meter communication task generated after a task initiation condition is met, and determines the first smart meter corresponding to each meter communication task; determines the first communication devices connected to each first smart meter according to pre-constructed tree communication information; in the case where the number of first smart meters connected to the first communication device is 1, directly sends the associated meter communication tasks to the connected first smart meters through the first communication device; in the case where the number of first smart meters connected to the first communication device is greater than 1, polls and sends the associated meter communication tasks to each connected first smart meter according to a set task scheduling method. The method determines the number of first smart meters connected to the first communication device. When the number of connected first smart meters is greater than 1, the method polls and sends associated meter communication tasks to the connected first smart meters when the first communication device is idle according to a set task scheduling method, thereby maximizing the use of communication resources between the first communication device and the smart meters and improving communication efficiency. In addition, when the number of first smart meters connected to the first communication device is 1, the method directly sends meter communication tasks in parallel to the first smart meters uniquely corresponding to each first communication device, thereby significantly improving the problems of long response time, poor availability and untimely data update of electronic equipment, thereby improving user experience.

[0049] As a first optional embodiment of this embodiment, based on the above embodiment, the construction of the tree-like communication structure information can be concretized into the following steps:

[0050] a1) According to the configuration information, determine the associated intelligent instrument connected to each communication device.

[0051] In this embodiment, the associated smart meter connected to each communication device is determined according to the configuration information defining the association relationship between the communication device and the smart meter.

[0052] b1) For each communication device, the communication device is determined as a parent node, each of the associated smart meters is determined as a child node of the communication device, and a child communication tree corresponding to the communication device is constructed.

[0053] In this embodiment, each communication device is taken as a parent node, and the smart meter associated with the communication device is taken as a child node of the communication device, so that each communication device and the smart meter associated with it constitute a sub-communication tree.

[0054] c1) Taking the electronic device as a root node, connecting each of the sub-communication trees to form a communication tree.

[0055] In this embodiment, the electronic device is used as the root node of the entire communication network, and all sub-communication trees are connected to the root node, thereby forming a complete communication tree, which includes all communication devices and smart meters.

[0056] d1) generating tree-like communication information of the communication tree based on the node information of each node in the communication tree.

[0057] In this embodiment, based on the node information (such as node status, node device identification information, etc.) of each node in the communication tree (whether it is a root node, a parent node or a child node), tree-like communication information of the communication tree is generated to monitor and manage the communication network.

[0058] The above technical scheme of this embodiment constructs a sub-communication tree by utilizing the connection relationship between the communication device and the smart meter, and connects each sub-communication tree to the root node electronic device to form a communication tree with a clear hierarchical structure. Based on the node information of each node in the communication tree, the tree-like communication information of the communication tree is generated to facilitate the subsequent determination of whether each smart device uses the communication resources of the same communication device, thereby determining the method of sending the instrument communication task, effectively improving the communication efficiency and the utilization rate of communication resources.

[0059] As a second optional embodiment of this embodiment, the steps of determining the first communication devices to which the first smart meters are respectively connected according to the pre-built tree-like communication information may be specifically optimized into the following steps:

[0060] a2) For each first smart meter, obtain meter identification information of the first smart meter.

[0061] In this embodiment, for each first smart meter, the meter identification information of the first smart meter is acquired, and the meter identification information may be a unique serial number, an IP address, a MAC address, or other information that can uniquely identify the smart meter.

[0062] b2) comparing the meter identification information with each node information in the tree-like communication information to determine first node information matching the meter identification information.

[0063] The first node information may be understood as node information matching the meter identification information, and is used to further determine the position and connection relationship of the first smart meter in the communication tree.

[0064] In this embodiment, the acquired instrument identification information is compared with each node information in the tree communication information, and the node information matching the instrument identification information is determined as the first node information.

[0065] c2) traversing the communication tree corresponding to the tree-like communication information, and determining a first node corresponding to the first node information in the communication tree.

[0066] The first node may be understood as a node representing the first smart meter in the communication tree.

[0067] In this embodiment, each node in the communication tree corresponding to the tree-like communication information is traversed and accessed, a specific node corresponding to the first node information is determined from the entire communication tree, and the specific node is determined as the first node.

[0068] d2) determining the parent node of the first node as the first communication device connected to the first smart meter.

[0069] In this embodiment, the parent node of the first node is searched in the communication tree, and the parent node represents the first communication device connected to the first smart meter.

[0070] The above technical scheme of this embodiment obtains the instrument identification information of the first smart meter, determines the first node information matching the instrument identification information from the tree communication information, and determines the corresponding first node in the communication tree according to the first node information, and then determines the parent node of the first node to achieve rapid and accurate positioning of the first communication device connected to the first smart meter, ensures accurate determination of the number of first smart meters connected to the first communication device, and provides strong support for the subsequent determination of the specific method for sending the instrument communication task.

[0071] As a second optional embodiment of this embodiment, based on the above embodiment, in the case where the number of first smart meters connected to the first communication device is greater than 1, the associated meter communication tasks are sent to each connected first smart meter in a polling manner according to a set task scheduling method, which can be specifically implemented as the following steps:

[0072] a3) The first communication device to which the number of first smart meters connected is greater than 1 is recorded as the second communication device.

[0073] In this embodiment, if it is determined that different first smart meters to be accessed are connected to the same first communication device, the first communication device is recorded as a second communication device to distinguish it from a communication device connected to only one first smart meter.

[0074] b3) For each second communication device, each first smart meter connected to the second communication device is recorded as a second smart meter, and each meter communication task associated with each second smart meter is recorded as a target communication task.

[0075] In this embodiment, for each second communication device, the first smart meter connected to the second communication device is recorded as a second smart meter, which means that the first smart meter is connected to the same second communication device, and the instrument communication tasks associated with each second smart meter are respectively recorded as target communication tasks, wherein the target communication task can be understood as a task with scheduling requirements, which can be a task such as data collection and control command issuance.

[0076] c3) determining the task priority of each of the target communication tasks, and adding the corresponding target communication tasks to a set one-dimensional communication array according to the priority from high to low.

[0077] In this embodiment, for each target communication task corresponding to the same second communication device, the task priority of each target communication task is determined. The task priority can be set according to the urgency, importance or predetermined rules of the task, and the corresponding target communication task is added to the set one-dimensional communication array in order from high to low priority for subsequent task scheduling and execution.

[0078] It should be noted that target communication tasks of the same priority level can be added to the set one-dimensional communication array in a random order.

[0079] As one implementation manner, this optional embodiment may further specify the task priority of each target communication task as follows:

[0080] c31) For each target communication task, analyzing the task attribute information to which the target communication task belongs.

[0081] In this embodiment, for each target communication task, the task attribute information described in the target communication task is analyzed to determine the type of task, such as manually initiated tasks (i.e., tasks initiated by users), monitoring tasks (i.e., tasks that require continuous monitoring or regular inspections), or timed initiated tasks (i.e., tasks that are automatically triggered according to a predetermined time). Exemplarily, the task attribute information may include task initiator information, that is, if there is a clear user identifier or operator information in the task attribute information, the corresponding target communication task can be considered to be a manually initiated task; the task attribute information may also include specific tags or classifications to directly indicate the type of task; the task attribute information may also include scheduling information such as a predetermined time and a repetition period.

[0082] c32) If the task attribute information indicates that the target communication task is a manually initiated task, determining the task priority of the target communication task to be the highest priority.

[0083] In this embodiment, if the task attribute information indicates that the target communication task is a manually initiated task, the task priority of the target communication task is determined to be the highest priority, that is, it is processed first.

[0084] c33) If the task attribute information indicates that the target communication task is a monitoring task, the target communication task is determined as the second highest priority.

[0085] In this embodiment, if the task attribute information indicates that the target communication task is a monitoring task, the task priority of the target communication task is determined to be the highest priority, that is, it is processed only after the task is manually initiated.

[0086] c34) If the task attribute information indicates that the target communication task is a timed initiation task, the task priority of the target communication task is determined to be the lowest priority.

[0087] In this embodiment, if the target communication task is characterized as a timed initiation task in the task attribute information, the task priority of the target communication task is determined to be the lowest priority, that is, it is processed last.

[0088] In the above technical scheme of the present embodiment, the priority order of tasks is determined according to the task types represented in the task attribute information, and manually initiated tasks are determined as the highest priority, thereby ensuring that the tasks with the most urgent needs or the most likely to require human participation receive the fastest response, thereby reducing the time waiting for a response after a user operation. At the same time, if human participation is required for time-consuming operations such as data processing on the data returned by the second smart device, the idle communication resources of the second communication device can be used more efficiently, thereby improving user experience and communication efficiency.

[0089] d3) When it is detected that the second communication device is in an idle state, the first target communication task in the one-dimensional communication array is sent to the associated second smart meter through the second communication device.

[0090] In this embodiment, when it is detected that the second communication device is in an idle state, the first target communication task in the one-dimensional communication array is immediately sent to the second smart meter associated with the first target communication task through the second communication device.

[0091] It should be noted that when the second communication device does not receive the target communication task to be sent to the second smart meter, or sends the received information data packet fed back by the second smart meter after responding to the target communication task to the electronic device, the second communication device is in an idle state. In addition, the first target communication task will disappear in the one-dimensional communication array after being issued, that is, the original second target communication task will become the first target communication task at this time.

[0092] The above technical scheme of this embodiment adds the corresponding target communication tasks to the set one-dimensional communication array according to the task priority of each target communication task. When it is detected that the second communication device is in an idle state, the first target communication task in the one-dimensional communication array is immediately issued, ensuring that the corresponding target communication task is issued to only one second smart meter at a time, ensuring the correctness of the data, and making full use of the idle communication resources of the second communication device, so that multiple second smart meters can communicate alternately (i.e., issue target communication tasks) using the same second communication device, greatly reducing the total communication time and the unresponsive time of user operations.

[0093] As one implementation manner, this optional embodiment may send the first target communication task in the one-dimensional communication array to the associated second smart meter through the second communication device, which is further embodied as follows:

[0094] d31) obtaining the first target communication task in the one-dimensional communication array, and using a task parsing thread to decompose the target communication task into corresponding communication commands.

[0095] In this embodiment, the first target communication task in the one-dimensional communication array is obtained, and the target communication task is decomposed into corresponding communication commands according to the intelligent meter device description file using a task parsing thread.

[0096] For example, if the target communication task is to obtain certain parameter information of the second smart meter, the target communication task is decomposed by the task parsing thread to obtain a corresponding communication command; if the target communication task is to obtain all status parameter information of the second smart meter, the target communication task is decomposed by the task parsing thread to obtain hundreds of corresponding communication commands.

[0097] d32) Encapsulating the communication command according to the set communication protocol to form a communication command data packet, and sending the communication command data packet to the associated second smart meter through the second communication device.

[0098] In this embodiment, the decomposed communication command is encapsulated according to the set communication protocol (i.e., the HART protocol) to form a communication command data packet containing all necessary information and instructions. The encapsulation process may include adding a start bit, a check bit, an end bit, etc., and the communication command data packet is sent to the associated second smart meter through the second communication device.

[0099] Exemplarily, if there is one communication command, the communication command can be directly encapsulated according to the set communication protocol to form a communication command data packet, and the communication command data packet can be sent to the associated second smart meter through the second communication device; if there are multiple communication commands, each communication command is encapsulated according to the set communication protocol to form each communication command data packet, and the second communication device can send the corresponding communication command data packet to the associated second smart meter according to the preset rules in the HART protocol.

[0100] The above technical solution of this embodiment uses a task parsing thread to decompose the first target communication task into corresponding communication commands, and encapsulates them according to the set communication protocol to form a communication command data packet that can be sent to the associated second smart meter through the second communication device, thereby ensuring effective communication between the electronic device and the smart meter.

[0101] As one implementation manner, after sending the first target communication task in the one-dimensional communication array to the associated second smart meter through the second communication device, the method further includes:

[0102] a4) receiving, through the second communication device, an information data packet fed back by the associated second smart meter after responding to the target communication task, so as to participate in related execution logic according to the information data packet.

[0103] The information data packet may be understood as a data packet returned by the second smart meter after receiving and processing the target communication task, and may include execution results, status information, error codes, and the like.

[0104] In this embodiment, the second communication device receives the feedback information data packet of the associated second smart meter after responding to the target communication task, and sends the information data packet to the electronic device. At the same time, the communication state of the second communication device can be determined as an idle state. After receiving the information data packet, the electronic device participates in the relevant execution logic according to the information data packet, such as performing secondary processing of the data or continuing to send it to the user interaction interface for user interaction. Exemplarily, the relevant execution logic may include data parsing, result verification (i.e., checking whether the feedback information indicates that the task is successfully executed), error handling (i.e., if the information data packet indicates an error or abnormality, error recovery or alarm logic may be executed), status update (i.e., updating the data recorded by the electronic device, the status of the smart meter, etc. according to the information data packet), subsequent operations (i.e., determining whether it is necessary to send more communication commands or perform other tasks according to the information data packet) and user notification (i.e., notifying the user of the execution result of the task), etc. If it is necessary to interact with the user, the parsed data can also be displayed in the user interaction interface of the electronic device.

[0105] It should be noted that at this time, the second communication device can execute the operation of sending the target communication task to the remaining second smart meters, and no longer execute the remaining operations on the current second smart meter (i.e., the second smart meter that currently feeds back the information data packet), so it is not affected by the relevant execution logic such as data processing or interaction. After the relevant execution logic is completed and the target communication task for the current second smart meter is prepared again, the processing will continue according to the preset rules.

[0106] The above technical solution of this embodiment receives, through the second communication device, an information data packet fed back by the associated second smart meter after responding to the target communication task, and executes relevant logic according to the information data packet to ensure that the electronic device can achieve effective behavior adjustment and data management according to the response of the second smart meter.

[0107] As another implementation method, the following is also included:

[0108] a5) If it is detected that a new meter communication task is generated for any second smart meter, the new meter communication task is recorded as a new target communication task.

[0109] In this embodiment, if it is detected that a new meter communication task is generated for any second smart meter, the new meter communication task is recorded as a new target communication task to participate in task scheduling.

[0110] Exemplarily, the new meter communication task may be a meter communication task regenerated after the electronic device executes relevant logic on the information data packet fed back by the second smart meter.

[0111] b5) determining the task priority of the new target communication task, and inserting the new target communication task into the one-dimensional communication array according to the task priority.

[0112] Exemplarily, a specific method of determining the task priority of a new target communication task and inserting the new target communication task into a one-dimensional communication array according to the task priority may be to analyze the task attribute information of the new target communication task to determine whether the new target communication task is a manually initiated task, a monitoring task, or a timed initiated task, thereby determining the task priority of the new target communication task; then inserting the new target communication task into the end of the same task priority in the one-dimensional communication array. If the new target communication task is a manually initiated task, the task priority is the highest priority. In this case, the new target communication task is inserted behind the last highest priority target communication task in the one-dimensional communication array; or when there is no target communication task with the same task priority in the one-dimensional communication array, the new target communication task is inserted into the corresponding position according to the task priority. If the new target communication task is a manually initiated task with the highest priority, and there is no target communication task with the highest priority in the one-dimensional communication array, the new target communication task is inserted into the first target communication task in the one-dimensional communication array, waiting to be processed first when the second communication device is in an idle state.

[0113] The above technical solution of this embodiment, by inserting the new instrument communication task generated for any second smart meter into the one-dimensional communication data group according to the task priority, ensures that high-priority tasks can be processed first and continuously, and improves the fastest response to the tasks with the most urgent needs or the most likely to require human participation, thereby further improving user experience and communication efficiency.

[0114] Figure 2 The present invention provides a schematic diagram of the structure of a communication management device for a smart meter provided in an embodiment of the present invention. The communication management device for a smart meter is applied to an electronic device, the electronic device is connected to at least one communication device, each communication device includes at least one external interface, and at least one smart meter establishes a communication connection with the electronic device through an external interface of the communication device. Figure 2 As shown, the device includes: a communication task and smart meter determination module 21, a first communication device determination module 22, a first communication task sending module 23 and a second communication task sending module 24, wherein:

[0115] The communication task and smart meter determination module 21 is used to obtain at least one meter communication task generated after the task initiation condition is met, and determine the first smart meter corresponding to each of the meter communication tasks;

[0116] A first communication device determining module 22, configured to determine the first communication devices to which the first smart meters are respectively connected according to pre-constructed tree-like communication information;

[0117] A first communication task sending module 23 is used for directly sending the associated instrument communication task to the connected first smart meter through the first communication device when the number of the first smart meter connected to the first communication device is 1;

[0118] The second communication task sending module 24 is used for, when the number of first smart meters connected to the first communication device is greater than 1, to poll and send the associated meter communication tasks to each connected first smart meter according to a set task scheduling method.

[0119] A communication management device for a smart meter provided in an embodiment of the present invention obtains at least one meter communication task generated after a task initiation condition is met, and determines the first smart meter corresponding to each meter communication task; determines the first communication devices to which each first smart meter is respectively connected according to pre-constructed tree communication information; in the case where the number of first smart meters connected to the first communication device is 1, directly sends the associated meter communication tasks to the connected first smart meters through the first communication device; in the case where the number of first smart meters connected to the first communication device is greater than 1, polls and sends the associated meter communication tasks to each connected first smart meter according to a set task scheduling method. The method determines the number of first smart meters connected to the first communication device. When the number of connected first smart meters is greater than 1, the method polls and sends associated meter communication tasks to the connected first smart meters when the first communication device is idle according to a set task scheduling method, thereby maximizing the use of communication resources between the first communication device and the smart meters and improving communication efficiency. In addition, when the number of first smart meters connected to the first communication device is 1, the method directly sends meter communication tasks in parallel to the first smart meters uniquely corresponding to each first communication device, thereby significantly improving the problems of long response time, poor availability and untimely data update of electronic equipment, thereby improving user experience.

[0120] Furthermore, the communication management device of the smart meter also includes a communication structure building module, which can be specifically used for:

[0121] According to the configuration information, determine the associated intelligent instrument connected to each communication device;

[0122] For each communication device, the communication device is determined as a parent node, each of the associated smart meters is determined as a child node of the communication device, and a child communication tree corresponding to the communication device is constructed;

[0123] Taking the electronic device as a root node, connecting each of the sub-communication trees to form a communication tree;

[0124] Based on the node information of each node in the communication tree, tree-shaped communication information of the communication tree is generated.

[0125] Furthermore, the first communication device determination module 22 may be specifically configured to:

[0126] For each first smart meter, obtaining meter identification information of the first smart meter;

[0127] Compare the meter identification information with each node information in the tree communication information to determine first node information matching the meter identification information;

[0128] Traversing the communication tree corresponding to the tree-like communication information, and determining a first node corresponding to the first node information in the communication tree;

[0129] The parent node of the first node is determined as a first communication device connected to the first smart meter.

[0130] Furthermore, the second communication task sending module 24 may specifically include:

[0131] A second communication device determining unit, configured to record a first communication device to which the number of first smart meters connected is greater than 1 as a second communication device;

[0132] A second smart meter and target communication task determination unit, for each second communication device, recording each first smart meter connected to the second communication device as a second smart meter, and recording each meter communication task associated with each second smart meter as a target communication task;

[0133] A task adding unit, used to determine the task priority of each target communication task, and add the corresponding target communication task to a set one-dimensional communication array according to the priority from high to low;

[0134] The task issuing unit is used to issue the first target communication task in the one-dimensional communication array to the associated second smart meter through the second communication device when detecting that the second communication device is in an idle state.

[0135] Furthermore, the communication management device of the smart meter also includes a task priority determination module, which can be specifically used for:

[0136] For each target communication task, analyzing the task attribute information to which the target communication task belongs;

[0137] If the task attribute information indicates that the target communication task is a manually initiated task, determining the task priority of the target communication task as the highest priority;

[0138] If the task attribute information indicates that the target communication task is a monitoring task, the target communication task is determined as the second highest priority;

[0139] If the task attribute information indicates that the target communication task is a timed initiation task, the task priority of the target communication task is determined to be the lowest priority.

[0140] Furthermore, the task issuing unit can be specifically used for:

[0141] Obtaining a first target communication task in the one-dimensional communication array, and using a task parsing thread to decompose the target communication task into corresponding communication commands;

[0142] The communication command is encapsulated according to a set communication protocol to form a communication command data packet, and the communication command data packet is sent to the associated second smart meter through the second communication device.

[0143] Furthermore, the communication management device of the smart meter also includes a feedback information processing module, which can be specifically used for:

[0144] After the first target communication task in the one-dimensional communication array is sent to the associated second smart meter through the second communication device, the second communication device receives the feedback information data packet from the associated second smart meter after responding to the target communication task, so as to participate in the relevant execution logic according to the information data packet.

[0145] Furthermore, the communication management device of the smart meter also includes a new task adding module, which can be specifically used for:

[0146] If it is detected that a new meter communication task is generated for any second smart meter, the new meter communication task is recorded as a new target communication task;

[0147] The task priority of the new target communication task is determined, and the new target communication task is inserted into the one-dimensional communication array according to the task priority.

[0148] The communication management device for a smart meter provided in the embodiment of the present invention can execute the communication management method for a smart meter provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0149] Figure 3A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0150] like Figure 3 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0151] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0152] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 executes the various methods and processes described above, such as the communication management method of the smart meter.

[0153] In some embodiments, the communication management method of the smart meter can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the communication management method of the smart meter described above can be performed. Alternatively, in other embodiments, the processor 31 can be configured to execute the communication management method of the smart meter in any other appropriate manner (for example, by means of firmware).

[0154] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0155] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0156] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0157] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0158] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0159] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0160] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0161] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A communication management method for a smart meter, characterized in that: Applied to electronic equipment, the electronic equipment is connected to at least one communication device, each communication device includes at least one external interface, at least one smart meter establishes a communication connection with the electronic equipment through an external interface of the communication device, the method includes: Acquire at least one instrument communication task generated after satisfying the task initiation condition, and determine the first smart instrument corresponding to each of the instrument communication tasks; Determining, according to the pre-constructed tree-like communication information, the first communication devices to which the first smart meters are respectively connected; In case that the number of first smart meters connected to the first communication device is 1, the associated meter communication task is directly sent to the connected first smart meter through the first communication device; When the number of first smart meters connected to the first communication device is greater than 1, the associated meter communication tasks are sent to each of the connected first smart meters in a polling manner according to a set task scheduling method.

2. The method according to claim 1, characterized in that The steps of constructing the tree-like communication structure information include: According to the configuration information, determine the associated intelligent instrument connected to each communication device; For each communication device, the communication device is determined as a parent node, each of the associated smart meters is determined as a child node of the communication device, and a child communication tree corresponding to the communication device is constructed; Taking the electronic device as a root node, connecting each of the sub-communication trees to form a communication tree; Based on the node information of each node in the communication tree, tree-shaped communication information of the communication tree is generated.

3. The method according to claim 1, characterized in that The determining, based on the pre-constructed tree-like communication information, the first communication devices to which the first smart meters are respectively connected comprises: For each first smart meter, obtaining meter identification information of the first smart meter; Compare the meter identification information with each node information in the tree communication information to determine first node information matching the meter identification information; Traversing the communication tree corresponding to the tree-like communication information, and determining a first node corresponding to the first node information in the communication tree; The parent node of the first node is determined as a first communication device connected to the first smart meter.

4. The method according to claim 1, characterized in that In the case that the number of first smart meters connected to the first communication device is greater than 1, polling and sending associated meter communication tasks to each connected first smart meter according to a set task scheduling method includes: Recording the first communication device to which the number of first smart meters connected is greater than 1 as the second communication device; For each second communication device, each first smart meter connected to the second communication device is recorded as a second smart meter, and each meter communication task associated with each second smart meter is recorded as a target communication task; Determine the task priority of each of the target communication tasks, and add the corresponding target communication tasks to a set one-dimensional communication array according to the priority from high to low; When it is detected that the second communication device is in an idle state, the first target communication task in the one-dimensional communication array is sent to the associated second smart meter through the second communication device.

5. The method according to claim 4, characterized in that Determining the task priority of each target communication task includes: For each target communication task, analyzing the task attribute information to which the target communication task belongs; If the task attribute information indicates that the target communication task is a manually initiated task, determining the task priority of the target communication task as the highest priority; If the task attribute information indicates that the target communication task is a monitoring task, the target communication task is determined as the second highest priority; If the task attribute information indicates that the target communication task is a timed initiation task, the task priority of the target communication task is determined to be the lowest priority.

6. The method according to claim 4, characterized in that The sending of the first target communication task in the one-dimensional communication array to the associated second smart meter through the second communication device includes: Obtaining a first target communication task in the one-dimensional communication array, and using a task parsing thread to decompose the target communication task into corresponding communication commands; The communication command is encapsulated according to a set communication protocol to form a communication command data packet, and the communication command data packet is sent to the associated second smart meter through the second communication device.

7. The method according to claim 4, characterized in that After sending the first target communication task in the one-dimensional communication array to the associated second smart meter through the second communication device, the method further includes: The second communication device receives the information data packet fed back by the associated second smart meter after responding to the target communication task, so as to participate in the related execution logic according to the information data packet.

8. The method according to claim 4, characterized in that Also includes: If it is detected that a new meter communication task is generated for any second smart meter, the new meter communication task is recorded as a new target communication task; The task priority of the new target communication task is determined, and the new target communication task is inserted into the one-dimensional communication array according to the task priority.

9. A communication management device for an intelligent meter, characterized in that: Applied to electronic equipment, the electronic equipment is connected to at least one communication device, each communication device includes at least one external interface, at least one smart meter establishes a communication connection with the electronic equipment through an external interface of the communication device, including: A communication task and smart meter determination module, used to obtain at least one instrument communication task generated after satisfying the task initiation condition, and determine the first smart meter corresponding to each of the instrument communication tasks; A first communication device determining module, used to determine the first communication devices to which the first smart meters are respectively connected according to pre-constructed tree-like communication information; A first communication task sending module, for sending the associated instrument communication task to the connected first smart meter directly through the first communication device when the number of the first smart meter connected to the first communication device is 1; The second communication task sending module is used for, when the number of first smart meters connected to the first communication device is greater than 1, to poll and send the associated meter communication tasks to each connected first smart meter according to a set task scheduling method.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the communication management method for a smart meter according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication management method for a smart meter according to any one of claims 1 to 8 when executed.

12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the communication management method for a smart meter according to any one of claims 1 to 8.