CN108446077A - Electric energy meter communication data storage method, device and electric energy meter - Google Patents

Electric energy meter communication data storage method, device and electric energy meter Download PDF

Info

Publication number
CN108446077A
CN108446077A CN201810237880.2A CN201810237880A CN108446077A CN 108446077 A CN108446077 A CN 108446077A CN 201810237880 A CN201810237880 A CN 201810237880A CN 108446077 A CN108446077 A CN 108446077A
Authority
CN
China
Prior art keywords
communication data
dynamic memory
memory
electric energy
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810237880.2A
Other languages
Chinese (zh)
Inventor
顾小峰
李家成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Holley Technology Co Ltd
Original Assignee
Holley Technology 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 Holley Technology Co Ltd filed Critical Holley Technology Co Ltd
Priority to CN201810237880.2A priority Critical patent/CN108446077A/en
Publication of CN108446077A publication Critical patent/CN108446077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention provides a kind of electric energy meter communication data storage method, device and electric energy meters, are related to electric energy meter technical field, this method includes:During initial configuration, for communication data distribution shared dynamic memory and slack storage;It is dynamically stored as random access memory ram, slack storage is nonvolatile memory;When receiving and dispatching communication data, carry out memory communicating data using dynamic memory;After dynamic memory is filled with, carry out memory communicating data using slack storage.Electric energy meter communication data storage method, device and electric energy meter provided in an embodiment of the present invention, can carry out the distribution of dynamic ram space, can meet normal communication requirement using RAM resources few as possible, to effectively reduce the cost of electric energy meter.

Description

