Charging information interconnection and intercommunication method and device, computer equipment and storage medium

By obtaining the original information of the charging station for protocol matching and adaptation, encryption and signature processing, and using the communication protocol transmission and verification of the target platform, the problem of charging information islands is solved and efficient and secure information transmission is achieved.

CN119697217AActive Publication Date: 2025-03-25GUANGDONG NEW GIANT ENERGY TECH CO LTD

Patent Information

Application Number
CN202411821665.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-25
Estimated Expiration
2044-12-11

AI Technical Summary

Technical Problem

There is an island of information between charging piles of different brands and models, which makes it difficult to interconnect charging information efficiently and safely.

Method used

By obtaining the original information of the charging station, the protocol matching and adaptation are performed to ensure the consistency of the information format; then the information is encrypted and signed to ensure data security and integrity; finally, the communication protocol supported by the target platform is used for transmission, and decryption and signature verification are performed on the target platform.

Benefits of technology

It realizes efficient and seamless transmission of charging information, ensures the security and integrity of data, and solves the problem of information islands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697217A_ABST
    Figure CN119697217A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of interconnection and intercommunication of charging information. The charging information interconnection and intercommunication method comprises the steps of obtaining original information of a charging station, inputting the original information of the charging station into a protocol matching model, performing protocol adaptation and format conversion on the original information of the charging station by the protocol matching model to obtain adapted charging station information, and transmitting the adapted charging station information to the computer equipment. And performing encryption and signature processing on the adapted charging station information to obtain the encrypted and signed charging station information, and transmitting the encrypted and signed charging station information through a communication protocol supported by the target platform to obtain the successfully transmitted charging station information. And the target platform performs decryption and signature verification on the successfully transmitted charging station information to obtain the successfully verified charging station information, and stores the successfully verified charging station information in a relational database of the target platform. The method has the effect of realizing efficient transmission of the charging information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interconnection of charging information, and in particular to a charging information interconnection method, device, computer equipment and storage medium. Background Art

[0002] Electric vehicle charging infrastructure has developed rapidly in recent years, with the number of charging piles increasing and the coverage gradually expanding. This has not only improved the convenience of electric vehicle users, but also promoted the rapid growth of the electric vehicle market. However, with the widespread deployment of charging piles of different brands and models, there are information islands between charging stations, making it difficult for charging information to be interconnected. In this case, how to achieve efficient and secure transmission of charging information has become an urgent problem to be solved. Summary of the invention

[0003] In order to achieve efficient transmission of charging information, the present application provides a charging information interconnection method, apparatus, computer equipment and storage medium.

[0004] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A charging information interconnection method, the charging information interconnection method comprising: Get the original information of the charging station; Inputting the original information of the charging station into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain adapted charging station information; Encrypting and signing the adapted charging station information to obtain encrypted and signed charging station information; Transmitting the encrypted and signed charging station information through a communication protocol supported by a target platform to obtain successfully transmitted charging station information; The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information; The charging station information after successful verification is stored in the relational database of the target platform.

[0005] By adopting the above technical solution, the charging station original information is obtained and the protocol is adapted to ensure that the charging information can be efficiently and seamlessly transmitted between different platforms. First, the original information of the charging station is structurally analyzed with the help of the protocol matching model to identify the differences between different protocol formats and ensure that the information can adapt to the protocol requirements of the target platform. Then, the protocol matching model generates protocol adaptation requirements based on the analysis results, automatically adjusts the fields and information structure, and optimizes the transmission format of the charging station information. Subsequently, encryption and signature processing are used to ensure that the charging information will not be tampered with or leaked during transmission, providing data security and integrity protection. Next, the encrypted and signed information is efficiently transmitted using the communication protocol supported by the target platform to ensure that the charging information reaches the target platform in a timely manner. Finally, the validity and source legitimacy of the charging information are verified through the decryption and signature verification mechanism of the target platform, and the successfully verified information is stored in the platform database for subsequent query and data analysis.

[0006] In a preferred example, the present application may be further configured as follows: the original information of the charging station is input into a protocol matching model, and the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information, including: Analyzing the original protocol format of the original information of the charging station through the protocol matching model, determining the protocol difference result between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference result; Based on the protocol adaptation requirement, a protocol adaptation rule is determined, and according to the protocol adaptation rule, the fields and information structure in the original information of the charging station are automatically adjusted to obtain the adapted charging station information.

[0007] By adopting the above technical solution, by obtaining the original information of the charging station and analyzing its protocol format, it is ensured that the information can seamlessly adapt to the protocol requirements of the target platform. First, the protocol format of the original information of the charging station is analyzed with the help of the protocol matching model, and compared with the protocol format supported by the target platform to accurately identify the differences between the protocols. Then, based on the analysis results, the protocol adaptation requirements are generated to clarify which fields need to be adjusted, whether the data types match, and the optimization requirements of the protocol structure. Next, based on the protocol adaptation requirements, the fields and structures in the original information of the charging station are adjusted using automated protocol adaptation rules to ensure that they meet the requirements of the target platform and optimize the information format. Through this protocol adaptation mechanism, it is ensured that the charging station information can be efficiently and accurately transmitted to the target platform and meet the compatibility requirements between different platforms.

