CN117041763A - Concurrent communication method, device, equipment and storage medium - Google Patents

Concurrent communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN117041763A
CN117041763A CN202310917846.0A CN202310917846A CN117041763A CN 117041763 A CN117041763 A CN 117041763A CN 202310917846 A CN202310917846 A CN 202310917846A CN 117041763 A CN117041763 A CN 117041763A
Authority
CN
China
Prior art keywords
control module
close
target
program
parameters
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.)
Pending
Application number
CN202310917846.0A
Other languages
Chinese (zh)
Inventor
陈卫刚
万勤
吕燕顺
李健
黄栋基
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN202310917846.0A priority Critical patent/CN117041763A/en
Publication of CN117041763A publication Critical patent/CN117041763A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a concurrent communication method, a device, equipment and a storage medium, relates to the technical field of national network close service platforms, and particularly relates to the concurrent communication method, the device, the equipment and the storage medium. The concurrent communication method is applied to the close-fitting platform, the close-fitting platform comprises a safety control module, and the concurrent communication method comprises the following steps: receiving control module parameters obtained in advance by a client, storing the control module parameters into a dynamic library corresponding to a target ammeter, setting parameters of a safety control module according to the control module parameters to complete construction of a process program corresponding to the target ammeter, creating a process interface according to a preset WCF protocol, starting the process interface, establishing a framework program, and loading a plurality of process programs according to the framework program to establish communication connection between the dynamic library and the target ammeter. The invention can store the process programs corresponding to the plurality of electric meters on the national network close service platform, and respectively establish communication with the corresponding electric meters through the process programs.

Description

