Authentication execution method and authentication execution device

By using the authentication code transmission method of PWM signal encoding in the authentication technology, the problem of insufficient network dependence and communication stability in the existing technology is solved, and stable charging and efficient authentication are achieved in various environments, improving User experience and security.

CN118944896APending Publication Date: 2024-11-12GUANGZHOU ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing authentication technology relies on network connections, resulting in high costs, unstable communication, and low charging efficiency in environments with poor network signals, affecting the user experience.

Method used

The authentication code transmission method adopts PWM signal encoding, and the encoded PWM signal is transmitted between the authentication end and the to-authentication end, and the matching is verified after decoding, and the authentication is realized, avoiding dependence on traditional servers or wireless networks. , improves the anti-interference ability and transmission stability of the signal.

Benefits of technology

A stable charging process in various environments is realized, the interaction between charging piles and electric vehicles is simplified, charging efficiency and user experience is improved, costs are reduced, and safety is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944896A_ABST
    Figure CN118944896A_ABST
Patent Text Reader

Abstract

The invention provides an authentication execution method and an authentication execution device, and relates to the technical field of authentication. The method comprises the following steps: generating an authentication code; wherein the authentication code is used for authenticating a to-be-authenticated end on the basis of being identified; the authentication code is stored in an authentication end and a to-be-authenticated end; encoding the authentication code in the form of a PWM (Pulse Width Modulation) signal, and transmitting the encoded PWM signal between the authentication end and the end to be authenticated; the received PWM signal is decoded by a receiving party which receives the PWM signal; after the decoding is completed, the receiver verifies whether the decoded PWM signal is matched with the stored authentication code; and if the decoded PWM signal is matched with the stored authentication code, judging that the authentication is successful. According to the scheme of the invention, the authentication terminal and the terminal to be authenticated carry out the authentication operation through the PWM signal without depending on an external network, and a safe, efficient and easy-to-implement bidirectional authentication mechanism is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of authentication and electric vehicle technology, and in particular to an authentication execution method and an authentication execution device. Background Art

[0002] Existing authentication technologies play a key role in ensuring user identity authentication and resource access control, but they also face challenges in security, privacy protection, technical complexity, performance impact, cross-platform compatibility, continuous update and maintenance, dependency restrictions, and legal compliance. These shortcomings have prompted the industry to continuously explore and develop more secure, efficient, and user-friendly authentication solutions.

[0003] With the popularity of electric vehicles and the growing demand for charging, traditional charging technologies face many challenges. Existing technologies rely on network connections and additional hardware modules, which not only increase costs but also limit the flexibility and stability of charging. Especially in environments with poor network signals, such as underground garages, the charging process may be affected. In addition, the instability and susceptibility to interference of wireless communication technology also bring uncertainty to the charging process. Therefore, it is particularly important to develop a charging technology that does not rely on network connections, is cost-effective, and has stable communication. This technology needs to be able to work stably in various environments, while simplifying the interaction process between charging piles and electric vehicles, and improving charging efficiency and user experience. Summary of the invention

[0004] In view of this, the purpose of the embodiments of the present application is to provide an authentication execution method to improve the problems of network dependence, high cost and insufficient communication stability existing in the prior art.

[0005] In order to solve the above problems, the embodiment of the present application provides an authentication execution method, including:

[0006] Generate an authentication code; wherein the authentication code is used to authenticate the end to be authenticated based on the identification; the authentication code is stored in the authentication end and the end to be authenticated;

[0007] Encoding the authentication code in the form of a PWM signal, and transmitting the encoded PWM signal between the authentication end and the end to be authenticated;

[0008] The receiving party receiving the PWM signal decodes the received PWM signal;

[0009] After decoding is completed, the receiver verifies whether the decoded PWM signal matches the stored authentication code;

[0010] If the decoded PWM signal matches the stored authentication code, it is determined that the authentication is successful.

[0011] In the above implementation process, a unique authentication code is generated at the authentication end, which is used to identify and verify the identity of the end to be authenticated. The authentication code can be pre-set and confidential to ensure security. At the same time, the generated authentication code is securely stored in the storage device of the authentication end and the end to be authenticated, ensuring that only the authorized two ends can access and use the authentication code. The authentication code will be converted into binary form, and each bit (0 or 1) in the binary sequence is mapped to a specific PWM duty cycle. After defining the duration of each binary bit and the start and end characteristics of the entire PWM signal, a PWM signal is generated, in which each binary bit is converted into a pulse of the corresponding duty cycle. In this process, each bit of the authentication code is converted into a PWM waveform with a specific duty cycle. Such a conversion improves the anti-interference ability of the signal and makes the transmission more stable. The encoded PWM signal is transmitted between the authentication end and the end to be authenticated, and does not rely on the transmission of traditional servers or wireless networks, so it is not limited by wireless signal interference and network coverage. After the authentication end receives the PWM signal, it converts the detected duty cycle back to the corresponding binary bit according to the pre-defined mapping rules, thereby restoring the PWM signal to the original authentication code. The decoding process needs to be accurate and fast to ensure the efficiency of the authentication process. The decoded authentication code is compared with the authentication code stored locally on the authentication end. If the two are consistent, it means that the identity of the authentication end has been verified and the authentication is successful.

[0012] Optionally, generating an authentication code includes:

[0013] Generating the authentication code on the authentication terminal according to the relevant information of the terminal to be authenticated;

[0014] The relevant information includes the identity information of the end to be authenticated and / or feature information agreed upon with the authentication end.

[0015] In the above implementation process, generating an authentication code is to create a unique identifier or password to verify and ensure the identity of both communicating parties. It needs to be securely shared and stored between the authenticating end and the end to be authenticated to ensure that only authorized devices or users can access specific resources or services.

[0016] Optionally, encoding the authentication code in the form of a PWM signal includes:

[0017] The authentication code is converted into a binary signal arranged in sequence; wherein the binary signal is composed of a 0 signal representing a low position and a 1 signal representing a high position;

[0018] Determine the information null value section in the PWM duty cycle in the current transmission scenario;

[0019] The first information null value segment in the information null value segment in the PWM duty cycle represents the 0 signal, and the second information null value segment in the information null value segment in the PWM duty cycle represents the 1 signal, so as to form an authentication code encoded in the form of a PWM signal.

[0020] In the above implementation process, the authentication end converts the stored authentication code into binary form, and then maps each bit (0 or 1) in the binary sequence to a specific PWM duty cycle according to predefined rules. After defining the duration of each binary bit and the start and end characteristics of the entire PWM signal, a PWM signal is generated in which each binary bit is converted into a pulse of the corresponding duty cycle.

[0021] Optionally, transmitting the encoded PWM signal between the authentication end and the end to be authenticated includes:

[0022] After the end to be authenticated establishes a connection with the authentication end, delaying a first period of time;

[0023] After the first period of time, the sender among the authentication end and the end to be authenticated continuously sends an initial transmission code to the receiver therein;

[0024] After sending the initial transmission code, a second time period begins, during which the sending party sends the authentication code encoded in the form of the PWM signal to the receiving party until all the authentication codes are sent or the transmission fails.

[0025] In the above implementation process, the end to be authenticated and the authenticator first establish a physical or logical connection. This may be through wired or wireless means, depending on the design and application scenario of the system. After the connection is established, the system will deliberately delay for a period of time, that is, the first period. After the first period ends, the sender sends an initial transmission code to the receiver. The initial transmission code may continue to be sent for a period of time, or until the receiver confirms receipt. This helps to ensure that both parties are synchronized and ready for subsequent authentication code transmission. The encoded PWM signal is sent to the end to be authenticated. This process continues until all authentication codes have been sent, or until a transmission failure is detected. If all data is successfully sent, the end to be authenticated will start the decoding process to verify the authentication code. If an error occurs during the transmission process, such as a connection interruption, the system may need to resend the data or take error recovery measures.

[0026] Optionally, the receiving party that receives the PWM signal decodes the received PWM signal, including:

[0027] The receiving party calculates a duty cycle value combination of the received PWM signal from the received PWM signal by changing the high and low levels caused by the PWM signal;

[0028] A receiving code in binary form is generated according to the duty cycle value combination of the PWM signal; wherein the receiving code is used to match the authentication code stored by the receiving party.

[0029] In the above implementation process, the receiver first receives the PWM signal from the sender. This signal is formed by switching high and low levels, where the encoding of each binary bit is determined by a specific high level duration and low level duration to form different duty cycles. For example, a high duty cycle may represent a binary "1", while a low duty cycle represents a binary "0". In this way, by continuously changing the duty cycle, the PWM signal can encode and transmit a data sequence representing the authentication code information. The receiver calculates the duty cycle of the PWM signal by measuring the duration of the high / low levels. According to the preset mapping rule, each duty cycle value is converted to the corresponding binary bit. For example, a high duty cycle may correspond to a binary "1", while a low duty cycle may correspond to a binary "0". All the converted binary bits are combined to form a complete binary form of the received code. This received code is the binary representation of the original authentication code and is used in the subsequent verification process. The generated binary received code will be compared with the authentication code stored locally by the receiver to verify the identity of the sender. If the two match, the authentication is successful; if they do not match, the authentication fails.

[0030] Optionally, the authentication end is an electric vehicle charging station; the end to be authenticated is an electric vehicle that can be charged.

[0031] In the above implementation process, the charging pile (authentication end) generates a unique authentication code based on the identity information of the electric vehicle (end to be authenticated) or the characteristic information agreed with the charging pile. The authentication code is securely stored in the storage device of the charging pile and the electric vehicle, such as in the vehicle-mounted system of the electric vehicle. The charging pile encodes the authentication code into a PWM signal, where different duty cycles represent different binary bits, thereby forming a digital representation of the authentication code. The charging pile sends the PWM signal to the electric vehicle through a physical connection (such as a communication line in a charging cable). The receiver of the electric vehicle captures the PWM signal and converts the duty cycle back to binary data according to predefined rules. The decoder of the electric vehicle reassembles the binary data into an authentication code. The electric vehicle compares the decoded authentication code with the locally stored authentication code to verify its consistency. If they match, the electric vehicle sends a response signal to the charging pile through a specific mechanism. After receiving the response signal, the charging pile verifies whether the electric vehicle is a legitimate device to be charged. If the authentication is successful, the charging pile starts the charging process; if the authentication fails, the charging pile will reject the charging request and may record the event for subsequent analysis.

[0032] Optionally, if the decoded PWM signal matches the stored authentication code, determining that the authentication is successful includes:

[0033] When it is determined that the decoded PWM signal matches the stored authentication code, a response signal is sent to the sender by operating the S2 mechanism.

[0034] In the above implementation process, the S2 mechanism is a relay inside the car. When the relay is closed, a resistor is connected in the circuit, and when the relay is opened, the resistor is cut off. The triggering mechanism of the response signal is as follows: after the authentication end waits for the authentication request, it receives the PWM signal from the authentication end, decodes the received PWM signal, converts it into an authentication code and compares it with the locally stored authentication code. If it matches, it enters the third period and prepares to send the response signal. After completing the sending of the above response signal, it waits for further instructions or operations from the authentication end.

[0035] Optionally, the sending of a response signal to the sender by operating the S2 mechanism includes:

[0036] In the third period, the S2 mechanism is operated 2N times through regular actions;

[0037] The regular movements include: every 2 regular movements form a group, the time interval between each movement is a first time length, and each group is separated by a second time length; the first time length is different from the second time length.

[0038] In the above implementation process, the response signal is sent to the authentication end through the operation of the S2 mechanism. In the third time period, the S2 mechanism is operated 2N times (i.e., multiples of two times, to ensure that the mechanism can restore to the initial state) according to the set regular action. Every two operations form a group, the interval between operations within a group is the first time length, and the interval between groups is the second time length. To avoid misjudgment caused by misoperation of the S2 mechanism, a multiple-action S2 mechanism is used, and the time interval between each action is specified to avoid contingency, so the first time length and the second time length are set to different time intervals.

[0039] The embodiment of the present application also provides an authentication execution method, which is applied to an authentication terminal; the method includes:

[0040] Generate an authentication code uniquely corresponding to the end to be authenticated, and store the authentication code in the authenticating end and the end to be authenticated;

[0041] When the connection of the end to be authenticated is detected, the control signal transmission line is switched between high and low levels to output PWM signals composed of different duty cycles to form an authentication code in the form of a PWM signal;

[0042] Sending the authentication code in the form of the PWM signal to the end to be authenticated;

[0043] After receiving the response signal returned by the end to be authenticated, verify whether the end to be authenticated is a legitimate end to be authenticated.

[0044] In the above implementation process, an authentication code uniquely corresponding to the end to be authenticated is generated at the authentication end for identifying the identity of the end to be authenticated. The generated authentication code is securely stored in the storage devices of the authentication end and the end to be authenticated, ensuring that only the authorized two ends can access and use the authentication code. When the end to be authenticated attempts to connect to the authentication end, the authentication end detects the connection request through a certain mechanism (such as insertion detection or communication request of the physical interface). Once the connection of the end to be authenticated is detected, the authentication end controls the signal transmission line to output a PWM signal composed of different duty cycles in a high-low level switching manner. This PWM signal represents the authentication code, where different duty cycles correspond to different binary bits in the authentication code. The authentication end sends the authentication code in the form of a PWM signal to the end to be authenticated through the signal transmission line. This signal transmission process may involve specific communication protocols or timing specifications to ensure accurate transmission of the signal. After receiving the PWM signal, the end to be authenticated decodes and generates a response signal. The response signal is the response of the end to be authenticated to the authentication code. After receiving the response signal returned by the end to be authenticated, the authentication end performs verification. If the response signal is successfully verified, the authentication end determines that the end to be authenticated is a legitimate end to be authenticated and allows it to perform subsequent operations. If the verification fails, the request of the end to be authenticated is rejected and security measures may be taken to prevent unauthorized access.

[0045] The embodiment of the present application also provides an authentication execution device, the device comprising: an authentication end and an end to be authenticated;

[0046] The authentication terminal is configured to generate an authentication code uniquely corresponding to the end to be authenticated, and store the authentication code in the authentication terminal and the end to be authenticated;

[0047] The authentication end is configured to control the signal transmission line to output PWM signals composed of different duty cycles in a high-low level switching manner to form an authentication code in the form of a PWM signal when the end to be authenticated is detected to be connected;

[0048] The authentication end is configured to send an authentication code in the form of the PWM signal to the end to be authenticated;

[0049] The end to be authenticated is configured to parse the authentication code in the form of the received PWM signal and verify whether the decoded PWM signal matches the authentication code stored therein;

[0050] The end to be authenticated is configured to send a response signal to the authentication end after determining whether the decoded PWM signal matches the authentication code stored therein;