[0008] In a preferred example, the present application may be further configured as follows: analyzing the original protocol format of the original information of the charging station by the protocol matching model, determining the protocol difference result between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference result, including: Performing a structural analysis on the original protocol format of the original information of the charging station and the protocol supported by the target platform through the protocol matching model to obtain a structural analysis result; Based on the structured analysis result, the protocol matching model determines the protocol difference result by comparing the differences in fields and information structures; According to the difference result, the protocol matching model outputs the protocol adaptation requirement.

[0009] By adopting the above technical solution, by obtaining the original information of the charging station and performing protocol analysis, it is ensured that the charging information can efficiently adapt to the communication protocol of the target platform. First, with the help of the protocol matching model, the protocol format of the original information of the charging station and the protocol supported by the target platform are structurally analyzed to identify and extract structured information such as fields, data types, and field order. Then, based on the results of the structured analysis, the protocol matching model clearly identifies the differences between the protocols by comparing the differences in fields and information structures, such as mismatched field names, inconsistent data types, or different protocol hierarchical structures. Finally, based on the identified differences, the protocol matching model outputs the corresponding protocol adaptation requirements, indicating how to adjust the field name, convert the data type, or adjust the field order to ensure that the original information of the charging station can meet the format requirements of the target platform, thereby achieving compatibility between the two.

[0010] In a preferred example, the present application may be further configured as follows: encrypting and signing the adapted charging station information to obtain the encrypted and signed charging station information, including: According to the encryption specification of the target platform, the adapted charging station information is encrypted by an encryption algorithm to obtain encrypted charging station information; Signing the encrypted charging station information using the signature algorithm of the target platform to obtain the signed charging station information; The encrypted charging station information and the signed charging station information are encapsulated to obtain the encrypted and signed charging station information.

[0011] By adopting the above technical solution, the adapted charging station information is encrypted and signed to ensure the security and integrity of the data. First, according to the encryption specification of the target platform, the adapted charging station information is encrypted using an appropriate encryption algorithm to ensure the security of the information during transmission and prevent it from being stolen or tampered with. Next, the encrypted information is signed using the signature algorithm of the target platform to ensure the integrity of the data and the credibility of the source, and to prevent the information from being tampered with or forged during transmission. Finally, the encrypted charging station information and the signed information are encapsulated to form a complete data packet and prepared for secure transmission. Through this process, not only the encryption and verification of the information are guaranteed, but also the security and non-repudiation of data transmission are ensured.

[0012] In a preferred example, the present application may be further configured as follows: the encrypted and signed charging station information is transmitted through a communication protocol supported by a target platform to obtain successfully transmitted charging station information, and further comprising: During the transmission of the encrypted and signed charging station information, a transmission path optimization mechanism is used to automatically select a transmission path for sending the encrypted and signed charging station information to the target platform.

[0013] By adopting the above technical solution, the transmission path of the charging station information after encryption and signature processing is optimized to ensure that the information can be efficiently and securely delivered to the target platform. First, during the transmission process, the transmission path optimization mechanism is used to automatically select the best transmission path based on the current network status, bandwidth, latency, and load of the target platform. The optimization mechanism monitors network performance in real time and dynamically adjusts the transmission path to ensure the stability and low latency of information transmission, thereby avoiding network bottlenecks or potential packet loss risks during data transmission. Through this automated path optimization, the efficiency and security of data transmission can be significantly improved, ensuring that the charging station information after encryption and signature processing can reach the target platform efficiently, quickly, and accurately.

[0014] In a preferred example, the present application may be further configured as follows: the target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information, including: Decrypting the encrypted charging station information using the decryption key of the target platform to obtain the decrypted charging station information; The decrypted charging station information is verified by using the signature key of the target platform to obtain the charging station information after successful verification.

[0015] By adopting the above technical solution, the security and integrity of the information are ensured by decrypting and verifying the encrypted and signed charging station information. First, the encrypted charging station information is decrypted with the help of the decryption key of the target platform to restore the original content of the information. During the decryption process, the decryption algorithm corresponding to the encryption is used to ensure that only the platform with the correct decryption key can successfully restore the information. Next, the signature of the decrypted charging station information is verified using the signature key of the target platform to ensure that the information has not been tampered with during transmission and to confirm the legitimacy of the data source. The signature verification is performed by hashing the decrypted information and comparing it with the signature attached during the transmission process. If the two are consistent, the integrity of the information is considered to be guaranteed. Through this encryption and signature verification mechanism, the security and reliability of the charging station information are ensured.

[0016] In a preferred example, the present application may be further configured as follows: the decrypted charging station information is verified by the signature key of the target platform to obtain the charging station information after successful verification, and further includes: If the signature key of the target platform fails to verify the decrypted charging station information, performing secondary verification on the decrypted charging station information according to a preset verification rule to obtain a secondary verification result; If the secondary verification result shows failure, a parsing failure message is sent to the charging station platform, requiring the retransmission of the original information of the charging station.

