CN116233200A - Electric energy meter communication method and system based on subsequent frame dynamic registration - Google Patents

Electric energy meter communication method and system based on subsequent frame dynamic registration Download PDF

Info

Publication number
CN116233200A
CN116233200A CN202310520423.5A CN202310520423A CN116233200A CN 116233200 A CN116233200 A CN 116233200A CN 202310520423 A CN202310520423 A CN 202310520423A CN 116233200 A CN116233200 A CN 116233200A
Authority
CN
China
Prior art keywords
subsequent frame
storage space
communication
communication channel
registration
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.)
Granted
Application number
CN202310520423.5A
Other languages
Chinese (zh)
Other versions
CN116233200B (en
Inventor
冯学云
郭永娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202310520423.5A priority Critical patent/CN116233200B/en
Publication of CN116233200A publication Critical patent/CN116233200A/en
Application granted granted Critical
Publication of CN116233200B publication Critical patent/CN116233200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides an electric energy meter communication method and system based on subsequent frame dynamic registration, wherein the method comprises the following steps: initializing a communication channel and a preset number of subsequent frame storage spaces to be in an unregistered state after the electric energy meter is electrified; when the first frame of the data framing is monitored, dynamically pairing and registering the communication channel and the storage space of the subsequent frame according to the registration state of the communication channel and the storage space of the subsequent frame and the preset emergency importance priority of the data frame; and storing the data frame into the paired subsequent frame storage space for communication, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished. The invention uses the dynamic registration mechanism of the subsequent frame, has low coupling degree of each channel, can ensure reasonable and efficient resource allocation on the basis of meeting the daily functional requirements, and has the maximum value replaced by a small amount of resources.

Description

Electric energy meter communication method and system based on subsequent frame dynamic registration
Technical Field
The invention relates to the technical field of electric energy meter communication, in particular to an electric energy meter communication method and system based on subsequent frame dynamic registration.
Background
China will fully enter into the '2.0 times of power grid', and the full coverage of the intelligent ammeter is realized. Different from the traditional electric energy meter, the intelligent electric energy meter has the most basic metering function, the function and the data quantity are exponentially increased, and very high requirements are provided for data acquisition. The high efficiency, accuracy and timeliness of the data uploaded by the electric energy meter play a vital role in the stability of the whole system. But as the power meter function and data accuracy expand, the data length increases. If the base power is 4 bytes, 4 rates, then the read forward active power length is 20 bytes (sum rate). The new increased precision power is 8 bytes and 12 rates, then the combined active power is 104 bytes (sum rate). The electric energy meter 698 protocol 20 standardizes that frozen data to be obtained after being taken out of the desk requires that basic electric energy be upgraded into high-precision electric energy, and collected data is multiplied.
One application layer data frame has a maximum APDU length of 2000, while the maximum APDU of data transmission does not exceed 512, and the carrier channel as the main communication channel is more than 255. Link layer framing transmissions are required. The electric energy meter 698 protocol requires: each physical port maintains an independent link layer framing (each framing fragment is not self-resolvable), requiring at least 2000 bytes per channel. The current electric energy meter can support channels with 2 channels 485, 1 channel infrared, 1 channel carrier, 5 channels Bluetooth, two or more expansion modules and the like. If at least 11×2000=22000 space is required for supporting, the space required is very large, so that a high-specification singlechip is required to meet the communication requirement.
Consider the case where there is substantially no simultaneous communication and simultaneous operation of subsequent frames using a scene. The highest frequency of use is that the main station reads frozen data through the carrier channel and the expansion module, and the other channels have low frequency of use. If each channel is opened, the product cost is increased, and the lower utilization rate can cause the waste of the space of the singlechip.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect of high cost of storage space resources in the electric energy meter communication in the prior art, so that the electric energy meter communication method and system based on the dynamic registration of the subsequent frames are provided, the reasonable and efficient resource allocation can be ensured on the basis of meeting the daily communication function requirement, the resources are saved, and the expansibility is strong.
The technical scheme for solving the technical problems is as follows:
in a first aspect, the present invention provides a method for electric energy meter communication based on dynamic registration of subsequent frames, comprising the steps of:
after the electric energy meter is electrified, initializing a preset number of communication channels and a preset number of subsequent frame storage spaces to be in an unregistered state;
when the first frame of the transmitted data frame is monitored, dynamically pairing and registering the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame;
and storing the data frame into the paired subsequent frame storage space for communication, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished.
According to the electric energy meter communication method based on the subsequent frame dynamic registration, after the electric energy meter is powered on, if the first frame of the transmitted data frame is monitored, the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame, and the communication channel and the paired subsequent frame storage space are cancelled to be in an unregistered state after communication is finished. The invention uses the dynamic registration mechanism of the subsequent frame, has low coupling degree of each channel, can ensure reasonable and efficient resource allocation on the basis of meeting the daily functional requirements, and has the maximum value replaced by a small amount of resources.
Optionally, configuring a channel timer for each communication channel; when the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration, setting the channel timer as preset timing time and carrying out communication timing; if the preset time is reduced to zero, the corresponding communication channel and the storage space of the subsequent frame are unregistered.
The invention sets the channel timer for each channel, controls the communication time of the channel according to the actual demand, and after overtime, the registered communication channel and the storage space of the subsequent frame are logged out to be in an unregistered state, so as to provide a transmission channel for new data, belonging to the supplement of dynamic registration, and further improving the allocation efficiency of resources according to the actual demand.
Optionally, initializing the preset number of communication channels and the preset number of subsequent frame storage spaces to an unregistered state includes: setting a channel number of the communication channel as a first preset code, wherein the first preset code characterizes the communication channel as an unregistered state; setting a subsequent frame number of the subsequent frame storage space as a second preset code, wherein the second preset code characterizes the subsequent frame storage space as an unregistered state; the channel timer is set to zero.
The invention characterizes the registration state of the communication channel and the storage space of the subsequent frame through the preset code. After the electric energy meter is powered on, each communication channel and the storage space of the subsequent frame are initialized to an unregistered state, namely, the channel number of the communication channel and the subsequent frame number of the storage space of the subsequent frame are set to be preset codes. And simultaneously, the channel timer is set to zero, and the timing is not performed. All communication channels, subsequent frame memory space and channel timers are in an idle state by initialization, ready for data transmission.
Optionally, the process of dynamically pairing and registering the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame includes: judging the registration state of the communication channel according to the channel number, and judging the registration state of the storage space of the subsequent frame according to the subsequent frame number; if the communication channel and the subsequent frame storage space are in an unregistered state, carrying out pairing registration on the communication channel and the subsequent frame storage space; if all the communication channels and the storage spaces of the subsequent frames are in a registered state through traversal, sequentially comparing the data frames in the communication channels with the data frames in the storage spaces of the subsequent frames according to a preset emergency importance priority; and if the priority of the data frame in the communication channel is higher than the priority of the data frame with the lowest priority in the storage space of the subsequent frame, carrying out pairing registration on the communication channel and the storage space of the subsequent frame, otherwise, not carrying out pairing registration.
The invention carries on the pairing registration of the communication channel and storage space of the subsequent frame through the dynamic registration mechanism, when there is idle resource, namely there is storage space unregistered, carry on the dynamic registration of the storage space of the subsequent frame, and the data frame registers first according to the time priority, and release the resource after using or overtime; if the resources are busy, namely when all the storage spaces are registered, judging the emergency importance priority of the data frames, if the priority of the new data frame is higher than the priority of the data frame with the lowest registered level, clearing the old data frame, carrying out pairing registration on the communication channel of the new data frame and the subsequent storage space, and storing the new data frame in the paired storage space. Otherwise, the pairing registration is not carried out, and the new data frame is directly abandoned. By dynamic registration, the set communication channels and storage space can be fully utilized, important and urgent data can be transmitted as much as possible, and a small amount of resources are used for the maximum value.
Optionally, in the unregistered state, each of the communication channels may perform pairing registration.
The communication channels and the storage space of the subsequent frames are in an idle state only if the communication channels and the storage space of the subsequent frames are unregistered, so that the communication channels and the storage space of the subsequent frames can be matched and registered randomly, the communication channels are not associated, the coupling degree is low, and the flexibility of dynamic registration can be further improved.
Optionally, the communication channel includes: the communication system comprises a carrier communication channel, a 485 communication channel, an infrared communication channel, a Bluetooth communication channel, a metering module communication channel and an expansion module communication channel, wherein the channels are in equal competition relationship; the number of subsequent frame storage spaces is determined based on the actual requirements of the communication channels, each supporting one of the subsequent storage spaces.
The electric energy meter can be provided with various communication channels, and the number of the channels to be opened is selected according to actual needs. And each channel is in equal competition relationship, and any channel can be selected for data transmission. Each communication channel supports a subsequent frame storage space, and only one-to-one pairing registration can be performed, so that the number of the subsequent frame storage spaces is determined based on the actual requirements of the communication channels. If the preset number of communication channels do not meet the requirements, channel expansion can be performed, at the moment, the communication requirements can be met by configuring a corresponding number of storage spaces, the code quantity is changed very little, and the expansibility is strong.
In a second aspect, an embodiment of the present invention provides a power meter communication system based on dynamic registration of subsequent frames, the system comprising:
the initialization module is used for initializing a preset number of communication channels and a preset number of subsequent frame storage spaces into an unregistered state after the electric energy meter is electrified;
the registration module is used for carrying out dynamic pairing registration on the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame after monitoring the first frame of the transmitted data frame;
and the cancellation module is used for communicating by saving the data frame to the paired subsequent frame storage space, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished.
Optionally, the communication device further comprises a timing module, configured to set the channel timer to a preset timing time for communication timing when the communication channel and the subsequent frame storage space are dynamically paired and registered; if the preset time is reduced to zero, the corresponding communication channel and the storage space of the subsequent frame are logged off.
According to the electric energy meter communication system based on the subsequent frame dynamic registration, after the electric energy meter is powered on, if the first frame of the transmitted data frame is monitored, the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame, and the communication channel and the paired subsequent frame storage space are logged out to be in an unregistered state after communication is finished. The invention uses the dynamic registration mechanism of the subsequent frame, has low coupling degree of each channel, can ensure reasonable and efficient resource allocation on the basis of meeting the daily functional requirements, and has the maximum value replaced by a small amount of resources.
In a third aspect, an embodiment of the present invention provides a computer apparatus, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the method in the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect, or any one of the alternative embodiments of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for communication of an electric energy meter based on dynamic registration of subsequent frames according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a dynamic routing topology of a communication method of an electric energy meter based on dynamic registration of a subsequent frame according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an initialization flow of a communication method of an electric energy meter based on dynamic registration of a subsequent frame according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a dynamic allocation function of a communication method of an electric energy meter based on dynamic registration of subsequent frames according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a registration flow of a method for dynamically registering an electric energy meter based on a subsequent frame according to an embodiment of the present invention;
FIG. 6 is a timing flow diagram of a method for communication of an electric energy meter based on dynamic registration of subsequent frames according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a cancellation flow of a communication method of an electric energy meter based on dynamic registration of a subsequent frame according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a communication processing data frame flow of a method for electric energy meter communication based on dynamic registration of subsequent frames according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electric energy meter communication system based on dynamic registration of subsequent frames according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The embodiment of the invention provides an electric energy meter communication method based on subsequent frame dynamic registration, wherein the communication process of the electric energy meter relates to two-way communication of a client and a server, and the method provided by the embodiment of the invention is applied to a server side, as shown in fig. 1, and specifically comprises the following steps:
step S1: after the electric energy meter is electrified, initializing a preset number of communication channels and a preset number of subsequent frame storage spaces into an unregistered state.
Specifically, in the embodiment of the present invention, as shown in the dynamic routing topology diagram of fig. 2, channels that can be supported by the electric energy meter include a carrier communication channel, a 485 communication channel, an infrared communication channel, a bluetooth communication channel, a metering module communication channel, and an expansion module communication channel, where the expansion module includes a load identification module and a quality monitoring module. The invention selects one carrier communication channel and two 485 communication channels with highest frequency, but is not limited to this. Three subsequent frame memory spaces are correspondingly arranged, and each memory space is a 2100-byte RAM space, but the method is not limited to the 2100-byte RAM space. Meanwhile, the embodiment of the invention configures a channel timer for each communication channel. After the electric energy meter is electrified, the passing channel and the storage space of the subsequent frame are set to be in an unregistered state, and the method comprises the following steps:
the specific initialization flow is shown in fig. 3, and is described as follows by setting temporary variables to traverse all communication channels and the storage space of the subsequent frames:
(1) Powering up and initializing, and calling the flow;
(2) The judgment number of the temporary variable is given an initial value of 0;
(3) If the judgment number is more than or equal to 3, jumping to (6);
(4) The channel number is initialized to 0xFF, the subsequent frame number is initialized to 0xFF, and the channel timer is initialized to 0;
(5) Judging the number++, and jumping to (3);
(6) And (5) ending.
In the embodiment of the invention, the first preset code and the second preset code are both set to 0xFF, which represents an unregistered state, but is not limited thereto.
Step S2: and after the first frame of the data frame transmitted by the communication channel is monitored, dynamically pairing and registering the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame.
Specifically, in the embodiment of the present invention, after data acquisition, the client sends the data to the link layer of the server, and when the server needs to communicate with the client, the server sends the application layer data to the link layer, so that the present invention realizes the transmission of the frame data by performing the subsequent frame dynamic registration on the link layer, as shown in fig. 4. When any party needs to perform data transmission and the data frame exceeds the maximum transmission size and needs to perform frame division transmission, the frame division is issued to a link layer of a server, and after the first frame of the data frame is monitored, dynamic pairing registration is performed, wherein the registration process is as follows:
1. judging the registration state of the communication channel according to the channel number, and judging the registration state of the storage space of the subsequent frame according to the subsequent frame number;
2. if the communication channel and the storage space of the subsequent frame are in an unregistered state, the communication channel and the storage space of the subsequent frame are paired and registered according to the time priority;
3. if all the communication channels and the storage space of the subsequent frames are in the registered state through traversal, sequentially comparing the data frames in the communication channels with the data frames in the storage space of the subsequent frames according to the preset emergency importance priority;
4. if the priority of the data frame in the communication channel is higher than the priority of the data frame with the lowest priority in the storage space of the subsequent frame, the communication channel and the storage space of the subsequent frame with the lowest priority are paired and registered, otherwise, the pairing and registration are not performed.
According to communication expectations and success rates, grading the data frames from three dimensions of emergency priority, importance priority and time priority, presetting the emergency importance priority, wherein the priority adopts a sorting mode from small to large, the 0 level is highest, and gradually increases to be lower and lower, as shown in the following table:
Figure SMS_1
the emergency priority and the importance priority are integrated to obtain the emergency importance priority, wherein the high half byte is the emergency, and the low half byte is the importance, as shown in the following table:
Figure SMS_2
when a plurality of data frames are transmitted, processing is performed according to the time priority, and registration is performed first. And if the storage spaces of the subsequent frames are all registered, screening and sorting are carried out according to the priority of the emergency importance, the lowest priority is cancelled, and the registration of high priority is carried out. When the pairing registration is performed, the subsequent frame storage space can be used for the pairing registration of each communication channel in an unregistered state. The time priority and the emergency importance priority are used for dynamic registration, so that the daily communication function requirement can be met, and a small amount of resources are used for exchanging the maximum value. The embodiment of the invention can also expand or compress the channels according to the actual demands of the communication channels, and determine the number of the storage spaces of the subsequent frames based on the number of the channels, wherein each communication channel supports one subsequent storage space.
Further, the channel timer is set to a preset time and communication timing is performed while registration is performed. The specific registration flow is shown in fig. 5, and by setting temporary variables to traverse all channels, selecting an idle communication channel and performing pairing registration on the channel and a storage space of a subsequent frame, the flow is described as follows:
(1) When the application layer frames or the link layer frames are received, the flow is called;
(2) The judgment number of the temporary variable is given an initial value of 0;
(3) If the judgment number is more than or equal to 3, jumping to (7);
(4) If the channel number of the judgment number is not 0xFF, jumping to (3);
(5) Registering a channel number (equal to the issuing channel number), registering a subsequent frame number (equal to the judging number), and setting a channel timer to 10;
(6) Judging the number++, and jumping to (3);
(7) And (5) ending.
In the embodiment of the invention, the channel timer is set to 10, which represents the timing time of 10s, but is not limited thereto.
Step S3: and storing the first frame and the subsequent frame of the data frame into the paired subsequent frame storage space for communication, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished.
Specifically, in the embodiment of the invention, after the communication channel and the storage space of the subsequent frame are paired and registered, the first frame and the subsequent frame of the data frame are all stored in the paired subsequent frame storage space. In the data transmission process, the channel timer performs communication timing according to preset timing time, checks the channel timer every second, checks whether the timing is finished, and a specific timing processing flow is shown in fig. 6, and the flow is described as follows:
(1) Every second, calling the flow;
(2) The judgment number of the temporary variable is given an initial value of 0;
(3) If the judgment number is more than or equal to 3, jumping to (7);
(4) If the timer of the judgment number is not more than 0, jumping to (3);
(5) Channel timer-;
(6) If the timer of the present judgment number is equal to 0, the channel number (equal to 0 xFF) is logged out, and the subsequent frame number (equal to 0 xFF) is logged out;
(7) And (5) ending.
In the embodiment of the invention, when the data transmission is finished or the timing is finished, the corresponding communication channel and the subsequent frame storage space are logged out to be in an unregistered state, namely, the channel number of the communication channel is reset to be a first preset code, and the subsequent frame number of the subsequent frame storage space is reset to be a second preset code. For example, in the embodiment of the present invention, the first preset code and the second preset code are set to 0xFF again, and the unregistered state is restored. In addition, when dynamic registration is performed according to the priority of emergency importance, the registration is performed again after the cancellation is performed. The specific logout flow is shown in fig. 7, and the flow is described as follows:
(1) The judgment number of the temporary variable is given an initial value of 0;
(2) If the judgment number is more than or equal to 3, jumping to (6);
(3) If the channel number of the judgment number is registered, jumping to (5);
(4) Judging the number++, and jumping to (2);
(5) Deregistering the channel number (equal to 0 xFF), deregistering the subsequent frame number (equal to 0 xFF), and setting the channel timer to 0;
(6) And (5) ending.
The flow of the whole communication processing data frame is shown in fig. 8, and includes a two-way communication process, which is specifically described as follows:
(1) When in communication, the flow is called;
(2) Judging whether the frame is divided, if not, jumping to the step (5);
(3) Judging whether the frame is the first frame or not, if not, jumping to the step (8);
(4) Performing subsequent frame registration, and jumping to (12);
(5) Judging whether the subsequent frame is acquired or not, if not, jumping to (10);
(6) Judging whether the subsequent frame is finished or not, if not, jumping to (11);
(7) Logging off, and jumping to (12);
(8) Judging whether the data is received completely or not, and jumping to the step (11) if the data is not received completely;
(9) Logging out;
(10) Application layer data processing, jumping to (12);
(11) Processing link layer data;
(12) Judging whether framing is needed or not, and jumping to the step (14) if not;
(13) Registering;
(14) Organizing the data frames;
(15) And (5) ending.
According to the electric energy meter communication method based on the subsequent frame dynamic registration, after the electric energy meter is powered on, if the first frame of the transmitted data frame is monitored, the communication channel and the subsequent frame storage space are dynamically paired and registered according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame, communication timing is carried out based on the channel timer, and the communication channel and the paired subsequent frame storage space are cancelled to be in an unregistered state after communication or timing is finished. The invention uses the following frame dynamic registration mechanism, each channel has low coupling degree, can ensure reasonable and efficient resource allocation on the basis of meeting the daily function requirement, and has high expandability, can expand or compress the communication channel according to the actual requirement, and has extremely small code modification amount.
The embodiment of the invention provides an electric energy meter communication system based on subsequent frame dynamic registration, as shown in fig. 9, the system comprises:
and the initialization module 1 is used for initializing a preset number of communication channels and a preset number of subsequent frame storage spaces into an unregistered state after the electric energy meter is electrified. Details refer to the related description of step S1 in the above method embodiment, and will not be described herein.
And the registration module 2 is used for dynamically pairing and registering the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame after monitoring the first frame of the transmitted data frame. For details, refer to the related description of step S2 in the above method embodiment, and no further description is given here.
And the cancellation module 3 is used for communicating by saving the data frame to the paired subsequent frame storage space, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished. For details, refer to the related description of step S3 in the above method embodiment, and no further description is given here.
In addition, the embodiment of the invention further comprises a timing module 4, which is used for setting the channel timer to be a preset timing time for communication timing when the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration; if the preset time is reduced to zero, the corresponding communication channel and the storage space of the subsequent frame are logged off. For details, see the description of steps S1-S3 in the above method embodiment, and the details are not repeated here.
According to the electric energy meter communication system based on the dynamic registration of the subsequent frames, after the electric energy meter is powered on, if the first frame of the transmitted data frame is monitored, the communication channel and the subsequent frame storage space are dynamically paired and registered according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame, communication timing is carried out based on a channel timer, and the communication channel and the paired subsequent frame storage space are cancelled to be in an unregistered state after the communication is finished or the timing is finished. The invention uses the dynamic registration mechanism of the subsequent frame, has low coupling degree of each channel, can ensure reasonable and efficient resource allocation on the basis of meeting the daily functional requirements, and has the maximum value replaced by a small amount of resources.
Fig. 10 shows a schematic structural diagram of a computer device according to an embodiment of the present invention, including: a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected by a bus or otherwise, for example in fig. 10.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing a non-transitory server program, a non-transitory computer executable program, and modules, such as program instructions/modules corresponding to the methods in the above method embodiments. The processor 901 executes various functional applications of the processor and data processing, i.e., implements the methods in the above-described method embodiments, by running non-transitory server programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 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, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 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.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods of the method embodiments described above.
The specific details of the computer device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the implemented program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.

Claims (10)

1. The electric energy meter communication method based on the dynamic registration of the subsequent frame is characterized by comprising the following steps:
after the electric energy meter is electrified, initializing a preset number of communication channels and a preset number of subsequent frame storage spaces to be in an unregistered state;
when the first frame of the transmitted data frame is monitored, dynamically pairing and registering the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame;
and storing the first frame and the subsequent frame of the data frame into the paired subsequent frame storage space for communication, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished.
2. The method for electric energy meter communication based on subsequent frame dynamic registration according to claim 1, wherein a channel timer is configured for each communication channel;
when the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration, setting the channel timer as preset timing time and carrying out communication timing;
if the preset time is reduced to zero, the corresponding communication channel and the storage space of the subsequent frame are unregistered.
3. The method for dynamically registering a power meter based on a subsequent frame according to claim 2, wherein initializing a preset number of communication channels and a preset number of subsequent frame storage spaces to an unregistered state comprises:
setting a channel number of the communication channel as a first preset code, wherein the first preset code characterizes the communication channel as an unregistered state;
setting a subsequent frame number of the subsequent frame storage space as a second preset code, wherein the second preset code characterizes the subsequent frame storage space as an unregistered state;
the channel timer is set to zero.
4. The electric energy meter communication method based on the subsequent frame dynamic registration according to claim 3, wherein the process of dynamically pairing and registering the communication channel with the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame comprises the following steps:
judging the registration state of the communication channel according to the channel number, and judging the registration state of the storage space of the subsequent frame according to the subsequent frame number;
if the communication channel and the subsequent frame storage space are in an unregistered state, carrying out pairing registration on the communication channel and the subsequent frame storage space according to the time priority;
if all the communication channels and the storage spaces of the subsequent frames are in a registered state through traversal, sequentially comparing the data frames in the communication channels with the data frames in the storage spaces of the subsequent frames according to a preset emergency importance priority;
and if the priority of the data frame in the communication channel is higher than the priority of the data frame with the lowest priority in the storage space of the subsequent frame, carrying out pairing registration on the communication channel and the storage space of the subsequent frame, otherwise, not carrying out pairing registration.
5. The method for dynamically registering a power meter based on a subsequent frame according to claim 4, wherein each of the communication channels is pair-registered in an unregistered state of the subsequent frame storage space.
6. The method for power meter communication based on subsequent frame dynamic registration of claim 1, wherein the communication channel comprises: the communication system comprises a carrier communication channel, a 485 communication channel, an infrared communication channel, a Bluetooth communication channel, a metering module communication channel and an expansion module communication channel, wherein the channels are in equal competition relationship;
the number of subsequent frame storage spaces is determined based on the actual requirements of the communication channels, each supporting one of the subsequent storage spaces.
7. A power meter communication system based on subsequent frame dynamic registration, comprising:
the initialization module is used for initializing a preset number of communication channels and a preset number of subsequent frame storage spaces into an unregistered state after the electric energy meter is electrified;
the registration module is used for carrying out dynamic pairing registration on the communication channel and the subsequent frame storage space according to the registration state of the communication channel and the subsequent frame storage space and the preset emergency importance priority of the data frame after monitoring the first frame of the transmitted data frame;
and the cancellation module is used for communicating by saving the data frame to the paired subsequent frame storage space, and canceling the communication channel and the paired subsequent frame storage space to be in an unregistered state when the data transmission is finished.
8. The subsequent frame dynamic registration based power meter communication system of claim 7, further comprising: the timing module is used for setting a channel timer to be a preset timing time for communication timing when the communication channel and the subsequent frame storage space are subjected to dynamic pairing registration; if the preset time is reduced to zero, the corresponding communication channel and the storage space of the subsequent frame are logged off.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the subsequent frame dynamic registration-based power meter communication method of any of claims 1-6.
10. A computer-readable storage medium storing computer instructions for causing the computer to perform the electric energy meter communication method based on subsequent frame dynamic registration according to any one of claims 1-6.
CN202310520423.5A 2023-05-10 2023-05-10 Electric energy meter communication method and system based on subsequent frame dynamic registration Active CN116233200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310520423.5A CN116233200B (en) 2023-05-10 2023-05-10 Electric energy meter communication method and system based on subsequent frame dynamic registration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310520423.5A CN116233200B (en) 2023-05-10 2023-05-10 Electric energy meter communication method and system based on subsequent frame dynamic registration

Publications (2)

Publication Number Publication Date
CN116233200A true CN116233200A (en) 2023-06-06
CN116233200B CN116233200B (en) 2023-08-15

Family

ID=86589624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310520423.5A Active CN116233200B (en) 2023-05-10 2023-05-10 Electric energy meter communication method and system based on subsequent frame dynamic registration

Country Status (1)

Country Link
CN (1) CN116233200B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407572A (en) * 2023-12-15 2024-01-16 国网浙江省电力有限公司绍兴供电公司 Fault information processing method and system for distribution network emergency integrated command

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004009428A1 (en) * 2004-02-24 2005-09-08 Deutsche Thomson-Brandt Gmbh Method for communicating between integrated circuit and external dynamic RAM, involves prioritizing transmission of memory bank commands based on static priority allocation for commands and dynamic priority allocation for channels
US20060195631A1 (en) * 2005-01-31 2006-08-31 Ramasubramanian Rajamani Memory buffers for merging local data from memory modules
CN101957800A (en) * 2010-06-12 2011-01-26 福建星网锐捷网络有限公司 Multichannel cache distribution method and device
CN103428108A (en) * 2013-08-07 2013-12-04 大唐移动通信设备有限公司 Data frame processing method and device
CN103778772A (en) * 2014-01-23 2014-05-07 国家电网公司 Framing and interconnection transmitting method in electricity utilization information collecting system
CN104461674A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Data processing method and electronic device
CN106487711A (en) * 2016-10-13 2017-03-08 福建星海通信科技有限公司 A kind of method of caching dynamically distributes and system
CN108011792A (en) * 2017-11-24 2018-05-08 中国航空工业集团公司西安航空计算技术研究所 A kind of 1394 bus transaction layers-link layer data packet receiving circuit and method
CN110347615A (en) * 2019-07-05 2019-10-18 南京芯驰半导体科技有限公司 Dynamic BTS configuration method and cache unit
CN110868458A (en) * 2019-10-30 2020-03-06 许昌许继软件技术有限公司 Communication method and device for stable control system
CN111245743A (en) * 2020-01-09 2020-06-05 浙江吉利汽车研究院有限公司 Information processing method, storage medium, gateway and automobile
CN112256426A (en) * 2020-10-21 2021-01-22 广东高云半导体科技股份有限公司 Master-slave communication system with bus arbiter and communication method
CN112787956A (en) * 2021-01-30 2021-05-11 西安电子科技大学 Method, system, storage medium and application for crowding occupation processing in queue management
CN112996050A (en) * 2021-04-15 2021-06-18 珠海泰芯半导体有限公司 Data transmission method, device, storage medium and wireless node
CN113377405A (en) * 2021-07-04 2021-09-10 芯河半导体科技(无锡)有限公司 EPON mirror image upgrading method and system based on dynamic resource adjustment
CN114401072A (en) * 2021-12-12 2022-04-26 西安电子科技大学 Dynamic cache control method and system for frame splitting and reordering queue based on HINOC protocol
CN115203075A (en) * 2022-06-27 2022-10-18 威胜电气有限公司 Distributed dynamic mapping cache design method
CN115474107A (en) * 2022-09-15 2022-12-13 浙江正泰仪器仪表有限责任公司 Intelligent electric energy meter communication method and device, equipment and storage medium
CN115586975A (en) * 2022-12-13 2023-01-10 成都奇芯微电子有限公司 Dynamic management method for embedded end GNSS memory
CN115811516A (en) * 2022-12-05 2023-03-17 宁波三星医疗电气股份有限公司 Method, device, equipment and medium for concurrently reporting multi-frame files

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004009428A1 (en) * 2004-02-24 2005-09-08 Deutsche Thomson-Brandt Gmbh Method for communicating between integrated circuit and external dynamic RAM, involves prioritizing transmission of memory bank commands based on static priority allocation for commands and dynamic priority allocation for channels
US20060195631A1 (en) * 2005-01-31 2006-08-31 Ramasubramanian Rajamani Memory buffers for merging local data from memory modules
CN101957800A (en) * 2010-06-12 2011-01-26 福建星网锐捷网络有限公司 Multichannel cache distribution method and device
CN103428108A (en) * 2013-08-07 2013-12-04 大唐移动通信设备有限公司 Data frame processing method and device
CN104461674A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Data processing method and electronic device
CN103778772A (en) * 2014-01-23 2014-05-07 国家电网公司 Framing and interconnection transmitting method in electricity utilization information collecting system
CN106487711A (en) * 2016-10-13 2017-03-08 福建星海通信科技有限公司 A kind of method of caching dynamically distributes and system
CN108011792A (en) * 2017-11-24 2018-05-08 中国航空工业集团公司西安航空计算技术研究所 A kind of 1394 bus transaction layers-link layer data packet receiving circuit and method
CN110347615A (en) * 2019-07-05 2019-10-18 南京芯驰半导体科技有限公司 Dynamic BTS configuration method and cache unit
CN110868458A (en) * 2019-10-30 2020-03-06 许昌许继软件技术有限公司 Communication method and device for stable control system
CN111245743A (en) * 2020-01-09 2020-06-05 浙江吉利汽车研究院有限公司 Information processing method, storage medium, gateway and automobile
CN112256426A (en) * 2020-10-21 2021-01-22 广东高云半导体科技股份有限公司 Master-slave communication system with bus arbiter and communication method
CN112787956A (en) * 2021-01-30 2021-05-11 西安电子科技大学 Method, system, storage medium and application for crowding occupation processing in queue management
CN112996050A (en) * 2021-04-15 2021-06-18 珠海泰芯半导体有限公司 Data transmission method, device, storage medium and wireless node
CN113377405A (en) * 2021-07-04 2021-09-10 芯河半导体科技(无锡)有限公司 EPON mirror image upgrading method and system based on dynamic resource adjustment
CN114401072A (en) * 2021-12-12 2022-04-26 西安电子科技大学 Dynamic cache control method and system for frame splitting and reordering queue based on HINOC protocol
CN115203075A (en) * 2022-06-27 2022-10-18 威胜电气有限公司 Distributed dynamic mapping cache design method
CN115474107A (en) * 2022-09-15 2022-12-13 浙江正泰仪器仪表有限责任公司 Intelligent electric energy meter communication method and device, equipment and storage medium
CN115811516A (en) * 2022-12-05 2023-03-17 宁波三星医疗电气股份有限公司 Method, device, equipment and medium for concurrently reporting multi-frame files
CN115586975A (en) * 2022-12-13 2023-01-10 成都奇芯微电子有限公司 Dynamic management method for embedded end GNSS memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407572A (en) * 2023-12-15 2024-01-16 国网浙江省电力有限公司绍兴供电公司 Fault information processing method and system for distribution network emergency integrated command
CN117407572B (en) * 2023-12-15 2024-03-15 国网浙江省电力有限公司绍兴供电公司 Fault information processing method and system for distribution network emergency integrated command

Also Published As

Publication number Publication date
CN116233200B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN101083557B (en) SNMP based IP network cluster managerial approach
CN101897131B (en) Method, system and device of mapping system information block
CN116233200B (en) Electric energy meter communication method and system based on subsequent frame dynamic registration
CN102004673A (en) Processing method and system of multi-core processor load balancing
CN110908879A (en) Method, device, terminal and storage medium for reporting buried point data
CN102387222B (en) Address distribution method, apparatus and system thereof
CN105813179A (en) Method, device and equipment of batch wake-up equipment
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN107172187A (en) A kind of SiteServer LBS and method
CN102426544A (en) Task allocating method and system
CN110381500A (en) A kind of test method, device and the computer readable storage medium of double card paging conflict
CN105227212A (en) Reverse power supply management method, Apparatus and system
CN104852859A (en) Aggregate interface service processing method and aggregate interface service processing equipment
CN111262723B (en) Edge intelligent computing platform based on modularized hardware and software definition
CN105656643B (en) Method and equipment for performing compatible management based on network configuration protocol
CN101895575A (en) Method, device and system for downloading base station versions
CN108259605B (en) Data calling system and method based on multiple data centers
CN112261125B (en) Centralized unit cloud deployment method, device and system
CN103607731A (en) Method and device for processing measurement reports
CN113727429A (en) Cross-network-group clock synchronization method and device, storage medium and terminal
CN102238594A (en) Method and device for managing distributed base station
CN102833092A (en) Method and system for managing cloud nodes and central server
CN109962941A (en) Communication means, device and server
CN1455558A (en) Communication system, recording medium of connecting management servor device and recording programme
CN113055490A (en) Data storage 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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

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

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

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

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