CN109739858A - Data classification storage method, device and electronic equipment based on ANSI C12.19 - Google Patents

Data classification storage method, device and electronic equipment based on ANSI C12.19 Download PDF

Info

Publication number
CN109739858A
CN109739858A CN201811641278.1A CN201811641278A CN109739858A CN 109739858 A CN109739858 A CN 109739858A CN 201811641278 A CN201811641278 A CN 201811641278A CN 109739858 A CN109739858 A CN 109739858A
Authority
CN
China
Prior art keywords
stored
data
ansi
sub
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.)
Granted
Application number
CN201811641278.1A
Other languages
Chinese (zh)
Other versions
CN109739858B (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.)
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 CN201811641278.1A priority Critical patent/CN109739858B/en
Publication of CN109739858A publication Critical patent/CN109739858A/en
Application granted granted Critical
Publication of CN109739858B publication Critical patent/CN109739858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of data classification storage method, device and electronic equipments based on ANSI C12.19, are related to the technical field of data storage, comprising: obtain table to be stored;The table to be stored is the function table that ANSI C12.19 communication protocol defines;The table to be stored includes multiple data to be stored;The identification data type wait store multiple data to be stored described in table;According to the data type, the multiple data to be stored is stored in memory space.The application that the present invention facilitates communication to operate table, considerably increases the readability of meter firmware code, portable, scalability.

Description

