CN114615342A - Service interaction method and device suitable for electricity consumption information acquisition system - Google Patents

Service interaction method and device suitable for electricity consumption information acquisition system Download PDF

Info

Publication number
CN114615342A
CN114615342A CN202210111620.7A CN202210111620A CN114615342A CN 114615342 A CN114615342 A CN 114615342A CN 202210111620 A CN202210111620 A CN 202210111620A CN 114615342 A CN114615342 A CN 114615342A
Authority
CN
China
Prior art keywords
service
interaction
service interaction
information
attribute
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
CN202210111620.7A
Other languages
Chinese (zh)
Other versions
CN114615342B (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.)
Jiangsu Fangtian Power Technology Co Ltd
Original Assignee
Jiangsu Fangtian Power 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 Jiangsu Fangtian Power Technology Co Ltd filed Critical Jiangsu Fangtian Power Technology Co Ltd
Priority to CN202210111620.7A priority Critical patent/CN114615342B/en
Publication of CN114615342A publication Critical patent/CN114615342A/en
Application granted granted Critical
Publication of CN114615342B publication Critical patent/CN114615342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention provides a service interaction method and a service interaction device suitable for a power consumption information acquisition system, which are used for determining communication equipment and a service object of an interaction opposite side; acquiring the attribute of communication equipment of an interactive opposite side, the attribute of a service object and the content of a service interactive item; generating service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction opposite side, the attribute of the service object and the content of the service interaction item; and according to the service interaction information, performing service interaction with communication equipment of an interaction counterpart through a service interaction service interface. The invention provides a universal service interaction information model suitable for a service master station and a communication management layer as well as modules in the communication management layer, and solves the problems that the content of the traditional service interaction information model is redundant and the new service requirement cannot be met.

Description