Electric energy meter communication data storage method, device and electric energy meter
Technical field
The present invention relates to electric energy meter technical field, more particularly, to a kind of electric energy meter communication data storage method, device and Electric energy meter.
Background technology
Electric energy meter generally requires in communication process and first stores communication data to RAM (random access Memory, random access memory) caching or nonvolatile memory in.
If very big to the demand of RAM by communication data storage to RAM.DL/T is used with electric energy meter For 698.45 communication protocols, communication information data volume is larger, and each channel probably needs 2K bytes, and three-phase electric energy meter one As have 4 communication channels, cause communication caching expense it is larger, increase the cost of electric energy meter.
If by communication data storage to nonvolatile memory, since nonvolatile memory programming number is smaller, In order to ensure that enough service life then need to open up more memory spaces, the cost of electric energy meter can be also improved.In addition, non-volatile deposit Reservoir read or write speed is many slowly compared with RAM, influences global communication speed.
For the problem that in the prior art, above-mentioned memory communicating data mode exists, and not yet proposes effective solution at present Scheme.
Invention content
In view of this, the purpose of the present invention is to provide a kind of electric energy meter communication data storage method, device and electric energy meter, The distribution of dynamic ram space can be carried out, can meet normal communication requirement using RAM resources few as possible.
In a first aspect, an embodiment of the present invention provides a kind of electric energy meter communication data storage methods, including:Match in initialization During setting, for communication data distribution shared dynamic memory and slack storage;It is dynamically stored as random access memory ram, it is spare It is stored as nonvolatile memory;When receiving and dispatching communication data, carry out memory communicating data using dynamic memory;It is deposited in dynamic memory Man Hou carrys out memory communicating data using slack storage.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiment of first aspect, further include: After communication data is read, release dynamics storage and/or slack storage.
With reference to first aspect, an embodiment of the present invention provides second of possible embodiments of first aspect, wherein It is the step of communication data distributes shared dynamic memory and slack storage during initial configuration, including:According to electric energy meter The communications protocol of support determines that the maximum of single communication channel can handle APDU;APDU, which can be handled, according to maximum determines dynamic memory With the size of slack storage, and shared dynamic memory and slack storage are distributed.
With reference to first aspect, an embodiment of the present invention provides the third possible embodiments of first aspect, wherein when When receiving and dispatching communication data, the step of carrying out memory communicating data using dynamic memory, including:When receiving communication data, application is pre- If the dynamic memory of threshold size and memory communicating data;If the incomplete memory communicating number of the dynamic memory of predetermined threshold value size According to the dynamic memory of application predetermined threshold value size is stored again, until complete memory communicating data.
The third possible embodiment with reference to first aspect, an embodiment of the present invention provides the 4th kind of first aspect Possible embodiment, wherein apply for the dynamic memory of predetermined threshold value size and the step of memory communicating data before, also wrap It includes:Judge currently with the presence or absence of having applied and not used dynamic memory;If so, storing communication data to having applied and not The dynamic memory used.
With reference to first aspect, an embodiment of the present invention provides the 5th kind of possible embodiments of first aspect, wherein when When receiving and dispatching communication data, the step of carrying out memory communicating data using dynamic memory, including:When sending communication data, according to logical The size of news data determines the space size for the dynamic memory for needing to apply;According to space size application dynamic memory, and store Communication data.
With reference to first aspect, an embodiment of the present invention provides the 6th kind of possible embodiments of first aspect, wherein After the step of carrying out memory communicating data using dynamic memory, further include:Record dynamic memory in storage total length of data with And the corresponding location information of dynamic memory.
Second aspect, the embodiment of the present invention additionally provide a kind of electric energy meter communication data storage device, including:Distribute mould Block, dynamic memory and slack storage for during initial configuration, being shared for communication data distribution;Be dynamically stored as with Machine memory RAM, slack storage are nonvolatile memory;Dynamic memory module is used for when receiving and dispatching communication data, using dynamic State storage carrys out memory communicating data;Slack storage module, for after dynamic memory is filled with, carrying out memory communicating using slack storage Data.
In conjunction with second aspect, an embodiment of the present invention provides the first possible embodiments of second aspect, further include: Release module is stored, for after communication data is read, release dynamics store and/or slack storage.
The third aspect, the embodiment of the present invention additionally provide a kind of electric energy meter, including memory, processor, are deposited in memory Contain the computer program that can be run on a processor, processor realizes above-mentioned first aspect and its each when executing computer program The method that one of possible embodiment provides.
The embodiment of the present invention brings following advantageous effect:
Electric energy meter communication data storage method, device and electric energy meter provided in an embodiment of the present invention, big for data volume Electric energy meter, the dynamic memory shared for communication data distribution and slack storage, wherein it is dynamically stored as random access memory ram, it is standby With being stored as nonvolatile memory;When electric energy meter receives and dispatches communication data, first carry out memory communicating data using dynamic memory, dynamic After state storage is filled with, carry out memory communicating data using slack storage, the distribution of dynamic ram space can be carried out, use is few as possible RAM resources can meet normal communication requirement, to effectively reduce the cost of electric energy meter.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram of electric energy meter communication data storage method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another electric energy meter communication data storage method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for electric energy meter application memory space provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of electric energy meter communication data storage device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another electric energy meter communication data storage device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another electric energy meter communication data storage device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another electric energy meter communication data storage device provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Existing single-phase electric energy meter or three-phase electric energy meter, although being all designed with multiple communication ports, field application When, it is general only to be used there are one communication port.Such as module table, substantially carried out data transmission using module, and 485 tables are only Carried out data transmission using 485 mouthfuls.Certainly the case where it is mixed to be also not excluded for live phenotype, is communicated for 485 mouthfuls such as module table.By Even if often data can be obtained from electric energy meter if communication module communicates it without acquisition terminal itself, at this moment to electric energy For table, it is possible to be related to 2 communication channel simultaneous communications.Therefore, for electric energy meter common communication channel its At most also with regard to 2.
Currently, it is 512 bytes that electric energy meter 698, which communicates maximum transmission or receiving frame, and maximum can handle APDU (ApplicationProtocolDataUnit, Application Protocol Data Unit) is 2Kbyte, and therefore, a channel needs slow It is 2Kbyte to deposit size.If the method for distributing a block RAM using each channel, three-phase electric energy meter has 4 channels, then needs 8Kbyte, single-phase meter have 3 channels, then need 6Kbyte.This RAM demands are typically of 32Kbyte relative to electric energy meter RAM resources or 8Kbyte RAM resources for, the ratio of occupancy is great.
In addition, operated every time when electric energy meter communicates (read, be arranged etc.) when, APDU data, which can't reach maximum, to be located The data volume of APDU is managed, it is therefore considered that one piece of distribution is not form of the prodigious RAM cachings as dynamic allocation, is supplied Each channel uses, and arrives first and first obtains, is finished and releases immediately.
When maintaining communication caching expense under normal circumstances, it is occupied to will appear dynamic ram once in a while using dynamic ram It is finished, but there is the case where communication generates (such as site infrare copy reading data) in other channels again.In order to ensure to communicate in this case Normally, it is necessary to start spare buffering scheme, and nonvolatile memory (such as EEPROM may be used in spare caching (Electrically Erasable Programmable read only memory, Electrically Erasable Programmable Read-Only Memory), FLASH (flash memory) etc.).Since spare caching applying frequency is relatively low, as long as reserved small part resource meets requirements for life.
Based on the above reasons, a kind of electric energy meter communication data storage method, device and electric energy provided in an embodiment of the present invention Table can carry out the distribution of dynamic ram space, can meet normal communication requirement using RAM resources few as possible.
The embodiment of the present invention is described in detail below.
An embodiment of the present invention provides a kind of electric energy meter communication data storage method, electric energy meter shown in Figure 1 communications The flow diagram of date storage method, this method comprises the following steps:
Step S102, during initial configuration, for communication data distribution shared dynamic memory and slack storage.
Wherein, it is dynamically stored as random access memory ram, slack storage is nonvolatile memory.Since RAM can be at any time Read-write, and speed is quickly, may be used as the common storage of memory communicating data;Nonvolatile memory, which has to smear, writes cycle Number limits, and may be used as the slack storage of memory communicating data, frequency of use is relatively low, and excessive memory space need not be arranged Life requirements can be met.
Different from the mode that one piece of individual RAM carries out communication data storage is arranged for each communication channel of electric energy meter, Method provided in this embodiment is that a shared dynamic memory RAM is arranged in the communication data of all channels transmitting-receiving, using arriving first First mode communication data is stored to dynamic memory RAM when there is communication data transmitting-receiving in some channel, when dynamically depositing After the space storage completely for storing up RAM, then spare nonvolatile memory is used.
In view of the limited memory space of electric energy meter, the space size for rationally determining dynamic memory and slack storage is needed, Normal use should be met, reduce caching expense again.For example, can carry out as follows:
(1) communications protocol supported according to electric energy meter determines that the maximum of single communication channel can handle APDU.The maximum can Handle the maximum memory space that APDU, that is, single communication channel needs.
(2) size that APDU determines dynamic memory and slack storage can be handled according to maximum, and distributes shared dynamic and deposits Storage and slack storage.
It, can be by the big of dynamic memory by taking electric energy meter commonly uses a communication channel or two communication channel transceiving datas as an example The size of the small size for being set as APDU or twice of APDU, may be set to be arbitrary value between the two, need to note herein Meaning is the demand that cannot be less than a communication channel.Such as support the electric energy meter of 698.45 communications protocol of link layer DL/T, Maximum is sent or receiving frame is 512 bytes, and it is 2Kbyte that maximum, which can handle APDU, and therefore, a communication channel needs to cache big Small is 2Kbyte.If the electric energy meter commonly uses a communication channel, less two communication channels are few using more than two logical It interrogates channel (such as most four communication channels), then dynamic memory can be set to 2Kbyte or 4Kbyte, by slack storage It is set as 6Kbyte or 4Kbyte.The calculation of the wherein minimum space of slack storage is:Overall channel number * APDU- dynamics are deposited Size is stored up, the upper example of act is connect, then obtains that slack storage is 6Kbyte or 4*2Kbyte-4Kbyte obtains for 4*2Kbyte-2Kbyte It is 4Kbyte to slack storage.
Step S104 carrys out memory communicating data when receiving and dispatching communication data using dynamic memory.
When electric energy meter receives and dispatches communication data, first carrys out memory communicating data using dynamic memory, communication speed can be improved. After dynamic memory is filled with, then carry out memory communicating data using slack storage.It should be noted that using dynamic memory It after the storage for carrying out communication data, needs in time to use dynamic memory, dynamic memory is shared to meet each communication channel Purpose.
Step S106 carrys out memory communicating data after dynamic memory is filled with using slack storage.
Electric energy meter communication data storage method provided in an embodiment of the present invention, for the big electric energy meter of data volume, for communication Data distribution shared dynamic memory and slack storage, wherein being dynamically stored as random access memory ram, slack storage is non-volatile Property memory;When electric energy meter receives and dispatches communication data, first carry out memory communicating data using dynamic memory, after dynamic memory is filled with, Carry out memory communicating data using slack storage, the distribution of dynamic ram space can be carried out, use RAM resources few as possible can expire Sufficient normal communication requirement, to effectively reduce the cost of electric energy meter.
Stored to above-mentioned shared dynamic memory or slack storage in communication data, further include release storage process from And sharing for storage is completed, the above method is further comprising the steps of:After communication data is read, release dynamics storage and/ Or slack storage.The communication data stored in above-mentioned dynamic memory or slack storage is then stored after reading Release, for other communication datas use.
To receiving the process of communication data, it is contemplated that the space for effectively using dynamic memory can apply using several times Dynamic memory, each dynamic memory for applying for predetermined threshold value size, above-mentioned the step of carrying out memory communicating data using dynamic memory, Including:
(1) when receiving communication data, apply for the dynamic memory of predetermined threshold value size and store the communication data.This is default Threshold value can be determined according to the characteristics of communication data itself.Such as communication data uses link layer framing, then according to framing Size determine the predetermined threshold value, predetermined threshold value is equal to the size of the framing, i.e., for the first time apply when can apply In the dynamic memory of the framing, and gradually application is equal to the dynamic memory of the framing, so as to efficiently use dynamic memory, to the greatest extent Amount generates invalid share storage and occupies less.
(2) if the incomplete memory communicating data of the dynamic memory of predetermined threshold value size, apply for predetermined threshold value size again Dynamic memory stored, until complete memory communicating data.
When receiving data, stored memory is needed by block application, until complete storage.
Due to it is above-mentioned press block application dynamic memory in the case of, there are the feelings that the memory space finally applied does not take Condition, thus the above-mentioned application dynamic memory the step of before, it is also necessary to judge currently with the presence or absence of the memory space not utilized, on It is further comprising the steps of to state method:
(1) judge currently with the presence or absence of having applied and not used dynamic memory.
(2) if so, storing communication data to having applied and not used dynamic memory.If it is not, then applying again The dynamic memory of predetermined threshold value size.
Process to sending communication data then can be according to the size one due to the size of the known data for needing to send The space of secondary property application dynamic memory, above-mentioned the step of carrying out memory communicating data using dynamic memory, including:Number is communicated when sending According to when, the space size of dynamic memory for needing to apply is determined according to the size of the communication data;According to the space size application Dynamic memory, and memory communicating data.
In view of sharing dynamic memory, communication data is stored to when dynamic memory and is not continuous, when being stored It needs to record its position stored, therefore the above method may be used also after the step of being carried out memory communicating data using dynamic memory To include the following steps:Record the storage total length of data and the corresponding location information of dynamic memory in dynamic memory.
Wherein, location information can be recorded by way of storing message queue.At the time of reading, it needs to be deposited according to this Message queue is stored up, the storage location for the data that continue is found, then block-by-block is read since the position found again, until reading needs Data volume until.
Electric energy meter communication data storage method provided in an embodiment of the present invention is done the common caching of data using dynamic ram, is used Nonvolatile memory does spare caching, can apply using dynamic memory when receiving data several times, application is default every time The dynamic memory of threshold size can disposably apply for dynamic memory according to the size of transmission data when sending data, to A small amount of RAM resources can be used up, normal communication requirement is met, reducing cost to electric energy meter probably plays great role.
An embodiment of the present invention provides a kind of electric energy meter communication data storage methods, are applied to the link layer framing of electric energy meter The storage of data.There are two types of situations for the link layer framing used in 698.45 communications protocol of DL/T:The framing of receives link layer and hair Send link layer framing.When reception dynamic memory memory needs one piece of one piece of application, can transmission data as needed when transmission Length is disposably applied.
The flow diagram of electric energy meter communication data storage method shown in Figure 2, communication data are individually located by channel Reason, for receiving communication data, this method comprises the following steps:
Step S202 is judged whether there is and has been distributed and unused dynamic ram space.If so, executing step S204;If It is no, execute step S206.
When needing to preserve the APDU segments for receiving framing, first judge whether there is what last stored did not used completely in the process Dynamic ram space, if there is then first being stored using the unused memory space.
Step S204 judges whether to use enough.If so, executing step S208;If not, executing step S210.
In the case of enough, then the communication data of reception is stored to the space;In the case of not enough, then need Apply for that new RAM memory spaces, application process may refer to above-described embodiment, details are not described herein.It should be noted that receiving During applying for memory space, when applying for dynamic ram, since specific how many data below do not known, and a frame is received most Long length is 512byte, and in order to reduce the use of waste RAM, the memory of 512byte is all only applied in application every time.
Step S206 applies for RAM memory spaces.
In have no alternative but to distribution and unused dynamic ram space, then apply for RAM memory spaces again.
Step S208 preserves the total length in data and change storage information.
If having distributed and unused dynamic ram space storing the communication data of reception enough, directly preserved, and Change storage information in total length, the total length indicate the dynamic ram store data inside number.
Step S210 preserves a part of data to the unused dynamic ram space, until the space is filled up.
If having distributed and unused dynamic ram insufficient space enough storing the communication data of reception, preferentially this is used not Dynamic ram space to the space is filled up, then applies for that new RAM memory spaces are preserved.
Step S212 applies for RAM memory spaces.
Step S214 preserves remainder data and change storage information.
Due to above-mentioned storage mode, these storage data are not continuous, but piecemeal, even in distinct device Storage, it is therefore desirable to record the position of its storage.After preserving data every time, it is required for change management information, applies for space It needs to increase a storage message queue data and changes storage total length of data, do not apply for that space only needs change storage data Total length.
It when reading data, can not simply be obtained, be needed according to above-mentioned storage according to initial address and data length The storage location for the data that continue is found in message queue, and then block-by-block is read since the position found again, until reading needs Until data volume.
Step S216 preserves data and change storage information.
Relative to framing is received in the above method, as long as sending the length application storage of framing data to be sent as needed Space carries out data preservation and change storage information.
Electric energy meter communication data storage method provided in an embodiment of the present invention is done the common caching of data using dynamic ram, is used Nonvolatile memory does spare caching, when receiving data first using having distributed and unused dynamic ram space, then several times Application uses dynamic memory, can use up a small amount of RAM resources, meet normal communication requirement, reducing cost very to electric energy meter has Great role may be played.
In the above-mentioned methods, it either receives to preserve or send and preserve, wherein can all be related to applying for memory space Operation.Since dynamic memory ram space is limited, dynamic ram is arrived in surely application of applying differing when memory space, at this moment applies Memory space will be the memory space of nonvolatile memory.The method of electric energy meter application memory space shown in Figure 3 Flow diagram, this method comprises the following steps:
Step S302, application dynamic ram space, and judge whether to apply successfully.If so, executing step S304;If It is no, execute step S306.
Since dynamic ram is shared dynamic memory, in multichannel simultaneously by data transmission when, then can lead to dynamic ram It has been be otherwise fully engaged that, when applying for dynamic ram space, what is applied is the memory space of non-volatile memories.
Step S304 returns to RAM identification names.
Step S306 returns to non-volatile memories identification name.
Step S308 changes storage information according to above-mentioned identification name.
It in the case where storing to different memory spaces, needs to record corresponding storage location information respectively, for reading When use.
An embodiment of the present invention provides a kind of electric energy meter communication data storage device, electric energy meter shown in Figure 4 communications The structural schematic diagram of data storage device, including:
Distribution module 41, for during initial configuration, for the shared dynamic memory of communication data distribution and spare Storage;It is dynamically stored as random access memory ram, slack storage is nonvolatile memory;
Dynamic memory module 42, for when receiving and dispatching communication data, carrying out memory communicating data using dynamic memory;
Slack storage module 43, for when dynamic memory is filled with, carrying out memory communicating data using slack storage.
The structural schematic diagram of electric energy meter communication data storage device shown in Figure 5 further includes:Store release module 51, for after communication data is read, release dynamics store and/or slack storage.
Above-mentioned distribution module 41 is additionally operable to:The communications protocol supported according to electric energy meter determines that the maximum of single communication channel can Handle APDU;The size that APDU determines dynamic memory and slack storage can be handled according to maximum, and distributes shared dynamic memory And slack storage.
Above-mentioned dynamic memory module 42 is additionally operable to:When receiving communication data, apply for the dynamic memory of predetermined threshold value size And memory communicating data;If the incomplete memory communicating data of the dynamic memory of predetermined threshold value size, apply for predetermined threshold value again The dynamic memory of size is stored, until complete memory communicating data.
Above-mentioned dynamic memory module 42 is additionally operable to:When sending communication data, needs are determined according to the size of communication data The space size of the dynamic memory of application;According to space size application dynamic memory, and memory communicating data.
The structural schematic diagram of electric energy meter communication data storage device shown in Figure 6, further includes judgment module 61, is used In:Judge currently with the presence or absence of having applied and not used dynamic memory;If so, storing communication data to having applied and not The dynamic memory used.
The structural schematic diagram of electric energy meter communication data storage device shown in Figure 7, further includes logging modle 71, is used In:Record the storage total length of data and the corresponding location information of dynamic memory in dynamic memory.
Electric energy meter communication data storage device provided in an embodiment of the present invention is communicated with the electric energy meter that above-described embodiment provides Date storage method technical characteristic having the same reaches identical technique effect so can also solve identical technical problem.
The embodiment of the present invention additionally provides a kind of electric energy meter, including processor and machine readable storage medium, machine readable Storage medium is stored with the machine-executable instruction that can be executed by processor, and processor executes machine-executable instruction to realize The method that above-described embodiment provides.
The embodiment of the present invention additionally provides a kind of machine readable storage medium, which is stored with machine Executable instruction, for machine-executable instruction when being called and being executed by processor, machine-executable instruction promotes processor to realize The method of above-described embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description With the specific work process of device, the corresponding process in preceding method embodiment can be referred to, details are not described herein.
It, can be with if above-mentioned function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) execute all or part of step of each embodiment above method of the disclosure Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD.
Finally it should be noted that:Embodiment of above, the only specific implementation mode of the disclosure, to illustrate the disclosure Technical solution, rather than its limitations, the protection domain of the disclosure are not limited thereto, although with reference to aforementioned embodiments to this public affairs It opens and is described in detail, it should be understood by those skilled in the art that:Any one skilled in the art is in this public affairs It opens in the technical scope of exposure, still can modify or can be thought easily to the technical solution recorded in aforementioned embodiments To variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make corresponding The essence of technical solution is detached from the spirit and scope of disclosure embodiment technical solution, should all cover the protection model in the disclosure Within enclosing.Therefore, the protection domain of the disclosure should be subject to the protection scope in claims.

