CN111768608A - Data transmission method and device based on double-core intelligent electric meter and computer equipment - Google Patents

Data transmission method and device based on double-core intelligent electric meter and computer equipment Download PDF

Info

Publication number
CN111768608A
CN111768608A CN202010684250.7A CN202010684250A CN111768608A CN 111768608 A CN111768608 A CN 111768608A CN 202010684250 A CN202010684250 A CN 202010684250A CN 111768608 A CN111768608 A CN 111768608A
Authority
CN
China
Prior art keywords
data
core
request
metering
type
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
CN202010684250.7A
Other languages
Chinese (zh)
Other versions
CN111768608B (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.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202010684250.7A priority Critical patent/CN111768608B/en
Publication of CN111768608A publication Critical patent/CN111768608A/en
Application granted granted Critical
Publication of CN111768608B publication Critical patent/CN111768608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/02Electric signal transmission systems in which the signal transmitted is magnitude of current or voltage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

The application relates to a data transmission method and device based on a double-core intelligent electric meter, computer equipment and a storage medium. By receiving a data transmission request to be processed and determining the type of a get transmission request, wherein the type of the data transmission request comprises a metering core request and an external request, when the data request type is the metering core request, according to the type of the metering core data carried in the metering core request, the metering core data is forwarded to a corresponding receiving end, when the data request type is an external request, external transmission data sent by the data distribution component is acquired, compared with the traditional mode, the scheme adapts to the brand-new hardware architecture design and software architecture design of the double-core intelligent electric meter, high-frequency, high-efficiency and high-real-time data interaction between the double cores of the double-core intelligent electric meter is realized, and meanwhile, the data transmission cost is also reduced.

Description

Data transmission method and device based on double-core intelligent electric meter and computer equipment
Technical Field
The application relates to the technical field of data processing, in particular to a data transmission method and device based on a double-core intelligent electric meter, computer equipment and a storage medium.
Background
Electric power is an important guarantee that people can work and live normally and enterprises can produce normally, an important device in an electric power system is an electric energy meter, at present, electric energy meter software is generally designed in an integrated mode, namely a metering part and a non-metering part do not have independent working requirements, and only one chip is used for achieving functions of electric energy data acquisition, transmission, processing and the like in the electric energy meter. With the establishment and implementation of IR46 international standards and domestic standards, the dual-core smart meter has definitely become the development direction of the next-generation electric energy meter, the management core and the metering core of the dual-core smart meter are separated, and the online upgrade of the software of the metering core of the dual-core smart meter is not allowed for the safety consideration of preventing the falsification of metering data of an electric energy meter method; the management core undertakes realization of a large number of management functions and expansion functions, and high-level application flexible expansion is realized by introducing an embedded operating system. The brand new hardware architecture design of the dual-core intelligent electric meter requires the reconstruction of measurement core software and management core software, the dual-core software works in a cooperation mode to achieve the overall functions of the dual-core intelligent electric meter, the method depends on the design of a brand new data transmission method, high-frequency, high-efficiency and high-real-time data interaction between the measurement core and the management core is achieved, and the data transmission method is required to be achieved on an embedded operating system.
Therefore, the current data transmission method of the electric energy meter is not suitable for the hardware architecture design and the software architecture design of a brand-new double-core intelligent electric meter.
Disclosure of Invention
In view of the above, it is necessary to provide a data transmission method, apparatus, computer device and storage medium based on a dual-core smart meter, which are suitable for the dual-core smart meter.
A data transmission method based on a dual-core smart electric meter is applied to a management core of the dual-core smart electric meter, and comprises the following steps:
receiving a data transmission request to be processed;
determining a type of the data transmission request; the types of the data transmission requests comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request which is received by the data distribution component and is initiated by equipment except the double-core intelligent electric meter and/or other internal functional components;
if the data request type is a metering core request, identifying the type of metering core data carried in the metering core request, wherein the data type comprises instant data or frozen data, key request data and/or response message data, and sending the instant data or frozen data, the key request data and/or the response message data to a corresponding receiving end; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components;
and if the data request type is an external request, acquiring external transmission data carried in the external request, and forwarding the external transmission data to the metering core so that the metering core processes the external transmission data.
In one embodiment, the management core is in serial communication with the metering core; the obtaining of the data transmission request type includes:
acquiring identification information carried in a data transmission request;
when the identification information is a serial port request of the double-core intelligent electric meter, determining that the type of the data transmission request is a metering core request;
and when the identification information is a request of an external interface of the double-core intelligent electric meter, determining that the type of the data transmission request is an external request.
In one embodiment, the sending the instant data or the frozen data, the key request data and/or the response message data to the corresponding receiving end includes:
if the type of the metering core data is instantaneous data or frozen data, analyzing the metering core data and transmitting the metering core data to a target process;
if the type of the metering core data is key request data, the metering core data is sent to the data distribution component according to a preset format, so that the metering core data in the preset format is sent to the functional module through the data distribution component, and the functional module processes the metering core data; the functional module comprises software in the double-core intelligent electric meter;
if the type of the metering core data is response message data, transmitting the metering core data to a corresponding receiving end according to target receiving end information carried in the metering core data; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components.
In one embodiment, the sending the metering core data to the data distribution component according to the preset format includes:
converting the metering core data into a format corresponding to a transmission pipeline; the transmission pipeline is a channel supported by the data distribution assembly and used for transmitting the metering core data;
and sending the metering core data after format conversion to the data distribution component.
In one embodiment, after the sending the metering core data in the preset format to the function module to enable the function module to process the metering core data, the method further includes:
acquiring response message data returned by the functional module aiming at the metering core data through the data distribution component;
sending the response message data to a receiving end corresponding to target receiving end information carried in the response message data; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components.
In one embodiment, before the identifying the type of the metrology core data carried in the metrology core request, the method further includes:
caching data generated by a serial port of the double-core intelligent electric meter;
detecting whether the data frame in the cached data is complete;
and taking the buffered data corresponding to the data frame with the complete detection result as the metering core data.
In one embodiment, before the determining the type of the data transmission request, the method further includes:
and receiving the data transmission request to be processed from a serial port and/or the data distribution component according to a preset time interval.
The utility model provides a data transmission device based on two-core smart electric meter is applied to two-core smart electric meter's management core, the device includes:
the receiving module is used for receiving a data transmission request to be processed;
a determining module, configured to determine a type of the data transmission request; the types of the data transmission requests comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request which is received by the data distribution component and is initiated by equipment except the double-core intelligent electric meter and/or other internal functional components;
the first processing module is used for forwarding the metering core data to a corresponding receiving end according to the type of the metering core data carried in the metering core request if the data request type is the metering core request; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components;
and the second processing module is used for acquiring external transmission data carried in the external request if the data request type is the external request, organizing the external transmission data into data frames and transmitting the data frames to the metering core, so that the metering core processes the external transmission data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The data transmission method, the device, the computer equipment and the storage medium based on the double-core intelligent electric meter receive the data transmission request to be processed and determine the type of the acquired transmission request, wherein the type of the data transmission request comprises a measurement core request and an external request, the measurement core request can be a request initiated by a measurement core of the dual-core intelligent electric meter, the external request can be a request initiated by a device and/or other internal functional components outside the dual-core intelligent electric meter, when the type of the data request is the measurement core request, according to the type of the metering core data carried in the metering core request, the metering core data is forwarded to a corresponding receiving end, when the data request type is an external request, external transmission data sent by the data distribution component is acquired, and sending the external transmission data to the metering core, so that the metering core processes the external transmission data. Compared with the traditional mode, the scheme adapts to the hardware architecture design and the software architecture design of a brand-new double-core intelligent electric meter, high-frequency, high-efficiency and high-real-time data interaction between double cores of the double-core intelligent electric meter is realized, and meanwhile, the cost of data transmission is also reduced.
Drawings
FIG. 1 is a diagram of an application environment of a data transmission method based on a two-core smart meter in one embodiment;
FIG. 2 is a schematic flow chart of a data transmission method based on a two-core smart meter in one embodiment;
FIG. 3 is a timing diagram of the steps in processing an external request in one embodiment;
FIG. 4 is a timing diagram illustrating the processing steps of a request for a metrology core in one embodiment;
FIG. 5 is a block diagram of a data transmission device based on a two-core smart meter according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data transmission method based on the double-core intelligent electric meter can be applied to the application environment shown in fig. 1. The method can be applied to a two-core smart meter, the two-core smart meter comprises a metering core 100, a management core 102 and a data distribution assembly 104, and the management core 102 can communicate with the management core 100 and the data distribution assembly 104 through the inside of the two-core smart meter. The management core 102 may receive a data transmission request to be processed, determine a type of the data request, forward the data of the metering core to a corresponding receiving end according to a difference of the types of the requests of the metering core when the request is determined as the request of the metering core, and organize the external transmission data into a data frame to be sent to the metering core 100 when the request is determined as the external request, so that the metering core 100 processes the external transmission data. The metering core 100 and the management core 102 are composed of a processor, a memory, an external interface, a clock, and the like, and the dual-core smart meter may further include other components and modules, such as a battery management module.
In one embodiment, as shown in fig. 2, a data transmission method based on a two-core smart meter is provided, which is described by taking the method as an example applied to the management core 102 in fig. 1, and includes the following steps:
in step S202, a data transmission request to be processed is received.
The pending data transmission request may be a request received by the management core 102, where the request may be a request that the management core 102 needs to perform processing such as receiving and forwarding of data, the transmission data included in the request may be sent from inside or outside the dual-core smart meter, and the pending data transmission request received by the management core 102 may be one or more. Data distribution component 104 can be a component that performs data distribution, such as a virtual bus. The data transmission request acquired by the management core 102 may also be a request sent by the metering core 100, in an embodiment, the management core 102 may receive a data transmission request to be processed from a serial port and/or the data distribution component 104 at preset time intervals, where the data distribution component 104 may be connected to an external interface of the dual-core smart meter, and the data distribution component 104 may receive the data transmission request to be processed from the external interface, so that the management core 102 may acquire the data transmission request from the data distribution component 104, for example, a buffer queue may be set, thereby implementing an interaction with a request sender, for example, the metering core 100, every 200ms, and reducing a communication processing pressure of the metering core 100.
Step S204, determining the type of the data transmission request; the types of the data transmission request comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request initiated by a device other than the two-core smart meter and/or other internal functional components received through the data distribution component 104.
The data transmission request may be a request acquired by the measurement core 102 and requiring data transmission processing, where the data transmission request may include multiple types, for example, the data transmission request may be a measurement core request or an external request, where the measurement core request may be a request actively initiated by a measurement core inside the dual-core smart meter, specifically, the request may be a request actively initiated by the measurement core 100, such as power-on parameter and data synchronization, key pressing, timed reporting of a current instantaneous value, a minute frozen value, and the like, and the measurement core 100 may actively initiate an uplink request. The external request may be a data request initiated by a device other than the two-core smart meter and/or an internal other functional component, which may be another functional component of the two-core smart meter connected to the management core 102. The dual-core smart meter may receive the external request through the data distribution component 104, where the data distribution component 104 may be connected to an external interface of the dual-core smart meter, or may be connected to an interface of another internal component, that is, the data distribution component 104 may receive the external request from the external interface, or may receive the external request from an interface of another internal component. The management core 102 may determine the type of data transmission request to be obtained according to certain conditions, for example, according to the difference of the request initiation positions.
Step S206, if the data request type is a measurement core request, identifying the type of measurement core data carried in the measurement core request, wherein the data type comprises instant data or frozen data, key request data and/or response message data, and sending the instant data or frozen data, the key request data and/or the response message data to a corresponding receiving end; the receiving end comprises a function module in the management core 102 and/or equipment outside the dual-core smart meter and/or other internal function components.
The measurement core request may be a data transmission request actively initiated by a measurement core in a dual-core smart meter, for example, a data uplink transmission request initiated by the measurement core 100, the measurement core request may carry multiple types of request data, which may be referred to as measurement core data, when the data request type is the measurement core request, the management core 102 may respectively perform corresponding processing according to different measurement core data carried in the measurement core requests, for example, send different types of measurement core data to corresponding receiving terminals, and the like, and the measurement core data carried in the measurement core request may include transient data, frozen data, key request data, response message data, and the like. The management core 102 may forward the measurement core data to a corresponding receiving end according to different types of measurement core data carried in the measurement core request. Wherein, the receiving terminal can be the function module in the management core, also can be equipment and/or other inside functional component outside the double-core smart electric meter, for example be power consumption information acquisition terminal etc..
Step S208, if the data request type is an external request, acquiring external transmission data carried in the external request of the data distribution component 104, organizing the external transmission data into data frames, and forwarding the data frames to the metering core 100, so that the metering core 100 processes the external transmission data.
As shown in fig. 3, fig. 3 is a timing diagram of the external request processing step in one embodiment. The external request may be a request initiated by a device other than the dual-core smart meter and/or other internal functional components, the external transmission data may be request data sent by a master station, the first service may be a communication management service, the second service may be a virtual bus service, that is, a data distribution component, and the management unit 102 may forward the external transmission data carried by the external request to the metering core 100 through the metering management component for processing. In addition, before the metering management unit 102 receives external transmission data, an external interface of the two-core smart electric meter may receive a data request, the communication service component is responsible for integrity verification of frames, and sends the external transmission data to the data distribution component through a pipeline, the data distribution component may distribute the external transmission data to the management core 102 according to a data identifier, so that the management core 102 may send the external transmission data to the metering core 100 for processing, after the metering core 100 completes processing the external transmission data, a response message may be replied, and the reply response message may be received and identified by the management core 102, and a response message may be returned according to a request path.
In the data transmission method based on the dual-core smart meter, the data transmission request to be processed is received, and the type of the transmission request is determined, wherein the type of the data transmission request comprises a measurement core request and an external request, the measurement core request can be a request actively initiated by the dual-core smart meter, the external request can be a request received by an external interface of the dual-core smart meter, when the data request type is the measurement core request, the measurement core data is forwarded to the corresponding receiving end according to the type of the measurement core data carried in the measurement core request, when the data request type is the external request, the external transmission data sent by the data distribution component is obtained, and the external transmission data is organized into data frames and sent to the measurement core, so that the measurement core processes the external transmission data, compared with the traditional mode, the scheme adapts to the brand-new hardware architecture design and software architecture design of the dual-core smart meter, the high-frequency, high-efficiency and high-real-time data interaction between the double cores of the double-core intelligent electric meter is realized, and meanwhile, the cost of data transmission is also reduced.
In one embodiment, obtaining the data transfer request type includes: acquiring identification information carried in a data transmission request; when the identification information is a serial port request of the double-core intelligent electric meter, determining that the type of the data transmission request is a metering core request; and when the identification information is a request of an external interface of the double-core intelligent electric meter, determining that the type of the data transmission request is an external request.
In this embodiment, the management core 102 communicates with the metering core 100 via a serial port, and the functional modules in the management core 102 communicate via the data distribution component 104; the identification information may be an identification carried in a data transmission request received by the management core 102, and the identification information may be used to indicate a type of request data carried in the data transmission request, that is, metering core data or external data, and specifically, when the information carried in the identification information is a data packet in which the transmission data is transmitted by a serial port of the dual-core smart meter, it may be determined that the data transmission request is a metering core request; when the information carried in the identification information is a request of the data from an external interface of the two-core intelligent electric meter, the type of the data transmission request can be determined to be an external request. In addition, the identification information may also be identification information of other internal components connected to the management core 102 in the two-core smart meter, and when the management core 102 receives the identification information of other internal components, the type of the data transmission request may also be determined to be external data.
In addition, when the measurement core 100 needs to perform processes such as power-on parameter and data synchronization, key pressing, timed reporting of a current instantaneous value, a minute frozen value, and the like, the measurement core 100 may actively initiate an uplink request, and the request at this time may also be determined as a measurement core request by the management core 102.
Through this embodiment, the management core 102 may determine the different types of the data transmission requests according to different data transmission request initiation modes, so as to perform corresponding processing on the data carried therein for each request type.
In one embodiment, sending the instant data or the frozen data, the key request data and/or the response message data to the corresponding receiving end comprises: if the type of the metering core data is instantaneous data or frozen data, analyzing the metering core data and transmitting the metering core data to a target process; if the type of the metering core data is key request data, the metering core data is sent to the data distribution component 104 according to a preset format, so that the metering core data in the preset format is sent to the functional module through the data distribution component 104, and the functional module processes the metering core data; the functional module is software in the double-core intelligent electric meter; if the type of the metering core data is response message data, transmitting the metering core data to a receiving end corresponding to target receiving information carried in the metering core data according to the target receiving information carried in the metering core data; the receiving end includes the functional module in the management core 102 and/or the device other than the dual-core smart meter and/or other internal functional components 100.
In this embodiment, the instantaneous data and the frozen data may be instantaneous data and frozen data in the power data acquired by the two-core smart meter; the key request data may be data carried in a data transmission request initiated by triggering a key in the dual-core smart meter, and the response message data may be a response of the request data initiated by other service applications, which requires the management core 102 to perform a corresponding response to the data. The management core 102 may forward the core data to the corresponding receiving end according to different types of the core data.
Specifically, when the type of the metering core data is transient data or frozen data, the management core 102 may parse the transient data or frozen data and communicate the type of data with other processes through a pipeline; when the type of the metering core data is the key request data, as shown in fig. 4, fig. 4 is a timing diagram of the metering core request processing step in one embodiment. The second service may be a virtual bus, that is, a data distribution component, and the third service may be a display module, the management core 102 may forward the request data of the type through the data distribution component, and has a corresponding service application for processing, for example, the management core 102 may receive a data packet from a serial port, when the data identification information of the parsed data is a data identifier of a key request, may perform format conversion on the data of the type according to a format of a pipe transmission, and send the data after the format conversion to the data distribution component, after receiving the pipe data, the data distribution component may forward the metering core data of the type to the functional module, the functional module may be software inside a dual-core smart meter, and may at least implement functions such as data display, and may also be another module in the management core 102, the functional module may be based on the metering core data, through a third service, namely, a display module displays data content, and meanwhile, a response message can be generated according to a display state and finally returned to the metering core 100; when the type of the measurement core data is response message data, the management core 102 may forward corresponding data according to the downlink request information recorded in the response message data, for example, send the data to a corresponding receiving end. Wherein the response message data can be a response to the request data initiated by other service applications.
With the present embodiment, the management core 102 can perform corresponding processing on different types of metrology core data according to different types of metrology core data.
In one embodiment, sending the meter core data to the data distribution component 104 in a predetermined format includes: converting the metering core data into a format corresponding to the transmission pipeline; the transmission pipeline is a channel supported by the data distribution assembly 104 and used for transmitting the metering core data; the format-converted metrology core data is sent to the data distribution component 104.
In this embodiment, the preset format may be a format required by a transmission pipeline through which the measurement core data needs to pass during transmission, that is, the measurement core data needs to be format-converted before transmission, where the transmission pipeline may be a pipeline supported by the data distribution component 104 in the dual-core smart meter and used for transmitting the measurement core data, and the pipeline may also be used for transmitting other data, and specifically, the management core 102 may obtain the transmission pipeline to which the measurement core data needs to be sent, and convert the measurement core data to the format required by the transmission pipeline, so that the measurement core data after format conversion may be sent to the corresponding transmission pipeline, and sent to the data distribution component 104 through the transmission pipeline for processing.
Through the embodiment, the management core 102 can transmit the metering core data in the format required by the transmission pipeline, and the effect of improving the transmission efficiency of the dual-core smart meter can be achieved.
In one embodiment, after sending the measurement core data in the preset format to the function module, so that the function module processes the measurement core data, the method further includes: response message data returned by the functional module aiming at the metering core data is obtained through the data distribution component 104; sending the response message data to a receiving end corresponding to the target receiving end information carried in the response message data; the receiving end comprises functional modules in the management core 102 and/or equipment outside the dual-core smart meter and/or other internal functional components 100.
In this embodiment, the measurement core data may be data actively uploaded by the measurement core 100 in the dual-core smart meter, for example, the measurement core data may be key request data of the dual-core smart meter, the management core 102 may send the key request data to the data distribution component 104, the data distribution component 104 may forward the key request data to the functional module, and the functional module may perform corresponding processing on the key request data, for example, the display module may be called to display the received data according to the key request. The functional module can comprise service application in the double-core intelligent electric meter. In addition, after the function module processes the key request data, the function module may also return a response message according to the display status, and the management core 102 may send the response message to a receiving end corresponding to target receiving information carried therein, specifically, for example, the receiving end is the metering core 100, the management core 102 may organize a response frame of the metering core 100 and issue the response frame to the metering core 100, and the metering core 100 may respond to the response message; in addition, the receiving end may be other function modules in the management core 102, or may be a device other than the dual-core smart meter and/or other internal function components.
Through this embodiment, the management core 102 may organize the response frame of the response packet returned by the functional module and send the response frame to the corresponding downlink receiving end when processing the key request data, so as to achieve an effect of improving data transmission efficiency.
In one embodiment, before identifying the type of the metrology core data carried in the metrology core request, the method further comprises: caching data generated by a serial port of the double-core intelligent electric meter; detecting whether the data frame in the cached data is complete; and taking the buffered data corresponding to the data frame with the complete detection result as the metering core data.
In this embodiment, the serial port may be a serial interface, and the management core 102 may buffer the data generated by the serial port before the internal data of the metering core is forwarded to the corresponding receiving end, that is, when new message data is generated in the serial port, the management core 102 may detect the integrity of the data frame in the buffered data, and use the buffered data corresponding to the complete data frame as the data of the metering core, so as to forward the data to the corresponding receiving end. Specifically, when new message data is generated in the serial port, the management core 102 may cache all serial port data through the serial port receiving function in the thread, may perform integrity check on the communication frame, and may perform parsing and forwarding of the data frame when a complete and legal data frame is received.
Through the embodiment, the management core 102 can perform cache and integrity check on data generated by the serial port of the dual-core smart electric meter, and analyze and forward the complete data frame as the metering core data, so that the data transmission efficiency can be improved.
It should be understood that although the various steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 5, there is provided a data transmission device based on a two-core smart meter, including: a receiving module 500, a determining module 502, a first processing module 504, and a second processing module 506, wherein:
a receiving module 500, configured to receive a data transmission request to be processed.
A determining module 502, configured to determine a type of the data transmission request; the types of the data transmission request comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request which is received by the data distribution component and is initiated by equipment other than the dual-core intelligent electric meter and/or other internal functional components.
The first processing module 504 is configured to identify a type of measurement core data carried in the measurement core request, where the data type includes instant data or frozen data, key request data, and/or response message data, and send the instant data or frozen data, the key request data, and/or the response message data to a corresponding receiving end; the receiving end includes the function module and/or the equipment and/or inside other functional assembly outside the two-core smart electric meter in the management core.
The second processing module 506 is configured to, if the data request type is an external request, obtain external transmission data carried in the external request, organize the external transmission data into data frames and forward the data frames to the metering core, so that the metering core processes the external transmission data.
In an embodiment, the determining module 502 is specifically configured to obtain identification information carried in a data transmission request; when the identification information is a serial port request of the double-core intelligent electric meter, determining that the type of the data transmission request is a metering core request; and when the identification information is a request of an external interface of the double-core intelligent electric meter, determining that the type of the data transmission request is an external request.
In an embodiment, the first processing module 504 is specifically configured to, if the type of the measurement core data is transient data or frozen data, parse the measurement core data and transmit the parsed measurement core data to the target process; if the type of the metering core data is the key request data, the metering core data is sent to the data distribution component according to a preset format; the data distribution component is used for sending the metering core data in a preset format to the function module so that the function module can process the metering core data; the functional module comprises software in the double-core intelligent ammeter, and if the type of the metering core data is response message data, the metering core data is transmitted to a receiving end corresponding to target receiving information carried in the metering core data according to the target receiving information carried in the metering core data; the receiving end includes the function module and/or the equipment and/or inside other functional assembly outside the two-core smart electric meter in the management core.
In an embodiment, the first processing module 504 is specifically configured to convert the measurement core data into a format corresponding to a transmission pipeline; the transmission pipeline is a channel supported by the data distribution assembly and used for transmitting the data of the metering core; and sending the metering core data after format conversion to a data distribution component.
In one embodiment, the apparatus further includes a response module, configured to obtain, by a data distribution component, response message data returned by the functional module for the measurement core data, and send the response message data to a receiving end corresponding to target receiving information carried in the response message data; the receiving end includes the function module and/or the equipment and/or inside other functional assembly outside the two-core smart electric meter in the management core.
In one embodiment, the device further comprises a cache module, a data processing module and a data processing module, wherein the cache module is used for caching data generated by a serial port of the double-core intelligent electric meter; detecting whether the data frame in the cached data is complete; and taking the buffered data corresponding to the data frame with the complete detection result as the metering core data.
In an embodiment, the receiving module 500 is specifically configured to receive a pending data transmission request from a serial port and/or a data distribution component according to a preset time interval.
For specific limitations of the data transmission device based on the two-core smart meter, reference may be made to the above limitations of the data transmission method based on the two-core smart meter, and details thereof are not repeated here. All or part of each module in the data transmission device based on the dual-core smart electric meter can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a two-core smart meter, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the transmission request data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a data transmission method based on the double-core intelligent electric meter.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the data transmission method based on the two-core smart electric meter.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the data transmission method based on a two-core smart electric meter as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data transmission method based on a dual-core smart electric meter is characterized by being applied to a management core of the dual-core smart electric meter, and the method comprises the following steps:
receiving a data transmission request to be processed;
determining a type of the data transmission request; the types of the data transmission requests comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request which is received by the data distribution component and is initiated by equipment except the double-core intelligent electric meter and/or other internal functional components;
if the data request type is a metering core request, identifying the type of metering core data carried in the metering core request, wherein the data type comprises instant data or frozen data, key request data and/or response message data, and sending the instant data or frozen data, the key request data and/or the response message data to a corresponding receiving end; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components;
and if the data request type is an external request, acquiring external transmission data carried in the external request, and forwarding the external transmission data to the metering core so that the metering core processes the external transmission data.
2. The method of claim 1, wherein the management core is in serial communication with the metering core; the obtaining of the data transmission request type includes:
acquiring identification information carried in a data transmission request;
when the identification information is a serial port request of the double-core intelligent electric meter, determining that the type of the data transmission request is a metering core request;
and when the identification information is a request of an external interface of the double-core intelligent electric meter, determining that the type of the data transmission request is an external request.
3. The method of claim 1, wherein the sending the instant data or frozen data, the key request data and/or the response message data to the corresponding receiving end comprises:
if the type of the metering core data is instantaneous data or frozen data, analyzing the metering core data and transmitting the metering core data to a target process;
if the type of the metering core data is key request data, the metering core data is sent to the data distribution component according to a preset format, so that the metering core data in the preset format is sent to the functional module through the data distribution component, and the functional module processes the metering core data; the functional module comprises software in the double-core intelligent electric meter;
if the type of the metering core data is response message data, transmitting the metering core data to a corresponding receiving end according to target receiving end information carried in the metering core data; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components.
4. The method of claim 3, wherein sending the metrology core data to a data distribution component in a predetermined format comprises:
converting the metering core data into a format corresponding to a transmission pipeline; the transmission pipeline is a channel supported by the data distribution assembly and used for transmitting the metering core data;
and sending the metering core data after format conversion to the data distribution component.
5. The method according to claim 3, wherein after sending the metering core data in a preset format to the function module so that the function module processes the metering core data, the method further comprises:
acquiring response message data returned by the functional module aiming at the metering core data through the data distribution component;
sending the response message data to a receiving end corresponding to target receiving end information carried in the response message data; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components.
6. The method of claim 2, wherein prior to identifying the type of metrological core data carried in the metrological core request, further comprising:
caching data generated by a serial port of the double-core intelligent electric meter;
detecting whether the data frame in the cached data is complete;
and taking the buffered data corresponding to the data frame with the complete detection result as the metering core data.
7. The method of claim 1, wherein prior to determining the data transmission request type, further comprising:
and receiving the data transmission request to be processed from a serial port and/or the data distribution component according to a preset time interval.
8. The utility model provides a data transmission device based on two-core smart electric meter which characterized in that is applied to two-core smart electric meter's management core, the device includes:
the receiving module is used for receiving a data transmission request to be processed;
a determining module, configured to determine a type of the data transmission request; the types of the data transmission requests comprise a metering core request and an external request; the measurement core request is a request initiated by a measurement core of the double-core intelligent electric meter; the external request is a request which is received by the data distribution component and is initiated by equipment except the double-core intelligent electric meter and/or other internal functional components;
the first processing module is used for forwarding the metering core data to a corresponding receiving end according to the type of the metering core data carried in the metering core request if the data request type is the metering core request; the receiving end comprises a function module in the management core and/or equipment except the double-core intelligent electric meter and/or other internal function components;
and the second processing module is used for acquiring external transmission data carried in the external request if the data request type is the external request, organizing the external transmission data into data frames and transmitting the data frames to the metering core, so that the metering core processes the external transmission data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010684250.7A 2020-07-16 2020-07-16 Data transmission method and device based on double-core intelligent electric meter and computer equipment Active CN111768608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010684250.7A CN111768608B (en) 2020-07-16 2020-07-16 Data transmission method and device based on double-core intelligent electric meter and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010684250.7A CN111768608B (en) 2020-07-16 2020-07-16 Data transmission method and device based on double-core intelligent electric meter and computer equipment

Publications (2)

Publication Number Publication Date
CN111768608A true CN111768608A (en) 2020-10-13
CN111768608B CN111768608B (en) 2021-06-04

Family

ID=72726534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010684250.7A Active CN111768608B (en) 2020-07-16 2020-07-16 Data transmission method and device based on double-core intelligent electric meter and computer equipment

Country Status (1)

Country Link
CN (1) CN111768608B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395012A (en) * 2020-11-03 2021-02-23 南方电网数字电网研究院有限公司 Data clearing method and device based on double-core intelligent electric meter and computer equipment
CN112667643A (en) * 2021-01-07 2021-04-16 南方电网数字电网研究院有限公司 Power failure data storage method and device based on double-core intelligent electric meter
CN112666389A (en) * 2021-01-07 2021-04-16 南方电网数字电网研究院有限公司 Double-core interaction method and device for double-core intelligent electric meter, double-core intelligent electric meter and medium
CN113009407A (en) * 2021-03-02 2021-06-22 深圳供电局有限公司 Voltage event recording method and device of double-core intelligent electric meter and double-core intelligent electric meter
CN113341364A (en) * 2021-04-30 2021-09-03 南方电网数字电网研究院有限公司 Multi-module electric energy meter data identification method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227814A (en) * 2004-02-10 2005-08-25 Toko Electric Corp Electric meter maintenance management work system
CN106501599A (en) * 2016-10-17 2017-03-15 国家电网公司 Twin-core electric energy meter data exchange validity determines method and system and twin-core electric energy meter
CN108173660A (en) * 2018-02-08 2018-06-15 国网冀北电力有限公司电力科学研究院 Electric energy meter continuous data copy reading method and device
CN109633261A (en) * 2019-01-02 2019-04-16 西安金指针电子技术有限公司 A kind of modularization multiloop metering system with communication function
CN111343052A (en) * 2020-03-11 2020-06-26 中国电力科学研究院有限公司 System and method for carrying out protocol consistency test on intelligent electric energy meter
CN111343164A (en) * 2020-02-14 2020-06-26 杭州海兴电力科技股份有限公司 Data encryption method and device applied to electric energy meter and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227814A (en) * 2004-02-10 2005-08-25 Toko Electric Corp Electric meter maintenance management work system
CN106501599A (en) * 2016-10-17 2017-03-15 国家电网公司 Twin-core electric energy meter data exchange validity determines method and system and twin-core electric energy meter
CN108173660A (en) * 2018-02-08 2018-06-15 国网冀北电力有限公司电力科学研究院 Electric energy meter continuous data copy reading method and device
CN109633261A (en) * 2019-01-02 2019-04-16 西安金指针电子技术有限公司 A kind of modularization multiloop metering system with communication function
CN111343164A (en) * 2020-02-14 2020-06-26 杭州海兴电力科技股份有限公司 Data encryption method and device applied to electric energy meter and storage medium
CN111343052A (en) * 2020-03-11 2020-06-26 中国电力科学研究院有限公司 System and method for carrying out protocol consistency test on intelligent electric energy meter

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395012A (en) * 2020-11-03 2021-02-23 南方电网数字电网研究院有限公司 Data clearing method and device based on double-core intelligent electric meter and computer equipment
CN112395012B (en) * 2020-11-03 2024-02-27 南方电网数字电网科技(广东)有限公司 Data emptying method and device based on double-core intelligent ammeter and computer equipment
CN112667643A (en) * 2021-01-07 2021-04-16 南方电网数字电网研究院有限公司 Power failure data storage method and device based on double-core intelligent electric meter
CN112666389A (en) * 2021-01-07 2021-04-16 南方电网数字电网研究院有限公司 Double-core interaction method and device for double-core intelligent electric meter, double-core intelligent electric meter and medium
CN112666389B (en) * 2021-01-07 2022-07-29 南方电网数字电网研究院有限公司 Double-core interaction method and device for double-core intelligent electric meter, double-core intelligent electric meter and medium
CN112667643B (en) * 2021-01-07 2023-09-15 南方电网数字电网研究院有限公司 Power failure data storage method and device based on double-core intelligent ammeter
CN113009407A (en) * 2021-03-02 2021-06-22 深圳供电局有限公司 Voltage event recording method and device of double-core intelligent electric meter and double-core intelligent electric meter
CN113341364A (en) * 2021-04-30 2021-09-03 南方电网数字电网研究院有限公司 Multi-module electric energy meter data identification method

Also Published As

Publication number Publication date
CN111768608B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN111768608B (en) Data transmission method and device based on double-core intelligent electric meter and computer equipment
CN111540190B (en) Data distribution method and device based on double-core intelligent electric meter and computer equipment
CN111583622B (en) Metering information distribution processing system and method of double-core intelligent ammeter management unit
CN108683636B (en) Charging pile communication method and system
CN102214099B (en) Automatic run-time environment (RTE) code generating method for automobile system architecture (AUTOSAR)
CN106443166B (en) A kind of kilowatt meter reading-out system based on platform of internet of things
CN112631633A (en) Function module upgrading method and device based on double-core intelligent electric meter
CN108595390B (en) Method for verifying parameter consistency of SCD and IED of intelligent substation
CN111130690A (en) Processing method and device for multiple communication protocols of IR46 smart electric meter
CN110831050B (en) Sensor node control method and system
CN112015813A (en) Data sharing method, system and device of power distribution network and computer equipment
WO2021147319A1 (en) Data processing method, apparatus, device, and medium
CN103633736B (en) From the on-line monitoring communication means of power transformation substation to main website
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN110334385B (en) Test method, device and equipment for central controller of comprehensive energy system
CN106557550A (en) A kind of implementation method and device of the quick storage, retrieval and completion of distribution terminal self-described fixed point record
CN112581307B (en) Interactive method and system for realizing plug and play of intelligent sensor
CN112666389B (en) Double-core interaction method and device for double-core intelligent electric meter, double-core intelligent electric meter and medium
US10965403B2 (en) Gap data collection for low energy devices
CN113780717A (en) Method and device for analyzing electricity stealing and leakage behaviors based on gateway, intelligent gateway and medium
CN113660286A (en) Communication protocol fusion method combined with Kalman filtering data fusion and related equipment
CN113507691A (en) Information pushing system and method based on power distribution network cross-region service
CN109951309B (en) Electric energy cloud acquisition system network node maintenance method and device
CN105337790A (en) Internet of Things monitoring method and device
CN115483761B (en) Electric energy centralized collection metering system, method, device and equipment

Legal Events

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

Address after: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Applicant after: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

Address before: 511458 Room 1301, Chengtou Building, 106 Fengze East Road, Nansha District, Guangzhou City, Guangdong Province (self-compiled 1301-12159)

Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230410

Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700

Patentee after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.