Service interaction method and device suitable for electricity consumption information acquisition system
Technical Field
The invention belongs to the technical field of information system design and development, and relates to a service interaction information model definition method suitable for a power utilization information acquisition system.
Background
Along with the construction of a client-side energy internet, the market reformation of electric power and the continuous development of new services, the types of equipment such as field terminals, electric meters and the like are more and more, the types of equipment communication protocols are more and more, and the traditional service interaction information model cannot meet the requirements of new services; the master station acquires terminal data in an active acquisition mode, hundred million service operation requests are generated every day, and a traditional service interaction information model contains a large amount of archive information belonging to communication and coding and decoding, so that service interaction instructions are long, and network transmission and storage are not facilitated.
Disclosure of Invention
Aiming at billion-level business operation requests of electricity utilization information acquisition system in the existing data interaction method
The invention provides a service interaction method suitable for a power consumption information acquisition system, which can meet the current service interaction requirement and adopts a universal format which is easy to understand and expand.
The invention adopts the following technical scheme:
in one aspect, the invention provides a service interaction method applicable to a power consumption information acquisition system, comprising the following steps:
determining interactive opposite communication equipment and a service object;
acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
generating request service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the content of the service interaction item, wherein the request service interaction information comprises a globally unique instruction identifier;
and sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
Further, sending the request service interaction information to the communication device of the interaction counterpart through the service interaction service interface, including: and coding the request service interaction information into an interaction request message which can be identified by the communication equipment of the interaction counterpart, and sending the interaction request message to the communication equipment of the interaction counterpart through a service interaction service interface.
In a second aspect, the present invention provides a service interaction device suitable for a power consumption information acquisition system, including:
the system comprises a parameter acquisition unit, a request interaction information generation module and an information interaction unit;
the parameter acquisition unit is used for determining the communication equipment of the interactive counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
the request interactive information generating module is used for generating request service interactive information according to the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the content of the service interactive item and a service interactive information model which is constructed in advance, wherein the request service interactive information comprises a globally unique instruction identifier;
and the information interaction unit is used for sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
Further, the service interaction information model comprises: the interactive instruction comprises a plurality of service objects, and one service object comprises a plurality of service interactive items; the service object is used for designating equipment corresponding to the service operation; the service interaction item is used for specifying data, parameters or control instructions for performing service interaction with the service object, and is the minimum data unit of the service interaction information model.
Still further, the interactive information generating module comprises a service interactive item identification code generating module, the service interactive item identification code generating module is used for generating an encoded character string of the service interactive item identification, and identification bits in the encoded character string comprise an object identification, a function selection, a function number, an index sequence number, a data category and a time interval; the object identifier is used for identifying a specific business object; the function selects an attribute or a method for operating the business object; the function number is used for representing the number of the attribute or the method of the operation business object; the index sequence number is used for representing the serial number of the attribute content or the method content of the operation service object; the data category is used for identifying the category of the data; the time interval is used for time interval representation of the acknowledgement data.
In a third aspect, the present invention provides a service interaction method applicable to a power consumption information acquisition system, including: receiving request service interaction information through a service interaction service interface, analyzing the request service interaction information according to a service interaction information model which is constructed in advance, and obtaining a globally unique instruction identifier, a service object attribute, service interaction item content and a home terminal communication equipment attribute of an interaction instruction sent by a service interaction requester;
checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a pre-constructed service interaction information model, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
In a fourth aspect, the present invention further provides a service interaction device suitable for a power consumption information acquisition system, including: the system comprises an information interaction unit, an interaction information analysis module, a verification module and a returned interaction information generation module;
the information interaction unit is used for receiving request service interaction information sent by the communication equipment of the interaction counterpart through the service interaction service interface and sending return service interaction information to the communication equipment of the interaction counterpart;
the interactive information analysis module is used for analyzing the request service interactive information according to a service interactive information model which is constructed in advance to obtain an instruction identifier, the attribute of a service object, the content of a service interactive item and the attribute of local-end communication equipment;
the checking module is used for checking according to the acquired attribute of the local terminal communication equipment;
and the returned interactive information generating module is used for generating returned service interactive information corresponding to the request service interactive information according to the obtained instruction identification, the attribute of the service object and the service interactive item content and a pre-constructed service interactive information model if the verification is passed.
On the basis of the above technical solution, optionally, the pre-constructed service interaction information model includes an interaction instruction, the interaction instruction includes a plurality of service objects, and one service object includes a plurality of service interaction items; the service object is used for designating equipment corresponding to the service operation; the service interaction item is used for specifying data, parameters or control instructions for service interaction with the service object, and is the minimum data unit of the service interaction information model.
Further, the interaction instruction further comprises instruction parameters, wherein the instruction parameters comprise an instruction identification, an asset number of the communication equipment and an equipment type of the communication equipment;
the instruction identification is used for identifying the instruction and is globally unique;
the asset number of the communication equipment is used for specifying the unique identifier of the communication equipment of the opposite service interaction party;
the equipment type of the communication equipment is used for appointing the equipment type of the communication equipment of the opposite service interaction party; the asset number of the communication device and the device type of the communication device belong to attributes of the communication device.
Still further, the service interaction item comprises a service interaction item attribute and a service interaction item identifier, the service interaction item identifier is a code character string, and an identifier bit in the code character string comprises an object identifier, a function selection, a function number, an index sequence number, a data category and a time interval; the object identifier is used for identifying a specific business object; the function selects an attribute or a method for operating the business object; the function number is used for representing the number of the attribute or the method of the operation business object; the index sequence number is used for representing the serial number of the attribute content or the method content of the operation service object; the data category is used for identifying the category of the data; the time interval is used for the time interval of the acknowledgement data.
Further, the service interaction item attribute comprises a service interaction item name, data return time, a success or failure flag, service interaction data, data storage time and data acquisition time.
Further, the attributes of the business object include the equipment asset number of the business object, the type of the business object, the data source of the business object, and the business operation type of the business object.
In a final aspect, the present invention further provides a service interaction method applicable to the electricity consumption information acquisition system, including:
the service interaction requester determines the communication equipment of the interaction counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content; generating request service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the content of the service interaction item, wherein the request service interaction information comprises a globally unique instruction identifier; sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface;
a service interaction returning party receives request service interaction information through a service interaction service interface, analyzes the request service interaction information according to a service interaction information model which is constructed in advance, and obtains a globally unique instruction identifier of an interaction instruction, the attribute of a service object, the content of a service interaction item and the attribute of local-end communication equipment; checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a pre-constructed service interaction information model, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
The invention has the following beneficial technical effects: the method for service interaction provided by the invention generates service interaction information according to a pre-constructed service interaction information model based on the attribute of the communication equipment of the opposite side of service interaction, the attribute of the service interaction object and the content of the service interaction item, contains all the current service interaction requirements, adopts a universal format which is easy to understand and expand, and is beneficial to network transmission and storage. The invention can solve the problem of billion-level business operation requests of the electricity utilization information acquisition system every day, and interactive business data are refined and easy to store.
Drawings
FIG. 1 is a business interaction information model format defined in an embodiment of the present invention;
fig. 2 is an example of the id encoding format of the daily freezing forward active power (total and individual rates) service interaction item in the embodiment of the present invention;
FIG. 3 is an example of a JSON format of a data interaction information model in an embodiment of the present invention;
FIG. 4 is a flow chart of a service interaction method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a service interaction method according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the specific service interaction information model definition of the present invention. The embodiments described herein are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art without inventive step, are within the scope of protection of the present invention.
Example 1: the service interaction method applicable to the electricity consumption information acquisition system, as shown in fig. 4, includes: determining communication equipment of an interactive opposite side and a business object;
acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
generating request service interaction information according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the service interaction item content and a service interaction information model which is constructed in advance, wherein the request service interaction information comprises a globally unique instruction identification;
and sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
Optionally, in practical applications, communication devices of opposite service interaction parties may be different, and messages that can be read are different, and the communication layer needs to convert interaction information into corresponding messages.
Therefore, the method for sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface comprises the following steps: and coding the request service interaction information into an interaction request message which can be identified by the communication equipment of the interaction counterpart, and sending the interaction request message to the communication equipment of the interaction counterpart through a service interaction service interface.
The service interaction method applicable to the electricity consumption information acquisition system provided by the embodiment is applied to a service interaction requester.
In the method, request service interaction information is generated through a service interaction information model, contains all current service interaction requirements, and adopts a universal format which is easy to understand and expand; meanwhile, according to the message formats of different communication devices, a service request message which can be identified by the service interaction counterpart is generated, so that the general performance of the interaction method is improved.
Example 2: based on the same inventive concept as above, corresponding to the service interaction method applicable to the electricity consumption information acquisition system provided in embodiment 1, the present embodiment provides a service interaction apparatus applicable to the electricity consumption information acquisition system, including:
the system comprises a parameter acquisition unit, a request interaction information generation module and an information interaction unit;
the parameter acquisition unit is used for determining the communication equipment of the interactive counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
the request interactive information generating module is used for generating request service interactive information according to the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the content of the service interactive item and a service interactive information model which is constructed in advance, wherein the request service interactive information comprises a globally unique instruction identifier;
and the information interaction unit is used for sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
Further, in a specific embodiment, the apparatus further includes a message format conversion module, where the message format conversion module is configured to encode the request service interaction information into an interaction request message that can be identified by the communication device of the interaction counterpart, so as to send the interaction request message to the communication device of the interaction counterpart through the service interaction service interface.
The service interaction device applicable to the power consumption information acquisition system provided by the embodiment can be realized through a computer program instruction, and is built in a service interaction requester, such as a master station in practical application.
Example 3: based on the same inventive concept, the embodiment provides a service interaction method applicable to a power consumption information acquisition system, which includes: receiving request service interaction information through a service interaction service interface, analyzing the request service interaction information according to a service interaction information model which is constructed in advance, and obtaining a globally unique instruction identifier of an interaction instruction, attributes of a service object, service interaction item contents and attributes of local-end communication equipment;
checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a pre-constructed service interaction information model, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
Further, the received request service interaction information is in a message form, and the message needs to be analyzed to obtain the request service interaction information.
The service interaction method applicable to the electricity consumption information acquisition system provided by the embodiment is applied to a service interaction returning party. And after the returned service interaction information is generated, converting the returned service interaction information into a message form which can be identified by a service interaction requester, and returning the message to the communication equipment of the interaction requester through a service interaction service interface.
The service interaction information model is adopted to generate the request service interaction information which contains all the service interaction requirements at present, and a universal format which is easy to understand and expand is adopted, so that the transmission speed of the interaction information is higher, and the storage is convenient; and the returning party checks according to the attribute of the local terminal communication equipment obtained by analysis, and only when the received request service interaction information is confirmed to be sent to the local terminal, the returning party performs information interaction with the requesting party, so that the safety of service interaction is improved.
Example 4: based on the same inventive concept as above, corresponding to the service interaction method applicable to the electricity consumption information acquisition system provided in embodiment 3, the present embodiment provides a service interaction apparatus applicable to the electricity consumption information acquisition system, including:
the system comprises an information interaction unit, an interaction information analysis module, a verification module and a returned interaction information generation module;
the information interaction unit is used for receiving request service interaction information sent by the communication equipment of the interaction counterpart through the service interaction service interface and sending return service interaction information to the communication equipment of the interaction counterpart;
the interactive information analysis module is used for analyzing the request service interactive information according to a service interactive information model which is constructed in advance to obtain an instruction identifier, the attribute of a service object, the content of a service interactive item and the attribute of local-end communication equipment;
the checking module is used for checking according to the acquired attribute of the local terminal communication equipment;
and the returned interactive information generating module is used for generating returned service interactive information corresponding to the request service interactive information according to the obtained instruction identification, the attribute of the service object and the service interactive item content and a pre-constructed service interactive information model if the verification is passed.
Example 5: based on the same inventive concept, the present embodiment provides a service interaction method applicable to a power consumption information acquisition system, as shown in fig. 5, including: the service interaction requester determines the communication equipment of the interaction counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content; generating request service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the content of the service interaction item, wherein the request service interaction information comprises a globally unique instruction identifier; sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface;
a service interaction returning party receives request service interaction information through a service interaction service interface, analyzes the request service interaction information according to a service interaction information model which is constructed in advance, and obtains a globally unique instruction identifier of an interaction instruction, the attribute of a service object, the content of a service interaction item and the attribute of local-end communication equipment; checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a pre-constructed service interaction information model, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
The service interaction method applicable to the electricity consumption information acquisition system provided by the embodiment can be applied to a service interaction system applicable to the electricity consumption information acquisition system, and the system comprises an interaction requesting party and an interaction returning party. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the service interaction system, the interaction requester and the interaction returner may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In a specific embodiment, the service interaction service interface is implemented by using the prior art. The business interaction service stores the task instruction (automatic acquisition instruction, data complementary acquisition instruction, business operation instruction and the like) to the instruction cache through the business interaction service interface. Optionally, the communication protocol of the interface adopts an HTTP protocol, and the request method of the interface adopts POST, and sets a request address and a trigger condition. The triggering condition is that all instructions walk the interface to store the instruction content in the instruction cache.
In embodiments 1 to 5, the service interaction information model (as shown in fig. 1) that is constructed in advance includes an interaction instruction, a service object, and a service interaction item. The interactive content among the service master station, the communication management layer and each module in the communication management layer is called an interactive instruction, and the interactive instruction specifies the type of the service operation. One interactive instruction comprises a plurality of service objects, and the service objects designate equipment corresponding to the service operation. A business object comprises a plurality of business interaction items, and the business interaction items specify the specific content of the current object operation.
The interactive instruction is a basic unit for data information interaction among all functional modules of the electricity utilization information acquisition system. The interactive instruction comprises an instruction parameter and a service object list, wherein the instruction parameter comprises information such as globally unique instruction identification, asset number of the communication equipment, equipment type of the communication equipment, instruction execution result, execution failure error code and the like. The globally unique instruction identifiers in the interaction information sent by the service interaction requesting party and the service interaction returning party are the same and are used for corresponding the request and the return.
The business object is the mapping of the field measured equipment in the system, and the business object can be a concentrator terminal, an electric meter, totalizing group data and the like. The service object is composed of an attribute and a service interaction item list, wherein the attribute of the service object comprises information such as the equipment asset number of the service object, the type of the service object (a concentrator terminal, an electric meter or a totaling group), the data source of the service object (such as the concentrator terminal, the electric meter, the totaling group or a storage device) and the service operation type of the service object. The total group data refers to a numerical value obtained by calculating a certain homogeneous electric quantity value of each relevant measuring point according to a set addition or subtraction operation relation. A service request or a service return can be distinguished by the service operation type.
The service interaction item is the minimum data unit of the information interaction model, and one service interaction item is specific data, parameters or control instructions. The service interaction item is composed of various attribute parameters and comprises a service interaction item identifier, data return time, a data return success/failure mark and unique contents of each service interaction item. The service interaction item is identified as an encoding string.
The service interaction information model adopted in the service interaction method provided by the invention is a carrier for applying the service of the master station of the electricity consumption information acquisition system to a specific service operation request and request result data of a communication management module, and is mainly divided into three layers as shown in fig. 1 and fig. 2: the outmost layer describes the specific business interaction instruction information, the middle layer describes the business object operated by the instruction, and the innermost layer describes the specific business interaction item for operating the business object. And a coding rule is provided for each specific service interaction item, and the coding rule is easy to read, expandable, strong in practicability and easy to transmit and store. The system is widely applied to the power utilization information acquisition system in Jiangsu.
The interactive instruction is a basic unit for data information interaction among all functional modules of the electricity utilization information acquisition system. The interactive instruction consists of instruction parameters and a service object list, and the available instruction parameters are defined as shown in the following table 1:
TABLE 1 instruction parameters in Interactive Instructions
Figure DEST_PATH_IMAGE001
The business object is the mapping of the field measured equipment in the system, and the business object can be a concentrator terminal, an electric meter, totalizing group data and the like. The service object is composed of attributes and a service interaction item list, and the available attribute parameters are defined as shown in the following table 2:
table 2 business object attribute parameters
Figure 790489DEST_PATH_IMAGE002
The service interaction item is the minimum data unit of the information interaction model, and one service interaction item is specific data, parameters or control instructions. The service interaction item is composed of various attribute parameters, and the service interaction item identifier is an essential attribute of the service interaction item and represents a specific definition of the service interaction item. Taking the service interaction item of "daily freezing positive active electric energy (total and each rate)" as an example, the attribute definition is shown in table 3 below:
table 3 service interaction item parameter definition in embodiment
Figure DEST_PATH_IMAGE003
In this embodiment, the service interaction item identifier in the service interaction item is represented by a 14-bit character string (as shown in fig. 2), and a segmentation and classification coding manner is adopted. The encoding format is composed of an Object Identification (OI), a Function Selection (FS), a Function Number (FN), an Index Number (IN), a Data Class (DC), and a Time Interval (TI).
The service interaction item identification code is represented by a character string in a hexadecimal form.
The length of the Object Identification (OI) is 4 bits, and the identification codes are provided for all objects of the system in a classified coding mode to determine specific objects. The system comprises an electric energy class object, a maximum demand class object, a variable class object, an event class object, a parameter class object, a collection monitoring class object, a collection class object, a control class object, a file transmission class object, an ESAM interface class object, an input/output equipment class object and a display class object. For example, 0010 represents forward active power, and the detailed data object definition is in "object-oriented power utilization information data exchange protocol". All undefined object id codes are reserved.
The Function Selection (FS) length is 1 bit to select whether to operate the attribute or the method of the business object, 1 indicates to operate on the attribute, and 2 indicates to operate on the method.
The Function Number (FN) is 2 bits long and is used to identify the number of attributes or methods, for example, the function number 02 of the electric energy interface class (OI = 0010) represents the total and rate electric energy array. FS and FN design refers to the design idea of object-oriented electricity information data exchange protocol OMD and OAD.
The Index Number (IN) is 2 bits long and is used to identify the number of attributes or method contents, such as the total electric energy interface class and the total rate electric energy array (OI =0010, FS =1, FN = 2), the index number 1 represents the total rate.
The data type (DC) is 1 bit long to confirm the type of data, 0 denotes an instantaneous/current value, 2 denotes a load log, 4 denotes a day freeze data, 6 denotes a month freeze data, and 8 denotes an appointment data.
The Time Interval (TI) is 2 bits long, and is used to confirm that the time interval of the acquired data represents the collective data such as a curve, etc., and is used in combination with the data type (DC), such as daily load record data (DC = 2), and TI =5 represents the data with the time interval of 5 minutes.
In order to increase the readability of the service interaction item identifier, the code string in this embodiment further includes two segment characters "-".
The service interaction item identification is determined through the coding character string, the coding is simple and easy to read and send, the interaction efficiency is improved, and the storage is convenient; the service interaction item identification content has wide coverage range and can meet various interaction requirements.
In a specific embodiment, the JSON-format service interaction information generated according to the service interaction information model constructed in advance is shown in fig. 3.
The invention provides a method suitable for universal service interaction information between a service master station and a communication management layer and between modules in the communication management layer, which generates data interaction information based on a data interaction information model which is easy to understand and expand, and solves the problems that the content of the traditional service interaction information model is redundant and new service requirements cannot be met.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow in the flow diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. The service interaction method suitable for the electricity consumption information acquisition system is characterized by comprising the following steps:
determining interactive opposite communication equipment and a service object;
acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
generating request service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the content of the service interaction item, wherein the request service interaction information comprises a globally unique instruction identifier;
and sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
2. The service interaction method applicable to the power consumption information acquisition system according to claim 1, wherein sending the request service interaction information to the communication device of the interaction counterpart through the service interaction service interface comprises: and coding the request service interaction information into an interaction request message which can be identified by the communication equipment of the interaction counterpart, and sending the interaction request message to the communication equipment of the interaction counterpart through a service interaction service interface.
3. Service interaction device suitable for power consumption information acquisition system, its characterized in that includes:
the system comprises a parameter acquisition unit, a request interaction information generation module and an information interaction unit;
the parameter acquisition unit is used for determining the communication equipment of the interactive counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content;
the request interactive information generating module is used for generating request service interactive information according to the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the content of the service interactive item and a service interactive information model which is constructed in advance, wherein the request service interactive information comprises a globally unique instruction identifier;
and the information interaction unit is used for sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface.
4. The service data device for a power consumption information collection system according to claim 3,
the service interaction information model comprises: the method comprises the steps of interacting instructions, service objects and service interaction items;
the interaction instruction comprises a plurality of service objects, and one service object comprises a plurality of service interaction items;
the business object is used for designating equipment corresponding to the business operation;
the service interaction item is used for specifying specific data, parameters or control instructions for performing service interaction with the service object, and is the minimum data unit of the service interaction information model.
5. The service data device for a power consumption information collection system according to claim 4,
the interactive information generating module comprises a service interactive item identification code generating module, and the service interactive item identification code generating module is used for generating a code character string of a service interactive item identification;
the identification bits in the coded character string comprise object identification, function selection, function numbers, index serial numbers, data categories and time intervals;
the object identifier is used for identifying a specific business object;
the function selection is used for selecting the attribute or the method of the operation business object;
the function number is used for representing the attribute or method number of the operation service object;
the index sequence number is used for representing the serial number of the attribute content or the method content of the operation service object;
the data category is used for identifying the category of the data;
the time interval is a time interval representation for the acknowledgment data.
6. The service interaction method suitable for the electricity consumption information acquisition system is characterized by comprising the following steps:
receiving request service interaction information through a service interaction service interface, analyzing the request service interaction information according to a service interaction information model which is constructed in advance, and obtaining an instruction identifier of an interaction instruction, attributes of a service object, service interaction item contents and attributes of local-end communication equipment, wherein the instruction identifier is globally unique;
checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a service interaction information model which is constructed in advance, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
7. Service interaction device suitable for power consumption information acquisition system, its characterized in that includes: the system comprises an information interaction unit, an interaction information analysis module, a verification module and a returned interaction information generation module;
the information interaction unit is used for receiving request service interaction information sent by the communication equipment of the interaction counterpart through the service interaction service interface and sending returned service interaction information to the communication equipment of the interaction counterpart;
the interactive information analysis module is used for analyzing the request service interactive information according to a service interactive information model which is constructed in advance to obtain an instruction identifier, the attribute of a service object, the content of a service interactive item and the attribute of local-end communication equipment, wherein the instruction identifier is globally unique;
the checking module is used for checking according to the acquired attribute of the local terminal communication equipment;
and the returned interactive information generating module is used for generating returned service interactive information corresponding to the request service interactive information according to the obtained instruction identification, the attribute of the service object and the service interactive item content and a pre-constructed service interactive information model if the verification is passed.
8. The service interaction method suitable for the electricity consumption information acquisition system according to any one of claims 1, 2 or 6, wherein the pre-constructed service interaction information model comprises an interaction instruction, the interaction instruction comprises a plurality of service objects, and one service object comprises a plurality of service interaction items; the service object is used for designating equipment corresponding to the service operation; the service interaction item is used for specifying specific data, parameters or control instructions for performing service interaction with the service object, and is the minimum data unit of the service interaction information model.
9. The service interaction method applicable to the electricity consumption information collection system according to claim 8, wherein the interaction command further includes command parameters,
the instruction parameters comprise instruction identification, asset number of the communication equipment and equipment type of the communication equipment;
the instruction identification is used for identifying an instruction;
the asset number of the communication equipment is used for specifying the unique identifier of the communication equipment of the opposite service interaction party;
the equipment type of the communication equipment is used for appointing the equipment type of the communication equipment of the opposite service interaction party;
the asset number of the communication device and the device type of the communication device belong to attributes of the communication device.
10. The service interaction method applicable to the electricity consumption information collection system according to claim 9,
the service interaction item comprises a service interaction item identifier and a service interaction item attribute, the service interaction item identifier is a coded character string, and an identification bit in the coded character string comprises an object identifier, a function selection, a function number, an index sequence number, a data category and a time interval;
the object identifier is used for identifying a specific business object;
the function selects an attribute or a method for operating the business object;
the function number is used for representing the number of the attribute or the method of the operation business object;
the index sequence number is used for representing the serial number of the attribute content or the method content of the operation service object;
the data category is used for identifying the category of the data;
the time interval is used for the time interval of the acknowledgement data.
11. The service interaction method applicable to the electricity consumption information collection system according to claim 10, wherein the service interaction item attribute includes a service interaction item name, a data return time, a success or failure flag, service interaction data, a data storage time, and a data acquisition time.
12. The service interaction method suitable for the electricity consumption information collection system according to any one of claims 1, 2 or 6, wherein the attributes of the service object include an equipment asset number of the service object, a type of the service object, a data source of the service object, and a service operation type of the service object.
13. The service interaction method suitable for the electricity consumption information acquisition system is characterized by comprising the following steps:
the service interaction requester determines the communication equipment of the interaction counterpart and the service object; acquiring the attribute of the communication equipment of the interactive opposite side, the attribute of the service object and the service interactive item content; generating request service interaction information according to a pre-constructed service interaction information model according to the attribute of the communication equipment of the interaction counterpart, the attribute of the service object and the content of the service interaction item, wherein the request service interaction information comprises a globally unique instruction identifier; sending the request service interaction information to the communication equipment of the interaction counterpart through the service interaction service interface;
the service interaction returning party receives the request service interaction information through the service interaction service interface, analyzes the request service interaction information according to a service interaction information model which is constructed in advance, and obtains the instruction identification, the attribute of the service object, the content of the service interaction item and the attribute of the local terminal communication equipment; checking according to the acquired attribute of the local communication equipment; if the verification is passed, according to the obtained instruction identification, the attribute of the service object and the service interaction item content, generating returned service interaction information corresponding to the request service interaction information according to a pre-constructed service interaction information model, and returning the returned service interaction information to the communication equipment of the interaction counterpart through a service interaction service interface.
CN202210111620.7A 2022-01-29 2022-01-29 Service interaction method and device suitable for electricity consumption information acquisition system Active CN114615342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111620.7A CN114615342B (en) 2022-01-29 2022-01-29 Service interaction method and device suitable for electricity consumption information acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111620.7A CN114615342B (en) 2022-01-29 2022-01-29 Service interaction method and device suitable for electricity consumption information acquisition system