Data classification storage method, device and electronic equipment based on ANSI C12.19
Technical field
The present invention relates to technical field of data storage, deposit more particularly, to a kind of data classification based on ANSI C12.19 Method for storing, device and electronic equipment.
Background technique
The communication protocol that Most current electric energy meter uses is ANSI communication protocol, and wherein ANSI C12.19 is as public Cause terminal device table, the application content of main definitions transmission data.ANSI C12.19 has carried out point data feature content Class defines various function table class Decade 00 (allocation list), Decade10 (data source table), Decade20 (register Table), Decade30 (table is locally displayed), Decade40 (security table), Decade50 (time-sharing option (TSO) (TOU) table), Decade60 (load curve table), Decade70 (historical events table), Decade80 (user's user-defined data table).Each Decade xx (table Class) 10 Table of management.What the 1st table of each Decade defined is the limiting value under this table class, the of each Decade What 2 tables defined is the actual value under this table class, and actual value is limited to limiting value, and other tables of this Decade are all based on Running in this practical range of values.
However, because ANSI C12.19 agreement is the agreement based on table, without Data Identification, this and DL/T 645 Agreement or the DLMS agreement of IEC have very big difference, therefore implementation differs widely.If not to ANSI C12.19 TABLE Classification storage is carried out, the firmware that will affect meter is readable, and interface realizes that function is chaotic, and upgradability can be poor.
Summary of the invention
In view of this, the purpose of the present invention is to provide based on ANSI C12.19 data classification storage method, device and Electronic equipment, the application for facilitating communication to operate table, considerably increases the readability of meter firmware code, portable, can Scalability.
In a first aspect, the embodiment of the invention provides a kind of data classification storage method based on ANSI C12.19, packet It includes:
Obtain table to be stored;The table to be stored is the function table that ANSI C12.19 communication protocol defines;It is described Table to be stored includes multiple data to be stored;
The identification data type wait store multiple data to be stored described in table;
According to the data type, the multiple data to be stored is stored in memory space.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein knows The not described data type wait store multiple data to be stored described in table, comprising:
The data type wait store multiple data to be stored described in table is identified using multiple classifiers.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein presses According to the data type, the multiple data to be stored is stored in memory space, comprising:
According to the data type, the multiple data to be stored is divided into sub-table;
Data in the sub-table are added with the data structure of classifier corresponding with data type;
According to the data structure, the sub-table is stored in memory space.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute Before the step of stating according to the data type, the multiple data to be stored be divided into sub-table, the method also includes:
Whether identification is described consistent wait store the data type of multiple data to be stored described in table;
If it is, adding classification corresponding with data type wait store multiple data to be stored described in table to described The data structure of device;
According to the data structure, the table to be stored is stored in memory space;
If it is not, then the multiple data to be stored is divided into sub-table according to the data type.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute Stating memory space includes multiple first storage subspaces and multiple second storages subspace, and the first storage subspace is to be stored with number According to storage subspace, the second storage subspace is the storage subspace of not no storing data, according to the data structure, by institute Sub-table is stated to be stored in memory space, comprising:
The data structure of the sub-table is matched with the storage subspace that classifier is administered;
When successful match, then the sub-table is stored in the first storage with the sub-table successful match In space.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein will It is described after the step of data structure data structure corresponding with the sub-table in the memory space is matched Method further include:
When matching unsuccessful, then defining second storage subspace is storage that the sub-table corresponds to classifier Space, and stored.
With reference to first aspect, the embodiment of the invention provides the 6th kind of possible embodiments of first aspect, wherein benefit Before the step of described in the identification of multiple classifiers wait store the data type of multiple data to be stored described in table, the side Method further include:
Classify to multiple tables to be stored under ANSI C12.19 agreement, determines the multiple classifier.
Second aspect, the embodiment of the present invention also provide a kind of data classification storage device based on ANSI C12.19, packet It includes:
Module is obtained, for obtaining table to be stored;The table to be stored is what ANSI C12.19 communication protocol defined Function table;The table to be stored includes multiple data to be stored;
Identification module, for identification data type wait store multiple data to be stored described in table;
Memory module, for according to the data type, the multiple data to be stored to be stored in memory space.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program The step of stating embodiment described in any item methods.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor Calculation machine readable medium, said program code make the processor execute any the method for above-described embodiment.
The embodiment of the present invention brings following the utility model has the advantages that by obtaining table to be stored, table to be stored is ANSI The function table that C12.19 communication protocol defines, table to be stored include multiple data to be stored, then identify table to be stored In the data types of multiple data to be stored multiple data to be stored are stored in memory space, this hair according to data type It is bright to be stored in the prior art with the table stored by function according to data type, communication can be facilitated to operate table Using, the readability of meter firmware code is considerably increased, portability, scalability.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
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 be briefly described, it should be apparent that, it is 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, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the data classification storage method provided in an embodiment of the present invention based on ANSI C12.19;
Fig. 2 is the flow chart of the process provided in an embodiment of the present invention according to data type storage;
Fig. 3 is the structure chart of the data classification storage device provided in an embodiment of the present invention based on ANSI C12.19;
Fig. 4 is memory module in the data classification storage device provided in an embodiment of the present invention based on ANSI C12.19 Structure chart.
Specific embodiment
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 Under every other embodiment obtained, shall fall within the protection scope of the present invention.
The communication protocol that Most current electric energy meter uses is ANSI communication protocol, and wherein ANSI C12.19 is as public Cause terminal device table, the application content of main definitions transmission data.ANSI C12.19 has carried out point data feature content Class defines various function table class Decade 00 (allocation list), Decade10 (data source table), Decade20 (register Table), Decade30 (table is locally displayed), Decade40 (security table), Decade50 (time-sharing option (TSO) (TOU) table), Decade60 (load curve table), Decade70 (historical events table), Decade80 (user's user-defined data table).Each Decade xx (table Class) 10 Table of management.What the 1st table of each Decade defined is the limiting value under this table class, the of each Decade What 2 tables defined is the actual value under this table class, and actual value is limited to limiting value, and other tables of this Decade are all based on Running in this practical range of values.
However, because ANSI C12.19 agreement is the agreement based on table, without Data Identification, this and DL/T 645 Agreement or the DLMS agreement of IEC have very big difference, therefore implementation differs widely.If not to ANSI C12.19 TABLE Classification storage is carried out, the firmware that will affect meter is readable, and interface realizes that function is chaotic, and upgradability can be poor.
Based on this, a kind of data classification storage method based on ANSI C12.19 provided in an embodiment of the present invention, device and Electronic equipment, can be by obtaining table to be stored, and table to be stored is the menu that ANSI C12.19 communication protocol defines Lattice, table to be stored include multiple data to be stored, then identify the data type wait store multiple data to be stored in table, According to data type, multiple data to be stored are stored in memory space, the present invention will be in the prior art to be stored by function Table stored according to data type, the application that operates to table of communication can be facilitated, considerably increase meter firmware generation The readability of code, portable, scalability.
To be based on ANSI to one kind disclosed in the embodiment of the present invention first convenient for understanding the present embodiment The data classification storage method of C12.19 describes in detail,
The embodiment of the invention provides a kind of data classification storage methods based on ANSI C12.19, as shown in connection with fig. 1, This method comprises:
S110: table to be stored is obtained.
Due to the present invention be directed to the function table stored under existing ANSI communication protocol modify be changed by According to data type storing data, so, the table to be stored in step S110 is the function that ANSI C12.19 communication protocol defines Table, wherein.ANSI C12.19 communication protocol is chiefly used in electric energy meter communication reduction in practical applications, so, to storage table Lattice include multiple data to be stored.Table to be stored can store in the memory space in electric energy meter, for example, inside master chip ROM, outside EEPROM storage chip, outside FLASH storage chip inside RAM, master chip, the system for realizing the method for the present invention (or electronic equipment) can be from ROM inside the master chip internal RAM of electric energy meter, master chip, outside EEPROM storage chip, outside Table to be stored is obtained in portion's FLASH storage chip.
S120: the data type wait store multiple data to be stored in table is identified.
Wherein, step S120 can be described wait store multiple numbers to be stored described in table to be identified using multiple classifiers According to data type.In addition, classifying to multiple tables to be stored under ANSI C12.19 agreement, multiple classifiers are determined.
It is to be understood that being stored starting to be converted to the table to be stored stored with function according to data type When, it needs first to classify to multiple tables to be stored under ANSI C12.19 agreement, determines classifier, that is, pass through ANSI Multiple data types wait store the data in table under C12.19 agreement, it is overall to determine classifier, then pass through these points The appliances body identification data type wait store multiple data to be stored described in table.For example, classifier can be normal It measures class table, variable class table, small parameter class table, big parameter class table, small data and stores class table, greatly according to storage class table Lattice.Then, storage table is treated using these classifiers specifically to be identified.
As an example, classifies to multiple tables to be stored under ANSI C12.19 agreement, determine classifier. Table to be stored under ANSI C12.19 agreement is described in table 1 can be with are as follows: TABLE00, TABLE10, TABLE20, TABLE30、TABLE40、TABLE50、TABLE60、TABLE70、TABLE23、TABLE28、TABLE55、TABLE11、 TABLE21、TABLE31、TABLE41、TABLE51、TABLE61、TABLE71、TABLE54、TABLE26_0、TABLE76_0、 TABLE26_1, TABLE64_1, TABLE76_1, certainly, these tables are not functions under whole ANSI C12.19 agreements Table is only enumerated above table and is illustrated as example.Above table can determine classifier by determined property Are as follows: constant class table, variable class table, small parameter class table, big parameter class table, small data store class table, greatly according to storage Class table.
S130: according to data type, multiple data to be stored are stored in memory space.
Step S130 can be executed as follows: as shown in connection with fig. 2,
Step S1301: according to data type, multiple data to be stored are divided into sub-table.It is to be understood that work as With how many data type, so that it may which multiple data to be stored are divided how many sub-table.
Step S1302: the data in sub-table are added with the data structure of classifier corresponding with data type.Wherein, Each classifier can only sort out a kind of data type, and corresponding classifier just has the data structure of oneself, this data Structure can be added in the data for being classified the sub-table that device branches away.For example, when classifier is to separate constant class data, The corresponding data structure of classifier is ROM, so, increase ROM in the constant class data branched away with this classifier, wherein shape Formula can be with are as follows: XXX-ROM.
Step S1303: according to data structure, sub-table is stored in memory space.
Wherein, memory space includes multiple first storage subspaces and multiple second storages subspace, and the first storage is empty Between be to be stored with the storage subspaces of data, the second storage subspace is the storage subspace of not storing data, and step 3 can be with It is executed according to a under type:
The data structure of sub-table is matched with the storage subspace that classifier is administered.
When successful match, then sub-table is stored in the first storage subspace with sub-table successful match.
When matching unsuccessful, then defining second storage subspace is storage that the sub-table corresponds to classifier Space, and stored.
Specifically, when in memory space have multiple storage regions, these storage regions some be to be stored with data , some be not no storing data, in the present invention, it is empty that the storage subspace for being stored with data is known as the first storage Between, the storage subspace of storing data is not known as the second storage subspace.During sub-table is stored, when wherein The data structure of data of sub-table when having had data structure that there is storage subspace, it is empty to store it in the first storage Between in, when in multiple storage subspaces there is no a storage subspace be stored with the data structure of sub-table when, then will define It is that the sub-table corresponds to the storage subspace of classifier and stored for the second storage subspace.
For step S130, cite an actual example:
According to data type, multiple data to be stored are divided into sub-table, in table 2, table TABLE26 to be stored is drawn It is divided into two sub-tables, i.e. TABLE26_0 and TABLE26_1, table TABLE76 to be stored is divided into two sub-tables, i.e., TABLE76_0 and TABLE76_1.Wherein, identify above table classifier can for identification small data store class classifier, Identify the classifier of big data storage class.
Table 2
Data in sub-table are added with the data structure of classifier corresponding with data type, wherein in conjunction with 3 institute of table Show, the data structure that constant class table classifier sorts out the sub-table come is STRUCT_CLASSIFIER1, variable class table The data structure that classifier sorts out the sub-table come is STRUCT_CLASSIFIER2, and small parameter class table classifier sorts out The data structure for the sub-table come is STRUCT_CLASSIFIER3, and big parameter class class table classifier sorts out the sub-table come Data structure be STRUCT_CLASSIFIER4, small data storage class table classifier sort out come sub-table data knot Structure is STRUCT_CLASSIFIER5, and the data structure that big data storage class table classifier sorts out the sub-table come is STRUCT_CLASSIFIER6。
Table 3
Classifier Data structure
Constant class table STRUCT_CLASSIFIER1
Variable class table STRUCT_CLASSIFIER2
Small parameter class table STRUCT_CLASSIFIER3
Big parameter class table STRUCT_CLASSIFIER4
Small data stores class table STRUCT_CLASSIFIER5
Big data stores class table STRUCT_CLASSIFIER6
According to data structure, sub-table is stored in memory space, the data structure of sub-table and pair of memory space It should be related to as shown in table 4, when the data structure of sub-table is STRUCT_CLASSIFIER1, be stored in CLASSIFIER1_ In ROM, and so on.
Table 4
In addition, due to the data in the function table that ANSI C12.19 communication protocol defines perhaps their data class Type is consistent, then can directly be stored, and without just splitting sub-table, is increased by one in this way and is identified table to be stored The whether consistent step of data type can be improved arithmetic speed, in the present invention, specifically include:
Whether identification is described consistent wait store the data type of multiple data to be stored described in table;
If it is, treating multiple data to be stored described in storage table adds classifier corresponding with data type Data structure;
According to the data structure, the table to be stored is stored in memory space.Wherein, this step can be specific , the data structure of table to be stored is matched with the storage subspace that classifier is administered.It, then will be to when successful match Storage table is stored in the first storage subspace with sub-table successful match.When matching unsuccessful, then described the is defined Two storage subspaces are that the table to be stored corresponds to the storage subspace of classifier, and is stored.
If it is not, then executing step S1301~S1303.
The data classification storage method based on ANSI C12.19 based on the above embodiment, corresponding, the present invention is real It applies example and a kind of data classification storage device based on ANSI C12.19 is also provided, as shown in connection with fig. 3, comprising:
Module 310 is obtained, for obtaining table to be stored;The table to be stored is fixed for ANSI C12.19 communication protocol The function table of justice;The table to be stored includes multiple data to be stored;
Identification module 320, for identification data type wait store multiple data to be stored described in table;
Memory module 330, for according to the data type, the multiple data to be stored to be stored in memory space In.
Optionally, identification module 320, it is described multiple wait deposit described in table wait store for being identified using multiple classifiers Store up the data type of data.
Optionally, memory module 330, comprising:
Submodule 3301 is divided, for according to data type, multiple data to be stored to be divided into sub-table;
First addition submodule 3302, for adding classifier corresponding with data type to the data in the sub-table Data structure;
First sub-module stored 3303, for according to the data structure, the sub-table to be stored in memory space.
Optionally, described device further include:
Identify submodule, for identification the data type wait store multiple data to be stored described in table whether one It causes;
Second addition submodule, for if it is, being added to described wait store multiple data to be stored described in table The data structure of classifier corresponding with data type;
Second sub-module stored, for according to the data structure, the table to be stored to be stored in memory space;
First addition submodule is used for if it is not, then drawing the multiple data to be stored according to the data type It is divided into sub-table.
Optionally, the memory space includes multiple first storage subspaces and multiple second storages subspace, and first deposits Storage subspace is the storage subspace for being stored with data, and the second storage subspace is the storage subspace of not storing data, the One sub-module stored, is used for:
The data structure of the sub-table is matched with the storage subspace that classifier is administered;
When successful match, then the sub-table is stored in the first storage with the sub-table successful match In space.
Optionally, first sub-module stored is corresponding with the sub-table by the data structure in the memory space The data structure matched after, be also used to:
When matching unsuccessful, then defining second storage subspace is storage that the sub-table corresponds to classifier Space, and stored.
Optionally, described device further include:
Determining module, determining module are connected with identification module 320, and determining module is used under ANSI C12.19 agreement Multiple tables to be stored are classified, and determine the multiple classifier.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can combine Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be through some communication interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor, and being stored in the memory can The computer program run on the processor, the processor realize that above-described embodiment is appointed when executing the computer program The step of method described in one.
Wherein, memory may include high-speed random access memory (RAM, Random Access Memory), can also It can further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.
Processor may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor or software form.Above-mentioned processing Device can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory, and processor reads the information in memory, in conjunction with its hardware The step of completing the above method.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor Calculation machine readable medium, said program code make the processor execute any the method for above-described embodiment, and specific implementation can be joined See embodiment of the method, details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of data classification storage method based on ANSI C12.19 characterized by comprising
Obtain table to be stored;The table to be stored is the function table that ANSI C12.19 communication protocol defines;It is described wait deposit Storing up table includes multiple data to be stored;
The identification data type wait store multiple data to be stored described in table;
According to the data type, the multiple data to be stored is stored in memory space.
2. the data classification storage method according to claim 1 based on ANSI C12.19, which is characterized in that identification institute State the data type wait store multiple data to be stored described in table, comprising:
The data type wait store multiple data to be stored described in table is identified using multiple classifiers.
3. the data classification storage method according to claim 2 based on ANSI C12.19, which is characterized in that according to institute Data type is stated, the multiple data to be stored is stored in memory space, comprising:
According to the data type, the multiple data to be stored is divided into sub-table;
Data in the sub-table are added with the data structure of classifier corresponding with data type;
According to the data structure, the sub-table is stored in memory space.
4. the data classification storage method according to claim 3 based on ANSI C12.19, which is characterized in that described to press According to the data type, before the step of the multiple data to be stored is divided into sub-table, the method also includes:
Whether identification is described consistent wait store the data type of multiple data to be stored described in table;
If it is, adding classifier corresponding with data type wait store multiple data to be stored described in table to described Data structure;
According to the data structure, the table to be stored is stored in memory space;
If it is not, then the multiple data to be stored is divided into sub-table according to the data type.
5. the data classification storage method according to claim 3 based on ANSI C12.19, which is characterized in that described to deposit Storage space includes multiple first storage subspaces and multiple second storages subspace, and the first storage subspace is to be stored with data Subspace is stored, the second storage subspace is the storage subspace of not storing data, according to the data structure, by the son Table is stored in memory space, comprising:
The data structure of the sub-table is matched with the storage subspace that classifier is administered;
When successful match, then the sub-table is stored in first storage subspace with the sub-table successful match In.
6. the data classification storage method according to claim 5 based on ANSI C12.19, which is characterized in that will be described After the step of data structure data structure corresponding with the sub-table in memory space is matched, the method Further include:
When matching unsuccessful, then defining second storage subspace is the storage son sky that the sub-table corresponds to classifier Between, and stored.
7. the data classification storage method according to claim 2 based on ANSI C12.19, which is characterized in that utilize more Before the step of described in a classifier identification wait store the data type of multiple data to be stored described in table, the method is also Include:
Classify to multiple tables to be stored under ANSI C12.19 agreement, determines the multiple classifier.
8. a kind of data classification storage device based on ANSI C12.19 characterized by comprising
Module is obtained, for obtaining table to be stored;The table to be stored is the function that ANSI C12.19 communication protocol defines Table;The table to be stored includes multiple data to be stored;
Identification module, for identification data type wait store multiple data to be stored described in table;
Memory module, for according to the data type, the multiple data to be stored to be stored in memory space.
9. a kind of electronic equipment, 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 The step of method described in item.
10. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described Program code makes the processor execute described any the method for claim 1-7.
CN201811641278.1A 2018-12-29 2018-12-29 ANSI C12.19-based data classification storage method and device and electronic equipment Active CN109739858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811641278.1A CN109739858B (en) 2018-12-29 2018-12-29 ANSI C12.19-based data classification storage method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811641278.1A CN109739858B (en) 2018-12-29 2018-12-29 ANSI C12.19-based data classification storage method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109739858A true CN109739858A (en) 2019-05-10
CN109739858B CN109739858B (en) 2021-08-17

Family

ID=66362546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811641278.1A Active CN109739858B (en) 2018-12-29 2018-12-29 ANSI C12.19-based data classification storage method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109739858B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286909A (en) * 2019-06-29 2019-09-27 潍柴动力股份有限公司 Simulink model resource uses the statistical method and device of data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615193A (en) * 2009-07-07 2009-12-30 北京大学 A kind of based on the integrated inquiry system of encyclopaedia data extract
US20150339360A1 (en) * 2014-05-23 2015-11-26 International Business Machines Corporation Processing a data set
CN105630734A (en) * 2015-12-28 2016-06-01 深圳市科陆电子科技股份有限公司 Configuration method and device for ex-factory parameters of power equipment terminal
CN106294520A (en) * 2015-06-12 2017-01-04 微软技术许可有限责任公司 The information extracted from document is used to carry out identified relationships
CN106777265A (en) * 2016-12-28 2017-05-31 新奥科技发展有限公司 A kind of processing method and processing device of business datum
CN107633008A (en) * 2017-08-10 2018-01-26 阿里巴巴集团控股有限公司 Web project data processing method, device, server and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615193A (en) * 2009-07-07 2009-12-30 北京大学 A kind of based on the integrated inquiry system of encyclopaedia data extract
US20150339360A1 (en) * 2014-05-23 2015-11-26 International Business Machines Corporation Processing a data set
CN106294520A (en) * 2015-06-12 2017-01-04 微软技术许可有限责任公司 The information extracted from document is used to carry out identified relationships
CN105630734A (en) * 2015-12-28 2016-06-01 深圳市科陆电子科技股份有限公司 Configuration method and device for ex-factory parameters of power equipment terminal
CN106777265A (en) * 2016-12-28 2017-05-31 新奥科技发展有限公司 A kind of processing method and processing device of business datum
CN107633008A (en) * 2017-08-10 2018-01-26 阿里巴巴集团控股有限公司 Web project data processing method, device, server and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁津生: "《计算机应用技术 基础篇》", 28 February 2003 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286909A (en) * 2019-06-29 2019-09-27 潍柴动力股份有限公司 Simulink model resource uses the statistical method and device of data
CN110286909B (en) * 2019-06-29 2023-01-24 潍柴动力股份有限公司 Statistical method and device for resource use data of Simulink model

Also Published As

Publication number Publication date
CN109739858B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
Yang et al. An initialization method based on hybrid distance for k-means algorithm
CN109492048A (en) A kind of extracting method, system and the terminal device of power consumer electrical characteristics
CN104335228A (en) System and method to perform feature detection and to determine a feature score
CN108932217A (en) The method and device of energy consumption statistic
CN110515896A (en) Model resource management method, model file production method, device and system
CN109460884A (en) Orphan's list distribution method, electronic device and readable storage medium storing program for executing
CN109656986A (en) A kind of householder method that business datum summarizes, device and electronic equipment
CN109901987A (en) A kind of method and apparatus generating test data
CN110069546A (en) A kind of data classification method, device for classifying data and terminal device
CN107391540A (en) A kind of small routine methods of exhibiting, device and grader
CN109739858A (en) Data classification storage method, device and electronic equipment based on ANSI C12.19
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
WO2023093255A1 (en) Clustering collection determining method and device, storage medium, and electronic device
CN110069671B (en) Object collection method and device
CN108765503A (en) A kind of skin color detection method, device and terminal
CN109961163A (en) Gender prediction's method, apparatus, storage medium and electronic equipment
CN108984297A (en) Task executing method and device
CN113449008B (en) Modeling method and device
CN114238767A (en) Service recommendation method and device, computer equipment and storage medium
US11070461B1 (en) System for dividing a tree data structure to improve traversal operations
CN109271490A (en) The classification method and system of dynamic field
CN107481394B (en) Recognition methods, identification device and the terminal device of bank note
CN112784025A (en) Method and device for determining target event
CN110751204A (en) Data fusion method and device, storage medium and electronic device
CN109558521A (en) Large scale key word multi-mode matching 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
GR01 Patent grant
GR01 Patent grant