[0017] By adopting the above technical solution, when the target platform fails to perform signature verification on the charging station information, the secondary verification mechanism is immediately started to ensure the security and reliability of the information. First, when the target platform fails to verify the decrypted charging station information using the signature key, a secondary verification is performed according to the preset verification rules. The secondary verification may include recalculating the hash value of the data and comparing it with the original signature, or using a backup signature key for verification. Through this mechanism, even if the initial verification fails, the accuracy and integrity of the data can still be ensured through further inspection. If the secondary verification still shows failure, it is believed that the data may have been tampered with or lost during the transmission process. At this time, the target platform will generate a parsing failure message and send it to the charging station platform, requiring the original charging station information to be retransmitted, thereby avoiding the use of erroneous data.

[0018] The second object of the invention is achieved by the following technical solutions: A charging information interconnection device, the charging information interconnection device comprising: Charging station information collection module, used to obtain the original information of the charging station; A protocol adaptation and format conversion module, used for inputting the original information of the charging station into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain adapted charging station information; An encryption and signature processing module, used to encrypt and sign the adapted charging station information to obtain the encrypted and signed charging station information; An information transmission and communication protocol module, used to transmit the encrypted and signed charging station information through a communication protocol supported by the target platform to obtain successfully transmitted charging station information; A decryption and signature verification module, used for the target platform to decrypt and verify the successfully transmitted charging station information, and obtain the successfully verified charging station information; The information storage and management module is used to store the charging station information after the successful verification in the relational database of the target platform.

[0019] By adopting the above technical solution, the charging station original information is obtained and the protocol is adapted to ensure that the charging information can be efficiently and seamlessly transmitted between different platforms. First, the original information of the charging station is structurally analyzed with the help of the protocol matching model to identify the differences between different protocol formats and ensure that the information can adapt to the protocol requirements of the target platform. Then, the protocol matching model generates protocol adaptation requirements based on the analysis results, automatically adjusts the fields and information structure, and optimizes the transmission format of the charging station information. Subsequently, encryption and signature processing are used to ensure that the charging information will not be tampered with or leaked during transmission, providing data security and integrity protection. Next, the encrypted and signed information is efficiently transmitted using the communication protocol supported by the target platform to ensure that the charging information reaches the target platform in a timely manner. Finally, the validity and source legitimacy of the charging information are verified through the decryption and signature verification mechanism of the target platform, and the successfully verified information is stored in the platform database for subsequent query and data analysis.

[0020] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned charging information interconnection method when executing the computer program.

[0021] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the charging information interconnection method are implemented.

[0022] In summary, the present application includes at least one of the following beneficial technical effects: 1. By obtaining the original information of the charging station and performing protocol adaptation, ensure that the charging information can be efficiently and seamlessly transmitted between different platforms. First, use the protocol matching model to perform a structured analysis of the original information of the charging station, identify the differences between different protocol formats, and ensure that the information can adapt to the protocol requirements of the target platform. Next, the protocol matching model generates protocol adaptation requirements based on the analysis results, automatically adjusts the fields and information structure, and optimizes the transmission format of the charging station information. Subsequently, through encryption and signature processing, ensure that the charging information will not be tampered with or leaked during transmission, and provide data security and integrity protection. Next, use the communication protocol supported by the target platform to efficiently transmit the encrypted and signed information to ensure that the charging information reaches the target platform in a timely manner. Finally, through the decryption and signature verification mechanism of the target platform, verify the validity and source legitimacy of the charging information, and store the successfully verified information in the platform's database for subsequent queries and data analysis; 2. By obtaining the original information of the charging station and analyzing its protocol format, ensure that the information can seamlessly adapt to the protocol requirements of the target platform. First, use the protocol matching model to analyze the protocol format of the original information of the charging station, compare it with the protocol format supported by the target platform, and accurately identify the differences between the protocols. Then, based on the analysis results, generate protocol adaptation requirements to clarify which fields need to be adjusted, whether the data types match, and the optimization requirements of the protocol structure. Next, based on the protocol adaptation requirements, use automated protocol adaptation rules to adjust the fields and structures in the original information of the charging station to ensure that it meets the requirements of the target platform and optimizes the information format. Through this protocol adaptation mechanism, it is ensured that the charging station information can be efficiently and accurately transmitted to the target platform and meet the compatibility requirements between different platforms; 3. By optimizing the transmission path of the charging station information after encryption and signature processing, ensure that the information can be delivered to the target platform efficiently and securely. First, during the transmission process, the transmission path optimization mechanism is used to automatically select the best transmission path based on the current network status, bandwidth, latency, and load of the target platform. The optimization mechanism monitors network performance in real time and dynamically adjusts the transmission path to ensure the stability and low latency of information transmission, thereby avoiding network bottlenecks or potential packet loss risks during data transmission. Through this automated path optimization, the efficiency and security of data transmission can be significantly improved, ensuring that the charging station information after encryption and signature processing can reach the target platform efficiently, quickly, and accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a flow chart of a charging information interconnection method in an embodiment of the present application; Figure 2This is a flowchart for implementing step S20 in the charging information interconnection method in one embodiment of the present application; Figure 3 This is a flowchart for implementing step S201 in the charging information interconnection method in one embodiment of the present application; Figure 4 This is a flowchart for implementing step S30 in the charging information interconnection method in one embodiment of the present application; Figure 5 It is a flowchart for implementing step S40 in the charging information interconnection method in one embodiment of the present application; Figure 6 This is a flowchart for implementing step S50 in the charging information interconnection method in one embodiment of the present application; Figure 7 It is a flowchart for implementing step S502 in the charging information interconnection method in one embodiment of the present application; Figure 8 This is a principle block diagram of a charging information interconnection device in one embodiment of the present application; Fig. 9 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The present application is further described in detail below in conjunction with the accompanying drawings.

[0025] In one embodiment, if Figure 1 As shown, the present application discloses a charging information interconnection method, device, computer equipment and storage medium method, which specifically includes the following steps: S10: Obtaining original information of the charging station.

[0026] Specifically, by communicating with the charging station device interface, relevant information of the charging station is obtained. The information can be collected through sensors or the built-in system of the charging device, including but not limited to site ID, device type, device status, device power, current power and other information. During implementation, standard interface protocols such as MODBUS, HTTP protocol, MQTT protocol, etc. are used to collect and store information according to the specific requirements of different charging station devices and management platforms.

[0027] S20: Inputting the original information of the charging station into the protocol matching model, the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information.

[0028] Specifically, first, the acquired original information of the charging station is input into the pre-built protocol matching model. The protocol matching model will analyze the difference between the protocol format of the original information of the charging station and the protocol format required by the target platform, and perform protocol adaptation and conversion, which includes adaptation and conversion between protocols, such as converting the original protocol format of the charging station (such as MODBUS or a manufacturer's customized protocol) into a standard protocol format supported by the target platform (such as RESTful API or JSON format). During the conversion process, the protocol matching model will compare the fields, information types and structures in different protocols, and automatically perform operations such as field mapping, data type conversion, and data order adjustment to ensure that the original information of the charging station can adapt to the protocol requirements of the target platform.

[0029] S30: Encrypt and sign the adapted charging station information to obtain the encrypted and signed charging station information.

[0030] Specifically, after obtaining the adapted charging station information, use a symmetric encryption algorithm (such as the AES algorithm) to encrypt the charging station information, and use a specific encryption key to encrypt all sensitive information (such as charging information, device status information, etc.) to ensure that the information will not be stolen or tampered with during transmission. At the same time, use a digital signature algorithm (such as RSA signature or HMAC algorithm) to sign the encrypted information to ensure the integrity and traceability of the information. When signing, use a pre-agreed signature key, process the encrypted information according to the signature algorithm, and generate signature information. This process ensures that the information has not been tampered with before it is received by the target platform. The signature can use a hash algorithm (such as SHA256) to generate summary information, and then encrypt the summary to obtain the signature.

[0031] S40: Transmitting the encrypted and signed charging station information through a communication protocol supported by the target platform to obtain successfully transmitted charging station information.

[0032] Specifically, the communication protocol supported by the target platform (such as HTTP / HTTPS protocol, MQTT protocol, etc.) is used to transmit the encrypted and signed charging station information. During transmission, the POST request method is used to transmit the information to the interface of the target platform. During the transmission process, the SSL / TLS protocol can be used to encrypt the transmission process to ensure the security of the information transmission process. In addition, the corresponding authentication information, such as Token or API Key, etc., needs to be carried during the transmission process to ensure the identity legitimacy of the information transmission. After receiving the information, the target platform will perform basic legitimacy verification, such as verifying the information format, information size, etc. If the transmission is successful, a successful response is returned. If the transmission fails, a retry is performed or an error code is returned.

[0033] S50: The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information.

[0034] Specifically, after the target platform receives the transmitted charging station information, it first uses the decryption algorithm corresponding to the encryption (such as the AES decryption algorithm) to decrypt the received encrypted information and restore the original information of the charging station. The key used for decryption is the key generated by the previous encryption process and stored in the platform. The charging station information obtained after decryption needs to be signed and verified. The target platform uses a preset signature key (usually an RSA or HMAC key) to verify the signature of the decrypted information. The verification process generates a hash summary of the decrypted information and compares it with the signature in the transmitted information to ensure that the information has not been tampered with and is complete.

[0035] S60: Storing the charging station information after successful verification in a relational database of the target platform.

[0036] Specifically, after the signature verification is successful, the charging station information will be considered legal and complete, and then the successfully verified charging station information will be stored in the relational database of the target platform. In one embodiment, if Figure 2 As shown, in step S20, the original information of the charging station is input into the protocol matching model, and the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information, including: S201: Analyze the original protocol format of the original information of the charging station through a protocol matching model, determine the protocol difference results between the original protocol format and the protocol supported by the target platform, and obtain the protocol adaptation requirements according to the protocol difference results.

[0037] Specifically, first, the protocol matching model will analyze the protocol format of the original information of the charging station and compare it with the protocol format supported by the target platform. In specific implementation, by calculating the differences between the protocol fields, data types and data structures of the charging station information and the target platform protocol, the model will identify protocol differences, which may include field name mismatch, field missing, inconsistent data types or protocol structure differences. The protocol matching model detects these differences by parsing the structure of the original protocol format and comparing it one by one with the specifications of the target platform protocol. For differences in field name mismatch, the protocol matching model will mark inconsistent fields and define mapping rules for them. For differences in missing or redundant fields, the model will determine which fields need to be added or deleted according to the requirements of the target platform protocol. At the same time, the model will also analyze the hierarchical structure, data order, nested relationship, etc. of the protocol to derive the adaptation requirements, and finally determine a specific adaptation requirement that adapts to the target platform protocol through calculation and rule derivation.

[0038] S202: Based on the protocol adaptation requirements, determine the protocol adaptation rules, and automatically adjust the fields and information structure in the original information of the charging station according to the protocol adaptation rules to obtain the adapted charging station information.

[0039] Specifically, the protocol matching model will automatically generate field mapping rules based on the differences in field name mismatches, for example, mapping the charging device number field in the original protocol of the charging station to the device ID field in the target platform protocol; for inconsistent data types, the protocol matching model will select appropriate data type conversion rules, such as converting the string type in the original protocol to integer or floating data supported by the target platform protocol; if there are differences in the protocol structure, the model will adjust the field order and hierarchical structure of the original information of the charging station to ensure that the field order and nested structure meet the specifications of the target platform. The entire adjustment process is automated, based on predefined rules and algorithms, to ensure that the original information of the charging station can be accurately converted to the format supported by the target platform, without losing information during the conversion process, and finally obtaining the adapted charging station information.

[0040] In one embodiment, if Figure 3 As shown, in step S201, the original protocol format of the original information of the charging station is analyzed by the protocol matching model, and the protocol difference result between the original protocol format and the protocol supported by the target platform is determined. According to the protocol difference result, the protocol adaptation requirement is obtained, including: S2011: Performing a structured analysis on the original protocol format of the original information of the charging station and the protocol supported by the target platform through a protocol matching model to obtain a structured analysis result.

[0041] Specifically, the protocol matching model first performs a structured analysis of the protocol format of the original information of the charging station. The protocol format may include multiple formats such as MODBUS, JSON, XML, etc. The purpose of the analysis is to identify the fields, data types, data levels, and field order of the original information of the charging station through the model. The protocol matching model will first parse the original protocol format of the charging station, decompose the field structure of the original information, and compare it with the protocol format supported by the target platform to identify the correspondence between the fields and the differences in structure. For example, the protocol supported by the target platform may adopt a more complex nested structure or a stricter field order. At this point, the model will map the original information format and the target platform format field and structure one by one, and finally obtain a structured analysis result.

[0042] S2012: Based on the structured analysis results, the protocol matching model determines the protocol difference results by comparing the differences in fields and information structures.

[0043] Specifically, the protocol matching model uses the results of structured analysis as a basis to further compare the original protocol of the charging station and the target platform protocol to identify specific protocol differences. The model determines which fields are mismatched, which fields need to be mapped, and which fields need to have their data types converted by comparing differences in field names, data types, field order, and nested relationships. For example, if it is found that the device_id in the target platform protocol is inconsistent with the equipment_id in the original information, the model will mark this difference and record the field mapping requirements. If the data types are different, such as the value in the original protocol exists in the form of a string, and the target platform requires an integer type, the model will identify this type difference. Through this comparison, the model obtains a set of protocol difference results to clarify which fields need to be adapted.

[0044] S2013: Based on the difference results, the protocol matching model outputs the protocol adaptation requirements.

[0045] Specifically, the protocol matching model automatically generates adaptation requirements based on the identified protocol differences. These requirements include the need for field mapping, data type conversion, field order adjustment, etc. For example, if the field name does not match, the adaptation requirement will define how to map equipment_id to device_id; if the data type is inconsistent, the adaptation requirement will specify how to convert the string to integer data; if the field order is different, the adaptation requirement will adjust the field order to meet the protocol requirements of the target platform. Ultimately, the model will output a series of protocol adaptation requirements to ensure that the original information of the charging station can be processed according to the protocol format requirements of the target platform.

[0046] In one embodiment, if Figure 4 As shown, in step S30, the adapted charging station information is encrypted and signed to obtain the encrypted and signed charging station information, including: S301: Encrypt the adapted charging station information according to the encryption specification of the target platform through an encryption algorithm to obtain the encrypted charging station information.

[0047] Specifically, according to the encryption specifications of the target platform (such as AES, RSA, etc.), a suitable encryption algorithm is selected, and the adapted charging station information is encrypted using a preset encryption key. The choice of encryption algorithm is determined based on the platform security requirements and data sensitivity. For example, for information that requires high security, a symmetric encryption algorithm (such as AES) is used, while for situations that require identity authentication, asymmetric encryption (such as RSA) may be selected. The encryption operation ensures that the charging station information will not be stolen or tampered with during transmission. Specifically, if the charging station information is in JSON format, after encryption, the information will become a ciphertext format and cannot be interpreted by unauthorized recipients. During the encryption process, the platform encrypts according to the encryption method and key specified in its specifications, and the generated encrypted information will continue to serve as the basis for subsequent operations.

[0048] S302: Sign the encrypted charging station information using the signature algorithm of the target platform to obtain the signed charging station information.

[0049] Specifically, based on the encrypted charging station information, the target platform signs the encrypted information through a signature algorithm (such as RSA signature or HMAC algorithm). The signature algorithm uses the private key of the target platform to generate a digital signature for the encrypted information, which is obtained by combining the hash summary generated by the encrypted information with the private key. The purpose of the signature is to ensure that the data has not been tampered with during transmission and to verify the source of the data. Specifically, the platform will first use a hash algorithm (such as SHA256) to generate a summary of the encrypted charging station information, and then encrypt the summary with the private key through the signature algorithm to obtain the signature information. The signature will be attached to the encrypted charging station information to ensure that the recipient can verify the integrity and authenticity of the information. The generation of the signature not only ensures that the information has not been tampered with, but also proves the legitimacy of the source of the information and the non-repudiation of the data.

[0050] S303: Encapsulate the encrypted charging station information and the signed charging station information to obtain the encrypted and signed charging station information.

[0051] Specifically, the encrypted and signed charging station information is encapsulated into a complete data packet. When encapsulating, the encrypted charging station information is first used as the main body, and then the signature of the information is attached to the main body information.

[0052] In one embodiment, if Figure 5 As shown, in step S40, the encrypted and signed charging station information is transmitted through the communication protocol supported by the target platform to obtain the successfully transmitted charging station information, and further includes: S401: During the transmission of the encrypted and signed charging station information, a transmission path optimization mechanism is used to automatically select a transmission path for sending the encrypted and signed charging station information to a target platform.

[0053] Specifically, during the transmission of charging station information after encryption and signature processing, the transmission path optimization mechanism automatically selects the best transmission path according to factors such as the real-time network environment, the target platform load and data priority. The transmission path optimization mechanism first analyzes the current network bandwidth, delay and possible network congestion, and determines the most suitable transmission path by real-time monitoring of these parameters. For example, if the bandwidth of the current transmission path is insufficient or the delay is high, it automatically switches to another network path to avoid slow transmission speed or information loss. In addition, the load status of the target platform is also taken into account. If the load of an interface or receiving end of the target platform is too high, the optimization mechanism will select a path with lower load for data transmission, thereby avoiding transmission failure caused by overload of the target platform. For charging station information with higher priority (such as real-time charging data), the optimization mechanism will give priority to the transmission of this information to ensure that it can reach the target platform as soon as possible to avoid delays affecting the timeliness and accuracy of the data. This process is dynamically adjusted, and the path selection will be updated in real time with changes in network conditions and load to ensure that the charging station information can be transmitted on the safest and fastest path, thereby improving transmission efficiency and ensuring the integrity of information.

[0054] In one embodiment, if Figure 6 As shown, in step S50, the target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information, including: S501: Decrypt the encrypted charging station information using the decryption key of the target platform to obtain the decrypted charging station information.

[0055] Specifically, during the transmission process, the received charging station information is encrypted, so the target platform needs to use the decryption key corresponding to the encryption to decrypt the information. During this process, the target platform will decrypt the encrypted charging station information through a decryption algorithm (such as AES, RSA, etc.) to restore the original information. Specifically, the target platform will perform block-by-block decryption operations based on the algorithm used during encryption (such as AES symmetric encryption algorithm or RSA asymmetric encryption algorithm) and the stored decryption key to restore the encrypted information to plaintext information. This process ensures that only the target platform with the correct decryption key can successfully restore the original charging station information, preventing the information from being tampered with or leaked during transmission.

[0056] S502: Verify the decrypted charging station information using the signature key of the target platform to obtain the charging station information after successful verification.

[0057] Specifically, after decryption is completed, the target platform will use the signature key to verify the decrypted charging station information. The purpose of signature verification is to ensure that the information has not been tampered with during transmission and to verify whether the source of the information is credible. The target platform will use the signature algorithm that matches the encryption algorithm (such as RSA or HMAC algorithm) to verify the decrypted information. At this time, the target platform will perform a hash operation on the decrypted information and compare it with the signature in the transmitted information. If the generated hash value matches the signature, the verification is successful, indicating that the information has not been tampered with during transmission and the source of the information is credible.

[0058] In one embodiment, if Figure 7 As shown, in step S502, the decrypted charging station information is verified by the signature key of the target platform to obtain the charging station information after successful verification, and further includes: S5021: If the signature key of the target platform fails to verify the decrypted charging station information, a secondary verification is performed on the decrypted charging station information according to a preset verification rule to obtain a secondary verification result.

[0059] In this embodiment, the secondary verification rule refers to recalculating the hash value of the data and comparing it with the expected signature, or using a spare verification key to perform secondary signature verification.

[0060] Specifically, when the target platform uses the signature key to verify the decrypted charging station information, if the signature verification fails, the platform will start the secondary verification procedure according to the preset verification rules. Secondary verification usually uses an additional check mechanism to confirm whether the data has been tampered with or lost. S5022: If the secondary verification result shows failure, a parsing failure message is sent to the charging station platform, requiring the original information of the charging station to be retransmitted.

[0061] Specifically, in the event of a secondary verification failure, the target platform generates a parsing failure message and sends it back to the charging station platform. The parsing failure message usually contains the reason for the verification failure (for example, inconsistent information format, invalid signature, etc.) and requires the charging station platform to retransmit the original information of the charging station. The target platform can pass the error notification to the charging station platform through an API or other communication methods. After receiving the parsing failure message, the charging station platform will take corresponding measures according to the specific situation, such as regenerating the information, fixing the information problem, or retransmitting the information.

[0062] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0063] In one embodiment, a charging information interconnection device is provided, and the charging information interconnection device corresponds one-to-one to the charging information interconnection method in the above embodiment. Figure 8 As shown, the charging information interconnection device includes a charging station information collection module, a protocol adaptation and format conversion module, an encryption and signature processing module, an information transmission and communication protocol module, a decryption and signature verification module, and an information storage and management module. The functional modules are described in detail as follows: Charging station information collection module, used to obtain the original information of the charging station; The protocol adaptation and format conversion module is used to input the original information of the charging station into the protocol matching model. The protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information. An encryption and signature processing module, used to encrypt and sign the adapted charging station information to obtain the encrypted and signed charging station information; The information transmission and communication protocol module is used to transmit the encrypted and signed charging station information through the communication protocol supported by the target platform to obtain the successfully transmitted charging station information; The decryption and signature verification module is used by the target platform to decrypt and verify the successfully transmitted charging station information, and obtain the successfully verified charging station information; The information storage and management module is used to store the charging station information after successful verification in the database of the target platform.