Publications (2)

Publication Number Publication Date
CN114615342A true CN114615342A (en) 2022-06-10
CN114615342B CN114615342B (en) 2023-08-15

Family

ID=81859062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111620.7A Active CN114615342B (en) 2022-01-29 2022-01-29 Service interaction method and device suitable for electricity consumption information acquisition system

Country Status (1)

Country Link
CN (1) CN114615342B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070265868A1 (en) * 2006-04-28 2007-11-15 Sap Ag Systems and methods for providing an interaction between a status management service and an audit trail service
CN101383997A (en) * 2007-09-07 2009-03-11 华为技术有限公司 Interactive service data processing method, device and system
US20160019553A1 (en) * 2014-07-18 2016-01-21 Shanghai Chule (Cootek) Information Technology Co., Ltd. Information interaction in a smart service platform
CN107241314A (en) * 2017-05-19 2017-10-10 国网浙江省电力公司电力科学研究院 A kind of Multi-service information exchange method of power information acquisition system
WO2018086462A1 (en) * 2016-11-10 2018-05-17 阿里巴巴集团控股有限公司 Method and device for generating loading, push, and interaction information of service data
WO2019149019A1 (en) * 2018-01-30 2019-08-08 深圳壹账通智能科技有限公司 Data interaction method and apparatus, computer device, and storage medium
CN112615935A (en) * 2020-12-25 2021-04-06 武汉华中数控股份有限公司 Terminal equipment networking reference model and interaction method thereof
CN113391867A (en) * 2021-06-16 2021-09-14 杨永飞 Big data service processing method and service server based on digitization and visualization

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070265868A1 (en) * 2006-04-28 2007-11-15 Sap Ag Systems and methods for providing an interaction between a status management service and an audit trail service
CN101383997A (en) * 2007-09-07 2009-03-11 华为技术有限公司 Interactive service data processing method, device and system
US20160019553A1 (en) * 2014-07-18 2016-01-21 Shanghai Chule (Cootek) Information Technology Co., Ltd. Information interaction in a smart service platform
WO2018086462A1 (en) * 2016-11-10 2018-05-17 阿里巴巴集团控股有限公司 Method and device for generating loading, push, and interaction information of service data
CN108073605A (en) * 2016-11-10 2018-05-25 阿里巴巴集团控股有限公司 A kind of loading of business datum, push, the generation method of interactive information and device
CN107241314A (en) * 2017-05-19 2017-10-10 国网浙江省电力公司电力科学研究院 A kind of Multi-service information exchange method of power information acquisition system
WO2019149019A1 (en) * 2018-01-30 2019-08-08 深圳壹账通智能科技有限公司 Data interaction method and apparatus, computer device, and storage medium
CN112615935A (en) * 2020-12-25 2021-04-06 武汉华中数控股份有限公司 Terminal equipment networking reference model and interaction method thereof
CN113391867A (en) * 2021-06-16 2021-09-14 杨永飞 Big data service processing method and service server based on digitization and visualization