Concurrent communication method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of national network close-packed platforms, in particular to a concurrent communication method, a concurrent communication device, concurrent communication equipment and a concurrent communication storage medium.
Background
At present, the dynamic libraries provided by the national network encryption machine are packaged one-to-one according to the number of the electric meters which are actually in concurrent communication, so that concurrent synchronous or asynchronous communication is realized, but the national network close service platform provides the dynamic libraries of all electric meter manufacturers with a file locking mechanism on the basis of the same IP address and port, and a process program for packaging the dynamic libraries of a plurality of national network close service platforms cannot be simultaneously communicated with the libraries, so that the concurrent communication cannot be realized, so that the problem of how to realize the simultaneous communication of a client and a plurality of electric meters on the national network close service platform is to be solved.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a concurrent communication method, which can store process programs corresponding to a plurality of electric meters on a national network close service platform and respectively establish communication with the corresponding electric meters through the process programs.
The invention also provides a concurrent communication method.
The invention also provides a concurrent communication device.
The invention also provides a concurrent communication device.
The invention also provides concurrency communication equipment.
The invention also proposes a computer readable storage medium.
In a first aspect, an embodiment of the present invention provides a concurrent communication method, applied to a close-fitting platform, where the close-fitting platform includes a security control module, the concurrent communication method includes:
receiving control module parameters obtained in advance by a client, storing the control module parameters into a dynamic library corresponding to an ammeter, and obtaining a target ammeter list sent by the client;
screening corresponding parameters of the control module according to the target ammeter list, and setting parameters of the safety control module to complete construction of a process program corresponding to the target ammeter;
newly creating a process interface according to a preset WCF protocol, and starting the process interface;
and establishing a framework program, and loading a plurality of process programs by the safety control module according to the framework program so as to establish communication connection between the dynamic library and the target ammeter.
The concurrent communication method of the embodiment of the invention has at least the following beneficial effects: receiving control module parameters acquired in advance by a client, classifying the control module parameters according to target electric meters, storing the classified control module parameters into corresponding dynamic libraries, transmitting pre-acquired message information to the client, acquiring a target electric meter list transmitted by the client, screening the control module parameters according to the target electric meter list, screening the control module parameters corresponding to the target electric meters, setting a safety control module according to the control module parameters corresponding to the target electric meters, setting the parameters of the safety control module, constructing a process program corresponding to the target electric meters according to the control module parameters, calling a preset WCF protocol in a preset storage space, creating an interface corresponding to the process program according to the WCF protocol, creating a new process interface according to the WCF protocol, starting the process interface, establishing a framework program, starting the framework program through the safety control module, loading process programs corresponding to the target electric meters at the same time, and establishing communication connection between the dynamic libraries and the target electric meters. The control module parameters are stored into the dynamic library through receiving the control module parameters, a target ammeter list sent by a client is obtained, corresponding control module parameters are screened according to the target ammeter list to be used for setting a safety control module, a process program corresponding to the target ammeter is further constructed, a process interface is newly built and started according to a preset WCF protocol, a framework program is established, the process programs corresponding to the target ammeter are loaded through the framework program at the same time, communication connection between the dynamic library and a plurality of target ammeter is established, the process programs corresponding to a plurality of ammeter can be stored on a national network close service platform, and communication is established with the corresponding ammeter through the process programs.
According to other embodiments of the present invention, the concurrent communication method, which establishes a process interface according to a preset WCF protocol, includes:
newly establishing an interface according to the WCF protocol to obtain an initial process interface;
embedding a preset communication mechanism into the initial process interface to initialize the initial process interface;
and defining a service program of the initial process interface according to a preset service class to obtain the process interface.
According to other embodiments of the present invention, after the new process interface is established according to the preset WCF protocol, the concurrent communication method further includes:
configuring a terminal point for the service program;
and allocating the service program according to the terminal point, and configuring and hosting the life cycle of the service program in a preset runtime environment.
According to other embodiments of the present invention, the concurrent communication method further includes:
acquiring the execution condition of the process program in real time to obtain process execution data;
transmitting the process execution data to a server to receive a process execution instruction returned by the server;
and controlling the process program to execute corresponding target operation according to the process execution instruction.
According to other embodiments of the present invention, the process execution instruction includes a synchronous operation instruction and an asynchronous operation instruction, the target operation includes a synchronous operation and an asynchronous operation, and the controlling the process program to execute the corresponding target operation according to the process execution instruction includes:
controlling the process program to execute the corresponding synchronous operation according to the synchronous operation instruction;
and controlling the process program to execute the corresponding asynchronous operation according to the asynchronous operation instruction.
In a second aspect, an embodiment of the present invention provides a concurrent communication method, applied to a client, where the concurrent communication method includes:
acquiring control module parameters, and sending the control module parameters to a close-fitting platform for storage so as to receive message information returned by the close-fitting platform;
analyzing the message information, and screening a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list;
and sending the target ammeter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
The concurrent communication method of the embodiment of the invention has at least the following beneficial effects: the method comprises the steps of communicating with a plurality of electric meters to obtain control module parameters corresponding to the electric meters, sending the control module parameters to a close-packed platform, enabling the close-packed platform to store the control module parameters to a dynamic library, receiving message information returned by the close-packed platform, screening the control module parameters according to the analyzed message information to obtain a target electric meter list required to be communicated, sending the target electric meter list to the close-packed platform, and enabling the close-packed platform to establish communication connection between the dynamic library and the target electric meters according to the target electric meter list. The control module parameters of a plurality of electric meters are obtained and sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, receives and analyzes message information, screens the target according to the message information to obtain a target electric meter list, and sends the target electric meter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters, process programs corresponding to a plurality of electric meters can be stored on the national network close-packed platform, and communication can be established with the corresponding electric meters through the process programs.
In a third aspect, an embodiment of the present invention provides a concurrent communication apparatus applied to a close-fitting platform, where the close-fitting platform includes a security control module, the concurrent communication apparatus includes:
the parameter acquisition module is used for receiving control module parameters acquired in advance by a client, storing the control module parameters into a dynamic library corresponding to the ammeter, and acquiring a target ammeter list sent by the client;
the process program construction module is used for screening corresponding parameters of the control module according to the target ammeter list and setting parameters of the safety control module so as to complete construction of a process program corresponding to the target ammeter;
the process interface new module is used for creating a process interface according to a preset WCF protocol and starting the process interface;
and the communication connection module is used for establishing a framework program, and the safety control module loads a plurality of process programs according to the framework program so as to establish communication connection between the dynamic library and the target ammeter.
The concurrent communication method of the embodiment of the invention has at least the following beneficial effects: the parameter acquisition module receives control module parameters acquired in advance by a client, classifies the control module parameters according to a target ammeter, stores the classified control module parameters into a corresponding dynamic library, sends pre-acquired message information to the client, acquires a target ammeter list sent by the client, and the process program construction module screens the control module parameters according to the target ammeter list to screen the control module parameters corresponding to the target ammeter, sets the safety control module according to the control module parameters corresponding to the target ammeter to set the parameters of the safety control module, constructs a process program corresponding to the target ammeter according to the control module parameters, calls a preset WCF protocol in a preset storage space by the process interface newly-built module, establishes a new process interface according to the WCF protocol, starts a process interface, starts a framework program by the safety control module, and loads a plurality of process programs corresponding to the target ammeter at the same time to establish communication connection between the dynamic library and the target ammeter. The control module parameters are stored into the dynamic library through receiving the control module parameters, a target ammeter list sent by a client is obtained, corresponding control module parameters are screened according to the target ammeter list to be used for setting a safety control module, a process program corresponding to the target ammeter is further constructed, a process interface is newly built and started according to a preset WCF protocol, a framework program is established, the process programs corresponding to the target ammeter are loaded through the framework program at the same time, communication connection between the dynamic library and a plurality of target ammeter is established, the process programs corresponding to a plurality of ammeter can be stored on a national network close service platform, and communication is established with the corresponding ammeter through the process programs.
In a fourth aspect, an embodiment of the present invention provides a concurrent communication apparatus, applied to a client, the concurrent communication apparatus including:
the parameter acquisition module is used for acquiring parameters of the control module, and sending the parameters of the control module to the close-fitting platform for storage so as to receive message information returned by the close-fitting platform;
the message information analysis module is used for analyzing the message information, and screening a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list;
and the parameter sending module is used for sending the target ammeter list to the close service platform so that the close service platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
The concurrent communication method of the embodiment of the invention has at least the following beneficial effects: the parameter acquisition module is communicated with the electric meters to acquire control module parameters corresponding to the electric meters, the control module parameters are sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, and receives message information returned by the close-packed platform, the message information analysis module analyzes the message information, screens the control module parameters according to the analyzed message information to screen a list of target electric meters needing to be communicated to obtain a target electric meter list, and the parameter sending module sends the target electric meter list to the close-packed platform so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters according to the target electric meter list. The control module parameters of a plurality of electric meters are obtained and sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, receives and analyzes message information, screens the target according to the message information to obtain a target electric meter list, and sends the target electric meter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters, process programs corresponding to a plurality of electric meters can be stored on the national network close-packed platform, and communication can be established with the corresponding electric meters through the process programs.
In a fifth aspect, an embodiment of the present application provides a concurrent communication apparatus, including:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the concurrent communication method according to the first and second aspects.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the concurrent communication method according to the first and second aspects.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
FIG. 1 is a flow chart of a concurrent communication method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S103 in FIG. 1;
FIG. 3 is a flow chart of another embodiment of a concurrent communication method according to an embodiment of the present invention;
FIG. 4 is a flow chart of another embodiment of a concurrent communication method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating the step S403 in FIG. 4;
FIG. 6 is a flow chart of another embodiment of a concurrent communication method according to an embodiment of the present invention;
FIG. 7 is a block diagram of a concurrent communication apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of another embodiment of a concurrent communication apparatus according to an embodiment of the present invention.
Reference numerals illustrate:
a parameter acquisition module 701, a process program construction module 702, a process interface new module 703 and a communication connection module 704;
parameter acquisition module 801, message information analysis module 802, and parameter transmission module 803.
Detailed Description
The conception and the technical effects produced by the present invention will be clearly and completely described in conjunction with the embodiments below to fully understand the objects, features and effects of the present invention. It is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and that other embodiments obtained by those skilled in the art without inventive effort are within the scope of the present invention based on the embodiments of the present invention.
In the description of the present invention, if an orientation description such as "upper", "lower", "front", "rear", "left", "right", etc. is referred to, it is merely for convenience of description and simplification of the description, and does not indicate or imply that the apparatus or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the invention. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" on another feature, it can be directly disposed, secured, or connected to the other feature or be indirectly disposed, secured, connected, or mounted on the other feature.
In the description of the embodiments of the present invention, if "several" is referred to, it means more than one, if "multiple" is referred to, it is understood that the number is not included if "greater than", "less than", "exceeding", and it is understood that the number is included if "above", "below", "within" is referred to. If reference is made to "first", "second" it is to be understood as being used for distinguishing technical features and not as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
At present, the dynamic libraries provided by the national network encryption machine are packaged one-to-one according to the number of the electric meters which are actually in concurrent communication, so that concurrent synchronous or asynchronous communication is realized, but the national network close service platform provides the dynamic libraries of all electric meter manufacturers with a file locking mechanism on the basis of the same IP address and port, and a process program for packaging the dynamic libraries of a plurality of national network close service platforms cannot be simultaneously communicated with the libraries, so that the concurrent communication cannot be realized, so that the problem of how to realize the simultaneous communication of a client and a plurality of electric meters on the national network close service platform is to be solved.
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a concurrent communication method, which can store process programs corresponding to a plurality of electric meters on a national network close service platform and respectively establish communication with the corresponding electric meters through the process programs.
Referring to fig. 1, fig. 1 is a flow chart illustrating a concurrent communication method according to an embodiment of the invention. In some embodiments, the method is applied to a close-fitting platform, wherein the close-fitting platform comprises a security control module, and the concurrent communication method can comprise, but is not limited to, steps S101 to S104.
Step S101, receiving control module parameters obtained in advance by a client, storing the control module parameters into a dynamic library corresponding to an ammeter, and obtaining a target ammeter list sent by the client;
step S102, screening corresponding control module parameters according to a target ammeter list, and setting parameters of a safety control module so as to complete construction of a process program corresponding to the target ammeter;
step S103, newly creating a process interface according to a preset WCF protocol, and starting the process interface;
step S104, a framework program is established, and the safety control module loads a plurality of process programs according to the framework program so as to establish communication connection between the dynamic library and the target ammeter.
Step S101 to step S104 shown in the embodiment of the application are implemented by receiving control module parameters obtained in advance by a client, classifying the control module parameters according to a target ammeter, storing the classified control module parameters into a corresponding dynamic library, sending the pre-obtained message information to the client, obtaining a target ammeter list sent by the client, screening the control module parameters according to the target ammeter list, screening the control module parameters corresponding to the target ammeter, setting a security control module according to the control module parameters corresponding to the target ammeter, setting the parameters of the security control module, constructing a process program corresponding to the target ammeter according to the control module parameters, calling a preset WCF protocol in a preset storage space, creating a process interface according to the WCF protocol, starting the process interface, building a framework program through the security control module, and simultaneously loading a plurality of process programs corresponding to the target ammeter, so as to establish communication connection between the dynamic library and the target ammeter. The control module parameters are stored into the dynamic library through receiving the control module parameters, a target ammeter list sent by a client is obtained, corresponding control module parameters are screened according to the target ammeter list to be used for setting a safety control module, a process program corresponding to the target ammeter is further constructed, a process interface is newly built and started according to a preset WCF protocol, a framework program is established, the process programs corresponding to the target ammeter are loaded through the framework program at the same time, communication connection between the dynamic library and a plurality of target ammeter is established, the process programs corresponding to a plurality of ammeter can be stored on a national network close service platform, and communication is established with the corresponding ammeter through the process programs.
It should be noted that if five electricity meters are to be operated simultaneously, five process programs need to be developed, and each process program is embedded into a dynamic library provided by the close-packed platform. The operating system and the SOCKET program of the NET framework automatically allocate different client interfaces, and each interface can establish the butt joint work of the process program and the dynamic library of the close-packed platform in the running process of the program.
In step S101 of some embodiments, the client and the electric meter communicate to obtain control module parameters, where the control module parameters include an embedded security control module serial number, a symmetric key version, a current counter, and a whitelist.
Acquiring the serial number of the embedded safety control module, and storing the serial number of the embedded safety control module returned by the table in a memory array of the serial number of the embedded safety control module; the method comprises the steps of obtaining a symmetric key version, and storing information of the symmetric key version returned by a table in a memory array of the symmetric key version; acquiring a current counter, and storing the information of the current counter returned by the table in a memory array of the current counter; and acquiring a white list, and storing the white list information returned by the list in a memory array of the white list. The memory array is arranged in a dynamic library of the secondary package.
After executing step S101, the client establishes an application connection with the close-packed platform, and transmits the just obtained serial number of the embedded security control module, the version of the symmetric key, the current counter and the white list to the session negotiation function of the master station of the dynamic library corresponding to each electric meter, and the close-packed platform obtains the message information and sends the message information to the client. The message information comprises: master station random number, application connection ciphertext, and client signature tuple information.
And after the application connection is successful, organizing the random number of the master station, the application connection ciphertext, the client signature array information and the meter address information of each meter into message information and sending the message information to the corresponding meter.
In step S102 of some embodiments, setting the embedded security control module parameters includes: if the dynamic network secret platform dynamic library is a white list, a symmetric key state, a ciphertext operation mode, an embedded security control module serial number, the white list and a random number obtained by returning from a server are input, and the content length of 4 bytes InOAD+1 bytes and a target ammeter list to be actually set are given to a parameter function of the dynamic network secret platform dynamic library. And after the correct call is realized, returning the security identification type, the security additional data, the output data and the MAC check data. And finally, transmitting the security identification type, the security additional data, the output data and the MAC check data to the target ammeter so as to set the target ammeter until the setting is successful and a corresponding instruction is returned.
Referring to fig. 2, fig. 2 is a flow chart illustrating a concurrent communication method according to an embodiment of the application. In some embodiments, the new process interface according to the preset WCF protocol includes steps S201 to S203.
Step S201, newly creating an interface according to the WCF protocol to obtain an initial process interface;
step S202, embedding a preset communication mechanism into an initial process interface to initialize the initial process interface;
step S203, defining a service program of the initial process interface according to a preset service class to obtain the process interface.
Step S201 to step S203 shown in the embodiment of the application call the WCF protocol in the preset storage space, newly establish an initial interface according to the WCF protocol, obtain an initial process interface, embed a preset communication mechanism into the initial process interface in an embedded manner to initialize the initial process interface, and define the initial process interface according to a preset service class to define a service program of the initial process interface, thereby obtaining the process interface.
It should be noted that, each process corresponds to the newly built process interface of webservice in the process, and the process interface is started along with the running of the process program. In addition, a communication mechanism for communication is embedded in the process interface, and the communication mechanism comprises: synchronous call, asynchronous call and callback mechanisms. The callback mechanism is a common design model, exposes a certain function in the workflow to an external user according to a contracted interface, and provides data for the external user or requires the external user to provide data.
There is always a certain interface between software modules, and from the calling mode, the interfaces can be divided into three types: synchronous calls, callbacks, and asynchronous calls. The synchronous call is a blocking call, and the caller returns after waiting for the execution of the other party, which is a unidirectional call; callback is a bidirectional calling mode, and a called party can call the interface of the other party when the interface is called; asynchronous call is a mechanism similar to a message or an event, but the call direction is just opposite, and when a certain message is received or a certain event occurs, the service of the interface actively informs the user terminal, namely, the interface of the user terminal is called.
In step S202 of some embodiments, an initial process interface is newly created using the WCF agreement created by the user-defined interface. Wherein the WCF agreement defines the functionality of the service disclosure.
In step S203 of some embodiments, after defining the WCF agreement, the WCF agreement is implemented using a service class.
In step S104 of some embodiments, when the framework program is loaded, a plurality of process programs are loaded simultaneously, the number of the process programs corresponds to the number of the electric meters to be controlled, and each electric meter is provided with a corresponding process program.
Referring to fig. 3, fig. 3 is a flow chart illustrating a concurrent communication method according to an embodiment of the invention. In some embodiments, after the new process interface is established according to the preset WCF protocol, the concurrent communication method further includes steps S301 to S302.
Step S301, configuring a terminal point for a service program;
step S302, configuring and hosting the service program life cycle in a preset runtime environment according to the terminal point allocation service program.
In the steps S301 to S302 shown in the embodiment of the present application, a terminal point for stopping executing a service program is configured for the service program, and the service program is allocated according to the terminal point in a preset runtime environment, so that the lifecycle of the service program is configured in the runtime environment, and the service program is managed in the runtime environment, so that the service program runs according to the lifecycle.
The service program is configured and managed in the runtime environment so that the service program becomes active. Wherein the runtime environment will create a service program and control the running and lifetime of the service program, the lifecycle of the service program being synchronized with the lifecycle of the entire application program.
A set of service-oriented service program is embedded in each process program, and the service program is provided with a client interface for actively reporting the main frame process and a service end for receiving the main frame instruction in real-time interrupt mode response.
Referring to fig. 4, fig. 4 is a flow chart illustrating a concurrent communication method according to an embodiment of the application. In some embodiments, the concurrent communication method further includes steps S401 to S403.
Step S401, acquiring the execution condition of a process program in real time to obtain process execution data;
step S402, transmitting the process execution data to a server to receive a process execution instruction returned by the server;
step S403, the process program is controlled to execute corresponding target operation according to the process execution instruction.
In the steps S401 to S403 shown in the embodiment of the present application, a process program is detected in real time to detect an execution condition of the process program, so as to obtain process execution data, the process execution data is transmitted to a server, the server performs a corresponding operation according to the process execution data, and sends a process execution instruction to a close-packed platform, the close-packed platform receives the process execution instruction returned by the server, and controls the process program to perform a next operation according to the process execution instruction, so that the process program performs a corresponding target operation.
Referring to fig. 5, fig. 5 is a flow chart illustrating a concurrent communication method according to an embodiment of the application. In some embodiments, the process execution instruction includes a synchronous operation instruction and an asynchronous operation instruction, the target operation includes a synchronous operation and an asynchronous operation, and controlling the process program to execute the corresponding target operation according to the process execution instruction includes steps S501 to S502.
Step S501, controlling a process program to execute corresponding synchronous operation according to a synchronous operation instruction;
step S502, the process program is controlled to execute corresponding asynchronous operation according to the asynchronous operation instruction.
In step S501 to step S502 shown in the embodiment of the present application, the process execution instruction is analyzed, if the process execution instruction is a synchronous operation instruction, the process program is controlled according to the synchronous operation instruction, so that the process program further executes the corresponding synchronous operation, and if the process execution instruction is an asynchronous operation instruction, the process program is controlled according to the asynchronous operation instruction, so that the process program further executes the corresponding asynchronous operation.
After the operation of the close-packed platform is completed, the corresponding structural result data is transmitted to the server of the main framework program, the server waits for all the process programs to complete the operation task of the close-packed platform, then the server instructs each process program to simultaneously continue to execute synchronous operation, the server does not need to wait for all the process programs to complete the operation task of the close-packed platform, and then instructs the current process program to continue to execute asynchronous operation. The close-packed platform can be operated simultaneously by each process program, and the close-packed platform opens up a memory space for the process programs of the clients of each different port.
Referring to fig. 6, fig. 6 is a flow chart illustrating a concurrent communication method according to an embodiment of the application. In some embodiments, the concurrent communication method applied to the client may include, but is not limited to, steps S601 to S603.
Step S601, acquiring control module parameters, and sending the control module parameters to a close-packed service platform for storage so as to receive message information returned by the close-packed service platform;
step S602, analyzing the message information, and screening a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list;
and step S603, the target ammeter list is sent to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
In the steps S601 to S603 shown in the embodiment of the present application, communication is performed with a plurality of electric meters to obtain control module parameters corresponding to the plurality of electric meters, the control module parameters are sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, and receives the message information returned by the close-packed platform, and the message information is analyzed, and screening is performed in the control module parameters according to the analyzed message information, so as to screen a list of target electric meters to be communicated, so as to obtain a target electric meter list, and the target electric meter list is sent to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters according to the target electric meter list. The control module parameters of a plurality of electric meters are obtained and sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, receives and analyzes message information, screens the target according to the message information to obtain a target electric meter list, and sends the target electric meter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters, process programs corresponding to a plurality of electric meters can be stored on the national network close-packed platform, and communication can be established with the corresponding electric meters through the process programs.
In step S602 of some embodiments, the client obtains a white list to be set, i.e. a target ammeter list, by scanning a nameplate or inputting.
In addition, after the client and the ammeter are successfully connected, the client software analyzes the message information to obtain manufacturer information, merchant information, authentication result and authentication additional information. Wherein, the vendor information includes: vendor code, software version number, software version date, hardware version number, hardware version date and vendor extension information, the vendor information comprising: an agreed application layer protocol version number, an agreed protocol coherence block, an agreed function coherence block, a server send frame maximum size, a server receive frame maximum window size, a server maximum processable APDU size, and an agreed application connection timeout time, the authentication result comprising: allowing the establishment of an application connection, the authentication additional information including: application session negotiation data returned by the ammeter, session negotiation MAC returned by the ammeter and session key negotiation verification.
In addition, the embodiment of the application also discloses a concurrent communication device, please refer to fig. 7, fig. 7 is a block diagram of the concurrent communication device according to an embodiment of the application. The concurrency communication device is applied to the close-fitting platform, and can realize the concurrency communication method, and the close-fitting platform comprises a safety control module, and the concurrency communication device comprises: the parameter acquisition module 701, the process program construction module 702, the process interface new module 703 and the communication connection module 704 are all in communication connection.
The parameter acquisition module 701 receives control module parameters acquired in advance by the client, stores the control module parameters to a dynamic library corresponding to the ammeter, and acquires a target ammeter list sent by the client. The process program construction module 702 screens the parameters of the corresponding control module according to the target ammeter list to set the parameters of the safety control module so as to complete the construction of the process program corresponding to the target ammeter. The process interface creation module 703 creates a process interface according to a preset WCF protocol, and starts the process interface. The communication connection module 704 establishes a framework program, and the security control module loads a plurality of process programs according to the framework program to establish communication connection between the dynamic library and the target ammeter.
The parameter acquisition module 701 receives control module parameters acquired in advance by a client, classifies the control module parameters according to a target ammeter, stores the classified control module parameters into a corresponding dynamic library, sends pre-acquired message information to the client, acquires a target ammeter list sent by the client, and the process program construction module 702 screens the control module parameters according to the target ammeter list to screen the control module parameters corresponding to the target ammeter, sets the security control module according to the control module parameters corresponding to the target ammeter to set the parameters of the security control module, constructs a process program corresponding to the target ammeter according to the control module parameters, invokes a preset WCF protocol in a preset storage space, establishes a process interface according to the WCF protocol, establishes a frame program according to the WCF protocol, and simultaneously loads a plurality of process programs corresponding to the target ammeter to establish communication connection between the dynamic library and the target ammeter. The control module parameters are stored into the dynamic library through receiving the control module parameters, a target ammeter list sent by a client is obtained, corresponding control module parameters are screened according to the target ammeter list to be used for setting a safety control module, a process program corresponding to the target ammeter is further constructed, a process interface is newly built and started according to a preset WCF protocol, a framework program is established, the process programs corresponding to the target ammeter are loaded through the framework program at the same time, communication connection between the dynamic library and a plurality of target ammeter is established, the process programs corresponding to a plurality of ammeter can be stored on a national network close service platform, and communication is established with the corresponding ammeter through the process programs.
The operation process of the concurrent communication apparatus of the present embodiment specifically refers to the concurrent communication method steps S101 to S105, the steps S201 to S203, the steps S301 to S303, the steps S401 and S402, and the steps S501 to S504 in the above-described fig. 1, 2, 3, 4 and 5, and is not repeated here.
Referring to fig. 8, fig. 8 is a block diagram illustrating a concurrent communication apparatus according to an embodiment of the present invention. The concurrency communication device is applied to the client and can realize the concurrency communication method, and the concurrency communication device comprises: the device comprises a parameter acquisition module 801, a message information analysis module 802 and a parameter sending module 803, wherein the parameter acquisition module 801, the message information analysis module 802 and the parameter sending module 803 are all in communication connection.
The parameter acquisition module 801 acquires the control module parameters, and sends the control module parameters to the close-packed service platform for storage so as to receive the message information returned by the close-packed service platform. The message information analysis module 802 analyzes the message information, and screens a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list. The parameter sending module 803 sends the target ammeter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
The parameter acquisition module 801 communicates with a plurality of electric meters to acquire control module parameters corresponding to the plurality of electric meters, the control module parameters are sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, and receives message information returned by the close-packed platform, the message information analysis module 802 analyzes the message information, screens the control module parameters according to the analyzed message information to screen a list of target electric meters needing to be communicated, so as to obtain a target electric meter list, and the parameter sending module 803 sends the target electric meter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters according to the target electric meter list. The control module parameters of a plurality of electric meters are obtained and sent to the close-packed platform, so that the close-packed platform stores the control module parameters to the dynamic library, receives and analyzes message information, screens the target according to the message information to obtain a target electric meter list, and sends the target electric meter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target electric meters, process programs corresponding to a plurality of electric meters can be stored on the national network close-packed platform, and communication can be established with the corresponding electric meters through the process programs.
The operation process of the concurrent communication apparatus of the present embodiment specifically refers to the steps S601 to S603 of the concurrent communication method in fig. 6 described above, and is not repeated here.
Another embodiment of the present invention discloses a concurrent communication apparatus, including: at least one processor, and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the concurrent communication methods as in the control method steps S101 to S105 in fig. 1, the control method steps S201 to S203 in fig. 2, the control method steps S301 to S303 in fig. 3, the control method steps S401 and S402 in fig. 4, the control method steps S501 to S503 in fig. 5, and the control method steps S601 to S603 in fig. 6.
Another embodiment of the present invention discloses a computer-readable storage medium, the storage medium comprising: the storage medium stores computer-executable instructions for causing a computer to execute the concurrent communication methods of the control method steps S101 to S105 in fig. 1, the control method steps S201 to S203 in fig. 2, the control method steps S301 to S303 in fig. 3, the control method steps S401 and S402 in fig. 4, the control method steps S501 to S503 in fig. 5, and the control method steps S601 to S603 in fig. 6.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.

