Charging security authentication method and device, edge gateway equipment and storage medium

By obtaining and analyzing the withholding identification information in the edge gateway device, using the preset key for authentication and visa verification, and combining heartbeat detection and whitelist verification, the problem of safety hazards in the charging process of edge gateway devices is solved. The stability of the charging process and the protection of user data are achieved.

CN118906905APending Publication Date: 2024-11-08AUTEL UNITED CREATION SOFTWARE DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411092709.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Edge gateway devices face security risks during charging, including security risks of authentication mechanisms, communication security risks, data tampering and leakage risks, as well as physical security risks, resulting in instability of charging services and impairment of user privacy.

Method used

By obtaining the withholding identification information, analyzing and authenticating, using the preset key information for authorized access and visa verification, ensuring that only legal users can access the edge gateway device, combining heartbeat abnormal cycle detection and whitelist verification, enhancing charging Safety of the process.

Benefits of technology

Effectively prevent unauthorized access and data tampering, ensure the security of the charging process and the integrity of user data, improve the availability and user experience of edge gateway devices, and ensure the stability and efficiency of charging services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118906905A_ABST
    Figure CN118906905A_ABST
Patent Text Reader

Abstract

The invention relates to the field of Internet of Things, in particular to a charging security authentication method and device, edge gateway equipment and a storage medium, and the charging security authentication method comprises the steps: obtaining pre-fee deduction identification information which is generated by mobile equipment according to pre-fee deduction information, the pre-deduction information is generated by the cloud server according to charging information of a target charging pile in an off-network state; analyzing the pre-fee deduction identification information to obtain authentication information carried by the pre-fee deduction identification information; performing authentication according to the authentication information to obtain an authentication result; and sending a charging instruction to the charging pile according to the authentication result. According to the method, the edge gateway equipment is allowed to still process the charging authentication in the off-network state, data encryption and security in the charging process are realized through the authentication information, security vulnerabilities caused by network connection problems are reduced, and the security and stability in the charging process are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a charging safety authentication method and device thereof, an edge gateway device and a storage medium. Background Art

[0002] In the field of new energy charging, edge gateway devices serve as a solution for local management of charging piles when the network is not smooth. While improving the connectivity and functionality of charging piles, they may also introduce security issues.

[0003] The security issues that edge gateway devices may face include security risks in authentication mechanisms, communication security risks, data tampering and leakage risks, and physical security risks. The specific situations are as follows: Since edge gateway devices are directly connected to charging devices, once attacked, attackers may tamper with charging data (such as charging amount, charging time, etc.), resulting in billing errors or damage to charging devices. Alternatively, attackers may launch DoS / DDoS attacks against edge gateway devices, exhausting the processing capacity of the gateway through a large number of forged requests, making it unable to process normal charging requests, affecting the availability of charging services, etc. These problems may lead to illegal use of charging services, damage to charging piles, and damage to user privacy and the reputation of charging pile operators. Summary of the invention

[0004] One purpose of an embodiment of the present invention is to provide a charging safety authentication method and apparatus, an edge gateway device and a storage medium, which are used to solve the technical problems of unstable connection and insecurity of the edge gateway device during the charging process.

[0005] In a first aspect, an embodiment of the present invention provides a charging safety authentication method, which is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server, a mobile device, and a charging pile, including:

[0006] Acquire pre-withholding fee identification information, where the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, where the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile in an off-network state;

[0007] Parsing the withholding fee identification information to obtain authentication information carried by the withholding fee identification information;

[0008] Perform authentication according to the authentication information to obtain an authentication result;

[0009] A charging instruction is sent to the charging pile according to the authentication result.

[0010] In combination with the first aspect, in a possible implementation method, the authentication information includes signature information, and the authentication is performed based on the authentication information to obtain an authentication result, including: obtaining preset key information; authorizing access to the authentication information based on the preset key information to obtain an authorization result; and authenticating the signature information based on the preset key information to obtain an authentication result.

[0011] It can be seen that in this embodiment, the edge gateway device will use the preset key information to authorize access to the authentication information, ensuring that only authorized users can access and verify the authentication information, thereby preventing illegal access by unauthorized users.

[0012] In combination with the first aspect, in a possible implementation manner, authenticating the signature information according to the preset key information to obtain an authentication result includes: obtaining first summary information corresponding to the signature information; verifying the signature information according to the preset key information to obtain second summary information; comparing whether the first summary information and the second summary information are consistent; if they are consistent, determining that the authentication is passed and obtaining an authentication result, the authentication result is authentication passed; if they are inconsistent, obtaining an authentication result, the authentication result is authentication failed.

[0013] It can be seen that in this embodiment, through the authentication method based on signature information, the edge gateway device can ensure the security of the charging process and the integrity of user data, which not only improves the security of the charging process, but also enhances the security and privacy protection of user data.

[0014] In combination with the first aspect, in a possible implementation method, the authorized access to the authentication information according to the preset key information to obtain an authorization result includes: retrieving the process information of the authentication interface in the edge gateway device according to the authentication information; respectively verifying the process information and the authentication information according to the preset key information to obtain verification information; and confirming whether the authorized access to the authentication information is passed according to the verification information to obtain an authorization result.

[0015] It can be seen that this embodiment can effectively ensure that only legitimate and authorized users or entities can access or operate resources on the edge gateway device, thereby ensuring the security and data integrity during the charging process.

[0016] In combination with the first aspect, in a possible implementation method, the verifying the process information and the authentication information according to the preset key information to obtain the verification information includes: verifying the signature of the authentication information according to the preset key information to obtain third summary information; verifying the signature of the process information according to the preset key information to obtain fourth summary information; and comparing whether the third summary information and the fourth summary information are consistent to obtain the verification information.

[0017] It can be seen that this embodiment improves information security. By double-verifying the signatures and comparing the summary information of these signatures, it ensures that only verified requests can be authorized. It not only prevents unauthorized access attempts, but also protects against the risk of tampering during the charging process.

[0018] In combination with the first aspect, in a possible implementation method, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method also includes: calling a preset whitelist to check whether the process information is in the preset whitelist; if the process information is not in the preset whitelist, terminating the running of the process information; if the process information is in the preset whitelist, keeping the process information running.

[0019] It can be seen that in this embodiment, by checking whether the process information is in the preset whitelist, the edge gateway device can further enhance the security of the charging process, thereby helping to prevent unauthorized processes from posing a threat to the charging pile and user data, thereby ensuring the stability of the charging system and the security of user data.

[0020] In combination with the first aspect, in a possible implementation method, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method also includes: performing a heartbeat abnormality cycle detection on the process information within a preset period; if the heartbeat information sent by the process information cannot be received normally during the preset period, it is determined that the heartbeat is abnormal, and the process information is terminated; if the heartbeat information sent by the process information is received normally during the preset period, the process information is kept running.

[0021] It can be seen that in this embodiment, through the abnormal heartbeat cycle detection, the edge gateway device can monitor the running status of the process in real time and respond to the abnormal situation of the process in time, which helps to protect the charging pile and user data from potential security threats and ensure the stability of the charging system and the security of user data.

[0022] In a second aspect, an embodiment of the present invention provides a charging safety authentication device, which is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server, a mobile device, and a charging pile, and the device includes:

[0023] an acquisition unit, configured to acquire pre-withholding fee identification information, wherein the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, and the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile in an off-network state;

[0024] A parsing unit, used to parse the pre-withholding fee identification information to obtain the authentication information carried by the pre-withholding fee identification information;

[0025] An authentication unit, used to perform authentication according to the authentication information and obtain an authentication result;

[0026] A sending unit is used to send a charging instruction to the charging pile according to the authentication result.

[0027] In a third aspect, an edge gateway device is provided, comprising a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the edge gateway device implements the charging safety authentication method as described in the first aspect.

[0028] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the charging safety authentication method as described in the first aspect.

[0029] In the embodiment implemented by the above charging safety authentication method and its device, edge gateway device and storage medium, the pre-withholding fee identification information is first obtained, and the pre-withholding fee identification information is generated by the mobile device according to the pre-withholding fee information, and the pre-withholding fee information is generated by the cloud server according to the charging information of the target charging pile in the disconnected state. Secondly, the pre-withholding fee identification information is parsed to obtain the authentication information carried by the pre-withholding fee identification information, and then, the authentication is performed according to the authentication information to obtain the authentication result, and finally, the charging instruction is sent to the charging pile according to the authentication result. This embodiment effectively solves the problem of continuing to execute the charging process without network connection through the edge gateway device, thereby ensuring that the charging pile can continue to operate even when the network is completely disconnected; further authentication information is the key to charging authentication. Only after passing the authentication authentication can the user be authorized to charge. After passing the authentication authentication, the safety of the charging process is guaranteed. At the same time, the authentication authentication can also prevent unauthorized users from charging and protect the interests of the charging pile operator. Therefore, this solution improves the availability and user experience of the edge gateway device, and also ensures the safety and efficiency of the charging service process. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0031] Figure 1A is a schematic diagram of a charging system in one embodiment of the present invention;

[0032] Figure 1B is another schematic diagram of a charging system in one embodiment of the present invention;

[0033] Figure 2 It is a flow chart of a charging safety authentication method in one embodiment of the present invention;

[0034] Figure 3 It is a structural schematic diagram of a charging safety authentication device in one embodiment of the present invention;

[0035] Figure 4 It is a schematic diagram of the structure of an edge gateway device in one embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0037] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0038] In addition to the problems with the related technologies mentioned in the background technology, other related problems are also found: (1) Data tampering risk: Since the edge gateway device is directly connected to the charging device, once it is attacked, the attacker may tamper with the charging data (such as charging amount, charging time, etc.), resulting in billing errors or damage to the charging device; (2) Communication key leakage: If the communication key is not managed properly or is compromised, the attacker may steal the key and then decrypt or tamper with the communication content from the charging device to the cloud, threatening the confidentiality and integrity of the data; (3) Device physical security threat: Edge gateway devices are usually deployed off-site and may face physical security threats, such as theft or destruction of the device, which may directly Affecting the normal operation and data security of charging stations; (4) Denial of Service (DoS / DDoS): Attackers may launch DoS / DDoS attacks against edge gateway devices, exhausting the processing capacity of the gateway through a large number of forged requests, making it unable to process normal charging requests, affecting the availability of charging services; (5) Firmware / software vulnerabilities: The firmware or software of edge gateway devices may have vulnerabilities that have not been discovered or patched in time. Attackers can exploit these vulnerabilities to remotely control the device and perform malicious operations; (6) Abuse of permissions and internal threats: Improper permission management may result in sensitive information being accessed by people who should not have permission, or internal personnel using their permissions to perform malicious operations.

[0039] In order to solve these problems, this method proposes a charging safety authentication method. This embodiment effectively solves the problem of continuing the charging process without network connection through the edge gateway device, thereby ensuring that the charging pile can continue to operate even when the network is completely disconnected; further authentication information is the key to charging authentication. Only after passing the authentication can the user be authorized to charge. After passing the authentication, the safety of the charging process is guaranteed. At the same time, the authentication can also prevent unauthorized users from charging and protect the interests of the charging pile operator. Therefore, this solution improves the availability and user experience of the edge gateway device, while also ensuring the safety and efficiency of the charging service process.

