Background
IEC61850 is an international standard defining an automation communication network of an electric power enterprise, and a power grid and equipment monitoring model abstracted according to the standard can be mapped to Generic Object Oriented Substation Events (GOOSE), Sampling Values (SV), and Manufacturing Message Specification (MMS), which can implement high-speed data interaction based on an ethernet or other high-speed bus. The IEC61850 standard dominates the construction of intelligent substations.
An IEC61850 Abstract Communication Service Interface (ACSI) is an abstract interface for describing communication between a substation control layer protocol server and a client, and the transmission functions include real-time data access and retrieval, device control, event reporting and log, file transmission, and the like, and can also be used for event alarm and sampling value transmission between device application and remote application.
The ACSI defines multiple types of model services, as shown in table 1, such as association, substitution, data acquisition, data setup, data directory acquisition, data set definition, and the like. These communication services can be mapped to specific communication protocol services, such as MMS services, object linking and embedding for process controlled architecture (OPC UA) services, and the like, where MMS services have better compatibility with ACSI services.
TABLE 1 IEC61850 Primary communication services
Referring to fig. 1, IEC61850 ACSI only defines various abstract service models, and cannot be directly mapped to an ACSI Protocol Data Unit (PDU), but is mapped to a specific communication protocol application layer through a Specific Communication Service Mapping (SCSM). IEC61850 recommends mapping these services onto the MMS communication protocol. The MMS protocol can be developed by itself, and mature commercial MMS protocol packages such as MMS-EASE-Lite can also be adopted. The IEC 618508-1 protocol provides a way for SCSM to map to MMS PDUs. The services of the ACSI and the services of the MMS protocol are not in a one-to-one mapping relationship, and need to be converted correspondingly. The MMS PDU protocol is constructed by using a Basic Encoding Rule (BER) encoding mode of an abstract notation 1 (asn.1), and encoding and decoding are performed by using a tlv (tag length value) mode.
The ACSI may also be mapped to other protocols through other SCSMs, such as Common Object Request Broker Architecture (CORBA), extensible messaging and presence protocol (XMPP).
The PDU is the most basic data description unit in the protocol, and its formal description and encoding and decoding process are important components of communication. The message coding has several modes such as ASN.1 and M coding.
(1) ASN.1 coding
The international organization for standardization and the international telecommunications union have jointly introduced asn.1 as a formal language for describing protocol data units. Asn.1 is a standard defining an abstract data type format for describing the representation, encoding, transmission, and decoding of data.
Asn.1 defines only abstract syntax for representing information, and the standard asn.1 coding rules include BER, canonical coding rules (CER), unique coding rules (DER), compressed coding rules (PER), and XML coding rules (XER). The coding rules convert the values defined in the asn.1 into a form of code suitable for transmission, independently of the machine, programming language or representation in the application.
1) BER coding
The format of the BER coding transmission syntax is TLV triplet < Tag, Length, Value >, each field of TLV is a series of octets, Tag represents the type of the Value, Length represents the number of octets occupied by the Value part, which may be in a fixed Length manner or an indefinite rectangular manner, and Value represents the transmitted Value. The BER code defines 4 TAG types, Universal, Application, Context-Specific, Private. The Universal type is some basic predefined data types defined by ASN.1 and cannot be modified in the description; the Tag of Application defines a data type that is widely and dispersively used in a particular Application, and is inconsistent with other data types in the Application.
2) CER and DER encoding
CER is suitable for use in applications where coding is potentially important, but there are fewer compilers that support this form of coding and therefore fewer practical applications. DER encoding is suitable for use in scenarios requiring secure authenticated transmission, such as e-commerce. DER is beneficial to transmitting data with average size, and a fixed length coding mode is adopted, so that certain requirements on memory space are met.
3) PER coding
The application of PER coding is to solve the problem of high BER coding overhead. PER coding uses compression rules as much as possible to compress coding, and the format is PLV < optional Preamble, optional Length, optional Value >, each field of PLV is not eight bit group string but bit string, PLV has no Tag field, Length can be omitted. Since the coding is compressed, the PER needs to rely on subtype constraints in the asn.1 description, the more specific the constraint description, the more optimal coding can be obtained.
(2) M-coding
The M coding is also called as power system dynamic message coding, and is a coding method which can flexibly and dynamically describe a power system model and data in a self-contained manner and is provided by DL/T1232-2013 power system dynamic message coding specification. The M coding is based on ASN.1, and M0, M1, M2, M3 and M45 binary message coding modes are proposed to describe power system models and data.
Currently, each secondary equipment manufacturer uses an autonomously developed process layer network GOOSE/SV protocol, but the station control layer protocol is mostly developed secondarily based on an MMS Lite protocol library developed by SISCO company. The MMS protocol is an application layer protocol which is made for an industrial automation system by the international standard organization in the last 80 th century, and is externally authorized after being developed into an MMS Lite protocol library by SISCO company.
The german MZ Automation company published the open source station control layer protocol library libIEC 61850 in 2013, and was continuously updated. The libIEC 61850 is realized based on the C language, the IED model is statically realized according to a substation configuration description language (SCL), the IED model is dynamically generated through a configuration file or an application program interface, and association, simple or complex MMS variable reading and writing services, data set services and the like are provided. Since 2018, libIEC 61850 is exposed in succession, and many bugs such as buffer errors and resource management errors exist. The PIS-10 station control layer protocol stack is introduced by Australian SystemCORP Energy company and is applied to products of Siemens and other companies.
The mainstream products used by the substation control layer service protocol of the transformer substation are an MMS Lite protocol library and a PIS-10 substation control layer protocol stack. The MMS Lite protocol library is formulated in 80 s for industrial control systems, the protocol library has complex architecture and low communication transmission efficiency, and most secondary equipment manufacturers do not have the capability of deeply modifying codes. PIS-10 from SystemCORP Energy has found application in engineering products in recent years, and also requires authorization costs. The two products can be used, but secondary equipment manufacturers do not have the capability of autonomous modification, and risks influencing the safe operation of equipment and a power grid are easy to occur.
Disclosure of Invention
The invention aims to provide a substation control layer communication method, a substation control layer communication system, electronic equipment and a storage medium, and aims to solve the technical problems that secondary equipment manufacturers do not have the capability of autonomously modifying service protocols and risk influencing safe operation of equipment and a power grid easily occurs.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a substation control layer communication method for a substation, which comprises the following steps:
the client side issues a command to the server side;
the server side returns data to the client side;
the message structure of the command and data sent between the client and the server is a station control layer service protocol message APDU structure.
The invention further improves the following steps: the structure of the station control layer service protocol message APDU consists of an application protocol control header APCH and an application service data unit ASDU.
The invention further improves the following steps: the APCH comprises three parts of a control code, a service code and a frame length;
the control code occupies 8 bits; the first 4 bits are protocol types, when the protocol type is 1, the protocol is a station control layer service protocol, and when the protocol type is 0, the protocol is a GSP protocol; the last 4 bits are Next, Resp, Err, and bak; next indicates whether there is a subsequent message, Resp is used to distinguish whether the service is a request or a response, Err indicates whether the service is successful or an error, and bak is standby.
The service code corresponds to IEC61850 ACSI and an extended communication service interface, and is quickly positioned to the ACSI through analyzing the service code;
the frame length represents the length of an application service data unit, ASDU.
The invention further improves the following steps: the application service data unit ASDU consists of a unique service request serial number ReqID and a service data area;
the service request serial number ReqID is used for identifying a service request and a response process, and the value range is 1-65535;
the service data area stores the encoded data.
The invention further improves the following steps: if the ASDU exceeds the length limit of the APDU frame of the station control layer service protocol message, segmenting the ASDU data area of the ASDU according to the limit length of the APDU frame of the station control layer service protocol message, and adding an APCH head and a ReqID to the segmented data respectively to form a new APDU frame; subtracting the length increased by the repeated ReqID from the sum of the frame lengths of all APDU frames to obtain the length of an original Application Service Data Unit (ASDU);
transmitting all APDU frames by adopting a frame transmission mode; when the frame transmission is carried out, the sender sends the APDU frames in sequence without losing or misordering in the process; and after receiving all the APDU frames, the receiving party recombines the data content to obtain a complete application service data unit ASDU.
The invention has further improvement that the method specifically comprises the following steps:
the client sends a command for reading the remote call interface directory; the server side returns all available service interface lists; the client picks a service interface to be called from the acquired service interface list;
the client sends a command for reading a remote calling method directory, and the server returns a service list which can be provided by a specified service interface;
the client picks the device object and the target service to be called from the acquired service list and issues the device object and the target service to be called to the server in a form of remote calling service parameter command;
and after receiving the remote service parameter calling command, the server forwards the command to the station control layer target equipment, executes the target service, and finally returns the service result to the client through the server.
The invention further improves the following steps: the APDU structure of the station control layer service protocol message adopts a BASIC-PER coding alignment coding mode of ASN.1.
In a second aspect of the present invention, a substation control layer communication system of a substation is provided, including:
the client is used for issuing commands to the server;
the server is used for returning data to the client;
the message structure of the command and data sent between the client and the server is a station control layer service protocol message APDU structure.
In a third aspect of the present invention, an electronic device is provided, which includes a processor and a memory, and the processor is configured to execute a computer program stored in the memory to implement the substation control layer communication method.
In a fourth aspect of the present invention, a computer-readable storage medium is provided, where at least one instruction is stored, and when executed by a processor, the at least one instruction implements the substation control layer communication method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a communication method, a system, electronic equipment and a storage medium of a substation control layer of a transformer substation, wherein a message structure is a substation control layer service protocol message APDU structure, and commands and data are sent between a client and a server; according to the station control layer service protocol, an IEC 61850-7-2 abstract communication service interface and an IEC 61850-7-2 model are directly mapped to a TCP/IP protocol stack, so that the conversion process of an MMS protocol stack is avoided; the secondary equipment manufacturer can modify the equipment automatically, and the safe operation of the equipment and the power grid is effectively guaranteed.
In the invention, on the aspect of communication service mapping realization, the protocol directly maps the abstract communication service interface to the TCP/IP protocol stack so as to improve the performance of the service. The protocol is defined based on IEC 61850-7-2 standardized abstract communication service interface syntax, service interfaces such as association, remote calling and the like are expanded, communication safety of a client and a server is guaranteed, and support service of the server to a main station is compensated. In terms of coding, an ASN.1 compression coding rule mode is adopted to enhance the efficiency of coding and decoding and data transmission.
On the basis of an IEC 61850-7-2 abstract communication service interface, the invention expands 5 remote call service interfaces and provides support service for the main station. The number of the measuring points transmitted to the main station on the transformer substation is small, and the requirement of high-grade application analysis at the main station end is difficult to meet. The master station can call or retrieve the data of the transformer substation through the remote calling service interface according to the requirements, and limited communication channels and computing resources are saved.
The data frame structure of the APDU message of the station control layer service protocol of the invention follows GB/T33602, and the protocol type PI represents the protocol type, so that the station control layer service protocol can be compatible with the general service protocol of the electric power system, the MMS protocol and the like, the compatibility of the old protocol is expanded, and the application of the protocol to the transformation station and the original equipment is facilitated.
In the invention, the station control layer service protocol PER code omits Tag compared with BER code, and can omit Length when the Length is fixed, so that the protocol message has simple structure, short Length and accelerated speed when in coding. On the other hand, the length is greatly shortened, and the rapid transmission is facilitated.
On the basis of an IEC 61850-7-2 abstract communication service interface, the invention expands a 5-type remote call service interface and supports the realization of a remote call function.
The present invention designs a timeout and communication state detection mechanism. After a client sends a service request, setting a corresponding time timer; after the client and the server establish communication association, communication state detection is carried out at regular time; the client and server adopt the KeepAlive mechanism of TCP.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
Interpretation of terms:
station control layer Service Protocol/Service ordered Protocol
By adopting the IEC61850 substation control layer protocol of the protocol mapping method provided by the invention, the protocol directly maps the abstract communication service interface to the TCP/IP protocol stack, and an ASN.1 compression coding rule mode is adopted in coding.
Abstract Communication Service interface/Abstract Communication Service Interfaces
The virtual interface with the intelligent electronic equipment provides an abstract information modeling method for logic equipment, logic nodes, data and data attributes, provides communication services for connection, variable access, active data transmission, device control, file transmission services and the like, and is irrelevant to an actually used communication protocol stack and protocol set.
Logical node class/local node class
Data, data sets, report controls, log controls, logs, general object-oriented substation events and general substation status event controls, and correlations of sampled measurements. The logical node class represents the substation typical functionality. DL/T860.74 defines a table of compatible logical nodes for protection functions, monitoring, metering, switching devices, power transformers, etc.
Logical device class/local device class
And a virtual device for associating the relevant logical node with the data set for general purpose. The logic device contains frequently accessed or referenced information tables, such as data set tables.
Specific Communication Service Mapping/Specific Communication Service Mapping
IEC 61850-8-1 and IEC 61850-9 describe how to generate and exchange specific communication messages to realize the interoperation of the substation equipment, and the messages realize Abstract Communication Service Interfaces (ACSI) and models described by IEC 61850-7-4, IEC 61850-7-3 and IEC 61850-7-2. The process of generating and exchanging specific communication packets by the ACSI and the model is referred to as communication service specific mapping.
Example 1
The station control layer service protocol directly maps the ACSI service to a transmission control protocol/internet protocol (TCP/IP) protocol stack so as to improve the performance of the ACSI service. As shown in fig. 2, firstly, based on IEC61850 standard, the ACSI communication service is extended and improved, and a remote invocation request and response service is added to meet the requirements of an application scenario such as remote retrieval. Since the original service parameters are not modified by the extended content, compatibility with the original service is still maintained. In the aspect of information model mapping, the information models defined by IEC 61850-7-3 and 7-4 are still adopted. In the aspect of message coding, in order to improve the efficiency of coding and data transmission, a station control layer service protocol adopts a general service protocol message structure of an electric power system, but PER coding is adopted for coding, and BER coding adopted by MMS messages is replaced.
The server port adopts 8102, and the server port supporting security authentication adopts 9102. In some application scenarios, the same client address allows only one connection to be established. If a duplicate connection is detected, the server actively suspends and closes the old connection and then accepts the new connection.
More than 50 communication services are defined by IEC 61850-7-2, which relate to functions such as association, model and data, data set, control, fixed value group, report, log, file operation and the like, and meet most functions of substation automation, but have the problem of insufficient support service for a main station. Remote operation and maintenance are important functions of a transformer substation for supporting the service of a main station, information in the transformer substation is most comprehensive, but the information is limited to various conditions such as channels and storage, the main station cannot obtain more detailed information of a station end at present, the information comprises models, graphs, measuring points, files, logs and the like, the station end can call and read data of the station end remotely to obtain more comprehensive information support for comprehensive evaluation and fault diagnosis of equipment states when needed, and IEC61850 and MMS protocols do not support the functions. The station control layer service protocol adds 5 types of remote call services to the above requirements, as shown in table 2.
TABLE 2 IEC61850 remote invocation service
Numbering
|
IEC61850 object
|
IEC61850 ACSI service
|
1
|
Reading remote Call interface directory
| GetRpcInterfaceDirectory |
|
2
|
Reading remote calling method directory
| GetRpcMethodDirectory |
|
3
|
Reading remote Call interface definitions
|
GetRpcInterfaceDefinition
|
4
|
Reading remote invocation method definitions
| GetRpcMethodDefinition |
|
5
|
Remote procedure call
|
RpcCall |
The remote calling process is a request response process, the main station sends a calling request, the sub-station returns a query result, and each service in the table 2 comprises a request process and a response process. The master station dynamically acquires the called parameters by reading the directory or defining and other services. In order to ensure the operation safety of the power transformation equipment, the remote calling function can only be used for calling query and analysis services, but cannot be used for functions such as control, operation, parameter setting, configuration file issuing and the like.
The method comprises the steps of reading a remote calling interface directory (GetRpcInterfaceDirectory) for reading a calling interface available for a substation, reading a remote calling method directory (GetRpcMethodDirectory) for acquiring services provided by a specified service interface of the substation, reading a remote calling interface definition (GetRpcInterfaceDefinition) for acquiring all definitions of the specified service interface, and reading a remote calling method definition (GetRpcMethodDefinition) for acquiring definitions of a set of methods. The remote procedure call service (RpcCall) is used to request the substation to perform the corresponding call result.
In order to be compatible with various calling services, the remote service calling adopts a dynamic calling mode; referring to fig. 3, when a remote service is called, the method for communication at a substation control layer of a substation according to the present invention includes the following steps:
(1) a client sends a command of reading a remote calling interface directory (GetRpcInterfacedirectory); the server side returns all available service interface lists, such as functions of information protection service, remote browsing and alarm direct transmission; the client picks a service interface to be called from the acquired service interface list;
(2) a client sends a command of reading a remote calling method directory (GetRcpMethodDirectory), and a server returns a service list which can be provided by a specified service interface;
(3) the client picks the device object and the target service to be called from the acquired service list and issues the device object and the target service to be called to the server in the form of a remote calling service parameter (RpcCall) command; the target service comprises: service name, type, data structure information;
(4) and after receiving the remote call service parameter (RpcCall) command, the server forwards the command to the station control layer target equipment, executes the target service, and finally returns the service result to the client through the server. And if an error occurs in the calling process, returning a service error identifier.
The invention discloses a substation control layer communication method of a transformer substation, which comprises the following steps:
the client side issues a command to the server side;
the server side returns data to the client side;
in the invention, the adopted message adopts a station control layer service protocol message APDU structure for the command and data sent between the client and the server; the structure of the station control layer service protocol message APDU is as follows:
referring to fig. 4, the structure of the station control layer service protocol packet APDU is composed of an Application Protocol Control Header (APCH) and an Application Service Data Unit (ASDU), where the APCH is divided into three parts, i.e., a control code, a service code, and a frame length.
The control code and the service code adopt the specification in the GB/T33602-2017 GSP protocol.
The control code CC occupies 2 bytes and 8 bits, the first 4 bits are protocol type, when the protocol type is 1, it represents the station control layer service protocol, and when the protocol type is 0, it represents the GSP protocol. The last 4 bits are Next, Resp, Err, and bak; next indicates whether there is a subsequent message, Resp is used to distinguish whether the service is a request or a response, Err indicates whether the service is successful or an error, and bak is left as a spare.
The service code SC corresponds to IEC61850 ACSI and an extended communication service interface, the service code is quickly positioned to the ACSI through analysis, and the ASDU part of the message is decoded by adopting an ACSI ASN.1 coding rule corresponding to a station control layer service protocol. The frame length FL indicates the length of the ASDU, occupying two bytes, and the maximum length of the ASDU does not exceed 65531.
An Application Service Data Unit (ASDU) consists of a unique service request sequence number ReqID and a service data area. And the service request serial number ReqID is used for identifying the service request and the response process, and the value range is 1-65535. The service data area stores coded data, and the coded data need to be coded and decoded by combining service codes according to the requirements of basic coding rules.
Each time a new request responds to the start of the service, the service requester adds 1 to the ReqID. And when the service responder returns the response message, the ReqID in the request is used. ReqID is flipped to 1 after exceeding 65535. 0 is a reserved value for unsolicited response services, such as Report services.
The invention also designs a null data frame, and the APDU data frame may have the situation that the length of the ASDU or service data area is 0. If the ASDU length is 0, the data frame has only an APCH header and does not include an ASDU portion, and the frame length FL is 0, for example, a data frame of the Test service. If the service data area length is 0, the data frame consists of an APCH header and ReqID, and the frame length FL is 2, for example, an affirmative response confirming editing of the value group value service.
In the invention, the situation that the ASDU may be overlong in part of services, exceeds the length limit of the APDU frame, and can adopt a frame transmission mode. Firstly, segmenting an ASDU data area (excluding ReqID) according to the limited length of an APDU frame, and then respectively adding an APCH head and the ReqID (which should be the same as the ReqID of the original ASDU) to the segmented data to form new APDU frames. And a Next flag bit of the APCH head is used for framing identification, wherein the Next flag bit is 1 to indicate that a subsequent frame exists, and the Next flag bit is 0 to indicate that no subsequent frame exists. The frame length FL of the APCH header indicates the length of ReqID and data region in the present frame. And the sum of the frame lengths of all APDU frames, minus the length added by the repeated ReqID, is the original ASDU length.
When the frame transmission is carried out, the sender ensures that the APDU frames are sent in sequence without losing and misordering in the process. Retransmission and sequence control in the transmission process are guaranteed by a TCP protocol, so that a client and a server should reasonably set TCP parameters and monitor TCP transmission error information at any time. After receiving all APDU frames, the receiver recombines the data content to obtain the complete ASDU.
If the frame transmission mode is not adopted, namely only one APDU frame is transmitted at a time, the Next flag bit is always 0.
The communication service designed by the invention does not contain mechanisms such as flow control, segmentation/recombination, error control and the like, and needs to be supported by a TCP/IP protocol subset depending on a transmission layer. If UDP/IP or other datagram oriented transport layer protocol is used, the above mechanism is designed in the underlying protocol. When an error is detected in the communication process, the server or the client records an error log, and adopts different processing methods according to the nature of the error, so as to discard the current data frame, stop the current association and even disconnect the connection.
Timeout and communication state detection:
and after the client sends the service request, setting a corresponding time timer. If the response data of the server is not received beyond the preset time, the communication is judged to be overtime, and the request can be selected to be abandoned or retransmitted. The client may choose to abort the association if a timeout occurs for consecutive requests.
And after the communication association is established between the client and the server, the communication state detection is carried out at regular time. If the client and the server are always in data interaction, the two parties can be considered to communicate normally. If the communication link is in an idle state for a long time, both the client and the server can actively send out a Test message to Test whether the communication program of the receiver is in a working state. The sending period of the Test message is preferably selected to be 1-5 minutes. The send timer for the Test message should be counted again after any valid message is received.
The client and the server are also provided with a KeepAlive mechanism of the TCP. The KeepAlive idle detection time is preferably set to 30 seconds, the transmission interval is preferably set to 5 seconds, and the number of transmissions is preferably set to 4. When the network port or the network cable is damaged, the network fault can be detected within 50 seconds at most.
Protocol message coding design:
the station control layer service protocol adopts a BASIC-PER code alignment coding mode of ASN.1. When the data transmitted by the PER coding PLV is of a fixed Length, the Length can be omitted, and when the data transmitted is of an indefinite Length, such as an object reference, the Length can not be omitted. Because Length is omitted, the boundary cannot be known from encoding, an encoder must know the specified abstract description to correctly decode, that is, the encoder needs to combine with the encoding rule of the station control layer service protocol message to correctly decode, and a Tag field does not exist in PER encoding, so that default extension is no longer supported, and an extender must be definitely added in the message encoding rule description.
The PER codes are displayed on network package software such as Wireshark in a non-clear text mode, and the situation that analysis cannot be performed in the debugging process can occur, because the existing package capturing software does not support the coding rule of the station control layer service protocol, and corresponding secondary development needs to be performed on the network analysis software or the debugging software.
Example 2
In a second aspect of the present invention, a substation control layer communication system of a substation is further provided, including:
the client is used for issuing commands to the server;
the server is used for returning data to the client;
the message structure of the command and data sent between the client and the server is a station control layer service protocol message APDU structure.
Example 3
Referring to fig. 5, the present invention further provides an electronic device 100 for implementing a substation control layer communication method of a substation; the electronic device 100 comprises a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104.
The memory 101 may be used for storing the computer program 103, and the processor 102 implements various functions of the electronic device 100 by running or executing the computer program stored in the memory 101 and calling data stored in the memory 101. The memory 101 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the electronic apparatus 100, and the like. In addition, the memory 101 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
The at least one Processor 102 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The processor 102 may be a microprocessor or the processor 102 may be any conventional processor or the like, and the processor 102 is a control center of the electronic device 100 and connects various parts of the whole electronic device 100 by various interfaces and lines.
The memory 101 in the electronic device 100 stores a plurality of instructions to implement a substation level communication method, and the processor 102 may execute the plurality of instructions to implement:
the client side issues a command to the server side;
the server side returns data to the client side;
the message structure of the command and data sent between the client and the server is a station control layer service protocol message APDU structure.
The modules/units integrated by the electronic device 100 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, and Read-Only Memory (ROM).
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 and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block 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 and/or block diagram block or blocks.
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 and/or block diagram block or blocks.
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 and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.