CN112256774A - Power data processing method and device, computer equipment and storage medium - Google Patents

Power data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112256774A
CN112256774A CN202011032276.XA CN202011032276A CN112256774A CN 112256774 A CN112256774 A CN 112256774A CN 202011032276 A CN202011032276 A CN 202011032276A CN 112256774 A CN112256774 A CN 112256774A
Authority
CN
China
Prior art keywords
data
power
target
power data
object model
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
CN202011032276.XA
Other languages
Chinese (zh)
Other versions
CN112256774B (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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202011032276.XA priority Critical patent/CN112256774B/en
Publication of CN112256774A publication Critical patent/CN112256774A/en
Application granted granted Critical
Publication of CN112256774B publication Critical patent/CN112256774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a power data processing method, a power data processing device, computer equipment and a storage medium. The method comprises the following steps: and collecting power data. And selecting a target data object model from more than one preset data object model according to the data type of the power data. An objective function corresponding to the power data is determined. And constructing the power data and the object function as a communication object according to the target data object model. And converting the communication object into communication object frame data which conforms to the target frame format corresponding to the target data object model. And sending the data of the communication object frame to the power Internet of things platform. By adopting the method, the power data acquisition efficiency can be improved.

Description

Power data processing method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a power data processing method and device, computer equipment and a storage medium.
Background
With the development of computer technology, the technology of internet of things has emerged. The internet of things is that any object is connected with a network through information sensing equipment according to an agreed protocol, and the object performs information exchange and communication through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like. In the power industry, the diversity of power services leads to the diversification of data types of power data required to be acquired by the power internet of things platform. The data type of the electric power data and the corresponding operation method frequently change along with the application scene, and each acquisition device cannot transmit the acquired electric power data to the electric power internet of things platform. Data communication between the power internet of things platform and each acquisition device is difficult, so that the power data acquisition efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a power data processing method, a device, a computer device, and a storage medium capable of improving power data collection efficiency.
A method of power data processing, the method comprising:
collecting power data;
selecting a target data object model from more than one preset data object model according to the data type of the power data;
determining an objective function corresponding to the power data;
constructing the power data and the object function as a communication object according to the target data object model;
converting the communication object into communication object frame data in a target frame format corresponding to the target data object model;
and sending the communication object frame data to the power Internet of things platform.
In one embodiment, the preset data object model is obtained through a preset data object model generating step, and the preset data object model generating step includes:
obtaining sample power data from the power internet of things platform;
performing basic service abstraction processing on the sample power data to obtain a basic service class;
based on the basic service class, performing service feature classification processing on the sample power data according to the data type of the sample power data to obtain more than one type of sub-service classes;
and combining the sub-service classes of more than one type with the basic service class respectively to obtain more than one preset data object model corresponding to the data type of the sample power data.
In one embodiment, the method further comprises:
for each type of sub-service class, determining at least one data attribute of the sub-service class;
determining attribute length and attribute characteristics of each data attribute of the sub-service class;
and determining a coding mode corresponding to each data attribute according to the attribute length and the attribute characteristics of each data attribute of the sub-service class.
In one embodiment, the constructing the power data and the object function as a communication object according to the target data object model includes:
determining a first parameter and a second parameter from the power data according to the target data object model;
determining a first conversion result according to the first parameter and a basic class function corresponding to the basic service class, and determining a second conversion result according to the second parameter and a byte conversion function corresponding to the sub-service class;
and constructing the power data and the object function as a communication object according to the first conversion result and the second conversion result.
A method of power data processing, the method comprising:
receiving communication object frame data sent by acquisition equipment;
selecting a target data object model from more than one preset data object model according to the object type determined by the communication object frame data;
converting the communication object frame data into a communication object according to a target frame format corresponding to the target data object model;
according to the communication object, determining power data and an object function corresponding to the power data; the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
In one embodiment, the converting the communication object frame data into the communication object according to the target frame format corresponding to the target data object model includes:
determining the object type according to the type field in the target frame format corresponding to the target data object model; determining the length of an object according to a first length field in a target frame format corresponding to the target data object model; determining object attributes according to attribute fields in a target frame format corresponding to the target data object model; determining attribute length according to a second length field in a target frame format corresponding to the target data object model; determining attribute content according to a content field in a target frame format corresponding to the target data object model; determining an object function according to a function field in a target frame format corresponding to the target data object model;
and converting the communication object frame data into the communication object according to the object type, the object length, the object attribute, the attribute length, the attribute content and the object function.
In one embodiment, the determining, according to the communication object, power data and an object function corresponding to the power data includes:
determining a first conversion result and a second conversion result according to the communication object;
determining a first parameter according to the first conversion result and a basic class function corresponding to a basic service class of the target data object model;
determining a second parameter according to the second parameter and a byte conversion function corresponding to the sub-service class of the target data object model;
and determining power data and an object function corresponding to the power data according to the first parameter and the second parameter.
A power data processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring power data;
the selection module is used for selecting a target data object model from more than one preset data object model according to the data type of the power data;
a determination module to determine an objective function corresponding to the power data;
the building module is used for building the power data and the object function into a communication object according to the target data object model;
the conversion module is used for converting the communication object into communication object frame data which accords with a target frame format corresponding to the target data object model;
and the sending module is used for sending the communication object frame data to the power Internet of things platform.
A power data processing apparatus, the apparatus comprising:
the receiving module is used for receiving the communication object frame data sent by the acquisition equipment;
a first selection module, configured to select a target data object model from more than one preset data object models according to an object type determined by the communication object frame data;
the first conversion module is used for converting the data of the communication object frame into a communication object according to a target frame format corresponding to the target data object model;
the first determination module is used for determining power data and an object function corresponding to the power data according to the communication object; the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
collecting power data;
selecting a target data object model from more than one preset data object model according to the data type of the power data;
determining an objective function corresponding to the power data;
constructing the power data and the object function as a communication object according to the target data object model;
converting the communication object into communication object frame data in a target frame format corresponding to the target data object model;
and sending the communication object frame data to the power Internet of things platform.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving communication object frame data sent by acquisition equipment;
selecting a target data object model from more than one preset data object model according to the object type determined by the communication object frame data;
converting the communication object frame data into a communication object according to a target frame format corresponding to the target data object model;
according to the communication object, determining power data and an object function corresponding to the power data; the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
collecting power data;
selecting a target data object model from more than one preset data object model according to the data type of the power data;
determining an objective function corresponding to the power data;
constructing the power data and the object function as a communication object according to the target data object model;
converting the communication object into communication object frame data in a target frame format corresponding to the target data object model;
and sending the communication object frame data to the power Internet of things platform.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving communication object frame data sent by acquisition equipment;
selecting a target data object model from more than one preset data object model according to the object type determined by the communication object frame data;
converting the communication object frame data into a communication object according to a target frame format corresponding to the target data object model;
according to the communication object, determining power data and an object function corresponding to the power data; the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
The power data processing method, the device, the computer equipment and the storage medium collect power data. And selecting a target data object model from more than one preset data object model according to the data type of the power data. An objective function corresponding to the power data is determined. And constructing the power data and the object function as a communication object according to the target data object model. And converting the communication object into communication object frame data which conforms to the target frame format corresponding to the target data object model. And sending the data of the communication object frame to the power Internet of things platform. Therefore, by presetting the preset data object models respectively corresponding to the electric power data of various data types, when the data types of the electric power data and the corresponding operation methods frequently change along with the application scene, the corresponding data object models are selected from the plurality of preset data object models to package the electric power data according to the data types of the electric power data, normal data communication between the electric power internet of things platform and each acquisition device is guaranteed, and the electric power data acquisition efficiency is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a power data processing method;
FIG. 2 is a flow diagram illustrating a method for processing power data according to one embodiment;
FIG. 3 is a diagram of basic service classes in one embodiment;
FIG. 4 is a diagram of sub-business classes, in one embodiment;
FIG. 5 is a flow chart illustrating a method for processing power data according to another embodiment;
FIG. 6 is a diagram of a target frame format in one embodiment;
FIG. 7 is a diagram illustrating byte conversion of a communication object in one embodiment;
fig. 8 is a communication flow of the acquisition device and the power internet of things platform in one embodiment;
FIG. 9 is a block diagram showing the structure of a power data processing device according to an embodiment;
FIG. 10 is a block diagram showing the structure of a power data processing device according to an embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment;
fig. 12 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The power data processing method provided by the application can be applied to the application environment shown in fig. 1. The application environment comprises an acquisition device 102 and a server running a power internet of things platform 104. The collection device 102 and the power internet of things platform 104 communicate through a network. The acquisition device 102 may specifically include a desktop device or a mobile device. The mobile device may specifically include at least one of a smart meter, a mobile phone, a tablet computer, a notebook computer, and the like. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The collection device 102 collects power data. The collection device 102 selects a target data object model from more than one preset data object model according to the data type of the power data. The collection device 102 determines an objective function corresponding to the power data. The collection device 102 constructs the power data and the object function as a communication object according to the target data object model. The acquisition device 102 converts the communication object into communication object frame data conforming to the target frame format corresponding to the target data object model. The acquisition device 102 sends the communication object frame data to the power internet of things platform 104.
In one embodiment, as shown in fig. 2, a power data processing method is provided, which is described by taking the method as an example applied to the acquisition device 102 in fig. 1, and includes the following steps:
and S202, collecting power data.
The power data is data generated in the power business processing process in the power industry.
Specifically, the electric power internet of things platform is in communication connection with at least one collection device, and the electric power internet of things platform and the collection device are both deployed with the same set of electric power data collection communication protocol. The acquisition equipment can be deployed at a corresponding power site and acquires power data corresponding to the power site.
S204, selecting a target data object model from more than one preset data object model according to the data type of the power data.
The data object model is a model conforming to an object-oriented structure and is used for packaging the power data.
Specifically, a preset data object model for each data type is set in the acquisition device. The acquisition device may determine a data type corresponding to the power data after acquiring the power data. Furthermore, the collection device may select a target data object model from more than one preset data object model according to the data type of the power data.
And S206, determining an object function corresponding to the power data.
Wherein the objective function is a function for processing power data.
In one embodiment, the object function may specifically include at least one of a write function, a delete function, an update function, a recall function, a synchronization function, and the like.
And S208, constructing the power data and the object function as a communication object according to the target data object model.
The communication object is an object obtained by encapsulating the power data and the object function.
Specifically, the collection device may determine a basic service class and a sub-service class corresponding to the power data according to the target data object model. Wherein the sub-service class can inherit the base service class. The acquisition equipment can construct the power data and the object function into a communication object according to the basic service class and the sub-service class corresponding to the power data.
S210, converting the communication object into communication object frame data which accords with the target frame format corresponding to the target data object model.
The target frame format is a frame format which sorts the fields carrying the data characteristics according to a preset rule. The communication target frame data is frame data of a communication target conforming to the target frame format.
In particular, the target data object model may correspond to a target frame format. The acquisition device may determine a corresponding target frame format based on the target data object model. Furthermore, the acquisition device can convert the communication object into communication object frame data in a target frame format corresponding to the target data object model.
And S212, sending the communication object frame data to the power Internet of things platform.
Specifically, the collection device can send the communication object frame data to the power internet of things platform, the power internet of things platform can receive the communication object frame data, convert the communication object frame data into a communication object, and determine the power data and a corresponding object function according to the communication object. Furthermore, the power internet of things platform can perform corresponding power business processing based on the power data and the object function.
In the power data processing method, power data is collected. And selecting a target data object model from more than one preset data object model according to the data type of the power data. An objective function corresponding to the power data is determined. And constructing the power data and the object function as a communication object according to the target data object model. And converting the communication object into communication object frame data which conforms to the target frame format corresponding to the target data object model. And sending the data of the communication object frame to the power Internet of things platform. Therefore, by presetting the preset data object models respectively corresponding to the electric power data of various data types, when the data types of the electric power data and the corresponding operation methods frequently change along with the application scene, the corresponding data object models are selected from the plurality of preset data object models to package the electric power data according to the data types of the electric power data, normal data communication between the electric power internet of things platform and each acquisition device is guaranteed, and the electric power data acquisition efficiency is improved.
In one embodiment, the preset data object model is obtained by a preset data object model generating step, and the preset data object model generating step includes: acquiring sample power data from a power Internet of things platform; performing basic service abstraction processing on the sample power data to obtain a basic service class; based on the basic service class, performing service feature classification processing on the sample electric power data according to the data type of the sample electric power data to obtain more than one type of sub-service classes; and combining more than one type of sub-service classes with the basic service class respectively to obtain more than one preset data object model corresponding to the data type of the sample power data.
The sample power data is selected from historical power data of the power internet of things platform. The underlying business class is a business class that includes common information items for all data types. A sub-service class is a service class that includes information items of a particular data type.
Specifically, the power internet of things platform stores historical collected power data. The collection equipment can obtain sample power data from historical power data of the power internet of things platform. The acquisition equipment can perform basic service abstraction processing on the sample power data to obtain a basic service class. The acquisition equipment can perform service feature classification processing on the sample electric power data according to the data type of the sample electric power data based on the obtained basic service class to obtain more than one type of sub-service classes. It is to be understood that one data type corresponds to one type of sub-service class. The acquisition equipment can combine more than one type of sub-business classes with the basic business class respectively to obtain more than one preset data object model corresponding to the data type of the sample power data. It can be understood that each sub-business class in the preset data object model can inherit the information item of the basic business class.
In one embodiment, as shown in FIG. 3, the base service class specifies the packet type, packet ID, reply packet ID, and the total byte length of the type. All operations used in the power industry are classified into message types together with the power equipment. The message types are divided into five types, and are set with numbers: the number 0 represents an active reporting type, the number 1 represents a call-for-test reporting type, the number 2 represents a call-for-test type, the number 3 represents a remote control type, and the number 4 represents a remote synchronization type.
In one embodiment, as shown in fig. 4, the collection device classifies power traffic into five major categories based on sample power data. Namely, an electric energy information type, an electric power event information type, a geographical location information type, an administrative location information type, and a system status information type. The five types of electric power services can inherit the information items of the basic service class, when the electric power service type is newly added, only the relevant attribute needs to be added into the basic service class, and the newly added electric power service type can automatically inherit the relevant attribute of the basic class without more modification.
In one embodiment, the pre-set data object model may also be constructed by a third party computer device. The third-party computer equipment deploys the constructed preset data object model on the acquisition equipment and the electric power Internet of things platform, then the acquisition equipment can package the acquired electric power data into communication object data frames through the preset data object model, and the packaged communication object data frames are sent to the electric power Internet of things platform. The electric power internet of things platform can also acquire electric power data from the communication object data frame through a preset data object model.
In the above embodiment, the basic service class is obtained by performing basic service abstraction processing on the sample power data, and the more than one sub-service classes are obtained by performing service feature classification processing on the sample power data. Thus, by using the base service class as a parent class for each child service class, each child service class can inherit the information item of the base service class. When the sub-service class is added, no information item needs to be added, and the expandability of the power service is improved by directly inheriting the basic service class.
In one embodiment, the power data processing method further comprises: determining at least one data attribute of the sub-service class aiming at each type of sub-service class; determining attribute length and attribute characteristics of each data attribute of the sub-service class; and determining a coding mode corresponding to each data attribute according to the attribute length and the attribute characteristics of each data attribute of the sub-service class.
For example, as shown in table 1 below, the data attributes of the geographical location information type are longitude, latitude, and altitude, and the attribute lengths are each two bytes. The attribute length of the power information type is a dynamic length. The geographical location information type and the power information type are encoded as shown in table 2 below.
TABLE 1
Figure BDA0002704145290000101
Figure BDA0002704145290000111
TABLE 2
Figure BDA0002704145290000112
In the embodiment, the coding mode corresponding to each data attribute is determined according to the attribute length and the attribute characteristics of each data attribute of the sub-service class, so that the power data of the sub-service class can be uniformly coded according to the set coding mode, the consistency of the data coding mode is ensured, the uniform packaging of the power data is realized, and the power data acquisition efficiency is further improved.
In one embodiment, the step S208 of constructing the power data and the object function as the communication object according to the target data object model specifically includes: determining a first parameter and a second parameter from the power data according to the target data object model; determining a first conversion result according to the first parameter and a basic class function corresponding to the basic service class, and determining a second conversion result according to the second parameter and a byte conversion function corresponding to the sub service class; and constructing the power data and the object function as a communication object according to the first conversion result and the second conversion result.
In one embodiment, the first parameter may specifically include at least one of a collection time of the power data and an ID of a previous message. The second parameter may specifically include at least one of longitude, latitude, altitude, and the like. The basic class function may specifically include at least one of a packet ID obtaining function, a reply packet ID obtaining function, and a type ID obtaining function. The byte conversion function may specifically include at least one of an administrative number acquisition function and a one-byte positive number conversion function. The first conversion result may specifically include at least one of a packet ID, a reply packet ID, and a type ID. The first conversion result may specifically include at least one of a single byte, two bytes, and an administrative number byte, etc.
In the above embodiment, the first parameter and the second parameter determined from the power data are converted into the first conversion result and the second conversion result by the base class function and the byte conversion function, and are constructed as the communication object according to the first conversion result and the second conversion result. Like this for but data communication between each collection equipment electric power thing networking platform goes on with the mode of communication object, makes to keep the uniformity to the encapsulation of electric power data, has further promoted the collection efficiency of electric power data.
In an embodiment, as shown in fig. 5, a power data processing method is provided, which is described by taking the power internet of things platform 104 in fig. 1 as an example, and includes the following steps:
and S502, receiving the communication object frame data sent by the acquisition equipment.
Specifically, the collection equipment can send the communication object frame data to the electric power thing networking platform, and the electric power thing networking platform can receive the communication object frame data that the collection equipment sent.
S504, according to the object type determined by the communication object frame data, a target data object model is selected from more than one preset data object model.
Specifically, a preset data object model for each object type is set in the power internet of things platform. The power internet of things platform can select a target data object model from more than one preset data object model according to the object type determined by the communication object frame data after receiving the communication object frame data.
S506, converting the data of the communication object frame into the communication object according to the target frame format corresponding to the target data object model.
Specifically, the power internet of things platform can determine a basic service class and a sub-service class corresponding to the power data according to the target data object model. Wherein the sub-service class can inherit the base service class. The electric power Internet of things platform can convert the communication object frame data into the communication object according to the basic service class and the sub-service class corresponding to the object type.
S508, according to the communication object, determining power data and an object function corresponding to the power data; and the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
In the above embodiment, the target data object model is selected from more than one preset data object model by receiving the communication object frame data sent by the acquisition device and according to the object type determined by the communication object frame data. And converting the data of the communication object frame into the communication object according to the target frame format corresponding to the target data object model. And determining the power data and an object function corresponding to the power data according to the communication object. The power Internet of things platform carries out corresponding power business processing based on the power data and the object function. In this way, by presetting the preset data object models respectively corresponding to the electric power data of various data types, when the data types of the electric power data and the corresponding operation methods frequently change along with the application scene, the corresponding data object models are selected from the plurality of preset data object models according to the data types of the electric power data, the electric power data and the corresponding object functions are extracted from the received communication object frame data, normal data communication between the electric power internet of things platform and each acquisition device is ensured, and therefore the electric power data acquisition efficiency is improved.
In an embodiment, step S506, that is, the step of converting the frame data of the communication object into the communication object according to the target frame format corresponding to the target data object model specifically includes: determining the object type according to the type field in the target frame format corresponding to the target data object model; determining the length of an object according to a first length field in a target frame format corresponding to a target data object model; determining object attributes according to attribute fields in a target frame format corresponding to a target data object model; determining attribute length according to a second length field in a target frame format corresponding to the target data object model; determining attribute content according to a content field in a target frame format corresponding to the target data object model; determining an object function according to a function field in a target frame format corresponding to a target data object model; and converting the communication object frame data into the communication object according to the object type, the object length, the object attribute, the attribute length, the attribute content and the object function.
In one embodiment, as shown in FIG. 6, the type field in the target frame format is represented by the first byte. The first length field is represented by the second and third bytes. The attribute field is represented by the fourth byte. If the attribute length is fixed, the second length field is not set, and if the attribute length is not fixed, the second length field is set. The content field is set according to whether the length is fixed or not, and the function field is represented by the last two bytes.
In the above embodiment, the object type, the object length, the object attribute, the attribute length, the attribute content, and the object function are extracted from the communication object frame data according to each field in the target frame format corresponding to the target data object model, so that the communication object frame data is converted into the communication object. Thus, the conversion efficiency of the data of the communication object frame is improved.
In an embodiment, the step S508, that is, the step of determining the power data and the object function corresponding to the power data according to the communication object, specifically includes: determining a first conversion result and a second conversion result according to a communication object; determining a first parameter according to the first conversion result and a basic class function corresponding to the basic service class of the target data object model; determining a second parameter according to the second parameter and a byte conversion function corresponding to the sub-service class of the target data object model; and determining the power data and the object function corresponding to the power data according to the first parameter and the second parameter.
In the above-described embodiment, the first conversion result and the second conversion result determined from the communication object are converted into the first parameter and the second parameter by the base class function and the byte conversion function, and the power data and the object function are determined based on the first parameter and the second parameter. Like this for but data communication between each collection equipment electric power thing networking platform goes on with the mode of communication object, makes to keep the uniformity to the encapsulation of electric power data, has further promoted the collection efficiency of electric power data.
In an embodiment, as shown in fig. 7, the collection device may construct the power data and the corresponding object function as a communication object, send the communication byte stream after byte conversion of the communication object to the power internet of things platform, and the power internet of things platform performs byte conversion on the communication byte stream after receiving the communication byte stream to obtain the communication object, and obtains the power data and the corresponding object function from the communication object.
In one embodiment, as shown in FIG. 8, the collection device may package the power data for each data type as a communication object group. The acquisition equipment can package the communication object group into a protocol message through the basic class function and the byte conversion function, and sends the protocol message to the power internet of things platform through the protocol by utilizing the pipeline. After the power Internet of things platform receives the protocol message, the protocol message is converted into a communication object group through a basic class function and a byte conversion function. Furthermore, the power internet of things platform can acquire power data from the communication object group and store the power data into the database. The power internet of things platform can acquire power data from the database to perform corresponding power business processing.
It should be understood that although the various steps of fig. 2 and 5 are shown sequentially in order, these steps are not necessarily performed sequentially in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 5 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, there is provided a power data processing apparatus 900 including: an acquisition module 901, a selection module 902, a determination module 903, a construction module 904, a conversion module 905, and a transmission module 906, wherein:
the collecting module 901 is configured to collect power data.
A selecting module 902, configured to select a target data object model from more than one preset data object models according to a data type of the power data.
A determining module 903, configured to determine an object function corresponding to the power data.
And a building module 904, configured to build the power data and the object function as a communication object according to the target data object model.
The conversion module 905 is configured to convert the communication object into communication object frame data in a target frame format corresponding to the target data object model.
The sending module 906 is configured to send the communication object frame data to the power internet of things platform.
In one embodiment, the acquisition module 901 is further configured to obtain sample power data from a power internet of things platform; performing basic service abstraction processing on the sample power data to obtain a basic service class; based on the basic service class, performing service feature classification processing on the sample electric power data according to the data type of the sample electric power data to obtain more than one type of sub-service classes; and combining more than one type of sub-service classes with the basic service class respectively to obtain more than one preset data object model corresponding to the data type of the sample power data.
In one embodiment, the collecting module 901 is further configured to determine, for each type of sub-service class, a data attribute of at least one of the sub-service classes; determining attribute length and attribute characteristics of each data attribute of the sub-service class; and determining a coding mode corresponding to each data attribute according to the attribute length and the attribute characteristics of each data attribute of the sub-service class.
In one embodiment, the build module 904 is further configured to determine a first parameter and a second parameter from the power data according to the target data object model; determining a first conversion result according to the first parameter and a basic class function corresponding to the basic service class, and determining a second conversion result according to the second parameter and a byte conversion function corresponding to the sub service class; and constructing the power data and the object function as a communication object according to the first conversion result and the second conversion result.
The electric power data processing device collects electric power data. And selecting a target data object model from more than one preset data object model according to the data type of the power data. An objective function corresponding to the power data is determined. And constructing the power data and the object function as a communication object according to the target data object model. And converting the communication object into communication object frame data which conforms to the target frame format corresponding to the target data object model. And sending the data of the communication object frame to the power Internet of things platform. Therefore, by presetting the preset data object models respectively corresponding to the electric power data of various data types, when the data types of the electric power data and the corresponding operation methods frequently change along with the application scene, the corresponding data object models are selected from the plurality of preset data object models to package the electric power data according to the data types of the electric power data, normal data communication between the electric power internet of things platform and each acquisition device is guaranteed, and the electric power data acquisition efficiency is improved.
In one embodiment, as shown in fig. 10, there is provided a power data processing apparatus 1000 including: a receiving module 1001, a first selecting module 1002, a first converting module 1003 and a first determining module 1004, wherein:
a receiving module 1001, configured to receive communication object frame data sent by the acquisition device.
The first selection module 1002 is configured to select a target data object model from more than one preset data object models according to an object type determined by data of a communication object frame.
A first conversion module 1003, configured to convert the data of the communication object frame into the communication object according to the target frame format corresponding to the target data object model.
A first determining module 1004, configured to determine, according to a communication object, power data and an object function corresponding to the power data; and the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
In one embodiment, the first conversion module 1003 is further configured to determine an object type according to a type field in a target frame format corresponding to the target data object model; determining the length of an object according to a first length field in a target frame format corresponding to a target data object model; determining object attributes according to attribute fields in a target frame format corresponding to a target data object model; determining attribute length according to a second length field in a target frame format corresponding to the target data object model; determining attribute content according to a content field in a target frame format corresponding to the target data object model; determining an object function according to a function field in a target frame format corresponding to a target data object model; and converting the communication object frame data into the communication object according to the object type, the object length, the object attribute, the attribute length, the attribute content and the object function.
In one embodiment, the first determining module 1004 is further configured to determine a first conversion result and a second conversion result according to the communication object; determining a first parameter according to the first conversion result and a basic class function corresponding to the basic service class of the target data object model; determining a second parameter according to the second parameter and a byte conversion function corresponding to the sub-service class of the target data object model; and determining the power data and the object function corresponding to the power data according to the first parameter and the second parameter.
The power data processing device selects the target data object model from more than one preset data object model by receiving the communication object frame data sent by the acquisition equipment and according to the object type determined by the communication object frame data. And converting the data of the communication object frame into the communication object according to the target frame format corresponding to the target data object model. And determining the power data and an object function corresponding to the power data according to the communication object. The power Internet of things platform carries out corresponding power business processing based on the power data and the object function. In this way, by presetting the preset data object models respectively corresponding to the electric power data of various data types, when the data types of the electric power data and the corresponding operation methods frequently change along with the application scene, the corresponding data object models are selected from the plurality of preset data object models according to the data types of the electric power data, the electric power data and the corresponding object functions are extracted from the received communication object frame data, normal data communication between the electric power internet of things platform and each acquisition device is ensured, and therefore the electric power data acquisition efficiency is improved.
For specific limitations of the power data processing apparatus, reference may be made to the above limitations of the power data processing method, which are not described herein again. The various modules in the above-mentioned power data processing device may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the acquisition device 102 of fig. 1, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a power data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, and the computer device may be a server running the power internet of things platform 104 in fig. 1, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the power data processing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a power data processing method.
Those skilled in the art will appreciate that the configurations shown in fig. 11 and 12 are merely block diagrams of portions of configurations related to aspects of the present application, and do not constitute limitations on the computing devices to which aspects of the present application may be applied, as particular computing devices may include more or less components than shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described power data processing method. Here, the steps of the power data processing method may be steps in the power data processing methods of the above-described respective embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the above-described power data processing method. Here, the steps of the power data processing method may be steps in the power data processing methods of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of processing power data, the method comprising:
collecting power data;
selecting a target data object model from more than one preset data object model according to the data type of the power data;
determining an objective function corresponding to the power data;
constructing the power data and the object function as a communication object according to the target data object model;
converting the communication object into communication object frame data in a target frame format corresponding to the target data object model;
and sending the communication object frame data to the power Internet of things platform.
2. The method according to claim 1, wherein the predetermined data object model is obtained by a predetermined data object model generating step, and the predetermined data object model generating step includes:
obtaining sample power data from the power internet of things platform;
performing basic service abstraction processing on the sample power data to obtain a basic service class;
based on the basic service class, performing service feature classification processing on the sample power data according to the data type of the sample power data to obtain more than one type of sub-service classes;
and combining the sub-service classes of more than one type with the basic service class respectively to obtain more than one preset data object model corresponding to the data type of the sample power data.
3. The method of claim 2, further comprising:
for each type of sub-service class, determining at least one data attribute of the sub-service class;
determining attribute length and attribute characteristics of each data attribute of the sub-service class;
and determining a coding mode corresponding to each data attribute according to the attribute length and the attribute characteristics of each data attribute of the sub-service class.
4. The method of claim 3, wherein said building the power data and the object function as a communication object according to the target data object model comprises:
determining a first parameter and a second parameter from the power data according to the target data object model;
determining a first conversion result according to the first parameter and a basic class function corresponding to the basic service class, and determining a second conversion result according to the second parameter and a byte conversion function corresponding to the sub-service class;
and constructing the power data and the object function as a communication object according to the first conversion result and the second conversion result.
5. A method of processing power data, the method comprising:
receiving communication object frame data sent by acquisition equipment;
selecting a target data object model from more than one preset data object model according to the object type determined by the communication object frame data;
converting the communication object frame data into a communication object according to a target frame format corresponding to the target data object model;
according to the communication object, determining power data and an object function corresponding to the power data; the power data and the object function are used for indicating the power Internet of things platform to perform corresponding power business processing based on the power data and the object function.
6. The method according to claim 5, wherein the converting the communication object frame data into the communication object according to the target frame format corresponding to the target data object model comprises:
determining the object type according to the type field in the target frame format corresponding to the target data object model; determining the length of an object according to a first length field in a target frame format corresponding to the target data object model; determining object attributes according to attribute fields in a target frame format corresponding to the target data object model; determining attribute length according to a second length field in a target frame format corresponding to the target data object model; determining attribute content according to a content field in a target frame format corresponding to the target data object model; determining an object function according to a function field in a target frame format corresponding to the target data object model;
and converting the communication object frame data into the communication object according to the object type, the object length, the object attribute, the attribute length, the attribute content and the object function.
7. The method according to any one of claims 5 to 6, wherein the determining of the power data and the object function corresponding to the power data from the communication object comprises:
determining a first conversion result and a second conversion result according to the communication object;
determining a first parameter according to the first conversion result and a basic class function corresponding to a basic service class of the target data object model;
determining a second parameter according to the second parameter and a byte conversion function corresponding to the sub-service class of the target data object model;
and determining power data and an object function corresponding to the power data according to the first parameter and the second parameter.
8. An electrical data processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring power data;
the selection module is used for selecting a target data object model from more than one preset data object model according to the data type of the power data;
a determination module to determine an objective function corresponding to the power data;
the building module is used for building the power data and the object function into a communication object according to the target data object model;
the conversion module is used for converting the communication object into communication object frame data which accords with a target frame format corresponding to the target data object model;
and the sending module is used for sending the communication object frame data to the power Internet of things platform.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011032276.XA 2020-09-27 2020-09-27 Power data processing method, device, computer equipment and storage medium Active CN112256774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011032276.XA CN112256774B (en) 2020-09-27 2020-09-27 Power data processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011032276.XA CN112256774B (en) 2020-09-27 2020-09-27 Power data processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112256774A true CN112256774A (en) 2021-01-22
CN112256774B CN112256774B (en) 2024-04-26

Family

ID=74233165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011032276.XA Active CN112256774B (en) 2020-09-27 2020-09-27 Power data processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112256774B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111854A (en) * 2021-04-30 2021-07-13 平安国际融资租赁有限公司 Current signal extraction method, current signal extraction device, computer equipment and storage medium
CN114385287A (en) * 2021-12-13 2022-04-22 武汉慧联无限科技有限公司 Display content determining method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040046259A (en) * 2002-11-26 2004-06-05 한국전자통신연구원 The method for generating memory resident object-relational schema/query by using UML
WO2009055961A1 (en) * 2007-10-30 2009-05-07 Mingzhong Li Object indexing data, object storage warehouse, object access method and object access system in multidimensional framework
CN103329479A (en) * 2011-01-28 2013-09-25 索尼公司 Information processing apparatus, information processing method, and program
JP2017037459A (en) * 2015-08-10 2017-02-16 住友電気工業株式会社 Power information management device, power information management method and power information management program
CN110826896A (en) * 2019-10-31 2020-02-21 北京东软望海科技有限公司 Data processing control method and device, computer equipment and storage medium
CN110933146A (en) * 2019-11-14 2020-03-27 厦门网宿有限公司 Data conversion method and device and server
CN111416866A (en) * 2020-03-25 2020-07-14 上海电力大学 Data communication method for power internet of things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040046259A (en) * 2002-11-26 2004-06-05 한국전자통신연구원 The method for generating memory resident object-relational schema/query by using UML
WO2009055961A1 (en) * 2007-10-30 2009-05-07 Mingzhong Li Object indexing data, object storage warehouse, object access method and object access system in multidimensional framework
CN103329479A (en) * 2011-01-28 2013-09-25 索尼公司 Information processing apparatus, information processing method, and program
JP2017037459A (en) * 2015-08-10 2017-02-16 住友電気工業株式会社 Power information management device, power information management method and power information management program
CN110826896A (en) * 2019-10-31 2020-02-21 北京东软望海科技有限公司 Data processing control method and device, computer equipment and storage medium
CN110933146A (en) * 2019-11-14 2020-03-27 厦门网宿有限公司 Data conversion method and device and server
CN111416866A (en) * 2020-03-25 2020-07-14 上海电力大学 Data communication method for power internet of things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
白丽锐;杨友朋;王春新;: "数据标准化在电力物联网综合业务平台的应用", 物联网技术, no. 08 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111854A (en) * 2021-04-30 2021-07-13 平安国际融资租赁有限公司 Current signal extraction method, current signal extraction device, computer equipment and storage medium
CN114385287A (en) * 2021-12-13 2022-04-22 武汉慧联无限科技有限公司 Display content determining method and device, electronic equipment and storage medium
CN114385287B (en) * 2021-12-13 2024-01-05 武汉慧联无限科技有限公司 Presentation content determining method, apparatus, electronic device and storage medium

Also Published As

Publication number Publication date
CN112256774B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
EP3043530B1 (en) Method and apparatus for implementing subscription notification
CN112256774B (en) Power data processing method, device, computer equipment and storage medium
CN109951514B (en) File processing method and system based on cloud storage and computer equipment
CN111158884A (en) Data analysis method and device, electronic equipment and storage medium
CN115004672A (en) Information pushing method and device, server and storage medium
CN104412566A (en) Methodes and nodes for handling an address of a resource
CN110740481A (en) Data processing method, apparatus and computer storage medium based on quality of service
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN109218131B (en) Network monitoring method and device, computer equipment and storage medium
CN110808950A (en) Message processing method and device, computer equipment and storage medium
CN111552696A (en) Data processing method and device based on big data, computer equipment and medium
CN109525550B (en) Data message processing method, device and system
CN111294261B (en) Signal processing method, signal processing device, computer equipment and storage medium
CN107688878B (en) Air Quality Forecast method and device
CN113742101B (en) Data intercommunication method, device, equipment and readable storage medium
CN113242254B (en) Communication message processing method, device, terminal equipment and storage medium
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
CN110557374B (en) Power data acquisition method and device, computer equipment and storage medium
CN113660286A (en) Communication protocol fusion method combined with Kalman filtering data fusion and related equipment
KR20210128096A (en) Apparatus and method for interworking among internet of things platforms
CN112416619A (en) Interface configuration method, equipment, terminal and storage medium
WO2017118192A1 (en) Method and device for determining data transmission interval
CN111061795B (en) Data processing method and device, intelligent terminal and storage medium
CN117478605B (en) Load balancing method, concentrator, ammeter and storage medium
CN113055419B (en) Information sending method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant