Search

CN-121814871-B - Multi-protocol data interaction method and system integrating cloud management and upper computer control

CN121814871BCN 121814871 BCN121814871 BCN 121814871BCN-121814871-B

Abstract

The invention relates to the technical field of intelligent communication control, in particular to a multi-protocol data interaction method and system integrating cloud management and upper computer control. The system comprises a main board, a cloud background management system and an upper computer management system, wherein the main board is provided with multiple independent serial ports to form multiple RS485 ports and at least one RS232 port. The main board receives the port configuration proposal and generates shadow configuration, establishes an original frame annular buffer area according to the port, and stores the original byte sequence of the frames, the receiving time and the frame interval. And generating a verification report, a shadow digest value and a verification digest value based on the playback verification shadow configuration of the cache frame, and switching the atoms into the effective configuration when the digests are consistent and the safety switching window is satisfied. After the configuration is effective, multi-protocol analysis is carried out, the configuration is converted into a unified format for uploading, and meanwhile, the control instruction is mapped into a target protocol frame for issuing, so that the configuration online reliability is improved.

Inventors

  • LI JUXIA
  • Tong Shipeng
  • ZHANG ZHEREN
  • CHEN TING
  • LIN CHENGJIE
  • Zhang Xingtong
  • CHEN YONGLIAN

Assignees

  • 温州蓝天能源科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260309

Claims (9)

  1. 1. A multi-protocol data interaction method integrating cloud management and upper computer control is applied to an intelligent communication control system, the system comprises a main board and a management system, the management system is a cloud background management system or an upper computer management system, the main board comprises a processor and a plurality of independent serial ports, the independent serial ports correspond to a plurality of RS485 ports and at least one RS232 port, the RS485 ports are connected with an oiling machine, the RS232 ports are in communication connection with the management system, the method is characterized by comprising the steps of S1, establishing management communication between the main board and the management system and reporting port information and supportable protocol sets, S2, receiving port configuration proposals sent by the management system, the port configuration proposals at least comprise port identifiers and protocol identifiers, generating shadow configuration under the condition that effective configuration is kept unchanged by the main board, establishing original frame buffer areas aiming at ports corresponding to the port identifiers, storing a preset number of original frame byte sequences in time sequence, recording receiving time information and interval information for each original byte sequence, and verifying the shadow frame buffer areas, verifying the shadow frame buffer areas by at least corresponding to the shadow frame buffer areas, verifying the shadow frame buffer areas and the shadow buffer areas are required by at least verifying the shadow frame buffer areas, verifying values are required by at least verifying the corresponding to the original frame buffer areas, and the shadow frame buffer areas are required to be verified by at least verifying values, and at least verifying the shadow frame values required for the corresponding to be verified by the original frame buffer values, at least verification values are established, at least step 4, the configuration submitting instruction carries a shadow abstract value and a verification abstract value, when the shadow abstract value carried by the configuration submitting instruction is consistent with the current shadow abstract value, the verification abstract value carried by the configuration submitting instruction is consistent with the current verification abstract value, and a safety switching window condition is met, a main board switches shadow configuration atoms into an effective configuration, wherein the safety switching window condition at least comprises one of the following steps that a target port does not receive a frame original byte sequence within a continuous preset idle time period or the frame interval of the last preset number of frame original byte sequences of the target port is larger than a preset interval threshold, and in step S5, the main board analyzes each port according to a corresponding protocol under the effective configuration and converts the analyzed data into unified format data to be sent to a management system, and maps a control instruction of the management system into a target protocol frame to be sent down through the target port, so that multi-protocol bidirectional data interaction is realized.
  2. 2. The method for integrating cloud management and host computer control with multi-protocol data interaction of claim 1, wherein the port configuration proposal further comprises a communication parameter and an equipment address set corresponding to the port identification, the communication parameter at least comprises one or more of a baud rate, a verification mode, a data bit and a stop bit, and the mainboard respectively sets different protocol identifications and corresponding communication parameters for different RS485 ports according to the port configuration proposal so as to realize multi-protocol parallel access.
  3. 3. The method for integrating cloud management and host computer control of claim 1 wherein said original frame buffer is a ring buffer, and when the number of stored frames reaches said predetermined number, the earliest stored framed original byte sequence is covered with the newly received framed original byte sequence.
  4. 4. The method for integrating cloud management and host computer control of multi-protocol data interaction of claim 1, wherein said playback verification further supplements said verification indicator based on at least one of an address matching rate and a field rationality passing rate, and said verification report includes said verification indicator and a comparison result thereof with said preset threshold.
  5. 5. The method for integrating cloud management and host computer control with multi-protocol data interaction according to claim 1, wherein the shadow digest value is a digest value obtained by performing digest operation on a parameter set of a shadow configuration, the verification digest value is a digest value obtained by performing digest operation on a verification index in a verification report, and the master board is allowed to execute the atomic switch when the shadow digest value and the verification digest value carried by the configuration submitting instruction are respectively consistent with the shadow digest value and the verification digest value stored by the master board, and refuses to execute the atomic switch when any one of the shadow digest value and the verification digest value is inconsistent.
  6. 6. The method for integrating cloud management and host computer control according to claim 1, wherein when the management system comprises a cloud background management system and a host computer management system, the preset arbitration rule comprises that when a configuration submitting instruction from the cloud background management system and a shadow abstract value carried by the cloud background management system and the host computer management system are received within a preset time window and are inconsistent, the main board refuses to execute the atomic switching, and returns conflict prompt information to the cloud background management system and the host computer management system.
  7. 7. The method for integrating cloud management and host computer control of claim 1 wherein said atomic switch is performed after a host board suspends target port transceiving and clears framing status associated with an old validation configuration when said secure switch window condition is satisfied.
  8. 8. The method for integrating cloud management and host computer control with multi-protocol data interaction of claim 1, wherein the unified format data comprises a logic device identifier, a message type and a service data field, wherein the logic device identifier is generated by combining a port identifier, a device address and a protocol identifier, and the main board determines a target port and a target protocol according to the logic device identifier so as to finish the mapping issuing of the control instruction to a target protocol frame.
  9. 9. The multi-protocol data interaction system integrating cloud management and upper computer control is characterized by comprising a main board and a management system, wherein the management system is a cloud background management system or an upper computer management system, the main board comprises a processor and a plurality of independent serial ports, the independent serial ports correspond to a plurality of RS485 ports and at least one RS232 port, the RS485 ports are used for being connected with oiling machines, the RS232 ports are used for being in communication connection with the management system, the main board further comprises a memory and program instructions executed by the processor, the program instructions are used for enabling the main board to establish management communication with the management system and report port information and a supportable protocol set, a port configuration proposal sent by the management system is received, shadow configuration is generated under the condition that the effective configuration is kept unchanged, an original frame buffer is established for a port identifier corresponding port in the port configuration proposal, the original frame buffer is used for storing a preset number of divided original frame byte sequences in time sequence, receiving time information and frame interval information are recorded for each original byte sequence, a current digest value is generated by switching the shadow byte sequence, a current digest value is verified, a digest value is verified by a current digest value, a digest value is generated, and a digest value is verified by switching the current digest value, and a digest value is verified by a current digest value is respectively, and a digest value is verified by a current digest value is verified and a value is verified, the safety switching window condition at least comprises a continuous preset idle time judging condition or a frame interval threshold judging condition, each port is analyzed according to a corresponding protocol under the generation configuration, and converted into unified format data which is sent to the management system, and a control instruction of the management system is mapped into a target protocol frame which is sent through the target port, so that multi-protocol bidirectional data interaction is realized.