[0040] See also Figure 1A , Figure 1A This is a schematic diagram of a charging system provided in an embodiment of the present application, wherein the charging system 10 includes an edge gateway device 20, a cloud server 30, a mobile terminal 40, and a charging pile 50.

[0041] The mobile terminal 40 is a device composed of electronic components, including circuits, microprocessors, memory, sensors and other hardware for processing, storing and transmitting information. Mobile terminals can be portable, such as smart phones, tablet computers, laptops and wearable devices. Mobile terminals are usually able to perform multiple functions, such as data processing, communication, entertainment, navigation, etc., and can be connected to the network through various wireless or wired technologies.

[0042] Specifically, the mobile terminal 40 also provides a convenient interface for users to interact with the charging system. Users can use the mobile terminal to start and manage the charging process, view the charging status, and make payments. In addition, it can also communicate with the edge gateway device through technologies such as Bluetooth or Near-field communication (NFC).

[0043] The cloud server 30 is the remote control center of the charging system, which processes and stores a large amount of data from the entire charging network, performs complex computing tasks, such as user authentication, predicting charging costs, generating pre-deduction orders, and providing analysis services for users and operators. It is also responsible for communicating with the mobile terminal 40, receiving charging requests and sending pre-deduction information. That is, the cloud server 30 plays a central management role in the charging system, ensuring the overall coordination and optimization of the charging system.

[0044] Among them, the edge gateway device 20 is a key component in the charging system. It is located near the charging pile and is responsible for local processing of charging requests and management of the charging process when the network is disconnected or unstable. The edge gateway device 20 can communicate directly with the mobile terminal 40 and the charging pile 50 to perform security verification, generation and transmission of charging instructions, and preliminary processing of charging data. It acts as a bridge between the cloud server 30 and the charging pile 50, ensuring that the charging service can be carried out continuously and reliably even when the network connection is unreliable.

[0045] Specifically, the edge gateway device may include but is not limited to: edge OCPP-process, Audit process, vTP(C)M.ko (kernel module), audit.ko kernel module, TP(C)M hardware.

[0046] Among them, the edge OCPP-process is responsible for processing the charging protocol (such as OCPP-Open Charge Point Protocol), which is the standard protocol for communication between the charging pile and the cloud management system. The edge OCPP-process ensures that the charging pile can follow the correct communication protocol to interact with the edge gateway device even when the network is disconnected.

[0047] The Audit process is responsible for auditing the safety behavior of charging piles and monitoring potential malicious activities or abnormal behaviors. The Audit process identifies behaviors that may pose a threat to the safety of charging piles by analyzing system logs, process behaviors and other information.

[0048] Among them, vTP(C)M.ko is responsible for authentication and encryption and decryption interaction with TP(C)M hardware, and provides a charging system interface for user-mode processes to call (ioctl interface), so that user-mode processes can communicate with the TPM hardware module and perform security operations such as encryption and decryption, digital signatures, and hashing.

[0049] The Audit.ko module is responsible for capturing and recording security events in the kernel. These events include system calls, process creation and destruction, file access, etc. The Audit.ko module provides an additional layer of security monitoring for the system, helping to detect and prevent system-level attacks.

[0050] Among them, the TP(C)M hardware is a dedicated microcontroller used to store encryption keys and perform encryption operations, such as generating, storing and limiting the use of encryption keys, which provides a physical level of security for the hardware.

[0051] Optionally, the charging system may further include a code scanning device 60, which is used to connect the mobile terminal and the edge gateway device. The code scanning device 60 can exchange data with the mobile terminal and the edge gateway device through a common communication connection or near field communication technology (such as NFC, Bluetooth, Wi-Fi, etc.). Figure 1B , Figure 1B This is a schematic diagram of another charging system.

[0052] Specifically, the code scanning device 60 serves as a bridge between user interaction and system authentication. The user generates a QR code or barcode containing pre-withholding fee identification information through a mobile terminal, and then scans it using the code scanning device. This step is not only to start the charging process, but also as a way to pre-authorize the fee. When the user displays the QR code or barcode through the mobile terminal, the code scanning device reads the pre-withholding fee identification information contained therein. The pre-withholding fee identification information may include user account number, amount, timestamp and other necessary encrypted authentication information. After the code scanning device reads this information, it sends it to the edge gateway device through a secure communication connection.

[0053] Among them, the charging pile 50 is the device that actually provides charging services. It can be a charging station installed in a public place or a private place. The charging pile 50 is directly connected to the edge gateway device 20, receives charging instructions from the edge gateway, executes the charging process, and generates charging data. The charging pile 50 can also authenticate with the edge gateway device 20 to ensure that only authorized users can use the charging service.

[0054] In view of this, the present application proposes a charging safety authentication method to solve the above problems, which is described in detail below.

[0055] See also Figure 2 , Figure 2 A flow chart of a charging safety authentication method provided by an embodiment of the present invention is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server, a mobile device, and a charging pile. The method includes the following steps:

[0056] S10. Obtain pre-withholding fee identification information, where the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, and the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile that is in an offline state.

[0057] Optionally, in the process of the edge gateway device acquiring the pre-withholding fee identification information, the edge gateway device may receive the pre-withholding fee identification information through a communication connection with a mobile terminal or a code scanning device.

[0058] Specifically, the edge gateway device communicates with the mobile terminal: the mobile terminal establishes a connection with the edge gateway device through a built-in communication module (such as Wi-Fi, Bluetooth, NFC, etc.). The mobile terminal uses a pre-configured communication protocol and encryption mechanism to transmit data with the edge gateway device to ensure the security and stability of communication. The mobile terminal sends the pre-withdrawal identification information (such as a QR code) to the edge gateway device through a near-field communication mechanism. The edge gateway device receives data from the mobile terminal through a built-in communication module, and parses and processes it.

[0059] Among them, Near Field Communication (NFC) is a technology that allows devices to communicate within a very short distance (usually a few centimeters). Users only need to bring their mobile terminal close to the edge device to transmit data even without using visual scanning.

[0060] Specifically, the process of communication connection between the code scanning device and the edge gateway device can be: first, using the code scanning device, the user provides the pre-deduction fee identification information (such as a QR code) displayed on the mobile terminal to the code scanning device of the charging station. The code scanning device may include but is not limited to a dedicated scanning gun, or a scanning module embedded in the charging pile; once the code scanning device recognizes the data in the QR code, it will transmit this information to the edge gateway device via wired or wireless means. The communication connection can be based on Wi-Fi, Bluetooth, Ethernet or any other communication protocol established by the charging station.

[0061] The above-mentioned withholding fee identification information is a recognizable identification, which can be a QR code or other forms of digital or visual marks, and its purpose is to ensure that information can be transmitted simply, quickly and safely. And the above-mentioned withholding fee identification information contains withholding fee information, such as the charging pile serial number, order ID, user ID, signature information, etc.

[0062] Among them, the above-mentioned withholding fee information includes but is not limited to the charging pile serial number, order ID, user ID, signature information, estimated charging fee, withholding amount, etc., and is not limited here.

[0063] Among them, the specific pre-withheld fee identification information is generated by the mobile device according to the pre-withheld fee information, and the pre-withheld fee information is generated by the cloud server according to the charging information of the target charging pile in the disconnected state.

[0064] Among them, the charging information may include but is not limited to charging gun information (serial number), charging pile operator information (operator name, ID), charging pile availability, charging gun status (connection status, idle status), etc., and is not limited here.

[0065] It can be seen that in this embodiment, the charging pile is allowed to continue to operate in a disconnected state, while ensuring the safety and convenience of the charging process. Users do not need to worry about not being able to use the charging pile due to network problems.

[0066] S20. Parse the withholding fee identification information to obtain authentication information carried by the withholding fee identification information.

[0067] The above-mentioned withholding fee identification information will be embedded with authentication information, which may be a digital signature. A digital signature is an encryption measure that can prove that the information is sent from a trusted source and has not been tampered with during transmission. Usually, a digital signature is generated and verified using a public key infrastructure (PKI) or similar encryption technology.

[0068] During the implementation process, when the user displays the QR code of the pre-deducted fee logo with a mobile device, the charging station or scanning device will scan the QR code through the built-in scanner, and the digital signature contained in it will be parsed and verified by the corresponding software to ensure that it is indeed generated by the cloud server and has not been tampered with. Once the authentication information is confirmed to be correct, the user's identity and pre-deducted fees are also verified.

[0069] The authentication information may include the user's identity credentials, such as username and password, as well as signature information used to ensure information security. These information together constitute a complete authentication package, which is used to verify the user's identity and the integrity of the data in the system.

[0070] It can be seen that in this embodiment, the parsed authentication information can ensure the authenticity and integrity of the pre-withholding fee identification information, thereby preventing unauthorized use and fraud. The authentication information not only improves the security of the charging process, but also enhances the security and privacy protection of user data.

[0071] S30: Perform authentication according to the authentication information to obtain an authentication result.

[0072] Specifically, the above authentication process can be initially set up first. Each component (ocpp protocol process, vTP(C)M.ko, audit, audit.ko) will be assigned a unique user name when it leaves the factory or when the charging system is deployed. This user name reflects its role in the charging system, such as "OCPP protocol process name". At the same time, a set of initial passwords will be created. The password is a hash value generated by the MD5 algorithm of the binary file content of the above components (that is, the complete data of the file). This design ensures that only programs and modules whose content has not been modified can pass authentication. Secondly, when a process needs to access sensitive resources, it calls the authentication interface through the vTPM(C).ko module. The vTPM(C).ko module will obtain the name of the process that is trying to authenticate, read the binary file content corresponding to the process name, and generate the MD5 hash value again. Then, the generated MD5 hash value is compared with the password stored during the initial setting (that is, the binary content MD5 of the edge OCPP). If the MD5 value matches, it means that the process has not been tampered with, its integrity is verified, and the process is authorized to access system resources. If the MD5 value does not match, it indicates that the process binary may have been modified, there may be security risks, and the process will be blocked from accessing system resources. There is also a set of secret keys dedicated to data encryption and decryption. These secret keys are managed by the security chip in the edge gun network management device to ensure data confidentiality and integrity during the entire data transmission and processing process.

[0073] For example, when the edge OCPP process needs to start a charging session, it first calls the authentication interface of the vTPM(C).ko module. The vTPM(C).ko module reads the binary file of the OCPP process, calculates its MD5 value, and compares the value with the preset MD5 password of the process. If the comparison is successful, the system considers the process to be trustworthy and allows it to perform the operation. At this time, if some data needs to be decrypted, the OCPP process can use the encryption key provided by the system to do so.

[0074] The authentication result may be authentication passed or authentication failed.

[0075] Specifically, when the authentication result is "authentication passed", it means that the integrity and identity verification of the process requesting charging (such as the OCPP protocol process) are successful. This indicates that the process is trustworthy and its request is considered legitimate.

[0076] Specifically, if the authentication result indicates that the authentication fails, this usually means that the integrity check of the process has failed, or an abnormality has been found during the authentication process. Such a result indicates that the process may have been tampered with or is untrustworthy.

[0077] It can be seen that in this embodiment, when the charging pile cannot communicate with the cloud in real time, the security and reliability of the local authentication process are ensured. That is, the edge gateway device uses this authentication mechanism based on process integrity verification to greatly reduce the risk of software tampering in the charging pile system, providing an important layer of security for the new energy charging pile system.

[0078] S40: Send a charging instruction to the charging pile according to the authentication result.

[0079] Among them, the charging instruction contains all the information needed to start charging, such as charging duration, current or voltage level, etc.

[0080] Among them, when the above authentication result is that the authentication is passed, a charging instruction will be sent to the charging pile immediately. After the charging pile receives the charging instruction, it will start charging the electric vehicle according to the content of the instruction.

[0081] Among them, when the above authentication result is authentication failure, no charging instruction will be sent to the charging pile. On the contrary, in order to protect the security of the system, other measures may be taken, such as recording security events, alerting system administrators, or trying to isolate untrusted processes. This not only protects the security of the charging network, but also ensures that the user's charging request is legal and safe.

[0082] It can be seen that this embodiment ensures that only legitimately authenticated requests can operate the charging pile, which significantly improves the safety and reliability of the entire charging infrastructure. At the same time, it also ensures the safety of users and prevents the risks that may be caused by unauthorized operations.

[0083] This embodiment effectively solves the problem of continuing the charging process without network connection through the edge gateway device, thereby ensuring that the charging pile can continue to operate even when the network is completely disconnected; further authentication information is the key to charging authentication. Only after passing the authentication can the user be authorized to charge. After passing the authentication, the security of the charging process is guaranteed. At the same time, the authentication can also prevent unauthorized users from charging and protect the interests of the charging pile operator. Therefore, this solution improves the availability and user experience of the edge gateway device, while also ensuring the security and efficiency of the charging service process.

[0084] In one embodiment, the authentication information includes signature information, and performing authentication based on the authentication information to obtain an authentication result includes: obtaining preset key information; authorizing access to the authentication information based on the preset key information to obtain an authorization result; and performing authentication based on the signature information to obtain an authentication result.

[0085] Among them, the above-mentioned preset key information is a specific key that will be generated when the charging system is initialized and securely stored in the system. It can be a public-private key pair, or a shared secret key, depending on the authentication and encryption technology used.

[0086] Yes, preset key information can be generated by encryption software or dedicated hardware security modules (HSM), which are tools that can generate high-strength random keys. For public-private key pairs, the generation process will generate both the private key and the corresponding public key. The security of the algorithm will be taken into account when generating the key to ensure that the algorithm used can resist currently known attack methods. The preset key needs to be stored in a secure environment to prevent unauthorized access, which can be achieved by using HSM, software encryption wallets or other encrypted storage solutions. The public key can be made public, but its authenticity needs to be ensured during the distribution process to prevent tampering.

[0087] The signature information in the authentication information can use a hash function to hash the original data to obtain a unique summary (hash value) representing the data, and then encrypt the summary using the sender's private key. The generated encrypted summary is the signature information.

[0088] The process of authorizing access involves decrypting the encrypted authentication data packet to verify the legitimacy of the sender (such as the OCPP protocol process). After decryption, the validity of the authentication information is checked, such as matching the user name and device ID.

[0089] Among them, when the authorization result is authorization passed, the signature information is authenticated according to the preset key information to obtain the authentication result. That is, if the result of the authorized access is authorization passed, it means that the authentication information is legal, the sender is confirmed to be a legal entity, and is allowed to continue to access the system.

[0090] Optionally, if authorization is not granted the process is terminated immediately, disallowing further access or operation of system resources.

[0091] The authentication can be based on a username and password mechanism, where username is the name of the OCPP protocol process and password is the MD5 of the binary content of ocpp protocol process, vTP(C)M.ko, audit, and audit.ko. This mechanism ensures the integrity of the ocpp local service, vTP(C)M.ko, audit, and audit.ko.

[0092] For example, when registering, the user generates a pair of public and private keys, the public key is uploaded to the cloud server, and the private key is saved on the mobile device. When the user needs to charge, the mobile device generates pre-withholding fee identification information and signs it with the private key to generate signature information. The user sends the pre-withholding fee identification information containing the signature information to the edge gateway, and the edge gateway verifies the validity of the signature information using the public key stored on the cloud server. If the signature verification is successful, the edge gateway will confirm the authenticity of the pre-withholding fee identification information and further perform authentication. The edge gateway will search for user information in the local database based on the user ID and other information in the pre-withholding fee identification information. If the user information exists and is valid, the edge gateway will confirm the user's legal identity. After the authentication is passed, the edge gateway will send a charging instruction to the charging pile to start the charging process.

[0093] The result of the authentication will be based on the result of the signature verification. If the signature verification is successful, the system confirms that the message is complete and has not been tampered with, and thus determines that the authentication result is passed.

[0094] Among them, if the signature verification fails, it indicates that the authentication information may have been tampered with, the authentication result is failed, the corresponding request or instruction will be rejected, and a security alarm may be triggered.

[0095] It can be seen that in this embodiment, the edge gateway device will use the preset key information to authorize access to the authentication information, ensuring that only authorized users can access and verify the authentication information, thereby preventing illegal access by unauthorized users.

[0096] In one embodiment, authenticating the signature information according to the preset key information to obtain an authentication result includes: obtaining first summary information corresponding to the signature information; verifying the signature information according to the preset key information to obtain second summary information; comparing whether the first summary information and the second summary information are consistent; if they are consistent, determining that the authentication is passed and obtaining an authentication result, the authentication result is authentication passed; if they are inconsistent, obtaining an authentication result, the authentication result is authentication failed.

[0097] The signature information is usually an encrypted form of a file or data stream, which is encrypted by the sender's private key. The encrypted data in the signature is usually a "digest" or "hash" of the original data.

[0098] The first summary information refers to a string of fixed length generated by a hash function of the original data, which is a unique identifier of the original data. In this embodiment, the first summary information is obtained or recalculated for the subsequent verification process.

[0099] Among them, when the preset key information is a public key, the signature information can be decrypted using the public key, and the second summary information is obtained after decryption. This step confirms that the source of the information is indeed the sender who has the corresponding private key, and the summary information obtained by decryption should be consistent with the summary information generated by the original data.

[0100] The second summary information is generated by a hash function. A hash function is a one-way function that can convert input data (such as files, text, or signature information) into a fixed-length output, which is the so-called hash value or summary. An important feature of a hash function is that the same input data always produces the same hash value, while different input data will not produce the same hash value.

[0101] Specifically, a hash function is used to calculate the original data (such as signature information). The hash function processes the input data and outputs a hash value of a fixed length. This hash value is the summary information of the signature information (the second summary information). Then, the hash value is encrypted using the private key to generate a digital signature. The private key is the key used by the signer to create a digital signature. It corresponds to the public key and is used to verify the signature. Finally, the digital signature is decrypted using the public key to obtain a hash value. This hash value is compared with the hash value of the original data calculated using the same hash function. If the two hash values ​​are consistent, the digital signature is valid, otherwise it is invalid.

[0102] It can be seen that in this embodiment, through the authentication method based on signature information, the edge gateway device can ensure the security of the charging process and the integrity of user data, which not only improves the security of the charging process, but also enhances the security and privacy protection of user data.

[0103] In one embodiment, the authorization access to the authentication information according to the preset key information to obtain an authorization result includes: retrieving the process information of the authentication interface in the edge gateway device according to the authentication information; respectively verifying the process information and the authentication information according to the preset key information to obtain verification information; and confirming whether the authentication information is authorized to access according to the verification information to obtain an authorization result.

[0104] Among them, the authentication interface is a way to query the information of the running process, which is mainly used to obtain the status of the service or application running on the current edge gateway device and provide necessary information for subsequent security inspections.

[0105] The inspection information usually includes a data summary of the verification result or a summary comparison result, which is used to indicate whether the inspection is passed.

[0106] Optionally, if the third summary information corresponding to the authentication information is consistent with the fourth summary information corresponding to the process information, verification information is obtained, and the verification information is verification consistent. Further, in the process of confirming whether the authentication information is authorized to access based on the verification information and obtaining the authorization result, the verification information is verification consistent, confirming that the authentication information is authorized to access, and obtaining the authorization result, and the authorization result is authorized access.

[0107] Optionally, if the third summary information corresponding to the authentication information is inconsistent with the fourth summary information corresponding to the process information, verification information is obtained, and the verification information is verification inconsistency. Further, in the process of confirming whether the authentication information authorization access is passed based on the verification information and obtaining the authorization result, the verification information is verification inconsistency, confirming that the authentication information authorization access is not passed, and obtaining the authorization result, and the authorization result is that the authorization access is not passed.

[0108] Specifically, the obtained process information and the submitted authentication information are verified using the preset key information to ensure that the requester has sufficient authority to perform the requested operation and that the operation process is legal and secure.

[0109] For example, the vTPM(C).ko module can obtain the name of the current process based on the process information that calls the authentication interface, and read the edge OCPP-process, vTP(C)M.ko, audit, and audit.ko binary contents, ensuring that only legitimate processes can call the authentication interface, thereby preventing unauthorized processes from accessing the authentication information; and calculate MD5 as a password to verify the integrity of the process information and authentication information. The MD5 value is a compressed representation of the original data. By comparing the MD5 value, it is possible to quickly determine whether the data has been tampered with, thereby preventing the edge OCPP-process, vTP(C)M.ko, audit, and audit.ko from being tampered with.

[0110] It can be seen that this embodiment can effectively ensure that only legitimate and authorized users or entities can access or operate resources on the edge gateway device, thereby ensuring the security and data integrity during the charging process.

[0111] In one embodiment, the verifying the process information and the authentication information according to the preset key information to obtain the verification information includes: verifying the signature of the authentication information according to the preset key information to obtain third summary information; verifying the signature of the process information according to the preset key information to obtain fourth summary information; and comparing whether the third summary information is consistent with the fourth summary information to obtain the verification information.

[0112] Among them, the process of using the preset key to verify the authentication information involves using the public key to decrypt the signature in the authentication information to verify the legitimacy of the signature. If the authentication information is signed and the signature matches the preset key, then a summary information can be generated, which is the third summary information.

[0113] The process information generally includes the identity, status or other security-related data of the process. After the process information is verified by the preset key, a summary information, namely the fourth summary information, is generated.

[0114] The third summary information and the fourth summary information can be understood as hash values ​​in this embodiment.

[0115] If the third summary information is consistent with the fourth summary information, it means that the authentication information and the process information are both legal and not tampered with, so the verification information shows that the authentication is successful.

[0116] It can be seen that this embodiment improves information security. By double-verifying the signatures and comparing the summary information of these signatures, it ensures that only verified requests can be authorized. It not only prevents unauthorized access attempts, but also protects against the risk of tampering during the charging process.

[0117] In one embodiment, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method also includes: calling a preset whitelist to check whether the process information is in the preset whitelist; if the process information is not in the preset whitelist, terminating the running of the process information; if the process information is in the preset whitelist, keeping the process information running.

[0118] The preset whitelist is a list of known legitimate process names, which is used to verify the legitimacy of process information. The preset whitelist can be preset according to specific security standards and requirements, and updated regularly to reflect the latest security policies.

[0119] Specifically, the edge gateway device will compare the process name in the process information with the process name in the whitelist. If the process name is not in the whitelist, it means that the process may be illegal or unauthorized. Any operation performed by any process that is not on the preset whitelist may be considered high-risk. Once a high-risk behavior is detected, the edge gateway device will take corresponding instruction notifications. High-risk behavior may cause the process to be required to commit suicide (i.e., the process exits) to eliminate potential security threats. For non-high-risk behaviors, the edge gateway device will keep the process running.

[0120] It can be seen that in this embodiment, by checking whether the process information is in the preset whitelist, the edge gateway device can further enhance the security of the charging process, thereby helping to prevent unauthorized processes from posing a threat to the charging pile and user data, thereby ensuring the stability of the charging system and the security of user data.

[0121] In one embodiment, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method also includes: performing a heartbeat abnormality cycle detection on the process information within a preset period; if the heartbeat information sent by the process information cannot be received normally during the preset period, it is determined that the heartbeat is abnormal, and the process information is terminated; if the heartbeat information sent by the process information is received normally during the preset period, the process information is kept running.

[0122] Among them, heartbeat abnormal cycle detection is a mechanism for confirming the running status of a process. Specifically, the heartbeat signals received from the process are periodically checked according to the monitoring component. By analyzing these heartbeat signals, it is possible to evaluate whether the running status of each process is normal.

[0123] Among them, the heartbeat information is a lightweight signal or message, which is sent periodically by the running process to indicate its active status. In the charging safety authentication environment, the heartbeat information can be used to monitor the status of the processes in the edge gateway device in real time to ensure that their operation is not interrupted or abnormal.

[0124] If the heartbeat information sent by a process cannot be received normally within the preset detection period, it means that the process may have encountered problems, such as interruption, abnormal suspension, or security threat. Based on security considerations and stability requirements, measures will be taken to terminate the operation of the process.

[0125] Among them, the heartbeat information sent by the process can be received normally within the preset period, indicating that the process is running well and no obvious abnormality is detected. In this case, the process will continue to run without any interruption or termination operation.

[0126] It can be seen that in this embodiment, through the abnormal heartbeat cycle detection, the edge gateway device can monitor the running status of the process in real time and respond to the abnormal situation of the process in time, which helps to protect the charging pile and user data from potential security threats and ensure the stability of the charging system and the security of user data.

[0127] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0128] As another aspect of the embodiment of the present application, the embodiment of the present application provides a charging safety authentication device. The charging safety authentication device can be a software module, which includes several instructions stored in a memory, and the processor can access the memory and call the instructions for execution to complete the charging safety authentication method described in the above embodiments.

[0129] See also Figure 3 , Figure 3 Schematic diagram of a charging safety authentication device provided in an embodiment of the present application. An edge gateway device applied to a charging system, wherein the charging system further includes a cloud server, a mobile device, a charging pile, such as Figure 4 As shown, the charging safety authentication device 300 includes:

[0130] An acquisition unit 301 is used to acquire pre-withholding fee identification information, where the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, and the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile in an off-network state;

[0131] A parsing unit 302 is used to parse the pre-withholding fee identification information to obtain authentication information carried by the pre-withholding fee identification information;

[0132] An authentication unit 303 is used to perform authentication according to the authentication information to obtain an authentication result;

[0133] The sending unit 304 is used to send a charging instruction to the charging pile according to the authentication result.

[0134] This embodiment effectively solves the problem of continuing the charging process without network connection through the edge gateway device, thereby ensuring that the charging pile can continue to operate even when the network is completely disconnected; further authentication information is the key to charging authentication. Only after passing the authentication can the user be authorized to charge. After passing the authentication, the security of the charging process is guaranteed. At the same time, the authentication can also prevent unauthorized users from charging and protect the interests of the charging pile operator. Therefore, this solution improves the availability and user experience of the edge gateway device, while also ensuring the security and efficiency of the charging service process.

[0135] In one embodiment, the authentication information includes signature information, and in the authentication unit 303 performing authentication based on the authentication information to obtain an authentication result, the authentication unit 303 is further used to: obtain preset key information; authorize access to the authentication information based on the preset key information to obtain an authorization result; and perform authentication on the signature information based on the preset key information to obtain an authentication result.

[0136] In one embodiment, in the step of authenticating the signature information according to the preset key information to obtain an authentication result, the authentication unit 303 is further used to: obtain first summary information corresponding to the signature information; verify the signature information according to the preset key information to obtain second summary information; compare whether the first summary information and the second summary information are consistent; if they are consistent, determine that the authentication is passed and obtain an authentication result, and the authentication result is authentication passed; if they are inconsistent, obtain an authentication result, and the authentication result is authentication failed.

[0137] In one embodiment, in the process of authorizing access to the authentication information according to the preset key information and obtaining an authorization result, the authentication unit 303 is also used to: retrieve the process information of the authentication interface in the edge gateway device according to the authentication information; respectively verify the process information and the authentication information according to the preset key information to obtain verification information; and confirm whether the authorization access to the authentication information is passed according to the verification information to obtain an authorization result.