[0064] Optionally, the protocol adaptation and format conversion module includes: The protocol difference analysis and adaptation requirement generation submodule is used to analyze the original protocol format of the original information of the charging station through the protocol matching model, determine the protocol difference results between the original protocol format and the protocol supported by the target platform, and obtain the protocol adaptation requirements based on the protocol difference results; The protocol adaptation rule automatic adjustment module is used to determine the protocol adaptation rule based on the protocol adaptation requirement, and automatically adjust the fields and information structure in the original information of the charging station according to the protocol adaptation rule to obtain the adapted charging station information.

[0065] Optionally, the protocol difference analysis and adaptation requirement generation submodule includes: A protocol format structured analysis unit, used to perform structured analysis on the original protocol format of the original information of the charging station and the protocol supported by the target platform through a protocol matching model to obtain a structured analysis result; The protocol difference comparison and identification unit is used to determine the protocol difference result by comparing the differences in fields and information structures based on the structured analysis results and the protocol matching model; The protocol adaptation requirement output unit is used to output the protocol adaptation requirement according to the difference result and the protocol matching model.

[0066] Optionally, the encryption and signature processing module includes: The encryption processing submodule is used to encrypt the adapted charging station information through an encryption algorithm according to the encryption specification of the target platform to obtain the encrypted charging station information; The signature processing submodule is used to sign the encrypted charging station information through the signature algorithm of the target platform to obtain the charging station information after signature processing; The encryption and signature encapsulation submodule is used to encapsulate the encrypted charging station information and the signed charging station information to obtain the encrypted and signed charging station information.

