CN114615342B - 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
CN114615342B
CN114615342B CN202210111620.7A CN202210111620A CN114615342B CN 114615342 B CN114615342 B CN 114615342B CN 202210111620 A CN202210111620 A CN 202210111620A CN 114615342 B CN114615342 B CN 114615342B
Authority
CN
China
Prior art keywords
interaction
service
business
attribute
service interaction
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.)
Active
Application number
CN202210111620.7A
Other languages
Chinese (zh)
Other versions
CN114615342A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a service interaction method and a device suitable for an electricity consumption information acquisition system, which are used for determining communication equipment and a service object of an interaction partner; acquiring the attribute of communication equipment of an interaction party, the attribute of a service object and the content of a service interaction item; generating service interaction information 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 and a pre-constructed service interaction information model; and according to the service interaction information, carrying out service interaction with the communication equipment of the interaction counterpart through the service interaction service interface. The application provides a business interaction information model applicable to the business master station, a communication management layer and all modules in the communication management layer, and solves the problems that the content of the traditional business interaction information model is redundant and the new business requirement cannot be met.

Description

Service interaction method and device suitable for electricity consumption information acquisition system
Technical Field
The application belongs to the technical field of information system design and development, and relates to a business interaction information model definition method suitable for an electricity consumption information acquisition system.
Background
With the construction of the client-side energy Internet, the development of electric power market reforms and the continuous development of emerging 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, generates billions of service operation requests every day, and the traditional service interaction information model comprises a large amount of communication, encoding and decoding file information, so that service interaction instructions are tedious and are unfavorable for network transmission and storage.
Disclosure of Invention
Aiming at the operation request of billions-level business per day of an electricity consumption information acquisition system, the existing data interaction method comprises the following steps of
The application provides a business interaction method suitable for an electricity consumption information acquisition system, which can realize the current business interaction requirement and adopts a universal format which is easy to understand and expand.
The application adopts the following technical scheme:
in one aspect, the present application provides a service interaction method suitable for an electricity consumption information acquisition system, including:
determining an interactive counterpart communication device and a business object;
acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
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 content of the service interaction item and a pre-constructed service interaction information model, 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 partner through the service interaction service interface.
Further, sending the request service interaction information to the interaction partner communication device through the service interaction service interface includes: and encoding the request service interaction information into an interaction request message which can be identified by the interaction partner communication equipment, and sending the interaction request message to the interaction partner communication equipment through a service interaction service interface.
In a second aspect, the present application provides a service interaction device suitable for an 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 interaction party and the business object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
the request interaction information generation module is used for generating request service interaction information according to the attribute of the communication equipment of the interaction partner, the attribute of the service object and the content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier;
the information interaction unit is used for sending the request service interaction information to the interaction partner communication equipment through the service interaction service interface.
Further, the business interaction information model includes: the interactive instruction comprises a plurality of business objects, wherein one business object comprises a plurality of business interactive items; the service object is used for designating the equipment corresponding to the service operation; the service interaction item is used for designating data, parameters or control instructions for 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, wherein the service interactive item identification code generating module is used for generating a code character string of a service interactive item identification, and the identification bits in the code 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 whether to select the attribute or the method for operating the business object; the function number is used for indicating the number of the attribute or the method of the operation business object; the index sequence number is used for indicating the number of the attribute content or the method content of the operation business object; the data category is used for identifying the category of the data; the time interval is used to acknowledge a time interval representation of the data.
In a third aspect, the present application provides a service interaction method suitable for an electricity 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 pre-constructed service interaction information model, and obtaining a globally unique instruction identification of an interaction instruction sent by a service interaction requester, an attribute of a service object, service interaction item content and an attribute of local communication equipment;
checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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 application further provides a service interaction device suitable for an electricity consumption information acquisition system, including: the system comprises an information interaction unit, an interaction information analysis module, a verification module and a return interaction information generation module;
the information interaction unit is used for receiving the service interaction information of the request sent by the interaction opposite party communication equipment through the service interaction service interface and sending the returned service interaction information to the interaction opposite party communication equipment;
the interactive information analysis module is used for analyzing the request service interactive information according to a pre-constructed service interactive information model to obtain instruction identification, the attribute of a service object, the content of a service interactive item and the attribute of local communication equipment;
the verification module is used for verifying according to the acquired attribute of the local communication equipment;
the return interactive information generation module is used for generating return business interactive information corresponding to the request business interactive information according to a pre-constructed business interactive information model according to the obtained instruction identification, the attribute of the business object and the business interactive item content after verification.
On the basis of the technical scheme, optionally, a pre-constructed business interaction information model comprises an interaction instruction, wherein the interaction instruction comprises a plurality of business objects, and one business object comprises a plurality of business interaction items; the service object is used for designating the equipment corresponding to the service operation; the service interaction item is used for designating 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 instruction identification, asset numbers of the communication equipment and equipment types of the communication equipment;
the instruction identifier is used for identifying an 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 business interaction counterpart;
the device type of the communication device is used for designating the device type of the communication device of the service interaction counterpart; the asset number of the communication device and the device type of the communication device belong to an attribute of the communication device.
Still further, the service interaction item includes a service interaction item attribute and a service interaction item identifier, the service interaction item identifier is a coded string, and the coded string identifier includes 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 whether to select the attribute or the method for operating the business object; the function number is used for indicating the number of the attribute or the method of the operation business object; the index sequence number is used for indicating the number of the attribute content or the method content of the operation business object; the data category is used for identifying the category of the data; the time interval is used to acknowledge the time interval of the data.
Further, the service interaction item attribute comprises a service interaction item name, a data return time, a success or failure sign, service interaction data, a data storage time and a data acquisition time.
Further, the properties of the business object include a device asset number of the business object, a type of the business object, a data source of the business object, and a business operation type of the business object.
In a final aspect, the present application also provides a service interaction method suitable for the electricity consumption information acquisition system, including:
the service interaction request party determines the communication equipment of the interaction counterpart and a service object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item; 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 content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier; transmitting the request service interaction information to the communication equipment of the interaction partner 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 pre-constructed service interaction information model, and obtains a globally unique instruction identification of an interaction instruction, the attribute of a service object, the content of a service interaction item and the attribute of local communication equipment; checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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 beneficial technical effects obtained by the application are as follows: in the service interaction method provided by the application, the service interaction information is generated according to the pre-constructed service interaction information model based on the attribute of the communication equipment of the service interaction counterpart, the attribute of the service interaction object and the content of the service interaction item, and comprises all the current service interaction requirements, and the service interaction method is in a universal format which is easy to understand and expand, so that the network transmission and storage are facilitated. The application can solve the problem that the power consumption information acquisition system performs billion-grade service operation requests every day, and the interactive service data is refined and easy to store.
Drawings
FIG. 1 is a business interaction information model format defined in a specific embodiment of the present application;
FIG. 2 is an example of a daily frozen forward active power (total and rate) service interaction item identification encoding format in an embodiment of the application;
FIG. 3 is an example of a data interaction information model JSON format in a specific embodiment of the application;
FIG. 4 is a schematic flow chart of a business interaction method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a business interaction method according to another embodiment of the present application.
Detailed Description
In order to make the purposes, technical schemes and advantages of the present application more clear, the technical scheme of the present application will be clearly and completely described below in connection with the definition of the specific business interaction information model of the present application. The described embodiments of the application are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art without making any inventive effort, are within the scope of the present application.
Example 1: the service interaction method suitable for the electricity consumption information acquisition system, as shown in fig. 4, comprises the following steps: determining an interactive counterpart communication device and a business object;
acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
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 content of the service interaction item and a pre-constructed service interaction information model, 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 partner through the service interaction service interface.
Optionally, in practical application, the service interaction counterpart communication devices may be different, and the readable messages are also different, so that the communication layer needs to convert the interaction information into corresponding messages.
Therefore, the method for transmitting the request service interaction information to the interaction partner communication equipment through the service interaction service interface comprises the following steps: and encoding the request service interaction information into an interaction request message which can be identified by the interaction partner communication equipment, and sending the interaction request message to the interaction partner communication equipment through a service interaction service interface.
The service interaction method suitable for the electricity consumption information acquisition system is applied to a service interaction requester.
In the method, the service interaction information generating request comprises all the current service interaction demands through a service interaction information model, and a common format which is easy to understand and expand is adopted; meanwhile, according to message formats of different communication devices, service request messages which can be identified by service interaction opposite parties are generated, and the universality of the interaction method is improved.
Example 2: based on the same inventive concept as above, in correspondence to the service interaction method applicable to the electricity consumption information collection system provided in embodiment 1, this embodiment provides a service interaction device applicable to the electricity consumption information collection 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 interaction party and the business object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
the request interaction information generation module is used for generating request service interaction information according to the attribute of the communication equipment of the interaction partner, the attribute of the service object and the content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier;
the information interaction unit is used for sending the request service interaction information to the interaction partner communication equipment 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 interaction partner communication device, so as to send the interaction request message to the interaction partner communication device through a service interaction service interface.
The service interaction device suitable for the electricity consumption information acquisition system provided by the embodiment can be realized through computer program instructions 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 present embodiment provides a service interaction method applicable to an electricity 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 pre-constructed service interaction information model, and obtaining a globally unique instruction identifier of an interaction instruction, an attribute of a service object, a service interaction item content and an attribute of local communication equipment;
checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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.
Furthermore, 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 suitable for the electricity consumption information acquisition system is applied to a service interaction returning party. After the returned service interaction information is generated, the returned service interaction information is converted into a message form which can be identified by the service interaction requester, and the message is returned to the communication equipment of the interaction requester through the service interaction service interface.
The service interaction information model is adopted to generate request service interaction information which contains all current service interaction requirements, and the easy-to-understand and easy-to-expand universal format is adopted, so that the transmission speed of the interaction information is faster and the storage is convenient; and the returning party performs verification according to the attribute of the local communication equipment obtained by analysis, and performs information interaction with the requesting party when confirming that the received request service interaction information is sent to the local, so that the security of service interaction is improved.
Example 4: based on the same inventive concept as above, in correspondence to the service interaction method applicable to the electricity consumption information collection system provided in embodiment 3, this embodiment provides a service interaction device applicable to the electricity consumption information collection system, including:
the system comprises an information interaction unit, an interaction information analysis module, a verification module and a return interaction information generation module;
the information interaction unit is used for receiving the service interaction information of the request sent by the interaction opposite party communication equipment through the service interaction service interface and sending the returned service interaction information to the interaction opposite party communication equipment;
the interactive information analysis module is used for analyzing the request service interactive information according to a pre-constructed service interactive information model to obtain instruction identification, the attribute of a service object, the content of a service interactive item and the attribute of local communication equipment;
the verification module is used for verifying according to the acquired attribute of the local communication equipment;
the return interactive information generation module is used for generating return business interactive information corresponding to the request business interactive information according to a pre-constructed business interactive information model according to the obtained instruction identification, the attribute of the business object and the business interactive item content after verification.
Example 5: based on the same inventive concept as above, the present embodiment provides a service interaction method applicable to an electricity consumption information acquisition system, as shown in fig. 5, including: the service interaction request party determines the communication equipment of the interaction counterpart and a service object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item; 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 content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier; transmitting the request service interaction information to the communication equipment of the interaction partner 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 pre-constructed service interaction information model, and obtains a globally unique instruction identification of an interaction instruction, the attribute of a service object, the content of a service interaction item and the attribute of local communication equipment; checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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 suitable for the electricity consumption information acquisition system provided by the embodiment can be applied to a service interaction system suitable for the electricity consumption information acquisition system, and the system comprises an interaction requester and an interaction return party. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes of the service interaction system, the interaction requester and the interaction returning party may refer to corresponding processes in the foregoing method embodiments, which are not described herein again.
In a specific embodiment, the business interaction service interface is implemented by adopting the prior art. The business interaction service saves task instructions (automatic acquisition instructions, data supplement acquisition instructions, business operation instructions and the like) to the instruction cache through a business interaction service interface. Optionally, the communication protocol of the interface adopts an HTTP protocol, the request method of the interface adopts POST, and the request address and the trigger condition are set. The triggering condition is that all instructions walk the interface to store the instruction content to the instruction cache.
In embodiments 1 to 5, the pre-built business interaction information model (as shown in fig. 1) includes an interaction instruction, a business object and a business interaction item. The interaction content between the service master station and the communication management layer and between the service master station and each module in the communication management layer is called an interaction instruction, and the interaction instruction prescribes the type of the service operation. One interactive instruction contains a plurality of service objects, and the service objects specify the equipment corresponding to the service operation. One business object comprises a plurality of business interaction items, and the business interaction items specify specific content of the current object operation.
The interaction instruction is a basic unit for data information interaction among all functional modules of the electricity consumption information acquisition system. The interactive instruction is composed of an instruction parameter and a business object list, wherein the instruction parameter comprises globally unique instruction identification, asset numbers of communication equipment, equipment types of the communication equipment, instruction execution results, execution failure error codes and other information. The globally unique instruction identifiers in the interaction information sent by the service interaction requester and the service interaction return party are the same, and are used for corresponding the request and the return.
The service object is the mapping of the field measured equipment in the system, and the service object can be a concentrator terminal, an ammeter, total addition group data and the like. The service object is composed of an attribute and a service interaction item list, and the attribute of the service object comprises information such as equipment asset number of the service object, type of the service object (concentrator terminal, ammeter or total addition group), data source of the service object (such as concentrator terminal, ammeter, total addition group or storage device and the like), service operation type of the service object and the like. The total data refers to a value calculated by a certain similar electrical magnitude of each related measuring point according to a set addition or subtraction relation. The service request or the 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 a specific data, parameter or control instruction. The service interaction item is composed of various attribute parameters including service interaction item identification, data return time, data return success/failure flag, and content unique to each service interaction item. The service interaction item is identified as a coded string.
The service interaction information model adopted in the service interaction method provided by the application is a carrier for applying the service of the main station of the electricity consumption information acquisition system to a specific service operation request of the communication management module and request result data, and is mainly divided into three layers as shown in fig. 1 and 2: the outermost layer describes specific service interaction instruction information, the middle layer describes a service object operated by the instruction, and the innermost layer describes specific service interaction items for operating the service object. The coding rule is easy to read, extensible and high in practicability and is easy to transmit and store. The method is widely applied to the electricity consumption information acquisition system of Jiangsu.
The interaction instruction is a basic unit for data information interaction among all functional modules of the electricity consumption information acquisition system. The interactive instruction is composed 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 interaction instruction
The service object is the mapping of the field measured equipment in the system, and the service object can be a concentrator terminal, an ammeter, total addition group data and the like. The business object is composed of attributes and a list of business interaction items, and the available attribute parameters are defined as shown in table 2 below:
table 2 business object attribute parameters
The service interaction item is the minimum data unit of the information interaction model, and one service interaction item is a specific data, parameter or control instruction. The business interaction item is composed of various attribute parameters, and the business interaction item identification is an essential attribute thereof and represents a specific definition of the business interaction item. Taking the service interaction item of "daily frozen forward active power (total and each rate)" as an example, the attribute definition is as follows in table 3:
table 3 service interaction item parameter definition in an embodiment
In this embodiment, the character string (as shown in fig. 2) whose service interaction item identifier expression form is 14 bits in the service interaction item adopts a segmentation and classification coding mode. The encoding format consists of an Object Identification (OI), a Function Selection (FS), a Function Number (FN), an Index Number (IN), a Data Class (DC), a Time Interval (TI).
The service interaction item identification code is represented by a character string in hexadecimal form.
The length of the Object Identification (OI) is 4 bits, and an identification code is provided for each object of the system in a classification coding mode so as to determine the specific object. 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, an acquisition monitoring class object, a collection class object, a control class object, a file transmission class object, an ESAM interface class object, an input and output equipment class object and a display class object. If 0010 represents forward active power, the detailed data object definition is described in object-oriented electricity data exchange protocol. The undefined object identification codes are reserved.
The Function Selection (FS) is 1 bit in length to select whether to operate on the property of the business object or the method, 1 indicating to operate on the property, and 2 indicating to operate on the method.
The Function Number (FN) is 2 bits long, and the function number 02 for confirming the attribute or method, such as the electric energy interface class (oi=0010), represents the total-rate electric energy array. The designs of FS and FN refer to the design ideas of OMD and OAD in object-oriented electric data exchange protocol.
The Index Number (IN) is 2 bits IN length, and the index number 1 for identifying the attribute or the number of the method content, such as the total power interface class and rate power array (oi=0010, fs=1, fn=2), represents the total rate.
The Data Class (DC) is 1 bit in length to confirm the class of data, 0 represents the instantaneous/current value, 2 represents the load record, 4 represents the day-frozen data, 6 represents the month-frozen data, and 8 represents the contract data.
The Time Interval (TI) is 2 bits in length, and is used to confirm that the time interval for acquiring data represents collection type data such as curves, etc., and is needed to be used in combination with data type (DC), such as daily load record data (dc=2), and ti=5 represents data with an acquisition time interval of 5 minutes.
To increase the readability of the service interaction item identifier, the encoding string in this embodiment further includes two segmenters "-".
The service interaction item identification is determined through the code character string, so that the code is concise 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, JSON format service interaction information generated according to a pre-constructed service interaction information model is shown in fig. 3.
The application provides a method suitable for universal service interaction information among a service master station, a communication management layer and modules in the communication management layer, which generates the 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 the new service requirement cannot be met.
It will be appreciated by those skilled in the art that 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 of the flows in the flowchart may 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.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are all within the protection of the present application.