Claims (10)

1. a kind of electric energy meter communication data storage method, which is characterized in that including:
During initial configuration, for communication data distribution shared dynamic memory and slack storage;It is described to be dynamically stored as Random access memory ram, the slack storage are nonvolatile memory;
When receiving and dispatching the communication data, the communication data is stored using the dynamic memory;
After the dynamic memory is filled with, the communication data is stored using the slack storage.
2. according to the method described in claim 1, it is characterized in that, further including:
After the communication data is read, the dynamic memory and/or the slack storage are discharged.
3. according to the method described in claim 1, it is characterized in that, described during initial configuration, for communication data point The step of with shared dynamic memory and slack storage, including:
The communications protocol supported according to electric energy meter determines that the maximum of single communication channel can handle APDU;
APDU can be handled according to the maximum and determines the size of the dynamic memory and the slack storage, and distributes the dynamic Storage and the slack storage.
4. according to the method described in claim 1, it is characterized in that, described when receiving and dispatching the communication data, using described dynamic State storage come the step of storing the communication data, including:
When receiving the communication data, applies for the dynamic memory of predetermined threshold value size and store the communication data;
If the dynamic memory of the predetermined threshold value size does not store the communication data completely, apply for the predetermined threshold value again The dynamic memory of size is stored, until storing the communication data completely.
5. according to the method described in claim 4, it is characterized in that, in the dynamic memory for applying for predetermined threshold value size And before the step of storing the communication data, further include:
Judge currently with the presence or absence of having applied and the not used dynamic memory;
Apply and the not used dynamic memory if so, storing the communication data to described.
6. according to the method described in claim 1, it is characterized in that, described when receiving and dispatching the communication data, using described dynamic State storage come the step of storing the communication data, including:
When sending the communication data, the sky for the dynamic memory for needing to apply is determined according to the size of the communication data Between size;
According to dynamic memory described in the space size application, and store the communication data.
7. according to the method described in claim 1, it is characterized in that, storing the communication data using the dynamic memory The step of after, further include:
Record the storage total length of data and the corresponding location information of the dynamic memory in the dynamic memory.
8. a kind of electric energy meter communication data storage device, which is characterized in that including:
Distribution module, dynamic memory and slack storage for during initial configuration, being shared for communication data distribution;Institute It states and is dynamically stored as random access memory ram, the slack storage is nonvolatile memory;
Dynamic memory module, for when receiving and dispatching the communication data, the communication data to be stored using the dynamic memory;
Slack storage module, for after the dynamic memory is filled with, the communication data to be stored using the slack storage.
9. device according to claim 8, which is characterized in that further include:
Release module is stored, for after the communication data is read, the dynamic memory is discharged and/or described spare deposits Storage.
10. a kind of electric energy meter, including memory, processor, be stored in the memory to run on the processor Computer program, which is characterized in that the processor realizes that the claims 1 to 7 are any when executing the computer program Described in method the step of.
CN201810237880.2A 2018-03-21 2018-03-21 Electric energy meter communication data storage method, device and electric energy meter Pending CN108446077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810237880.2A CN108446077A (en) 2018-03-21 2018-03-21 Electric energy meter communication data storage method, device and electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810237880.2A CN108446077A (en) 2018-03-21 2018-03-21 Electric energy meter communication data storage method, device and electric energy meter