Claims (10)

1. The concurrent communication method is characterized by being applied to a close-fitting platform, wherein the close-fitting platform comprises a safety control module, and the concurrent communication method comprises the following steps:
receiving control module parameters obtained in advance by a client, storing the control module parameters into a dynamic library corresponding to an ammeter, and obtaining a target ammeter list sent by the client;
screening corresponding parameters of the control module according to the target ammeter list, and setting parameters of the safety control module to complete construction of a process program corresponding to the target ammeter;
newly creating a process interface according to a preset WCF protocol, and starting the process interface;
and establishing a framework program, and loading a plurality of process programs by the safety control module according to the framework program so as to establish communication connection between the dynamic library and the target ammeter.
2. The concurrent communication method according to claim 1, wherein the newly-built process interface according to a preset WCF protocol includes:
newly establishing an interface according to the WCF protocol to obtain an initial process interface;
embedding a preset communication mechanism into the initial process interface to initialize the initial process interface;
and defining a service program of the initial process interface according to a preset service class to obtain the process interface.
3. The concurrent communication method according to claim 2, wherein after the newly-built process interface according to a preset WCF protocol, the concurrent communication method further comprises:
configuring a terminal point for the service program;
and allocating the service program according to the terminal point, and configuring and hosting the life cycle of the service program in a preset runtime environment.
4. The concurrent communication method according to claim 1, further comprising:
acquiring the execution condition of the process program in real time to obtain process execution data;
transmitting the process execution data to a server to receive a process execution instruction returned by the server;
and controlling the process program to execute corresponding target operation according to the process execution instruction.
5. The concurrent communication method according to claim 4, wherein the process execution instruction includes a synchronous operation instruction and an asynchronous operation instruction, the target operation includes a synchronous operation and an asynchronous operation, and the controlling the process program to execute the corresponding target operation according to the process execution instruction includes:
controlling the process program to execute the corresponding synchronous operation according to the synchronous operation instruction;
and controlling the process program to execute the corresponding asynchronous operation according to the asynchronous operation instruction.
6. A concurrent communication method, which is applied to a client, the concurrent communication method comprising:
acquiring control module parameters, and sending the control module parameters to a close-fitting platform for storage so as to receive message information returned by the close-fitting platform;
analyzing the message information, and screening a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list;
and sending the target ammeter list to the close-packed platform, so that the close-packed platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
7. The utility model provides a concurrency communication device, its characterized in that is applied to close clothes platform, close clothes platform includes the safety control module, concurrency communication device includes:
the parameter acquisition module is used for receiving control module parameters acquired in advance by a client, storing the control module parameters into a dynamic library corresponding to the ammeter, and acquiring a target ammeter list sent by the client;
the process program construction module is used for screening corresponding parameters of the control module according to the target ammeter list and setting parameters of the safety control module so as to complete construction of a process program corresponding to the target ammeter;
the process interface new module is used for creating a process interface according to a preset WCF protocol and starting the process interface;
and the communication connection module is used for establishing a framework program, and the safety control module loads a plurality of process programs according to the framework program so as to establish communication connection between the dynamic library and the target ammeter.
8. A concurrent communication apparatus, for application to a client, the concurrent communication apparatus comprising:
the parameter acquisition module is used for acquiring parameters of the control module, and sending the parameters of the control module to the close-fitting platform for storage so as to receive message information returned by the close-fitting platform;
The message information analysis module is used for analyzing the message information, and screening a list corresponding to the target ammeter in the control module parameters according to the message information to obtain a target ammeter list;
and the parameter sending module is used for sending the target ammeter list to the close service platform so that the close service platform establishes communication connection between the dynamic library and the target ammeter according to the target ammeter list.
9. A concurrent communication device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the concurrent communication method of any one of claims 1 to 6.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the concurrent communication method according to any one of claims 1 to 6.
CN202310917846.0A 2023-07-24 2023-07-24 Concurrent communication method, device, equipment and storage medium Pending CN117041763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310917846.0A CN117041763A (en) 2023-07-24 2023-07-24 Concurrent communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310917846.0A CN117041763A (en) 2023-07-24 2023-07-24 Concurrent communication method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117041763A true CN117041763A (en) 2023-11-10