Claims (15)

1. The business interaction method suitable for the electricity consumption information acquisition system is characterized by comprising the following steps:
determining an interactive counterpart communication device and a business object;
acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
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 content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier; the pre-constructed business interaction information model comprises the following steps: interaction instruction, business object and business interaction item;
the interactive instruction comprises a plurality of business objects, and one business object comprises a plurality of business interactive items;
the service object is used for designating the equipment corresponding to the service operation;
the service interaction item is used for specifying specific data, parameters or control instructions for service interaction with the service object and is the minimum data unit of the service interaction information model;
and sending the request service interaction information to the communication equipment of the interaction partner through the service interaction service interface.
2. The service interaction method suitable for an electricity consumption information collection system according to claim 1, wherein the transmitting the request service interaction information to the interaction partner communication device through the service interaction service interface comprises: and encoding the request service interaction information into an interaction request message which can be identified by the interaction partner communication equipment, and sending the interaction request message to the interaction partner communication equipment through a service interaction service interface.
3. The business interaction method for electricity consumption information acquisition system according to claim 1 or 2, wherein the interaction instruction further comprises instruction parameters,
the instruction parameters comprise instruction identification, asset numbers of the communication equipment and equipment types of the communication equipment;
the instruction identifier 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 business interaction counterpart;
the device type of the communication device is used for designating the device type of the communication device of the service interaction counterpart;
the asset number of the communication device and the device type of the communication device belong to an attribute of the communication device.
4. A business interaction method suitable for an electricity consumption information acquisition system as claimed in claim 3, wherein,
the service interaction item comprises a service interaction item identifier and a service interaction item attribute, wherein the service interaction item identifier is a coded character string, and the identification bits in the coded character string comprise 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 whether to select the attribute or the method for operating the business object;
the function number is used for indicating the number of the attribute or the method of the operation business object;
the index sequence number is used for indicating the number of the attribute content or the method content of the operation business object;
the data category is used for identifying the category of the data;
the time interval is used to acknowledge the time interval of the data.
5. The method for business interactions applicable to an electricity consumption information collection system according to claim 4, wherein the business interaction item attributes comprise a business interaction item name, a data return time, a success or failure flag, business interaction data, a data storage time and a data acquisition time.
6. A business interaction method applicable to an electricity consumption information collection system according to any of claims 1 or 2, characterized in that the properties 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.
7. 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 interaction party and the business object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item;
the request interaction information generation module is used for generating request service interaction information according to the attribute of the communication equipment of the interaction partner, the attribute of the service object and the content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier; the pre-constructed business interaction information model comprises the following steps: interaction instruction, business object and business interaction item;
the interactive instruction comprises a plurality of business objects, and one business object comprises a plurality of business interactive items;
the service object is used for designating the equipment corresponding to the service operation;
the service interaction item is used for specifying specific data, parameters or control instructions for service interaction with the service object and is the minimum data unit of the service interaction information model;
the information interaction unit is used for sending the request service interaction information to the interaction partner communication equipment through the service interaction service interface.
8. The business interaction device for electricity consumption information collection system of claim 7, wherein,
the interactive information generation module comprises a service interactive item identification code generation module which is used for generating a code character string of the service interactive item identification;
the identification bits in the code character string comprise object identification, function selection, function number, index number, data category and time interval;
the object identifier is used for identifying a specific business object;
the function selection is used for selecting whether the attribute of the operation business object is a method;
the function number is used for indicating the number of the attribute or the method of the operation business object;
the index sequence number is used for indicating the number of the attribute content or the method content of the operation business object;
the data category is used for identifying the category of the data;
the time interval is used for confirming the time interval representation of the data.
9. The business 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 pre-constructed service interaction information model, and obtaining an instruction identifier of an interaction instruction, an attribute of a service object, a content of a service interaction item and an attribute of local communication equipment, wherein the instruction identifier is globally unique; the pre-constructed business interaction information model comprises the following steps: interaction instruction, business object and business interaction item;
the interactive instruction comprises a plurality of business objects, and one business object comprises a plurality of business interactive items;
the service object is used for designating the equipment corresponding to the service operation;
the service interaction item is used for specifying specific data, parameters or control instructions for service interaction with the service object and is the minimum data unit of the service interaction information model;
checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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.
10. The method for traffic interactions applicable to a power consumption information collection system as recited in claim 9, wherein the interaction instruction further comprises an instruction parameter,
the instruction parameters comprise instruction identification, asset numbers of the communication equipment and equipment types of the communication equipment;
the instruction identifier 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 business interaction counterpart;
the device type of the communication device is used for designating the device type of the communication device of the service interaction counterpart;
the asset number of the communication device and the device type of the communication device belong to an attribute of the communication device.
11. The method for traffic interaction for an electricity consumption information acquisition system according to claim 10, wherein,
the service interaction item comprises a service interaction item identifier and a service interaction item attribute, wherein the service interaction item identifier is a coded character string, and the identification bits in the coded character string comprise 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 whether to select the attribute or the method for operating the business object;
the function number is used for indicating the number of the attribute or the method of the operation business object;
the index sequence number is used for indicating the number of the attribute content or the method content of the operation business object;
the data category is used for identifying the category of the data;
the time interval is used to acknowledge the time interval of the data.
12. The method of claim 11, wherein the service interaction item attributes include 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.
13. The business interaction method applicable to the electricity consumption information acquisition system according to claim 9, wherein the attributes of the business object include a device asset number of the business object, a type of the business object, a data source of the business object, and a business operation type of the business object.
14. 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 return interaction information generation module;
the information interaction unit is used for receiving the service interaction information of the request sent by the interaction opposite party communication equipment through the service interaction service interface and sending the returned service interaction information to the interaction opposite party communication equipment;
the interactive information analysis module is used for analyzing the request service interactive information according to a pre-constructed service interactive information model to obtain an instruction identifier, the attribute of a service object, the content of a service interactive item and the attribute of local communication equipment, wherein the instruction identifier is globally unique; the pre-constructed business interaction information model comprises the following steps: interaction instruction, business object and business interaction item;
the interactive instruction comprises a plurality of business objects, and one business object comprises a plurality of business interactive items;
the service object is used for designating the equipment corresponding to the service operation;
the service interaction item is used for specifying specific data, parameters or control instructions for service interaction with the service object and is the minimum data unit of the service interaction information model;
the verification module is used for verifying according to the acquired attribute of the local communication equipment;
the return interactive information generation module is used for generating return business interactive information corresponding to the request business interactive information according to a pre-constructed business interactive information model according to the obtained instruction identification, the attribute of the business object and the business interactive item content after verification.
15. The business interaction method suitable for the electricity consumption information acquisition system is characterized by comprising the following steps:
the service interaction request party determines the communication equipment of the interaction counterpart and a service object; acquiring the attribute of the communication equipment of the interactive counterpart, the attribute of the service object and the content of the service interaction item; 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 content of the service interaction item and a pre-constructed service interaction information model, wherein the request service interaction information comprises a globally unique instruction identifier; transmitting the request service interaction information to the communication equipment of the interaction partner through the service interaction service interface; the pre-constructed business interaction information model comprises the following steps: interaction instruction, business object and business interaction item;
the interactive instruction comprises a plurality of business objects, and one business object comprises a plurality of business interactive items;
the service object is used for designating the equipment corresponding to the service operation;
the service interaction item is used for specifying specific data, parameters or control instructions for service interaction with the service object and is the minimum data unit of the service interaction information model;
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 pre-constructed service interaction information model, and obtains the instruction identification, the attribute of the service object, the content of the service interaction item and the attribute of the local communication equipment; checking according to the acquired attribute of the local communication equipment; and if the verification is passed, generating returned service interaction information corresponding to the request service interaction information according to the obtained instruction identification, the attribute of the service object and the service interaction item content and 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 CN114615342A (en) 2022-06-10
CN114615342B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383997A (en) * 2007-09-07 2009-03-11 华为技术有限公司 Interactive service data processing method, device and system
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850244A1 (en) * 2006-04-28 2007-10-31 Sap Ag Systems and methods for providing an interaction between a status management service and an audit trail service
CN105162996A (en) * 2014-07-18 2015-12-16 上海触乐信息科技有限公司 Intelligent service interaction platform apparatus, system, and implementing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383997A (en) * 2007-09-07 2009-03-11 华为技术有限公司 Interactive service data processing method, device and system
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
CN114615342A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
EA019680B1 (en) Service access method and system
CN111260505B (en) Big data analysis method and device based on power Internet of things and computer equipment
KR102345082B1 (en) Cloud based iec61850 information processing method
CN115576998B (en) Power distribution network data integration method and system based on multi-dimensional information fusion
CN115730749B (en) Power dispatching risk early warning method and device based on fusion power data
CN110580670A (en) Smart city management system based on Internet of things
CN114969161B (en) Data processing method and device and data center system
CN116436791A (en) Industrial Internet scene construction method, system, equipment and storage medium
CN111385379A (en) Internet of things identification method and device for eSIM terminal
CN109217986A (en) A kind of data transmission method and system based on Internet of Things
CN114615342B (en) Service interaction method and device suitable for electricity consumption information acquisition system
CN114338527A (en) IPv6 active identifier processing method and system
CN114390033A (en) Loop state patrol instrument acquisition system and method based on extensible communication protocol
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN115858672A (en) Power terminal management method and device, electronic equipment and storage medium
CN215298210U (en) Multistage edge computing system of electric power thing networking
CN110134832B (en) Equipment data measuring method and equipment in subway PSCADA system
KR20180037487A (en) Method and recording medium for compatibility between iec61850 and opc ua
CN112687267A (en) Internet of things data semantic processing system
CN118400443B (en) Electric energy meter data conversion method and device, computer equipment and storage medium
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
CN111695034B (en) Internet asset monitoring management system
KR20180037474A (en) Method and recording medium for compatibility between iec61850 and opc ua
CN115086400B (en) Message interaction method and device, electronic equipment and storage medium
CN114938293B (en) NGINX data tracing method, device, equipment and storage medium based on block chain

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