[0051] The authentication end is configured to verify whether the end to be authenticated is a legitimate end to be authenticated after receiving the response signal.

[0052] In the above implementation process, the authentication end may include an authentication code generation module for creating an authentication code that uniquely corresponds to the end to be authenticated. This authentication code is not only stored on the authentication end, but also stored on the end to be authenticated for subsequent identity verification. The authentication end has a connection detection function and can trigger the authentication process when the end to be authenticated is connected. The signal control unit is responsible for converting the authentication code into a PWM signal, which is represented by switching between high and low levels and different duty cycles. The authentication end sends the PWM signal to the end to be authenticated through a signal transmission line. This signal transmission line may be a physical connection, such as a cable or a wireless connection, which is responsible for transmitting the PWM signal from the authentication end to the end to be authenticated. The end to be authenticated includes a signal parsing module for receiving and parsing the PWM signal and converting it back to the original form of the authentication code. Then, the end to be authenticated compares the decoded authentication code with the authentication code stored locally to verify whether it matches. If the decoded authentication code matches the authentication code stored by the end to be authenticated, the end to be authenticated will generate and send a response signal to the authentication end. This response signal indicates that the authentication is successful and the end-to-be-authenticated has passed the verification. After receiving the response signal, the authenticator will conduct a final legitimacy verification. If the response signal indicates that the end-to-be-authenticated is legitimate, the authenticator will allow the end-to-be-authenticated to perform subsequent operations, such as charging or data exchange.

[0053] To enhance security, the authentication execution device may include additional security measures, such as encrypted communications, regular updates of authentication codes, abnormal behavior detection, etc. The authenticating end and the end to be authenticated may include a user interface for displaying the authentication status, error messages, or other relevant indications so that the user can understand the progress of the authentication process. If the authentication fails, the authentication execution device may include an error handling mechanism, such as a retry process, a security alert, or automatic disconnection. The device may also have a logging function to record detailed information about the authentication attempt, including successful or failed authentication events, to facilitate auditing and troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 A flowchart of an authentication execution method provided in an embodiment of the present application;

[0056] Figure 2A flow chart of the transmission of a PWM signal between an authentication end and an end to be authenticated provided in an embodiment of the present application;

[0057] Figure 3 An example timing diagram of an authentication code sending process provided in an embodiment of the present application;

[0058] Figure 4 A flowchart of decoding a received PWM signal by a receiver provided in an embodiment of the present application;

[0059] Figure 5 A flowchart of sending a response signal to the operation of the S2 mechanism provided in an embodiment of the present application;

[0060] Figure 6 A flowchart of an authentication execution method applied to an authentication terminal provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of the overall process of the authentication execution method provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of an authentication execution device provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented by a dedicated hardware-based system that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0065] The present application embodiment provides an authentication execution method. Fig. 9 Optionally, in one embodiment of the present solution, the authentication end is an electric vehicle charging pile, and the end to be authenticated is an electric vehicle that can be charged; for example, electric vehicles, electric scooters and other electric vehicles that can be charged. In addition to vehicles, other electric equipment, such as electric tools, gardening equipment, etc., can also adopt this authentication mechanism to ensure a safe and correct charging process.

[0066] In an optional application scenario, the present application can be applied to a residential parking lot. A plug-and-play charging pile is set up in a residential parking lot (such as a residential community, a company park, etc.). After a unique code is set, the pile can only charge its own car, providing convenient charging services for electric car owners.

[0067] In another optional application scenario, the present application can be applied to the shared electric vehicle / car / taxi industry. Applying plug-and-charge technology in the shared electric vehicle / car / taxi industry and only allowing vehicles of its own brand, specific brand or specific vehicle type to charge can improve vehicle operation efficiency and reduce charging waiting time.

[0068] See also Figure 1 , Figure 1 A flowchart of an authentication execution method provided in an embodiment of the present application.

[0069] The authentication execution method comprises the following steps:

[0070] Step S100: Generate an authentication code.

[0071] In the above step S100, an authentication code is first generated; it should be noted that generating an authentication code is to create a unique identifier or password for verifying and ensuring the identities of both communicating parties. It needs to be securely shared and stored between the authentication end and the end to be authenticated to ensure that only authorized devices or users can access specific resources or services.

[0072] The authentication code can be pre-set and kept confidential to ensure security. The generated authentication code is securely stored in the storage devices of the authentication end and the end to be authenticated, ensuring that only authorized parties can access and use the authentication code. The use of authentication codes can prevent data leakage, service abuse and potential security threats. After the authentication code is generated, it is transmitted to the end to be authenticated through a secure communication protocol or encrypted channel. Both the authentication end and the end to be authenticated store the authentication code in their respective secure storage modules for subsequent verification.

[0073] Optionally, the authentication code may be a randomly generated sequence, which may be numbers, characters or binary data.

[0074] Optionally, when applied in the automotive field, the source of the authentication code can be the vehicle VIN, unique code, key, other codes and other data that can prove a special identity.

[0075] Step S200: Encode the authentication code in the form of a PWM signal, and transmit the encoded PWM signal between the authentication end and the end to be authenticated.

[0076] In the above step S200, the authentication code obtained in step S100 is encoded in the form of a PWM signal, and the encoded PWM signal is transmitted between the authentication end and the end to be authenticated. It should be noted that this transmission can be transmitted from the authentication end to the end to be authenticated, or from the end to be authenticated to the authentication end, and those skilled in the art can set it according to the specific situation.

[0077] The authentication end converts the stored authentication code into binary form, and then maps each bit (0 or 1) in the binary sequence to a specific PWM duty cycle according to predefined rules. After defining the duration of each binary bit and the start and end characteristics of the entire PWM signal, a PWM signal is generated in which each binary bit is converted into a pulse of the corresponding duty cycle.

[0078] Optionally, the authentication code converted into the PWM signal can be directly its original code in binary form or its complement code.

[0079] Optionally, when the present solution is applied to the automotive field, that is, the authentication end is an electric vehicle charging pile, and the end to be authenticated is an electric vehicle that can be charged. Because in a certain charging standard, a duty cycle of 10% to 90% or other central ratios, such as 15% to 85%, has been defined to represent the maximum charging current value of the charging pile, so a duty cycle value outside this range is used to represent 0 and 1 to avoid overlap with the standard definition. As an example, it is not necessarily 5% and 95%, but can be 1% to 9% and 91% to 99% outside the standard definition, or two values ​​in the range of 1% to 14% and 86% to 99% to represent 0 and 1.

[0080] Optionally, the signal transmission line may be a physical cable connection or a wireless connection; when applied to the automotive field, for example, a CP signal line may be used as a signal transmission line through a physical cable connection.

[0081] Optionally, during the transmission of the PWM signal, a synchronization signal and verification data may be included to ensure the integrity and correctness of the signal.

[0082] Step S300: The PWM receiver of the end to be authenticated captures the PWM signal and converts the duty cycle of the PWM signal back into binary data according to the same predefined rule.

[0083] The receiver's decoder samples and analyzes the received PWM signal to determine the duty cycle of each pulse and converts it into the corresponding binary bits. The decoded binary data is reassembled into the original authentication code. The decoded authentication code is compared with the authentication code stored locally on the end to be authenticated. The decoding process needs to be accurate and fast to ensure the efficiency of the authentication process.

[0084] Step S400: After decoding is completed, the receiver verifies whether the decoded PWM signal matches the stored authentication code.

[0085] Specifically, the end to be authenticated compares the decoded authentication code with the locally stored authentication code. If the two are exactly the same, it means that there is no error in the transmission and decoding process of the authentication code, and the authentication process can continue. If there is a mismatch, the end to be authenticated can request to resend the PWM signal or report the authentication failure.

[0086] As an example, if the authentication code is converted into a PWM signal in the form of its complement, then they are added during authentication, and if the calculation result is 0, it is a match, and the other calculation results are all mismatches.

[0087] Step S500: If the decoded PWM signal matches the stored authentication code, the authentication is determined to be successful. If the two are consistent, it means that the identity of the authentication end has been verified and the authentication is successful.

[0088] If the authentication codes match, the end-to-be-authenticated generates a response signal indicating successful authentication and sends it back to the authenticating end.

[0089] For example, after receiving the response signal, the authentication end confirms that the end to be authenticated is legitimate, and then allows the predetermined operation, such as starting the charging process or data exchange. If the authentication fails, the authentication end can take safety measures, such as recording the event, sending an alarm, or disconnecting.

[0090] See also Figure 2 , Figure 2 The flowchart of the PWM signal transmission between the authentication end and the end to be authenticated provided in the embodiment of the present application includes the following steps:

[0091] Step S210: after the end to be authenticated establishes a connection with the authentication end, delaying a first period of time.

[0092] The authentication end and the authentication end first establish a physical or logical connection. This may be through a wired or wireless method, depending on the system design and application scenario. After the connection is established, the system will deliberately delay for a period of time, that is, the first period.

[0093] Optionally, this delay can be used for a variety of purposes, such as: giving the authenticated end sufficient time to prepare to receive data; ensuring a stable connection and reducing the possibility of transmission errors; providing the authenticating end with time to initialize the authentication process, such as generating or retrieving an authentication code.

[0094] Step S220: After the first period of time, the sender among the authenticating end and the end to be authenticated continues to send the initial transmission code to the receiver therein.

[0095] As an example, after the first period ends, the authenticator (sender) sends an initial transmission code to the authenticated end (receiver). The initial transmission code may continue to be sent for a period of time, or until the receiver confirms receipt. This helps ensure that both parties are synchronized and ready for subsequent authentication code transmission.

[0096] Alternatively, this code can be a simple signal indicating that the authentication process is about to begin, or contain some basic information such as the length, format or other metadata of the authentication code.

[0097] For example, Figure 3 An example timing diagram of an authentication code sending process provided in an embodiment of the present application.

[0098] Step S230: After sending the initial transmission code, the second period begins, and the sender sends the authentication code encoded in the form of a PWM signal to the receiver until all the authentication codes are sent or the transmission fails.

[0099] As an example, the authentication code is converted into a PWM signal, which involves mapping each bit (or group of bits) of the authentication code to a specific PWM duty cycle. For example, a binary "0" may be encoded as a low duty cycle, while a binary "1" is encoded as a high duty cycle. The encoded PWM signal is sent to the end to be authenticated. This process continues until all authentication codes have been sent, or until a transmission failure is detected. If all data is sent successfully, the end to be authenticated will begin the decoding process to verify the authentication code. If an error occurs during the transmission process, such as a connection interruption, the system may need to resend the data or take error recovery measures.

[0100] See also Figure 4 , Figure 4 The flowchart of the receiver decoding the received PWM signal provided in the embodiment of the present application includes the following steps:

[0101] Step S310: The receiving party calculates the duty cycle value combination of the received PWM signal from the received authentication start-up information by adjusting the high and low level changes caused by the PWM signal.

[0102] The receiver first receives the PWM signal from the sender. This signal is formed by switching high and low levels, where the encoding of each binary bit is determined by a specific high level duration and low level duration to form different duty cycles. For example, a high duty cycle may represent a binary "1", while a low duty cycle represents a binary "0". In this way, by continuously changing the duty cycle, the PWM signal can encode and transmit a data sequence representing the authentication code information. The receiver calculates the duty cycle of the PWM signal by measuring the duration of the high / low levels. This usually involves time measurement techniques, knowing the length of time each bit is sent to ensure accurate calculation of the duty cycle. The calculated duty cycle values ​​are combined to form a series of duty cycle data, which is the basis for the subsequent decoding process.

[0103] Step S320: Generate a binary reception code according to the duty cycle value combination of the PWM signal.

[0104] According to the preset mapping rules, each duty cycle value is converted to the corresponding binary bit. For example, a high duty cycle may correspond to a binary "1", while a low duty cycle may correspond to a binary "0". All converted binary bits are combined to form a complete binary reception code. This reception code is the binary representation of the original authentication code and is used in the subsequent verification process. The generated binary reception code will be compared with the authentication code stored locally by the receiver to verify the identity of the sender. If the two match, the authentication is successful; if they do not match, the authentication fails.

[0105] See also Figure 5 , Figure 5 The flowchart of sending a response signal to the operation of the S2 mechanism provided in the embodiment of the present application; the trigger mechanism is: after the end to be authenticated waits for the authentication request, the PWM signal from the authentication end is received, the received PWM signal is decoded, and it is converted into an authentication code and compared with the locally stored authentication code. If it matches, enter the third period and prepare to send a response signal. After completing the sending of the above response signal, wait for further instructions or operations from the authentication end.

[0106] Specifically, the charging pile (authentication end) generates a unique authentication code based on the identity information of the electric vehicle (to be authenticated end) or the characteristic information agreed with the charging pile. The authentication code is securely stored in the storage device of the charging pile and the electric vehicle, such as in the vehicle-mounted system of the electric vehicle. The charging pile encodes the authentication code into a PWM signal, where different duty cycles represent different binary bits, thereby forming a digital representation of the authentication code. The charging pile sends the PWM signal to the electric vehicle through a physical connection (such as a communication line in a charging cable). The receiver of the electric vehicle captures the PWM signal and converts the duty cycle back to binary data according to predefined rules. The decoder of the electric vehicle reassembles the binary data into an authentication code. The electric vehicle compares the decoded authentication code with the locally stored authentication code to verify their consistency. If they match, the electric vehicle sends a response signal to the charging pile through a specific mechanism. The S2 mechanism is a relay inside the car. When the relay is closed, a resistor is connected in the circuit, and when the relay is opened, the resistor is cut off. Due to this characteristic, a response signal can be sent to the sender by operating the S2 mechanism.

[0107] Through the operation of the S2 mechanism, a response signal is sent to the authentication end. In the third period, the S2 mechanism is operated 2N times (i.e., multiples of two times, to ensure that the mechanism can restore to the initial state) according to the set regular action. Every two operations form a group, the interval between operations within a group is the first time length, and the interval between groups is the second time length. To avoid misjudgment caused by misoperation of the S2 mechanism, a multiple-action S2 mechanism is used, and the time interval between each action is specified to avoid contingency, so the first time length and the second time length are set to different time intervals.

[0108] As an example, the response signal is defined as the first S2 switch being activated within a certain time period after successful matching, the second S2 switch being activated after a first time interval, the third S2 switch being activated after a second time interval, and the fourth S2 switch being activated after the first time interval. The total time spent is the third period.

[0109] This embodiment also provides an authentication execution method, see Figure 6 , Figure 6 The flowchart of the authentication execution method applied to the authentication terminal provided in the embodiment of the present application includes the following steps:

[0110] Step S600: Generate an authentication code uniquely corresponding to the end to be authenticated, and store the authentication code in the authenticating end and the end to be authenticated.