Also Published As

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

Similar Documents

Publication Publication Date Title
EP3764302A1 (en) Blockchain- and cloud power-based microgrid ecosystem
CN111260505B (en) Big data analysis method and device based on power Internet of things and computer equipment
CN115730749B (en) Power dispatching risk early warning method and device based on fusion power data
EA019680B1 (en) Service access method and system
WO2021004197A1 (en) Method and device for checking electric energy data, and system
CN110580670A (en) Smart city management system based on Internet of things
CN108400589B (en) Cloud power natural gas ecosystem based on graphene
CN111563075B (en) Service verification system, method and equipment and storage medium
CN114449018A (en) Automatic log file uploading method and system for power acquisition terminal
CN111800292A (en) Early warning method and device based on historical flow, computer equipment and storage medium
CN109217986A (en) A kind of data transmission method and system based on Internet of Things
CN110084473A (en) Project monitoring and managing method, device, computer equipment and storage medium
CN115576998B (en) Power distribution network data integration method and system based on multi-dimensional information fusion
CN114615342B (en) Service interaction method and device suitable for electricity consumption information acquisition system
JP2022552435A (en) Methods and apparatus for pushing subscription data in the Internet of Things, and devices and storage media thereof
CN117215867A (en) Service monitoring method, device, computer equipment and storage medium
CN111385379A (en) Internet of things identification method and device for eSIM terminal
CN215298210U (en) Multistage edge computing system of electric power thing networking
CN116910144A (en) Computing power network resource center, computing power service system and data processing method
KR20180046569A (en) AMI Data Collection Method and System based on International Standard IEC 62541
CN115858672A (en) Power terminal management method and device, electronic equipment and storage medium
CN111401819B (en) Intersystem data pushing method and system
CN115034927A (en) Data processing method and device, electronic equipment and storage medium
CN113392093A (en) Service processing method and device, electronic equipment and computer readable medium
CN111815932A (en) Block chain-based electricity consumption information acquisition 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