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

Through protocol matching model and encryption signature processing, the information island problem in the interconnection and interoperability of charging information is solved, and the efficient and secure transmission and storage of charging information between different platforms is achieved.

CN119697217BActive Publication Date: 2025-09-26GUANGDONG NEW GIANT ENERGY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

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

Method used

Information protocol adaptation and format conversion are performed through the protocol matching model, combined with encryption, signature processing and transmission path optimization to ensure seamless transmission of information between different platforms, and decryption and signature verification are performed on the target platform.

Benefits of technology

It achieves efficient and secure transmission of charging information between different platforms, ensures data integrity and legitimacy, and supports subsequent queries and data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697217B_ABST
    Figure CN119697217B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of interconnection and intercommunication of charging information. Specifically, it relates to a method, device, computer equipment and storage medium for interconnection and intercommunication of charging information, wherein the method comprises obtaining original information of a charging station, inputting the original information of the charging station into a protocol matching model, the protocol matching model performing 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 performing decryption and signature verification on the successfully transmitted charging station information to obtain successfully verified charging station information, and storing the successfully verified charging station information in a relational database of the target platform. The present invention has the effect of realizing efficient transmission of 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 and intercommunication of charging information, and in particular to a method, apparatus, computer equipment and storage medium for interconnection and intercommunication of charging information. Background Art

[0002] Electric vehicle charging infrastructure has rapidly developed in recent years, with the number of charging stations increasing and coverage gradually expanding. This has not only improved convenience for EV users but also driven rapid growth in the EV market. However, with the widespread deployment of charging stations of varying brands and models, information silos exist between charging stations, making it difficult to interconnect charging information. In this context, achieving efficient and secure transmission of charging information has become a pressing issue. 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 this application is achieved through the following technical solutions:

[0005] A charging information interconnection method, the charging information interconnection method comprising:

[0006] Get the original information of the charging station;

[0007] Inputting the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information;

[0008] Encrypting and signing the adapted charging station information to obtain encrypted and signed charging station information;

[0009] Transmitting the encrypted and signed charging station information through a communication protocol supported by a target platform to obtain successfully transmitted charging station information;

[0010] The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information;

[0011] The charging station information after successful verification is stored in the relational database of the target platform.

[0012] By employing the above technical solution, raw charging station information is obtained and protocol adapted, ensuring efficient and seamless transmission of charging information across different platforms. First, a protocol matching model performs structured analysis of the raw charging station information, identifying differences between different protocol formats and ensuring that the information complies with the protocol requirements of the target platform. Next, the protocol matching model generates protocol adaptation requirements based on the analysis results, automatically adjusting fields and information structure to optimize the transmission format of the charging station information. Subsequently, encryption and signing are implemented to prevent tampering or leakage of charging information during transmission, ensuring data security and integrity. Next, the encrypted and signed information is efficiently transmitted using a communication protocol supported by the target platform, ensuring timely arrival of the charging information. Finally, the target platform's decryption and signature verification mechanisms verify the validity and source of the charging information. Successfully verified information is stored in the platform's database for subsequent query and data analysis.

[0013] In a preferred example, the present application may be further configured as follows: inputting the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information, including:

[0014] Analyzing the original protocol format of the original information of the charging station by using the protocol matching model, determining a protocol difference result between the original protocol format and a protocol supported by the target platform, and obtaining a protocol adaptation requirement based on the protocol difference result;

[0015] Based on the protocol adaptation requirements, 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.

[0016] By adopting the above technical solution, the original charging station information is obtained and its protocol format is analyzed to ensure that the information can seamlessly adapt to the protocol requirements of the target platform. First, the protocol format of the original charging station information is analyzed with the help of a 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, 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, automated protocol adaptation rules are used to adjust the fields and structure of the original charging station information to ensure that it meets the requirements of the target platform and optimize the information format. Through this protocol adaptation mechanism, the charging station information can be efficiently and accurately transmitted to the target platform and meet the compatibility requirements between different platforms.

[0017] 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 between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement based on the protocol difference, including:

[0018] Performing a structural analysis on the original protocol format of the charging station original information and the protocol supported by the target platform using the protocol matching model to obtain a structural analysis result;

[0019] Based on the structured analysis result, the protocol matching model determines the protocol difference result by comparing the differences in fields and information structures;

[0020] According to the difference result, the protocol matching model outputs the protocol adaptation requirement.

[0021] 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 be efficiently adapted 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.

[0022] 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:

[0023] Encrypting the adapted charging station information using an encryption algorithm according to an encryption specification of the target platform to obtain encrypted charging station information;

[0024] Signing the encrypted charging station information using the signature algorithm of the target platform to obtain the signed charging station information;

[0025] The encrypted charging station information and the signed charging station information are encapsulated to obtain the encrypted and signed charging station information.

[0026] By adopting the above technical solution, the adapted charging station information is encrypted and signed, ensuring data security and integrity. First, the adapted charging station information is encrypted using an appropriate encryption algorithm according to the target platform's encryption specifications, ensuring security during transmission and preventing theft or tampering. Next, the encrypted information is signed using the target platform's signature algorithm to ensure data integrity and source authenticity, preventing tampering or forgery during transmission. Finally, the encrypted charging station information and the signed information are encapsulated to form a complete data packet, ready for secure transmission. This process not only ensures information encryption and verification, but also ensures the security and non-repudiation of data transmission.

[0027] In a preferred example, the present application may be further configured as follows: transmitting the encrypted and signed charging station information via a communication protocol supported by a target platform to obtain successfully transmitted charging station information, and further comprising:

[0028] 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.

[0029] By adopting the above technical solution, the transmission path of the encrypted and signed charging station information is optimized to 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 encrypted and signed charging station information can reach the target platform efficiently, quickly, and accurately.

[0030] 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, and obtains the successfully verified charging station information, including:

[0031] Decrypting the encrypted charging station information using the decryption key of the target platform to obtain decrypted charging station information;

[0032] The decrypted charging station information is verified using the signature key of the target platform to obtain the successfully verified charging station information.

[0033] By adopting the above technical solution, the security and integrity of the encrypted and signed charging station information are ensured by decrypting and verifying it. First, the encrypted charging station information is decrypted using the target platform's decryption key to restore the original content. During the decryption process, the same decryption algorithm as used during encryption is used to ensure that only platforms with the correct decryption key can successfully restore the information. Next, the signature of the decrypted charging station information is verified using the target platform's signature key to ensure that the information has not been tampered with during transmission and to confirm the legitimacy of the data source. Signature verification is performed by performing a hash calculation on the decrypted information and comparing it with the signature included during transmission. If the two are consistent, the integrity of the information is considered to be guaranteed. This encryption and signature verification mechanism ensures the security and reliability of charging station information.

[0034] In a preferred example, the present application may be further configured as follows: verifying the decrypted charging station information using the signature key of the target platform to obtain the successfully verified charging station information, further comprising:

[0035] If the signature key of the target platform fails to verify the decrypted charging station information, performing a secondary verification on the decrypted charging station information according to a preset verification rule to obtain a secondary verification result;

[0036] If the secondary verification result shows failure, a parsing failure message is sent to the charging station platform, requesting the retransmission of the original information of the charging station.

[0037] 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 activated 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 can 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 a 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, requesting the retransmission of the original charging station information, thereby avoiding the use of erroneous data.

[0038] The second object of the present invention is achieved through the following technical solutions:

[0039] A charging information interconnection device, the charging information interconnection device comprising:

[0040] Charging station information collection module, used to obtain the original information of the charging station;

[0041] a protocol adaptation and format conversion module, configured to input the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information;

[0042] An encryption and signature processing module, configured to encrypt and sign the adapted charging station information to obtain the encrypted and signed charging station information;

[0043] An information transmission and communication protocol module, configured to transmit the encrypted and signed charging station information via a communication protocol supported by the target platform, and obtain successfully transmitted charging station information;

[0044] A decryption and signature verification module, configured for the target platform to decrypt and verify the successfully transmitted charging station information, and obtain the successfully verified charging station information;

[0045] 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.

[0046] By employing the above technical solution, raw charging station information is obtained and protocol adapted, ensuring efficient and seamless transmission of charging information across different platforms. First, a protocol matching model performs structured analysis of the raw charging station information, identifying differences between different protocol formats and ensuring that the information complies with the protocol requirements of the target platform. Next, the protocol matching model generates protocol adaptation requirements based on the analysis results, automatically adjusting fields and information structure to optimize the transmission format of the charging station information. Subsequently, encryption and signing are implemented to prevent tampering or leakage of charging information during transmission, ensuring data security and integrity. Next, the encrypted and signed information is efficiently transmitted using a communication protocol supported by the target platform, ensuring timely arrival of the charging information. Finally, the target platform's decryption and signature verification mechanisms verify the validity and source of the charging information. Successfully verified information is stored in the platform's database for subsequent query and data analysis.