[0111] The authentication end uses a secure random number generator or other encryption method to create a unique authentication code. This code is random to ensure the security of each authentication process. The generated authentication code is securely stored in the storage medium of the authentication end. At the same time, the same authentication code must also be stored on the end to be authenticated so that it can be compared and verified during the authentication process.

[0112] Exemplarily, the authentication code is stored in an encrypted storage area of ​​the authentication end and the end to be authenticated, ensuring that the authentication code will not be leaked even if the device is stolen or accessed without authorization.

[0113] Step S610: When the connection of the end to be authenticated is detected, the signal transmission line is controlled to output PWM signals composed of different duty cycles in a high-low level switching manner to form an authentication code in the form of a PWM signal.

[0114] The authentication end detects the connection request of the end to be authenticated through the physical interface or communication protocol. The authentication end converts the stored authentication code into a PWM signal, which involves mapping each bit of the authentication code to a specific high and low level duty cycle. Through the control signal transmission line, the authentication end outputs a high and low level switching PWM signal, which represents the authentication code.

[0115] Step S620: Sending an authentication code in the form of a PWM signal to the end to be authenticated.

[0116] The authenticator sends a PWM signal encoded with the authentication code to the authenticated end through the established connection. This signal transmission process may include synchronization and error detection mechanisms to ensure accurate signal transmission.

[0117] Step S630: after receiving the response signal returned by the end to be authenticated, verify whether the end to be authenticated is a legitimate end to be authenticated.

[0118] The authentication end waits for and receives a response signal from the end to be authenticated. This response signal is the result of the end to be authenticated decoding and verifying the received PWM signal. The authentication end analyzes the received response signal to determine whether the end to be authenticated has correctly decoded the PWM signal and whether it matches the original authentication code.

[0119] For example, if the response signal indicates that the end to be authenticated has successfully decoded and verified the authentication code, the authentication end will determine that the end to be authenticated is legitimate. Otherwise, the authentication end can take corresponding security measures, such as refusing further communication or recording security events.

[0120] Combine the following Figure 7 The overall process of the authentication execution method provided in the embodiment of the present application is specifically described: the authentication end and the end to be authenticated first establish a connection.

[0121] After the connection is established, the system will delay for a period of time (called the first period). This delay may be used to stabilize the connection or prepare for the sending of the authentication code. After the first period, the authentication end will send the authentication code to the end to be authenticated. This authentication code is a unique code previously generated at the authentication end and shared with the end to be authenticated, which is used to verify the identity of the end to be authenticated. After the end to be authenticated receives the authentication code in the form of a PWM signal, it will decode the received signal. The duty cycle of the PWM signal is converted back to binary data and then reassembled into the original authentication code. Once the end to be authenticated successfully decodes the PWM signal and verifies the authentication code, it will send a response signal back to the authentication end. The sending of the response signal may involve operating the S2 mechanism according to a specific regular action, such as operating the S2 mechanism 2N times, each 2 operations as a group, each action interval in the group is the first duration, and the interval between groups is the second duration. The authentication end will check whether it has received a response signal from the end to be authenticated. If the authentication end does not receive a response signal, the process may exit the authentication or resend the authentication code. If the authentication end successfully receives the response signal, this indicates that the end to be authenticated has passed the verification and the authentication is successful. After the authentication is successful, the authentication end may start further operations, such as allowing the charging process to start or data exchange. If the authentication fails at any step, such as not receiving the authentication code in the form of a PWM signal, or the response signal is not received correctly, the system may exit the authentication process. Exiting the authentication may also be due to timeout, error, or other predefined conditions not being met.

[0122] The present application also provides an authentication execution device, see Figure 8 , Figure 8 A schematic diagram of an authentication execution device provided in an embodiment of the present application.

[0123] The device comprises: an authentication terminal 100 and an authentication terminal 120;

[0124] The authentication end 100 is configured to generate an authentication code uniquely corresponding to the end to be authenticated 120, and store the authentication code in the authentication end and the end to be authenticated; the authentication end 100 is configured to control the signal transmission line 130 to output a PWM signal composed of different duty cycles in a high-low level switching manner when detecting that the end to be authenticated 120 is connected, so as to form an authentication code in the form of a PWM signal; the authentication end 100 is configured to send the authentication code in the form of a PWM signal to the end to be authenticated 120; the end to be authenticated 120 is configured to parse the received authentication code in the form of a PWM signal, and verify whether the decoded PWM signal matches the authentication code stored therein; the end to be authenticated 120 is configured to send a response signal to the authentication end after determining whether the decoded PWM signal matches the authentication code stored therein; the authentication end 100 is configured to verify whether the end to be authenticated 120 is a legitimate end to be authenticated after receiving the response signal. Since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the embodiment of the aforementioned authentication execution method, the implementation of the device in this embodiment can refer to the description in the embodiment of the aforementioned method, and the repeated parts will not be repeated.