Publications (1)

Publication Number Publication Date
CN108446077A true CN108446077A (en) 2018-08-24

Family

ID=63196487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810237880.2A Pending CN108446077A (en) 2018-03-21 2018-03-21 Electric energy meter communication data storage method, device and electric energy meter

Country Status (1)

Country Link
CN (1) CN108446077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134696A (en) * 2020-08-21 2020-12-25 杭州海兴电力科技股份有限公司 Electric energy meter dynamic password generation and communication method and communication system thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080266999A1 (en) * 2007-04-25 2008-10-30 Thayer Larry J Semiconductor memory device and system providing spare memory locations
CN101635908A (en) * 2009-06-15 2010-01-27 中兴通讯股份有限公司 Ticket transmission processing method and system of billing system
CN202649307U (en) * 2012-07-01 2013-01-02 珠海派诺科技股份有限公司 Embedded electric energy meter based on Ethernet
CN103019956A (en) * 2012-10-23 2013-04-03 北京奇虎科技有限公司 Method and device for operating cache data
CN103593307A (en) * 2013-11-25 2014-02-19 湖南强军科技有限公司 Method and device for processing collected data by means of electromagnetic method exploration system
CN103823640A (en) * 2014-03-03 2014-05-28 山西科泰微技术有限公司 High-efficiency storage method of Flash storage
CN105843747A (en) * 2015-01-15 2016-08-10 深圳市中兴微电子技术有限公司 Method and device for information storage
CN107239232A (en) * 2017-05-10 2017-10-10 华立科技股份有限公司 Date storage method for electric energy meter
CN107274651A (en) * 2017-07-19 2017-10-20 南京新联电能云服务有限公司 The acquisition method of business electrical information is monitored based on ODP agreements Demand-Oriented
CN206697033U (en) * 2017-02-16 2017-12-01 河南机电职业学院 A kind of electric energy meter multi-channel synchronous data acquisition system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080266999A1 (en) * 2007-04-25 2008-10-30 Thayer Larry J Semiconductor memory device and system providing spare memory locations
CN101635908A (en) * 2009-06-15 2010-01-27 中兴通讯股份有限公司 Ticket transmission processing method and system of billing system
CN202649307U (en) * 2012-07-01 2013-01-02 珠海派诺科技股份有限公司 Embedded electric energy meter based on Ethernet
CN103019956A (en) * 2012-10-23 2013-04-03 北京奇虎科技有限公司 Method and device for operating cache data
CN103593307A (en) * 2013-11-25 2014-02-19 湖南强军科技有限公司 Method and device for processing collected data by means of electromagnetic method exploration system
CN103823640A (en) * 2014-03-03 2014-05-28 山西科泰微技术有限公司 High-efficiency storage method of Flash storage
CN105843747A (en) * 2015-01-15 2016-08-10 深圳市中兴微电子技术有限公司 Method and device for information storage
CN206697033U (en) * 2017-02-16 2017-12-01 河南机电职业学院 A kind of electric energy meter multi-channel synchronous data acquisition system
CN107239232A (en) * 2017-05-10 2017-10-10 华立科技股份有限公司 Date storage method for electric energy meter
CN107274651A (en) * 2017-07-19 2017-10-20 南京新联电能云服务有限公司 The acquisition method of business electrical information is monitored based on ODP agreements Demand-Oriented

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134696A (en) * 2020-08-21 2020-12-25 杭州海兴电力科技股份有限公司 Electric energy meter dynamic password generation and communication method and communication system thereof