[0067] Optionally, the information transmission and communication protocol module includes: The transmission path optimization submodule is used to use the transmission path optimization mechanism to automatically select the transmission path for sending the encrypted and signed charging station information to the target platform during the transmission of the encrypted and signed charging station information.

[0068] Optionally, the decryption and signature verification modules include: A decryption processing submodule, used to decrypt the encrypted charging station information using the decryption key of the target platform to obtain the decrypted charging station information; The signature verification submodule is used to verify the decrypted charging station information through the signature key of the target platform to obtain the charging station information after successful verification.

[0069] Optionally, the signature verification submodule also includes: A secondary verification unit, used for performing secondary verification on the decrypted charging station information according to a preset verification rule to obtain a secondary verification result if the signature key of the target platform fails to verify the decrypted charging station information; The parsing failure notification unit is used to send a parsing failure message to the charging station platform if the secondary verification result shows a failure, requiring the retransmission of the original information of the charging station.

[0070] For the specific definition of the charging information interconnection device, please refer to the definition of the charging information interconnection method above, which will not be repeated here. Each module in the above-mentioned charging information interconnection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0071] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for a relational database. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a charging information interconnection method is implemented.

[0072] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Get the original information of the charging station; The original information of the charging station is input into the protocol matching model, and the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information; Encrypting and signing the adapted charging station information to obtain the encrypted and signed charging station information; The encrypted and signed charging station information is transmitted through the communication protocol supported by the target platform to obtain the successfully transmitted charging station information; The target platform decrypts and verifies the signature of the successfully transmitted charging station information, and obtains the verified charging station information; The charging station information after successful verification is stored in the relational database of the target platform.