[0047] The third objective of this application is achieved through the following technical solutions:

[0048] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned charging information interconnection method are implemented.

[0049] The fourth objective of this application is achieved through the following technical solutions:

[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned charging information interconnection method.

[0051] In summary, this application includes at least one of the following beneficial technical effects:

[0052] 1. By obtaining the original information of the charging station and performing protocol adaptation, ensure that the charging information can be transmitted efficiently and seamlessly 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. 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, through encryption and signature processing, ensure that the charging information will not be tampered with or leaked during transmission, providing data security and integrity protection. Immediately afterwards, 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 query and data analysis.

[0053] 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, ensure that the charging station information can be efficiently and accurately transmitted to the target platform and meet the compatibility requirements between different platforms;

[0054] 3. By optimizing the transmission path of encrypted and signed charging station information, we ensure that the information can be delivered to the target platform efficiently and securely. First, during the transmission process, a transmission path optimization mechanism is used to automatically select the optimal transmission path based on the current network status, bandwidth, latency, and target platform load. The optimization mechanism monitors network performance in real time and dynamically adjusts the transmission path to ensure stable and low-latency information transmission, thereby avoiding network bottlenecks or potential packet loss risks during data transmission. This automated path optimization can significantly improve the efficiency and security of data transmission, ensuring that encrypted and signed charging station information can reach the target platform efficiently, quickly, and accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a flow chart of a charging information interconnection method in one embodiment of the present application;

[0056] Figure 2 This is a flowchart for implementing step S20 in the charging information interconnection method in one embodiment of the present application;

[0057] Figure 3 This is a flowchart for implementing step S201 in the charging information interconnection method in one embodiment of the present application;

[0058] Figure 4 This is a flowchart for implementing step S30 in the charging information interconnection method in one embodiment of the present application;

[0059] Figure 5 This is a flowchart for implementing step S40 in the charging information interconnection method in one embodiment of the present application;

[0060] Figure 6 This is a flowchart for implementing step S50 in the charging information interconnection method in one embodiment of the present application;

[0061] Figure 7 This is a flowchart for implementing step S502 in the charging information interconnection method in one embodiment of the present application;

[0062] Figure 8 This is a principle block diagram of a charging information interconnection device in one embodiment of the present application;

[0063] Figure 9 It is a schematic diagram of a device in one embodiment of the present application. DETAILED DESCRIPTION

[0064] The present application is further described in detail below with reference to the accompanying drawings.

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

[0066] S10: Obtaining original information of the charging station.

[0067] 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.

[0068] 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 adapted charging station information.

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

[0070] S30: Encrypting and signing the adapted charging station information to obtain the encrypted and signed charging station information.

[0071] Specifically, after obtaining the adapted charging station information, it is encrypted using a symmetric encryption algorithm (such as the AES algorithm). All sensitive information (such as charging information and device status information) is encrypted using a specific encryption key to ensure that the information cannot be stolen or tampered with during transmission. At the same time, a digital signature algorithm (such as RSA signature or HMAC algorithm) is used to sign the encrypted information to ensure its integrity and traceability. The signing process uses a pre-agreed signing key and is processed according to the signature algorithm to generate the 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 a summary information, which is then encrypted to obtain the signature.

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

[0073] Specifically, the encrypted and signed charging station information is transmitted using the communication protocol supported by the target platform (such as HTTP / HTTPS protocol, MQTT protocol, etc.). 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, 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 and information size. If the transmission is successful, a successful response is returned. If the transmission fails, a retry is performed or an error code is returned.

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

[0075] 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 to 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 then compares it with the signature in the transmitted information to ensure that the information has not been tampered with and the information is complete.

[0076] S60: Storing the successfully verified charging station information in a relational database of the target platform.

[0077] 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.

[0078] 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. 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:

[0079] S201: 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.

[0080] 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. During 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 mismatches, 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 mismatches, 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 relationships, etc. of the protocol to derive the adaptation requirements. Finally, through calculation and rule deduction, it determines a specific adaptation requirement that adapts to the target platform protocol.

[0081] S202: Based on the protocol adaptation requirements, a protocol adaptation rule is determined, and according to the protocol adaptation rule, the fields and information structure in the original charging station information are automatically adjusted to obtain adapted charging station information.

[0082] Specifically, the protocol matching model automatically generates field mapping rules based on the differences in field name mismatches. For example, it maps the charging device number field in the original charging station protocol to the device ID field in the target platform protocol. For inconsistent data types, the protocol matching model selects 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 adjusts the field order and hierarchical structure of the original charging station information to ensure that the field order and nested structure conform to the specifications of the target platform. The entire adjustment process is automated and based on predefined rules and algorithms to ensure that the original charging station information can be accurately converted into a format supported by the target platform, without losing information during the conversion process, and ultimately obtaining the adapted charging station information.

[0083] 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 to determine the protocol difference between the original protocol format and the protocol supported by the target platform. According to the protocol difference result, the protocol adaptation requirement is obtained, including:

[0084] 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.

[0085] Specifically, the protocol matching model first performs a structured analysis of the protocol format of the charging station's original information. The protocol format may include various formats such as MODBUS, JSON, and XML. The purpose of the analysis is to identify the fields, data types, data levels, and field order of the charging station's original information through the model. The protocol matching model will first parse the charging station's original protocol format, 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 structural differences. 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.

[0086] 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.

[0087] Specifically, the protocol matching model uses the results of the 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' data types need to be 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, for example, 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, clarifying which fields need to be adapted.

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

[0089] Specifically, the protocol matching model automatically generates adaptation requirements based on identified protocol differences. These requirements include the need for field mapping, data type conversion, and field order adjustment. For example, if the field names don't match, the adaptation requirements will define how to map "equipment_id" to "device_id"; if the data types are inconsistent, the adaptation requirements will specify how to convert strings to integers; and if the field order differs, the adaptation requirements will adjust the field order to conform to the protocol requirements of the target platform. Ultimately, the model outputs a series of protocol adaptation requirements to ensure that the charging station's raw information can be processed according to the protocol format requirements of the target platform.

[0090] 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:

[0091] S301: Encrypt the adapted charging station information according to the encryption specification of the target platform using an encryption algorithm to obtain encrypted charging station information.

[0092] Specifically, a suitable encryption algorithm is selected based on the encryption specifications of the target platform (such as AES, RSA, etc.), and the adapted charging station information is encrypted using a preset encryption key. The choice of encryption algorithm is determined by 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.

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

[0094] Specifically, based on the encrypted charging station information, the target platform signs the encrypted information using a signature algorithm (such as RSA or HMAC). The signature algorithm uses the target platform's private key to generate a digital signature for the encrypted information. This signature is a combination of the hash digest generated from the encrypted information and 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 first uses a hash algorithm (such as SHA256) to generate a digest of the encrypted charging station information. The digest is then encrypted with the private key using a signature algorithm to generate the signature information. This signature is appended to the encrypted charging station information, ensuring 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 information source and the non-repudiation of the data.

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

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

[0097] 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, which also includes:

[0098] 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.

[0099] Specifically, during the transmission of encrypted and signed charging station information, a transmission path optimization mechanism automatically selects the optimal transmission path based on factors such as the real-time network environment, target platform load, and data priority. The transmission path optimization mechanism first analyzes the current network bandwidth, latency, and possible network congestion. By monitoring these parameters in real time, it determines the most suitable transmission path. For example, if the bandwidth of the current transmission path is insufficient or the latency is high, it automatically switches to another network path to avoid slow transmission or information loss. The target platform's load status is also taken into account. If the load on a specific interface or receiving end of the target platform is too high, the optimization mechanism selects a less-loaded path for data transmission, thereby avoiding transmission failures caused by target platform overload. For high-priority charging station information (such as real-time charging data), the optimization mechanism prioritizes its transmission, ensuring that it reaches the target platform as quickly as possible and preventing delays that may affect data timeliness and accuracy. This process is dynamically adjusted, and the path selection is updated in real time as network conditions and load change, ensuring that charging station information is transmitted along the safest and fastest path, thereby improving transmission efficiency and ensuring information integrity.

[0100] 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:

[0101] S501: Decrypt the encrypted charging station information using the decryption key of the target platform to obtain the decrypted charging station information.

[0102] Specifically, during the transmission process, the received charging station information is encrypted. Therefore, the target platform needs to decrypt the information using the decryption key corresponding to the encryption. During this process, the target platform decrypts the encrypted charging station information using a decryption algorithm (such as AES or RSA) to restore the original information. Specifically, the target platform performs a block-by-block decryption operation based on the encryption algorithm (such as AES symmetric encryption algorithm or RSA asymmetric encryption algorithm) and the stored decryption key, restoring the encrypted information to plaintext. This process ensures that only the target platform with the correct decryption key can successfully restore the original charging station information, preventing information tampering or leakage during transmission.

[0103] S502: Verify the decrypted charging station information using the signature key of the target platform to obtain the successfully verified charging station information.

[0104] Specifically, after decryption, the target platform uses the signature key to verify the decrypted charging station information. Signature verification ensures that the information has not been tampered with during transmission and verifies the authenticity of the source. The target platform verifies the decrypted information using the same signature algorithm used during encryption (such as RSA or HMAC). The target platform then hashes the decrypted information and compares it with the signature in the transmitted information. If the resulting hash value matches the signature, verification is successful, indicating that the information has not been tampered with during transmission and that the source is authentic.

[0105] 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, which also includes:

[0106] S5021: If the signature key of the target platform fails to verify the decrypted charging station information, the decrypted charging station information is secondary verified according to a preset verification rule to obtain a secondary verification result.

[0107] 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.

[0108] 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 process 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.

[0109] S5022: If the secondary verification result shows failure, a parsing failure message is sent to the charging station platform, requesting the retransmission of the original charging station information.

[0110] Specifically, if secondary verification fails, the target platform generates a parsing failure message and sends it back to the charging station platform. This parsing failure message typically includes the reason for the verification failure (e.g., inconsistent message format, invalid signature, etc.) and requests the charging station platform to retransmit the original charging station information. The target platform can communicate the error notification to the charging station platform via an API or other communication method. Upon receiving the parsing failure message, the charging station platform will take appropriate measures based on the specific situation, such as regenerating the information, correcting the information issues, or retransmitting the information.

[0111] 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 this application.

[0112] In one embodiment, a charging information interconnection device is provided, which corresponds 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:

[0113] Charging station information collection module, used to obtain the original information of the charging station;

[0114] The protocol adaptation and format conversion module is used to input the original charging station information into the protocol matching model. The protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain the adapted charging station information.

[0115] 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;

[0116] 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;

[0117] 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;

[0118] The information storage and management module is used to store the charging station information after successful verification in the database of the target platform.

[0119] Optionally, the protocol adaptation and format conversion module includes:

[0120] The protocol difference analysis and adaptation requirement generation submodule is used to analyze the original protocol format of the charging station's original information 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;

[0121] The protocol adaptation rule automatic adjustment module is used to determine the protocol adaptation rules based on the protocol adaptation requirements, and automatically adjust the fields and information structure in the original charging station information according to the protocol adaptation rules to obtain the adapted charging station information.

[0122] Optional, protocol difference analysis and adaptation requirements generation submodule includes:

[0123] A protocol format structured analysis unit is used to perform structured analysis on the original protocol format of the charging station original information and the protocol supported by the target platform through a protocol matching model to obtain a structured analysis result;

[0124] The protocol difference comparison and identification unit is used to determine the protocol difference results by comparing the differences in fields and information structures based on the structured analysis results and the protocol matching model;

[0125] The protocol adaptation requirement output unit is used to output the protocol adaptation requirement according to the difference result and the protocol matching model.

[0126] Optionally, the encryption and signature processing module includes:

[0127] An encryption processing submodule is used to encrypt the adapted charging station information using an encryption algorithm according to the encryption specification of the target platform to obtain the encrypted charging station information;

[0128] The signature processing submodule is used to sign the encrypted charging station information using the signature algorithm of the target platform to obtain the charging station information after signature processing;

[0129] 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.

[0130] Optionally, the information transmission and communication protocol module includes:

[0131] The transmission path optimization submodule is used to automatically select the transmission path for sending the encrypted and signed charging station information to the target platform using the transmission path optimization mechanism during the transmission process of the encrypted and signed charging station information.

[0132] Optional decryption and signature verification modules include:

[0133] A decryption processing submodule, configured to decrypt the encrypted charging station information using a decryption key of the target platform to obtain the decrypted charging station information;

[0134] The signature verification submodule is used to verify the decrypted charging station information using the signature key of the target platform to obtain the charging station information after successful verification.

[0135] Optionally, the signature verification submodule also includes:

[0136] A secondary verification unit, configured to perform secondary verification on the decrypted charging station information according to a preset verification rule if the signature key of the target platform fails to verify the decrypted charging station information, and obtain a secondary verification result;

[0137] The parsing failure notification unit is used to send a parsing failure message to the charging station platform if the secondary verification result shows failure, requiring the retransmission of the original charging station information.

[0138] The specific definition of the charging information interconnection device can be found in the definition of the charging information interconnection method above and will not be repeated here. The various modules in the above-mentioned charging information interconnection device can be implemented in whole or in part through software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of the above modules.

[0139] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 9 As shown. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. 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 computer program in the non-volatile storage medium. The database of the computer device is 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.

[0140] 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. When the processor executes the computer program, the following steps are performed:

[0141] Get the original information of the charging station;

[0142] The original information of the charging station is input 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.

[0143] Encrypting and signing the adapted charging station information to obtain encrypted and signed charging station information;

[0144] 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;

[0145] The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information;

[0146] The charging station information after successful verification is stored in the relational database of the target platform.

[0147] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0148] Get the original information of the charging station;