Description

Multi-protocol data interaction method and system integrating cloud management and upper computer control Technical Field The invention relates to the technical field of intelligent communication control, in particular to a multi-protocol data interaction method and system integrating cloud management and upper computer control. Background The informatization and automation construction of the gas station is subjected to the evolution process of centralized monitoring from single metering to station level and then to cross-site remote operation and maintenance. The early oiling machine mostly adopts local independent control and simple serial port communication, data acquisition and transaction summarization are carried out in a station through RS232 or RS485 and a station control machine, and as the chained operation and supervision requirements are improved, the centralized management requirements of a cloud on equipment state, transaction data, alarm and maintenance records are continuously enhanced, and the on-site upper computer bears responsibilities such as installation and debugging, protocol adaptation, fault positioning, off-line guarantee and the like. Meanwhile, the brands and models of the gas station equipment are continuously diversified, protocols of manufacturers at home and abroad coexist and version iteration is frequent, station access gradually develops from a single protocol link to a multi-port and multi-protocol parallel access form, a main board side is usually required to have multi-serial resource, isolation and level conversion capability, protocol analysis, data aggregation and control issuing are completed under cloud or upper computer configuration, and therefore the method is suitable for differentiated deployment and large-scale operation and maintenance of different stations. The existing multi-protocol access scheme still has the outstanding defects that the configuration of a port protocol and communication parameters is always directly acted on an online link, port communication is easy to be interrupted when the configuration is wrong or the protocol selection is not matched, so that the equipment state is unreadable, transaction data is lost or control is invalid, the configuration source can be in competition or coverage under the condition that cloud operation and maintenance are concurrent with an on-site upper computer, unstable phenomena such as 'changing over and breaking over' and 'repeatedly switching over' are easy to occur due to lack of a reliable consistency check and conflict processing mechanism, most schemes lack of verifiable means for the effectiveness of new configuration, whether the configuration is available is difficult to evaluate on the premise of not interrupting service, and the interference to the ongoing service flow can be generated if the switching opportunity does not avoid a high-frequency interaction stage. The problems are solved by the multi-protocol data interaction method and the system which are used for integrating cloud management and upper computer control, because the problems are caused by high multi-protocol expansion and field maintenance cost, high risk and difficult guarantee of stability. Disclosure of Invention The invention provides a multi-protocol data interaction method and a system integrating cloud management and upper computer control, which solve the problems. The technical scheme is that the multi-protocol data interaction method integrating cloud management and upper computer control is applied to an intelligent communication control system, wherein the system comprises a main board and a management system, and the management system is a cloud back-end management system or an upper computer management system; the method comprises the steps of S1, establishing management communication between the main board and the management system, reporting port information and supportable protocol sets, S2, receiving a port configuration proposal sent by the management system, wherein the port configuration proposal at least comprises a port identification and a protocol identification, generating shadow configuration by the main board under the condition that effective configuration is unchanged, establishing an original frame buffer zone for a port corresponding to the port identification, storing a preset number of divided frame original byte sequences in time sequence, recording receiving time information and frame interval information for each original byte sequence, S3, playing back a verification report by the main board based on the divided frame original byte sequences in the original frame buffer zone, generating a shadow abstract value and a verification abstract value, wherein the verification at least comprises a step of determining whether the shadow configuration at least comprises a corresponding frame identifier and a corresponding verification threshold value, and a step of determining whether a correspondi