[0073] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Get the original information of the charging station; The original information of the charging station is input into the protocol matching model, and the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information; Encrypting and signing the adapted charging station information to obtain the encrypted and signed charging station information; The encrypted and signed charging station information is transmitted through the communication protocol supported by the target platform to obtain the successfully transmitted charging station information; The target platform decrypts and verifies the signature of the successfully transmitted charging station information, and obtains the verified charging station information; The charging station information after successful verification is stored in the relational database of the target platform.

[0074] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0075] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0076] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A charging information interconnection method, characterized in that: The charging information interconnection method comprises: Get the original information of the charging station; Inputting the original information of the charging station into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain adapted charging station information; Encrypting and signing the adapted charging station information to obtain encrypted and signed charging station information; Transmitting the encrypted and signed charging station information through a communication protocol supported by a target platform to obtain successfully transmitted charging station information; The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information; The charging station information after successful verification is stored in the relational database of the target platform.

2. The charging information interconnection method according to claim 1, characterized in that: The step of inputting the original information of the charging station into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain the adapted charging station information, includes: Analyzing the original protocol format of the original information of the charging station through the protocol matching model, determining the protocol difference result between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference result; Based on the protocol adaptation requirement, a protocol adaptation rule is determined, and according to the protocol adaptation rule, the fields and information structure in the original information of the charging station are automatically adjusted to obtain the adapted charging station information.