Similar Documents

Publication Publication Date Title
CN103425538B (en) Process communication method and system
CN103440202B (en) A kind of communication means based on RDMA, system and communication equipment
CN105260128B (en) A kind of method and storage device for writing data into storage device
CN103593147A (en) Data reading method and device
CA2408284A1 (en) System and method for a communication terminal to manage memory and maintain a current application version for multiple applications
CN101976223A (en) Thin provisioning method and device
CN109302466A (en) Data processing method, relevant device and computer storage medium
CN104571930B (en) A kind of management method of security domain memory space, system and apply open platform device more
CN101557345A (en) Method for providing equipment resource and equipment resource management device
CN109491587A (en) The method and device of data access
CN108667903B (en) Data transmission method for uplink, device and storage medium
CN107526616A (en) A kind of main frame carries out the method and device of data write-in and reading to BMC
CN103309812A (en) Allocation method and device for memory space of smart card
CN102413183A (en) Cloud intelligence switch and processing method and system thereof
CN104123188B (en) A kind of resource allocation methods and relevant apparatus
CN103501282A (en) Network message sending control method, virtual switch and physical machine
CN117076140B (en) Distributed computing method, device, equipment, system and readable storage medium
CN107291568A (en) The abnormality eliminating method and device of intelligent network adapter side
CN106294191B (en) The method for handling table, the method and apparatus for accessing table
CN105183370B (en) A kind of communication means and traffic model for realizing dual controller communication
CN103970672A (en) Message memory management method and system
CN105450679A (en) Method and system for performing data cloud storage
CN105704037B (en) A kind of list item store method and controller
CN108446077A (en) Electric energy meter communication data storage method, device and electric energy meter
CN105099753B (en) The method of Network Management System and its processing business

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180824