[0138] In one embodiment, in the step of verifying the process information and the authentication information according to the preset key information to obtain the verification information, the authentication unit 303 is further used to: verify the signature of the authentication information according to the preset key information to obtain third summary information; verify the signature of the process information according to the preset key information to obtain fourth summary information; and compare whether the third summary information is consistent with the fourth summary information to obtain the verification information.

[0139] In one embodiment, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the authentication unit 303 is also used to: call a preset whitelist to check whether the process information is in the preset whitelist; if the process information is not in the preset whitelist, terminate the running of the process information; if the process information is in the preset whitelist, keep running the process information.

[0140] In one embodiment, after retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the authentication unit 303 is also used to: perform heartbeat abnormality cycle detection on the process information within a preset period; if the heartbeat information sent by the process information cannot be received normally during the preset period, it is determined that the heartbeat is abnormal, and the process information is terminated; if the heartbeat information sent by the process information is received normally during the preset period, the process information is kept running.

[0141] It should be noted that the above-mentioned charging safety authentication device can execute the charging safety authentication method provided in the embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the charging safety authentication device, please refer to the charging safety authentication method provided in the embodiment of this application.

[0142] See also Figure 4 , Figure 4 Schematic diagram of the structure of an edge gateway device provided in an embodiment of the present application. Figure 4 As shown, the edge gateway device 400 includes a processor 401 and a memory 402. The processor 401 is in communication connection with the memory 402.

[0143] The processor 401 is configured to support the edge gateway device to perform the corresponding functions in the charging safety authentication method in the above method embodiment. The processor 401 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0144] Specifically, the processor 401 may include a sending card, a receiving card and a driving chip.

[0145] The memory 402 is used to store program codes, etc. The memory 402 may include a volatile memory (VM), such as a random access memory (RAM); the memory 402 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 402 may also include a combination of the above-mentioned types of memories.

[0146] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the charging safety authentication method as described in the above embodiment.

[0147] A person skilled in the art can 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, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0148] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A charging safety authentication method, It is characterized in that An edge gateway device applied to a charging system, wherein the charging system further includes a cloud server, a mobile device, and a charging pile, and the charging safety authentication method includes: Acquire pre-withholding fee identification information, where the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, where the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile in an off-network state; Parsing the withholding fee identification information to obtain authentication information carried by the withholding fee identification information; Perform authentication according to the authentication information to obtain an authentication result; A charging instruction is sent to the charging pile according to the authentication result.

2. The charging safety authentication method according to claim 1, It is characterized in that The authentication information includes signature information, and the authentication is performed according to the authentication information to obtain an authentication result, including: Get preset key information; Authorize access to the authentication information according to the preset key information to obtain an authorization result; The signature information is authenticated according to the preset key information to obtain an authentication result.

3. The charging safety authentication method according to claim 2, It is characterized in that The step of authenticating the signature information according to the preset key information to obtain an authentication result includes: Obtaining first summary information corresponding to the signature information; Verify the signature information according to the preset key information to obtain second summary information; comparing the first summary information and the second summary information to see whether they are consistent; If they are consistent, it is determined that the authentication is passed, and an authentication result is obtained, where the authentication result is that the authentication is passed; If they are inconsistent, an authentication result is obtained, and the authentication result is that the authentication fails.

4. The charging safety authentication method according to claim 2, It is characterized in that The step of authorizing access to the authentication information according to the preset key information to obtain an authorization result includes: Retrieving the process information of the authentication interface in the edge gateway device being run according to the authentication information; According to the preset key information, the process information and the authentication information are respectively verified to obtain verification information; According to the verification information, it is confirmed whether the authentication information is authorized to access and an authorization result is obtained.

5. The charging safety authentication method according to claim 4, It is characterized in that The step of verifying the process information and the authentication information according to the preset key information to obtain verification information includes: Verify the signature of the authentication information according to the preset key information to obtain third summary information; Verify the signature of the process information according to the preset key information to obtain fourth summary information; The third summary information is compared with the fourth summary information to determine whether they are consistent, and verification information is obtained.

6. The charging safety authentication method according to claim 4, It is characterized in that After retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method further includes: Calling a preset whitelist to check whether the process information is in the preset whitelist; If the process information is not in the preset whitelist, terminating the running of the process information; If the process information is in the preset whitelist, the process information is kept running.

7. The charging safety authentication method according to claim 4, It is characterized in that After retrieving the process information of the authentication interface in the edge gateway device according to the authentication information, the charging safety authentication method further includes: Performing heartbeat abnormal cycle detection on the process information within a preset period; If the heartbeat information sent by the process information cannot be received normally during the preset period, it is determined that the heartbeat is abnormal, and the process information is terminated; If the heartbeat information sent by the process information is received normally during the preset period, the process information is kept running.

8. A charging safety authentication device, applied to an edge gateway device in a charging system, wherein the charging system also includes a cloud server, a mobile device, and a charging pile. include: an acquisition unit, configured to acquire pre-withholding fee identification information, wherein the pre-withholding fee identification information is generated by the mobile device according to pre-withholding fee information, and the pre-withholding fee information is generated by the cloud server according to charging information of a target charging pile in an off-network state; A parsing unit, used to parse the pre-withholding fee identification information to obtain the authentication information carried by the pre-withholding fee identification information; An authentication unit, used to perform authentication according to the authentication information and obtain an authentication result; A sending unit is used to send a charging instruction to the charging pile according to the authentication result.

9. An edge gateway device, It is characterized in that It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the edge gateway device implements the charging safety authentication method as described in any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the charging safety authentication method according to any one of claims 1 to 7.