[0149] The original information of the charging station is input 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.

[0150] Encrypting and signing the adapted charging station information to obtain encrypted and signed charging station information;

[0151] 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;

[0152] The target platform decrypts and verifies the signature of the successfully transmitted charging station information to obtain the successfully verified charging station information;

[0153] The charging station information after successful verification is stored in the relational database of the target platform.

[0154] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. 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 DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0155] Those skilled in the art will clearly understand that for the sake of convenience and brevity 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.

[0156] The above-described embodiments 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A charging information interconnection method, characterized in that: The charging information interconnection method includes: obtaining original information of the charging station; Inputting the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information; Inputting the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information, includes: Analyzing the original protocol format of the original information of the charging station by the protocol matching model, determining the protocol difference between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference; Determining a protocol adaptation rule based on the protocol adaptation requirement, and automatically adjusting the fields and information structure in the original charging station information according to the protocol adaptation rule to obtain the 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 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; 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 analyzing the original protocol format of the original information of the charging station by the protocol matching model, determining the protocol difference between the original protocol format and the protocol supported by the target platform, and obtaining the protocol adaptation requirement according to the protocol difference, includes: Performing a structural analysis on the original protocol format of the charging station original information and the protocol supported by the target platform using 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.

3. 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: Encrypting the adapted charging station information using an encryption algorithm according to an encryption specification of the target platform 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.