3. The charging information interconnection method according to claim 2, characterized in that: The analyzing the original protocol format of the original information of the charging station by the protocol matching model, determining the protocol difference result between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference result, includes: Performing a structural analysis on the original protocol format of the original information of the charging station and the protocol supported by the target platform through the protocol matching model to obtain a structural analysis result; Based on the structured analysis result, the protocol matching model determines the protocol difference result by comparing the differences in fields and information structures; According to the difference result, the protocol matching model outputs the protocol adaptation requirement.

4. The charging information interconnection method according to claim 1, characterized in that: The step of encrypting and signing the adapted charging station information to obtain the encrypted and signed charging station information includes: According to the encryption specification of the target platform, the adapted charging station information is encrypted by an encryption algorithm to obtain encrypted charging station information; Signing the encrypted charging station information using the signature algorithm of the target platform to obtain the signed charging station information; The encrypted charging station information and the signed charging station information are encapsulated to obtain the encrypted and signed charging station information.

5. The charging information interconnection method according to claim 1, characterized in that: The step of transmitting the encrypted and signed charging station information through a communication protocol supported by a target platform to obtain successfully transmitted charging station information further includes: During the transmission of the encrypted and signed charging station information, a transmission path optimization mechanism is used to automatically select a transmission path for sending the encrypted and signed charging station information to the target platform.

6. The charging information interconnection method according to claim 1, characterized in that: The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information, including: Decrypting the encrypted charging station information using the decryption key of the target platform to obtain the decrypted charging station information; The decrypted charging station information is verified by using the signature key of the target platform to obtain the charging station information after successful verification.

7. The charging information interconnection method according to claim 6, characterized in that: The step of verifying the decrypted charging station information by using the signature key of the target platform to obtain the charging station information after successful verification further includes: If the signature key of the target platform fails to verify the decrypted charging station information, performing secondary verification on the decrypted charging station information according to a preset verification rule to obtain a secondary verification result; If the secondary verification result shows failure, a parsing failure message is sent to the charging station platform, requiring the retransmission of the original information of the charging station.

8. A charging information interconnection device, characterized in that: The charging information interconnection device comprises: Charging station information collection module, used to obtain the original information of the charging station; A protocol adaptation and format conversion module, used for inputting the original information of the charging station into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original information of the charging station to obtain adapted charging station information; An encryption and signature processing module, used to encrypt and sign the adapted charging station information to obtain the encrypted and signed charging station information; An information transmission and communication protocol module, used to transmit the encrypted and signed charging station information through a communication protocol supported by the target platform to obtain successfully transmitted charging station information; A decryption and signature verification module, used for the target platform to decrypt and verify the successfully transmitted charging station information, and obtain the successfully verified charging station information; The information storage and management module is used to store the charging station information after the successful verification in the relational database of the target platform.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the charging information interconnection method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the charging information interconnection method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Multi-protocol adaptation system and method of charging pile

    CN112769866A

  • Method for quantum digital signature protocol selection and parameter configuration

    CN114944916A

  • Method and device for executing data transmission protocol

    CN116248265A

  • Power Internet of Things protocol adaptation method, device, equipment, medium and product

    CN118714207A

  • Identity verification method between wireless communication distributed electric vehicle charging pile equipment nodes

    CN118972840A

Cited By

  • Communication method and system for interconnection and intercommunication between charging platforms

    CN120498694A

  • Charging pile data access method and system based on medium and electric connection standard protocol, and medium

    CN121000538A