Family

ID=88601446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310917846.0A Pending CN117041763A (en) 2023-07-24 2023-07-24 Concurrent communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117041763A (en)

Similar Documents

Publication Publication Date Title
US10802906B2 (en) Monitoring method and apparatus of server, and storage medium
CN104978263B (en) A kind of mobile terminal applied program testing method and system
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
US8713177B2 (en) Remote management of networked systems using secure modular platform
TWI516059B (en) Setup method and system for client and server environment
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
RU2554570C2 (en) Method and system for executing services on server and client of client-server architecture
CN108536484A (en) Parameter amending method, device, terminal device and storage medium
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN114490356A (en) Pressure testing method, system, equipment and storage medium
CN103516851A (en) Cloud testing platform system for wireless products
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN109729346B (en) Remote debugging method and system for television, debugging terminal and television terminal
CN104426715B (en) A kind of distributed testing tool control method
EP2445171B1 (en) File transfer protocol client and implementing method thereof
CN109788251A (en) Method for processing video frequency, device and storage medium
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN112799970A (en) Test data processing method, device, electronic equipment and medium
CN102393887B (en) Application centralized management system and method based on Linux security module (LSM) mechanism
CN104570967A (en) Android system based remote control method and system
CN109656791B (en) gPC performance test method and device based on Jmeter
CN110995780A (en) API calling method and device, storage medium and electronic equipment
CN117041763A (en) Concurrent communication method, device, equipment and storage medium

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