[0125] Fig. 9 The schematic diagram of the structure of the electronic device provided in the embodiment of the present application should be understood that the electronic device 200 can be a processor 201 in the electric vehicle charging pile responsible for controlling the charging process and safety monitoring, and a memory 202 for storing information such as the firmware, charging parameters and authentication code of the charging pile. The bus connects the various components to ensure the effective transmission of data and power.

[0126] In several embodiments provided in the present application, it should be understood that the disclosed device can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices according to the multiple embodiments of the present application. In this regard, each box in the block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram, and the combination of the block diagrams, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0127] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0128] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0129] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

[0130] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

Claims

1. An authentication execution method, characterized in that: The method comprises: Generate an authentication code; wherein the authentication code is used to authenticate the end to be authenticated based on the identification; the authentication code is stored in the authentication end and the end to be authenticated; Encoding the authentication code in the form of a PWM signal, and transmitting the encoded PWM signal between the authentication end and the end to be authenticated; The receiving party receiving the PWM signal decodes the received PWM signal; After decoding is completed, the receiver verifies whether the decoded PWM signal matches the stored authentication code; If the decoded PWM signal matches the stored authentication code, it is determined that the authentication is successful.

2. The authentication execution method according to claim 1, characterized in that: The generating of the authentication code comprises: Generating the authentication code on the authentication terminal according to the relevant information of the terminal to be authenticated; The relevant information includes the identity information of the end to be authenticated and / or feature information agreed upon with the authentication end.

3. The authentication execution method according to claim 1, characterized in that: The step of encoding the authentication code in the form of a PWM signal comprises: The authentication code is converted into a binary signal arranged in sequence; wherein the binary signal is composed of a 0 signal representing a low position and a 1 signal representing a high position; Determine the information null value section in the PWM duty cycle in the current transmission scenario; The first information null value segment in the information null value segment in the PWM duty cycle represents the 0 signal, and the second information null value segment in the information null value segment in the PWM duty cycle represents the 1 signal, so as to form an authentication code encoded in the form of a PWM signal.

4. The authentication execution method according to claim 3, characterized in that: The step of transmitting the encoded PWM signal between the authentication end and the end to be authenticated includes: After the end to be authenticated establishes a connection with the authentication end, delaying a first period of time; After the first period of time, the sender among the authentication end and the end to be authenticated continuously sends an initial transmission code to the receiver therein; After sending the initial transmission code, a second time period begins, during which the sending party sends the authentication code encoded in the form of the PWM signal to the receiving party until all the authentication codes are sent or the transmission fails.

5. The authentication execution method according to claim 1, characterized in that: The receiving party receiving the PWM signal decodes the received PWM signal, including: The receiving party calculates a duty cycle value combination of the received PWM signal from the received PWM signal by changing the high and low levels caused by the PWM signal; A receiving code in binary form is generated according to the duty cycle value combination of the PWM signal; wherein the receiving code is used to match the authentication code stored by the receiving party.

6. The authentication execution method according to claim 5, characterized in that: in, The authentication end is an electric vehicle charging pile; the end to be authenticated is an electric vehicle that can be charged.

7. The authentication execution method according to claim 6, characterized in that: If the decoded PWM signal matches the stored authentication code, determining that the authentication is successful includes: When it is determined that the decoded PWM signal matches the stored authentication code, a response signal is sent to the sender by operating the S2 mechanism.

8. The authentication execution method according to claim 7, characterized in that: The sending of a response signal to the sender by operating the S2 mechanism includes: In the third period, the S2 mechanism is operated 2N times through regular actions; The regular movements include: every 2 regular movements form a group, the time interval between each movement is a first time length, and each group is separated by a second time length; the first time length is different from the second time length.

9. An authentication execution method, characterized in that: The method is applied to an authentication terminal; the method comprises: Generate an authentication code uniquely corresponding to the end to be authenticated, and store the authentication code in the authenticating end and the end to be authenticated; When the connection of the end to be authenticated is detected, the control signal transmission line is switched between high and low levels to output PWM signals composed of different duty cycles to form an authentication code in the form of a PWM signal; Sending the authentication code in the form of the PWM signal to the end to be authenticated; After receiving the response signal returned by the end to be authenticated, verify whether the end to be authenticated is a legitimate end to be authenticated.

10. An authentication execution device, characterized in that: The device comprises: an authentication end and an end to be authenticated; The authentication terminal is configured to generate an authentication code uniquely corresponding to the end to be authenticated, and store the authentication code in the authentication terminal and the end to be authenticated; The authentication end is configured to control the signal transmission line to output PWM signals composed of different duty cycles in a high-low level switching manner to form an authentication code in the form of a PWM signal when the end to be authenticated is detected to be connected; The authentication end is configured to send an authentication code in the form of the PWM signal to the end to be authenticated; The end to be authenticated is configured to parse the authentication code in the form of the received PWM signal and verify whether the decoded PWM signal matches the authentication code stored therein; The end to be authenticated is configured to send a response signal to the authentication end after determining whether the decoded PWM signal matches the authentication code stored therein; The authentication end is configured to verify whether the end to be authenticated is a legitimate end to be authenticated after receiving the response signal.