4. 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 decrypted charging station information; The decrypted charging station information is verified using the signature key of the target platform to obtain the successfully verified charging station information.

5. The charging information interconnection method according to claim 4, characterized in that: The step of verifying the decrypted charging station information using the signature key of the target platform to obtain the successfully verified charging station information further includes: If the signature key of the target platform fails to verify the decrypted charging station information, performing a 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, requesting the retransmission of the original information of the charging station.

6. A charging information interconnection device, characterized in that: The charging information interconnection device includes: Charging station information collection module, used to obtain the original information of the charging station; a protocol adaptation and format conversion module, configured to input the original charging station information into a protocol matching model, wherein the protocol matching model performs protocol adaptation and format conversion on the original charging station information to obtain adapted charging station information; The protocol adaptation and format conversion module includes: a protocol difference analysis and adaptation requirement generation submodule, configured to analyze the original protocol format of the original information of the charging station using 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; a protocol adaptation rule automatic adjustment submodule, configured to determine a protocol adaptation rule based on the protocol adaptation requirement, and automatically adjust the fields and information structure in the original charging station information according to the protocol adaptation rule to obtain the adapted charging station information; An encryption and signature processing module, configured 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, configured to transmit the encrypted and signed charging station information via a communication protocol supported by the target platform, and obtain successfully transmitted charging station information; The information transmission and communication protocol module also includes: a transmission path optimization submodule, configured to automatically select a transmission path for transmitting the encrypted and signed charging station information to the target platform using a transmission path optimization mechanism during the transmission of the encrypted and signed charging station information; A decryption and signature verification module, configured 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.

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

8. 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 5 are implemented.

Citation Information

Patent Citations

  • Multi-protocol adaptation system and method of charging pile

    CN112769866A

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

    CN118972840A