Charging pile and offline communication method and system thereof, cloud platform, terminal and medium

The method enables secure and efficient charging pile communication through Bluetooth and shared keys, ensuring charging can proceed even when offline, by using public-private key pairs and mobile terminals to connect with cloud platforms.

CN119255405APending Publication Date: 2025-01-03NIO TECH ANHUI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411358790.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Charging piles often go offline due to poor network signals or system failures, preventing electric vehicle users from charging their vehicles effectively.

Method used

A method for charging piles to establish a Bluetooth communication connection using public-private key pairs and shared keys, enabling communication with a cloud platform through a mobile terminal, ensuring secure and efficient information exchange even when offline.

Benefits of technology

Ensures smooth initiation and completion of charging orders even when the charging pile is offline, while securing data transmission by encrypting information with verified shared keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255405A_ABST
    Figure CN119255405A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of charging piles, and provides a charging pile and an offline communication method and system thereof, a cloud platform, a terminal and a medium, and the method comprises the steps: generating a first public and private key pair according to a first preset algorithm in response to a received Bluetooth connection establishment request sent by a mobile terminal; a first public key in the first public-private key pair is sent to the cloud platform through the mobile terminal, so that the cloud platform generates a shared key based on the first public key and a second private key according to a second preset algorithm; based on the shared key and a second public key in a second public-private key pair, verifying the shared key according to a second preset algorithm; establishing Bluetooth communication connection with the mobile terminal under the condition that the shared key verification is passed; based on the Bluetooth communication connection and the established network connection between the mobile terminal and the cloud platform, communicating with the cloud platform, and performing encrypted transmission on the information based on the shared key; according to the invention, a user can normally use the charging pile to complete charging in the offline state of the charging pile.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charging piles, and in particular to charging piles and their offline communication methods, systems, cloud platforms, terminals and media. Background Art

[0002] With the increasing popularity of electric vehicles, the demand for charging facilities is also growing. Charging piles usually need to be connected to the power grid and communication network to ensure the smooth initiation and completion of charging orders. However, in actual use, charging piles may go offline due to poor network signals or system failures. In this case, the charging piles may not work properly, resulting in electric vehicle users being unable to charge. Summary of the invention

[0003] The present application provides a charging pile and its offline communication method, system, cloud platform, terminal and medium, which can solve the problem that electric vehicle users cannot charge when the charging pile is offline.

[0004] In a first aspect, the present application provides a charging pile offline communication method, which is applied to the charging pile, comprising the steps of:

[0005] In response to a received Bluetooth connection establishment request sent by a mobile terminal, generating a first public-private key pair according to a first preset algorithm;

[0006] Sending the first public key in the first public-private key pair to the cloud platform through the mobile terminal, so that the cloud platform generates a shared key based on the first public key and the second private key according to a second preset algorithm, where the second private key is the private key in the second public-private key pair generated by the cloud platform according to the first preset algorithm;

[0007] Receiving the shared key and the second public key in the second public-private key pair sent by the cloud platform based on the mobile terminal, and verifying the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm;

[0008] When the shared key verification is successful, establishing a Bluetooth communication connection with the mobile terminal;

[0009] Based on the Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, the mobile terminal communicates with the cloud platform and encrypts and transmits information based on the shared key.

[0010] In a possible implementation manner of the first aspect, the method further includes the steps of signing the first public key and verifying the second public key; wherein

[0011] The step of signing the first public key comprises:

[0012] Signing the first public key based on the third private key corresponding to the preset pile-end communication certificate to obtain first signature information;

[0013] Sending the pile-end communication certificate and the first signature information to the cloud platform through the mobile terminal, so that the cloud platform verifies the first public key according to the pile-end communication certificate and the first signature information, and uses the first public key to generate the shared key if the verification passes;

[0014] The step of verifying the second public key comprises:

[0015] Receiving, based on the mobile terminal, a cloud communication certificate and second signature information sent by the cloud platform, where the second signature information is obtained after the cloud platform signs the second public key based on a fourth private key corresponding to the cloud communication certificate;

[0016] Verify the cloud communication certificate according to the preset stake-side certificate chain;

[0017] When the cloud communication certificate is verified, obtaining a fourth public key from the cloud communication certificate, and verifying the second signature information based on the fourth public key;

[0018] When the second signature information is verified successfully, the second public key is verified successfully, and the second public key based on which the shared key is verified is the verified second public key.

[0019] In a possible implementation manner of the first aspect, verifying the shared key based on the second public key and the first private key according to the second preset algorithm includes:

[0020] Receiving, based on the mobile terminal, a first message authentication code sent by the cloud platform, where the first message authentication code is generated by the cloud platform based on the shared key according to a third preset algorithm;

[0021] Generate a symmetric key of the shared key based on the second public key and the first private key according to the second preset algorithm;

[0022] Generate a second message authentication code based on the symmetric key according to the third preset algorithm;

[0023] The first message authentication code and the second message authentication code are verified. When the first message authentication code and the second message authentication code are the same, the shared key verification succeeds; otherwise, the shared key verification fails.

[0024] In a possible implementation manner of the first aspect, the method further includes the steps of:

[0025] In response to the current charging order being completed, the shared key is released.

[0026] In a second aspect, the present application provides a charging pile offline communication method, which is applied to a cloud platform and includes the following steps:

[0027] In response to receiving a first public key from the charging pile sent by the mobile terminal based on a request to establish a Bluetooth connection with the charging pile, generating a second public-private key pair according to a first preset algorithm; the first public key is a public key in the first public-private key pair generated by the charging pile based on the first preset algorithm;

[0028] Generate a shared key based on the second private key in the second public-private key pair and the first public key according to a second preset algorithm;

[0029] Sending the second public key in the second public-private key pair and the shared key to the charging pile through the mobile terminal, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm;

[0030] When the charging pile successfully verifies the shared key, the mobile terminal communicates with the charging pile and encrypts and transmits information based on the shared key.

[0031] In a possible implementation manner of the second aspect, the method further includes the steps of verifying the first public key and signing the second public key; wherein,

[0032] The step of verifying the first public key comprises:

[0033] Receiving, based on the mobile terminal, the pile-side communication certificate and the first signature information sent by the charging pile, where the first signature information is obtained after the charging pile signs the first public key based on the third private key corresponding to the pile-side communication certificate;

[0034] Verifying the terminal communication certificate according to a preset cloud certificate chain;

[0035] When the communication certificate of the pile end is verified, obtaining a third public key from the communication certificate of the pile end, and verifying the first signature information based on the third public key;

[0036] When the first signature information is verified, the first public key is verified, and the first public key based on which the shared key is generated is the verified first public key;

[0037] The step of signing the second public key comprises:

[0038] Signing the second public key based on a fourth private key corresponding to a preset cloud communication certificate to obtain second signature information;

[0039] The cloud communication certificate and the second signature information are sent to the charging pile through the mobile terminal, so that the charging pile verifies the second public key according to the cloud communication certificate and the second signature information, and if the verification is successful, uses the second public key to verify the shared key.

[0040] In a possible implementation manner of the second aspect, the method further includes:

[0041] Generate a first message authentication code corresponding to the shared key based on the shared key according to a third preset algorithm; and

[0042] The first message authentication code is sent to the charging pile based on the mobile terminal, so that the charging pile verifies the shared key based on the first message authentication code.

[0043] In a third aspect, the present application provides a charging pile offline communication method, which is applied to a mobile terminal and includes the following steps:

[0044] Send a Bluetooth connection establishment request to the charging pile;

[0045] Sending the first public key of the first public-private key pair generated based on the first preset algorithm and sent by the charging pile to the cloud platform, so that the cloud platform generates a shared key based on the first public key and the second private key according to the second preset algorithm, where the second private key is the private key of the second public-private key pair generated by the cloud platform according to the first preset algorithm;

[0046] Sending the second public key in the second public-private key pair and the shared key received from the cloud platform to the charging pile, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm;

[0047] When the charging pile successfully verifies the shared key, a Bluetooth communication connection is established with the charging pile, and information encrypted by the shared key is transmitted between the charging pile and the cloud platform.

[0048] In a possible implementation manner of the third aspect, sending a Bluetooth connection establishment request to the charging pile includes:

[0049] When detecting that the charging pile is in an offline state, sending a Bluetooth connection establishment request to the charging pile;

[0050] The method further comprises the steps of:

[0051] When it is detected that the current charging order is completed, the Bluetooth communication connection is disconnected.

[0052] In a fourth aspect, the present application provides a charging pile offline communication method comprising the steps of:

[0053] The mobile terminal sends a Bluetooth connection establishment request to the charging pile;

[0054] The charging pile generates a first public-private key pair according to a first preset algorithm in response to the received Bluetooth connection establishment request, and sends a first public key in the first public-private key pair to the cloud platform through the mobile terminal;

[0055] In response to receiving the first public key, the cloud platform generates a second public-private key pair according to the first preset algorithm, and generates a shared key based on a second private key in the second public-private key pair and the first public key according to the second preset algorithm;

[0056] The cloud platform sends the second public key in the second public-private key pair and the shared key to the charging pile through the mobile terminal;

[0057] The charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm;

[0058] When the charging pile successfully verifies the shared key, the charging pile establishes a Bluetooth communication connection with the mobile terminal;

[0059] The cloud platform and the charging pile communicate with each other based on the Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, and encrypt and transmit information based on the shared key.

[0060] In a fifth aspect, the present application provides a charging pile, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the charging pile offline communication method described in the first aspect is implemented.

[0061] In a sixth aspect, the present application provides a cloud platform, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the charging pile offline communication method described in the second aspect is implemented.

[0062] In a seventh aspect, the present application provides a mobile terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the charging pile offline communication method described in the third aspect is implemented.

[0063] In an eighth aspect, the present application provides a communication system, comprising the charging pile described in the fifth aspect, the cloud platform described in the sixth aspect, and the mobile terminal described in the seventh aspect, a Bluetooth communication connection is established between the charging pile and the mobile terminal, a network connection is established between the cloud platform and the mobile terminal, and the charging pile and the cloud platform communicate based on the Bluetooth communication connection and the network connection.

[0064] In a ninth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the charging pile offline communication method described in any one of the first to fourth aspects.

[0065] Compared with the prior art, the present invention has the following beneficial effects:

[0066] In the present application, after detecting that a Bluetooth connection establishment request sent by the charging pile has been received, in response to the Bluetooth connection establishment request, the charging pile generates a first public-private key pair according to a first preset algorithm, sends the first public key in the first public-private key pair to the cloud platform, and receives a shared key sent by the cloud platform, verifies the shared key, and controls the establishment of a Bluetooth communication connection between the charging pile and the mobile terminal when the shared key verification is successful, while a network connection has been established between the mobile terminal and the cloud platform. Therefore, on the one hand, information exchange is achieved between the charging pile and the cloud platform based on the mobile terminal as the transmission medium, thereby ensuring that charging orders can be initiated and completed smoothly, and users can complete charging normally when the charging pile is offline; on the other hand, information to be transmitted between the cloud platform and the charging pile is encrypted based on the verified shared key, which can prevent data from being tampered with or damaged during transmission, thereby ensuring the security of the communication process. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0068] Figure 1 It is a flowchart of a charging pile offline communication method provided by an embodiment of the present application;

[0069] Figure 2 It is a flowchart of a charging pile offline communication method provided by another embodiment of the present application;

[0070] Figure 3is a flow chart of step S130 in the charging pile offline communication method provided by another embodiment of the present application;

[0071] Figure 4 It is a flowchart of a charging pile offline communication method provided by another embodiment of the present application;

[0072] Figure 5 It is a flowchart of a charging pile offline communication method provided by another embodiment of the present application;

[0073] Figure 6 It is a flowchart of a charging pile offline communication method provided by another embodiment of the present application;

[0074] Figure 7 It is a structural diagram of a communication system provided in another embodiment of the present application. DETAILED DESCRIPTION

[0075] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0076] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0077] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0078] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0079] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0080] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0081] like Figure 1 As shown, an embodiment of the present application discloses a charging pile offline communication method. The charging pile offline communication method of this embodiment is applied to the charging pile. The method comprises the steps of:

[0082] S110, in response to a received Bluetooth connection establishment request sent by a mobile terminal, generating a first public-private key pair according to a first preset algorithm.

[0083] Specifically, this embodiment queries the network connection status of the charging pile based on the mobile terminal. The network connection status is used to indicate whether the charging pile is online, that is, whether a network connection has been established with the cloud platform. If the charging pile is online, it means that the charging pile has established a network connection with the cloud platform. Then, the mobile terminal and the charging pile can establish a network connection based on the cloud platform as an information transmission medium to achieve information interaction, so as to help users complete charging orders.

[0084] If the charging pile is not online, that is, the charging pile is in an offline state, it means that the charging pile and the cloud platform have not established a network connection, which means that the mobile terminal and the charging pile cannot establish a network connection and cannot transmit information through the network. However, when the charging pile is offline, the charging pile can establish a Bluetooth communication connection with the mobile terminal, and the mobile terminal can establish a network connection with the cloud platform, so that the charging pile and the cloud platform can realize information exchange and complete the charging order.

[0085] In this embodiment, when the mobile terminal determines that the charging pile is in an offline state, the mobile terminal sends a Bluetooth connection establishment request to the charging pile. The charging pile processes the Bluetooth connection establishment request to determine whether to allow a Bluetooth communication connection to be established with the mobile terminal. This includes generating a first public-private key pair according to a first preset algorithm, and the first public-private key pair includes a first public key and a first private key. The above-mentioned first public key is used as an input parameter for calculating and generating a shared key on the cloud platform, so the first public key needs to be sent to the cloud platform through the mobile terminal. The first private key is used as an input parameter for a symmetric key for generating a shared key on the charging pile, and is therefore stored in the charging pile.

[0086] In the specific implementation of this step, the user can use a mobile terminal to scan the QR code on the charging pile, identify the number of the charging pile based on the QR code, and then obtain the network connection status of the corresponding charging pile on the cloud platform based on the number. The user can implement the above operation based on the application client in the mobile terminal.

[0087] In a possible implementation, the cloud platform may be a server or a server cluster. The mobile terminal may be a terminal device such as a mobile phone or a tablet computer.

[0088] S120, sending the first public key in the first public-private key pair to the cloud platform via the mobile terminal, so that the cloud platform generates a shared key based on the first public key and the second private key according to a second preset algorithm. The second private key is the private key in the second public-private key pair generated by the cloud platform according to the first preset algorithm.

[0089] In this embodiment, after the charging pile responds to the Bluetooth connection establishment request sent by the mobile terminal, an information transmission channel is established between the charging pile and the mobile terminal. The charging pile sends the first public key in the first public-private key pair to the mobile terminal through the information transmission channel, and the mobile terminal sends the received first public key to the cloud platform through the network connection pre-established with the cloud platform. The cloud platform uses the first public key and the second private key as input parameters of the second preset algorithm to calculate the shared key.

[0090] The second public-private key pair also includes a second public key. The second public key needs to be sent to the charging pile through the mobile terminal so that the charging pile can calculate the symmetric key of the shared key based on the second public key and the first private key stored locally. The charging pile can verify the shared key calculated by the cloud platform based on the symmetric key of the shared key calculated by itself. The second private key in the second public-private key pair is stored in the cloud platform.

[0091] Specifically, the cloud platform sends the second public key to the mobile terminal based on the network connection pre-established between the cloud platform and the mobile terminal, and the mobile terminal sends the second public key to the charging pile based on the information transmission channel established between the cloud platform and the charging pile.

[0092] In a possible implementation, the first preset algorithm is an ECC (Elliptic curve cryptography) algorithm. Accordingly, the first public key and the second public key are ECC public keys, and the first private key and the second private key are ECC private keys.

[0093] In another possible implementation, the second preset algorithm is a key exchange algorithm, for example, an ECDHE (Elliptic Curve Diffie-Hellman Ephemeral) algorithm.

[0094] S130, based on the mobile terminal receiving the above-mentioned shared key and the second public key in the second public-private key pair sent by the cloud platform, and verifying the above-mentioned shared key based on the second public key and the first private key in the first public-private key pair according to the above-mentioned second preset algorithm.

[0095] Specifically, the charging pile uses the second public key and the first private key as input parameters of the second preset algorithm to calculate the symmetric key of the shared key. The charging pile verifies the shared key calculated by the cloud platform based on the symmetric key of the shared key calculated by itself. In a possible implementation, if the symmetric key of the shared key calculated by the charging pile is the same as the shared key calculated by the cloud platform, it means that the shared key verification is successful. Otherwise, it means that the shared key verification fails.

[0096] In another possible implementation, the symmetric key of the shared key calculated by the charging pile is used as an input parameter of the third preset algorithm to calculate the first intermediate quantity. The shared key calculated by the cloud platform is used as an input parameter of the third preset algorithm to calculate the second intermediate quantity. The first intermediate quantity and the second intermediate quantity are compared to see if they are the same. If they are the same, it means that the shared key verification is passed. If they are not the same, it means that the shared key verification is not passed.

[0097] S140, if the shared key verification is passed, establish a Bluetooth communication connection with the mobile terminal. That is, a Bluetooth communication connection is successfully established between the charging pile and the mobile terminal, and information can be transmitted between the charging pile and the mobile terminal based on the Bluetooth communication connection. If the shared key verification fails, the process ends.

[0098] S150, communicating with the cloud platform based on the above-mentioned Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, and encrypting and transmitting information based on the above-mentioned shared key.

[0099] Specifically, a Bluetooth communication connection has been established between the charging pile and the mobile terminal, and a network connection has been established between the mobile terminal and the cloud platform, so that the charging pile and the cloud platform can communicate, exchange information, and complete the charging order. In addition, the information transmitted between any two of the charging pile, mobile terminal, and cloud platform needs to be encrypted based on a shared key.

[0100] For example, during the information exchange between the cloud platform and the charging pile, the cloud platform uses the above-mentioned shared key to encrypt the transmitted information, and the encrypted information is sent to the charging pile through the mobile terminal, and the charging pile uses the symmetric key of the above-mentioned shared key to decrypt the received encrypted information. Similarly, when the charging pile sends information to the cloud platform through the mobile terminal, the charging pile uses the above-mentioned shared key to encrypt the information, and the cloud platform uses the symmetric key of the shared key to decrypt the encrypted information. In this way, encrypted information transmission between the cloud platform and the charging pile is realized, ensuring the security of the communication process.

[0101] After detecting and receiving a Bluetooth connection establishment request sent by the charging pile, in this embodiment, in response to the Bluetooth connection establishment request, the charging pile generates a first public-private key pair according to a first preset algorithm, sends the first public key in the first public-private key pair to the cloud platform, receives a shared key sent by the cloud platform, verifies the shared key, and controls the establishment of a Bluetooth communication connection between the charging pile and the mobile terminal when the shared key verification is successful, while a network connection has been established between the mobile terminal and the cloud platform. Therefore, on the one hand, information exchange is achieved between the charging pile and the cloud platform based on the mobile terminal as a transmission medium, thereby ensuring that charging orders can be smoothly initiated and completed, and users can complete charging normally when the charging pile is offline; on the other hand, information to be transmitted between the cloud platform and the charging pile is encrypted based on the verified shared key, which can prevent data from being tampered with or damaged during transmission, thereby ensuring the security of the communication process.

[0102] This embodiment also has the following advantages: the use of a preset key exchange algorithm to obtain a shared key for communication between the offline charging pile and the cloud platform can prevent data from being tampered with or damaged during transmission, thereby ensuring security during the communication process. On the other hand, considering the particularity of offline scene communication, that is, mobile devices as a medium will lead to reduced communication efficiency, the solution provided in this embodiment only requires two handshakes to realize the full function of the ECDHE algorithm, which improves the communication efficiency of both parties compared to the four-way handshake mechanism of the traditional ECDHE algorithm.

[0103] Another embodiment of the present invention discloses another charging pile offline communication method. Figure 2 As shown, this embodiment is described above Figure 1 On the basis of the corresponding embodiment, between step S110 and step S120, the following steps are further included:

[0104] S111, signing the first public key in the first public-private key pair.

[0105] Replace step S130 with step S131:

[0106] Based on the mobile terminal receiving the shared key sent by the cloud platform and the second public key in the second public-private key pair, verifying the second public key, and verifying the shared key based on the verified second public key and the first private key in the first public-private key pair according to the second preset algorithm. If the second public key verification fails, the process ends.

[0107] Specifically, the step of signing the first public key in the first public-private key pair includes:

[0108] The first public key is signed based on the third private key corresponding to the preset pile-end communication certificate to obtain the first signature information.

[0109] The above-mentioned pile-side communication certificate and the above-mentioned first signature information are sent to the cloud platform through the mobile terminal, so that the cloud platform verifies the above-mentioned first public key according to the pile-side communication certificate and the above-mentioned first signature information, and if the verification is passed, the above-mentioned first public key is used to generate the above-mentioned shared key. The verification is passed, indicating that the information has not been tampered with or damaged during the transmission process. If the first public key verification fails, the process ends.

[0110] The above-mentioned step of verifying the second public key includes:

[0111] Based on the mobile terminal receiving the cloud communication certificate and the second signature information sent by the cloud platform, the second signature information is obtained after the cloud platform signs the second public key based on the fourth private key corresponding to the cloud communication certificate.

[0112] The cloud communication certificate is verified according to the preset pile-end certificate chain, wherein the pile-end certificate chain is pre-set in the charging pile.

[0113] When the cloud communication certificate is verified, the fourth public key is obtained from the cloud communication certificate, and the second signature information is verified based on the fourth public key.

[0114] If the second signature information is verified, the second public key is verified, and the second public key based on which the shared key is verified is the verified second public key. If the second signature information is not verified, the second public key is not verified. If the cloud communication certificate or the second signature information is not verified, the process ends.

[0115] In this embodiment, the above-mentioned pile-end communication certificate is built-in to the charging pile, and may be written when the charging pile leaves the factory. The above-mentioned pile-end communication certificate may remain unchanged for a long time, or may be changed as needed after being used for a period of time. The third private key corresponding to the pile-end communication certificate is stored in the charging pile, and the third public key corresponding to the pile-end communication certificate is stored in the pile-end communication certificate. The above-mentioned third public key corresponds to the above-mentioned third private key. The cloud platform verifies the above-mentioned first signature information according to the third public key corresponding to the pile-end communication certificate. If the first signature information is verified successfully, it means that the first public key is verified successfully. If the first signature information fails to be verified, it means that the first public key is verified successfully.

[0116] The cloud communication certificate is pre-set in the cloud platform. The fourth private key corresponding to the cloud communication certificate is stored in the cloud platform, and the fourth public key corresponding to the cloud communication certificate is stored in the cloud communication certificate. The fourth public key corresponds to the fourth private key.

[0117] This embodiment uses the third private key corresponding to the pile-end communication certificate built into the charging pile to sign the first public key, so that the cloud platform verifies the first public key according to the third public key corresponding to the pile-end communication certificate; and verifies the received cloud communication certificate, and verifies the signed second public key according to the fourth public key corresponding to the cloud communication certificate, further preventing the data from being tampered with or damaged during the transmission process, and ensuring the integrity and security of data transmission.

[0118] In an optional embodiment, based on the above embodiment, in step S120, the cloud platform verifies the above-mentioned pile-end communication certificate according to its own preset cloud certificate chain. If the verification passes, the cloud platform extracts the corresponding third public key from the pile-end communication certificate to verify the first public key.

[0119] This embodiment performs identity authentication based on the cloud certificate chain to verify the pile-end communication certificate, which not only further improves the effectiveness of communication, ensures the authenticity and legitimacy of the identities of both communicating parties, but also ensures security during the communication process.

[0120] In some optional embodiments, in the above Figure 1 Based on the corresponding embodiment, Figure 3 As shown, step S130 includes:

[0121] S1301, receiving, based on a mobile terminal, a second public key in a second public-private key pair sent by a cloud platform.

[0122] S1302: Receive, based on the mobile terminal, a first message authentication code sent by the cloud platform. The first message authentication code is generated by the cloud platform based on the shared key according to a third preset algorithm.

[0123] S1303: Generate a symmetric key of the shared key based on the second public key and the first private key according to the second preset algorithm.

[0124] S1304: Generate a second message authentication code based on the symmetric key according to a third preset algorithm.

[0125] S1305: Verify whether the first message authentication code and the second message authentication code are the same.

[0126] When the first message authentication code and the second message authentication code are the same, step S1306 is executed: the shared key verification is passed. Otherwise, step S1307 is executed: the shared key verification is not passed, and the process ends.

[0127] Specifically, the cloud platform uses the shared key calculated by itself as the input parameter of the key derivation function (KDF) to derive a cloud key, and then uses the cloud key and the information to be sent as the input parameters of the third preset algorithm to calculate the first message authentication code. The cloud platform sends the first message authentication code and the information to be sent to the charging pile.

[0128] The charging pile uses the symmetric key of the shared key calculated by itself as the input parameter of the key derivation function to derive a pile-end key, and then uses the pile-end key and the received information to be sent as input parameters of the third preset algorithm to calculate the second message authentication code.

[0129] This embodiment can verify the integrity and reliability of the information to be sent by the cloud platform to the charging pile by comparing the second message authentication code with the first message authentication code. If the message is complete and reliable, then the shared key generated by the cloud platform is reliable. The sender and receiver can then use this shared key to encrypt and decrypt the data to ensure data security.

[0130] In a possible implementation, the third preset algorithm may be an HMAC (Hash-based Message Authentication Code) algorithm, but the present application is not limited thereto.

[0131] In some optional embodiments, in the above Figure 1 Based on the corresponding embodiment, the above method further includes the steps of:

[0132] In response to the current charging order being completed, the above-mentioned shared key is released.

[0133] This ensures that each charging order uses an independent key. The key for each order is unique, ensuring that even if a key is leaked or cracked, it will not affect the security of other orders, thereby improving the security of communications.

[0134] Optionally, in response to the current charging order being completed, the above-mentioned Bluetooth communication connection is disconnected.

[0135] Another embodiment of the present invention discloses another charging pile offline communication method. The charging pile offline communication method disclosed in this embodiment is applied to a cloud platform. Figure 4 As shown, the method disclosed in this embodiment includes the steps of:

[0136] S410, in response to receiving a first public key from the charging pile sent by the mobile terminal based on a request to establish a Bluetooth connection with the charging pile, generating a second public-private key pair according to a first preset algorithm. The first public key is a public key in the first public-private key pair generated by the charging pile based on the first preset algorithm.

[0137] S420: Generate a shared key based on the second private key in the second public-private key pair and the first public key according to a second preset algorithm.

[0138] S430, sending the second public key in the second public-private key pair and the shared key to the charging pile through the mobile terminal, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to a second preset algorithm.

[0139] That is, the charging pile uses the second public key and the first private key in the first public-private key pair as input parameters of the second preset algorithm, calculates the symmetric key of the shared key, and verifies the shared key based on the symmetric key of the shared key.

[0140] S440, when the charging pile passes the verification of the shared key, communicating with the charging pile based on the mobile terminal, and encrypting and transmitting information based on the shared key.

[0141] Among them, regarding the specific implementation process of the above steps in this embodiment, as well as the information interaction process among the mobile terminal, the charging pile, and the cloud platform, please refer to the description of the above embodiment, and this embodiment will not be repeated here.

[0142] In this embodiment, when the shared key verification is passed, a Bluetooth communication connection is controlled to be established between the charging pile and the mobile terminal, and a network connection has been established between the mobile terminal and the cloud platform. Therefore, on the one hand, information exchange is realized between the charging pile and the cloud platform based on the mobile terminal as the transmission medium, ensuring that the charging order can be smoothly initiated and completed, and the user can complete the charging normally when the charging pile is offline; on the other hand, the information to be transmitted between the cloud platform and the charging pile is encrypted based on the verified shared key, which can prevent the data from being tampered with or damaged during the transmission process, thereby ensuring the security of the communication process.

[0143] Another embodiment of the present application discloses another charging pile offline communication method applied to a cloud platform. Figure 4 Based on the corresponding embodiment, step S420 is replaced by step:

[0144] The first public key is verified, and a shared key is generated according to a second preset algorithm based on the second private key in the second public-private key pair and the verified first public key.

[0145] Step S430 is replaced by the following steps:

[0146] The second public key in the above-mentioned second public-private key pair is signed, and the signed second public key and the above-mentioned shared key are sent to the above-mentioned charging pile through the above-mentioned mobile terminal, so that the charging pile verifies the above-mentioned shared key based on the above-mentioned second public key and the first private key in the first public-private key pair according to a second preset algorithm.

[0147] The step of verifying the first public key includes:

[0148] Based on the mobile terminal receiving the pile-side communication certificate and the first signature information sent by the charging pile, the first signature information is obtained after the charging pile signs the first public key based on the third private key corresponding to the pile-side communication certificate.

[0149] The above-mentioned pile-end communication certificate is verified according to the preset cloud certificate chain.

[0150] When the above-mentioned pile-side communication certificate is verified, the third public key is obtained from the above-mentioned pile-side communication certificate, and the above-mentioned first signature information is verified based on the above-mentioned third public key.

[0151] When the first signature information is verified, the first public key is verified, and the first public key based on which the shared key is generated is the verified first public key.

[0152] The step of signing the second public key in the second public-private key pair includes:

[0153] The second public key is signed based on the fourth private key corresponding to the preset cloud communication certificate to obtain second signature information.

[0154] The cloud communication certificate and the second signature information are sent to the charging pile through the mobile terminal, so that the charging pile verifies the second public key according to the cloud communication certificate and the second signature information, and if the verification is successful, uses the second public key to verify the shared key.

[0155] Among them, regarding the specific implementation process of the above steps in this embodiment, as well as the information interaction process among the mobile terminal, the charging pile, and the cloud platform, please refer to the description of the above embodiment, and this embodiment will not be repeated here.

[0156] In this embodiment, the cloud platform verifies the first public key according to the third public key corresponding to the pile-end communication certificate, and signs the second public key using the fourth private key corresponding to the cloud communication certificate preset in the cloud platform, so that the charging pile can verify the signed second public key according to the fourth public key corresponding to the cloud communication certificate, further preventing the data from being tampered with or damaged during transmission, and ensuring the integrity and security of data transmission.

[0157] Another embodiment of the present application discloses another charging pile offline communication method applied to a cloud platform. Figure 4 On the basis of the corresponding embodiment, before step S430, the following steps are further included:

[0158] A first message authentication code corresponding to the shared key is generated based on the shared key according to a third preset algorithm.

[0159] Step S430 also includes:

[0160] The first message authentication code is sent to the charging pile based on the mobile terminal, so that the charging pile verifies the shared key based on the first message authentication code.

[0161] Among them, regarding the specific implementation process of the above steps in this embodiment, as well as the information interaction process among the mobile terminal, the charging pile, and the cloud platform, please refer to the description of the above embodiment, and this embodiment will not be repeated here.

[0162] This embodiment can verify the integrity and reliability of the information to be sent by the cloud platform to the charging pile by comparing the second message authentication code generated by the charging pile with the first message authentication code generated by the cloud platform. If the message is complete and reliable, then the shared key generated by the cloud platform is reliable. The sender and receiver can then use this shared key to encrypt and decrypt the data to ensure data security.

[0163] In some optional embodiments, in the above Figure 4 Based on the corresponding embodiment, the above method further includes the steps of:

[0164] In response to the current charging order being completed, the above-mentioned shared key is released.

[0165] This ensures that each charging order uses an independent key. The key for each order is unique, ensuring that even if a key is leaked or cracked, it will not affect the security of other orders, thereby improving the security of communications.

[0166] Optionally, the method further includes the step of: disconnecting the Bluetooth communication connection in response to completion of the current charging order.

[0167] Another embodiment of the present invention discloses another charging pile offline communication method. The charging pile offline communication method disclosed in this embodiment is applied to a mobile terminal. Figure 5 As shown, the method disclosed in this embodiment includes the steps of:

[0168] S510: Send a Bluetooth connection establishment request to the charging pile.

[0169] S520, sending the first public key in the first public-private key pair generated based on the first preset algorithm and sent by the received charging pile to the cloud platform, so that the above-mentioned cloud platform generates a shared key based on the above-mentioned first public key and the second private key according to the second preset algorithm, and the above-mentioned second private key is the private key in the second public-private key pair generated by the above-mentioned cloud platform according to the above-mentioned first preset algorithm.

[0170] S530, sending the second public key in the second public-private key pair and the shared key received from the cloud platform to the charging pile, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm.

[0171] S540, when the charging pile passes the verification of the shared key, establish a Bluetooth communication connection with the charging pile, and transmit information encrypted by the shared key between the charging pile and the cloud platform.

[0172] Among them, regarding the specific implementation process of the above steps in this embodiment, as well as the information interaction process among the mobile terminal, the charging pile, and the cloud platform, please refer to the description of the above embodiment, and this embodiment will not be repeated here.

[0173] In this embodiment, when the shared key verification is passed, a Bluetooth communication connection is established between the control charging pile and the mobile terminal, and a network connection has been established between the mobile terminal and the cloud platform. Therefore, on the one hand, information exchange between the charging pile and the cloud platform is realized based on the mobile terminal as the transmission medium, ensuring that the charging order can be smoothly initiated and completed, and the user can complete the charging normally when the charging pile is offline; on the other hand, the information to be transmitted between the cloud platform and the charging pile is encrypted based on the verified shared key, which can prevent the data from being tampered with or damaged during the transmission process, thereby ensuring the security of the communication process.

[0174] In some optional embodiments, in the above Figure 5 Based on the corresponding embodiment, step S510 includes:

[0175] When it is detected that the charging pile is in an offline state, a Bluetooth connection establishment request is sent to the charging pile.

[0176] The above method further comprises the steps of:

[0177] When it is detected that the current charging order is completed, the above-mentioned Bluetooth communication connection is disconnected.

[0178] In this way, when the charging pile is offline, a Bluetooth communication connection can be established between the charging pile and the mobile terminal, and a network connection has been established between the mobile terminal and the cloud platform, thereby realizing information communication between the charging pile and the cloud platform, and disconnecting the Bluetooth communication connection in time after charging is completed, thereby achieving energy saving and better communication resource management.

[0179] In some optional embodiments, in the above Figure 5 Based on the corresponding embodiment, the above method further includes the steps of:

[0180] In response to the current charging order being completed, the above-mentioned shared key is released.

[0181] This ensures that each charging order uses an independent key. The key for each order is unique, ensuring that even if a key is leaked or cracked, it will not affect the security of other orders, thereby improving the security of communications.

[0182] Another embodiment of the present invention discloses another charging pile offline communication method. The method disclosed in this embodiment includes the steps of:

[0183] The mobile terminal sends a Bluetooth connection establishment request to the charging pile.

[0184] In response to the received Bluetooth connection establishment request, the charging pile generates a first public-private key pair according to a first preset algorithm, and sends the first public key in the first public-private key pair to the cloud platform through the mobile terminal.

[0185] In response to receiving the first public key, the cloud platform generates a second public-private key pair according to the first preset algorithm, and generates a shared key based on the second private key in the second public-private key pair and the first public key according to the second preset algorithm.

[0186] The cloud platform sends the second public key in the second public-private key pair and the shared key to the charging pile via the mobile terminal.

[0187] The charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm.

[0188] When the charging pile successfully verifies the shared key, the charging pile establishes a Bluetooth communication connection with the mobile terminal.

[0189] The cloud platform and the charging pile communicate with each other based on the Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, and encrypt and transmit information based on the shared key.

[0190] Among them, regarding the specific implementation process of the above steps in this embodiment, as well as the information interaction process among the mobile terminal, the charging pile, and the cloud platform, please refer to the description of the above embodiment, and this embodiment will not be repeated here.

[0191] In this embodiment, when the shared key verification is passed, a Bluetooth communication connection is controlled to be established between the charging pile and the mobile terminal, and a network connection has been established between the mobile terminal and the cloud platform. Therefore, on the one hand, information exchange is realized between the charging pile and the cloud platform based on the mobile terminal as the transmission medium, ensuring that the charging order can be smoothly initiated and completed, and the user can complete the charging normally when the charging pile is offline; on the other hand, the information to be transmitted between the cloud platform and the charging pile is encrypted based on the verified shared key, which can prevent the data from being tampered with or damaged during the transmission process, thereby ensuring the security of the communication process.

[0192] In some optional embodiments, based on the above embodiment, the above method further includes the steps of:

[0193] In response to the current charging order being completed, the above-mentioned shared key is released.

[0194] This ensures that each charging order uses an independent key. The key for each order is unique, ensuring that even if a key is leaked or cracked, it will not affect the security of other orders, thereby improving the security of communications.

[0195] Another embodiment of the present application discloses another charging pile offline communication method. Figure 6 As shown, the method comprises the following steps:

[0196] S610, the user scans the QR code of the charging pile through a mobile terminal.

[0197] S620, the mobile terminal obtains the number of the charging pile from the cloud platform.

[0198] S630, the cloud platform obtains the network connection status of the corresponding charging pile based on the number. The network connection status is used to indicate whether the charging pile is online. If the charging pile is online, the charging pile can directly establish a network connection with the mobile terminal.

[0199] S640: When the charging pile is offline, the mobile terminal sends a Bluetooth connection establishment request to the charging pile.

[0200] S650, the charging pile generates a first public-private key pair based on the ECC algorithm in response to the received Bluetooth connection establishment request. The first public-private key pair includes a first public key and a first private key. The first public key is used as an input parameter for generating a shared key on the cloud platform, so the first public key needs to be sent to the cloud platform via the mobile terminal. The first private key is used as an input parameter for generating a shared key on the charging pile.

[0201] S660, the charging pile signs the first public key using the third private key corresponding to the built-in pile-end communication certificate to obtain first signature information.

[0202] S670, the charging pile sends the above-mentioned pile-end communication certificate, the first signature information and the first public key to the cloud platform through the mobile terminal.

[0203] S680, the cloud platform verifies the legitimacy of the charging pile's pile-side communication certificate based on the preset cloud certificate chain.

[0204] S690: If the pile-end communication certificate is legal, extract a third public key from the pile-end communication certificate, and use the third public key to verify the legality of the first signature information.

[0205] S691, if the first signature information is legal, the cloud platform generates a second public-private key pair based on the ECC algorithm. The second public-private key pair includes a second public key and a second private key. The second public key and the first private key are used together as input parameters for generating a shared key on the charging pile. The second private key and the first public key are used together as input parameters for generating a shared key on the cloud platform. If the first signature information or the communication certificate is illegal, the process ends.

[0206] S692, the cloud platform signs the second public key based on the fourth private key corresponding to the preset cloud communication certificate to obtain second signature information. The fourth private key is stored in the cloud platform, and the fourth public key corresponding to the fourth private key is stored in the cloud communication certificate.

[0207] S693, the cloud platform generates a shared key based on its own second private key and the first public key provided by the charging pile as input parameters of the ECDHE algorithm.

[0208] S694: Use the KDF algorithm to derive a new key for HMAC calculation from the shared key, and use the HMAC algorithm to calculate a first MAC tag based on the new key.

[0209] S695, the cloud platform sends the cloud communication certificate, the second signature information, the second public key and the first MAC tag to the charging pile via the mobile terminal.

[0210] S696, the charging pile verifies the legitimacy of the cloud communication certificate according to the preset pile-end certificate chain.

[0211] S697, when the cloud communication certificate is verified, the charging pile obtains the fourth public key from the cloud communication certificate, and verifies the second signature information based on the fourth public key to determine whether the verification is successful.

[0212] S698, when the second signature information is verified, the charging pile uses its own first private key and the second public key provided by the cloud platform as input parameters of the ECDHE algorithm to generate a symmetric key of the shared key. Use the KDF algorithm to derive a new key for HMAC calculation from the symmetric key of the shared key, and use the HMAC algorithm to calculate the second MAC tag based on the new key. If the cloud communication certificate verification or the second signature information is not verified, the process ends.

[0213] S699, the charging pile compares the second MAC tag with the received first MAC tag to see if they are the same.

[0214] S6100, if they are the same, the cloud platform and the charging pile will encrypt and transmit the information based on the above shared key. When the cloud platform issues some instructions, this shared key can be used for protection, ensuring the security and reliability of communication. If they are not the same, the process ends.

[0215] In an optional embodiment, based on the above embodiment, the following steps are further included:

[0216] The mobile terminal displays a recharge page to the user so that the user can complete the recharge operation.

[0217] The mobile terminal sends a request to establish a charging order to the cloud platform.

[0218] The cloud platform updates the charging order status (unpaid status) and initiates an order payment request to the mobile terminal.

[0219] Users complete order payment through mobile terminals.

[0220] The cloud platform updates the order status to paid status and generates a one-time start instruction for controlling the mobile terminal to start charging.

[0221] The charging pile receives the one-time start instruction and starts charging.

[0222] After receiving the information that the battery is being charged, the cloud platform updates the order status to "charging". After the charging is completed, the order status is updated to "completed".

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

[0224] It should be noted that the above-mentioned method embodiments disclosed in the present application can be freely combined, and the technical solutions obtained after the free combination are also within the protection scope of the present application.

[0225] In another aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored, and when the computer program is executed by a processor, the charging pile offline communication method described in any of the above embodiments is implemented. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

[0226] Another aspect of the present application also provides a charging pile, which may include at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, any of the above-mentioned charging pile offline communication methods applied to the charging pile is implemented.

[0227] In other embodiments, the charging pile may include multiple memories and multiple processors. The program for executing any of the above-mentioned charging pile offline communication methods applied to the charging pile can be divided into multiple subprograms, each of which can be loaded and run by the processor to execute different steps of the charging pile offline communication method of the above-mentioned method embodiment. Specifically, each subprogram can be stored in different memories, and each processor can be configured to execute the programs in one or more memories to jointly implement the charging pile offline communication method of the above-mentioned method embodiment.

[0228] Another aspect of the present application also provides a cloud platform, which may include at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, any of the above-mentioned charging pile offline communication methods applied to the cloud platform is implemented.

[0229] In other embodiments, the cloud platform may include multiple memories and multiple processors. The program for executing any of the above-mentioned charging pile offline communication methods applied to the cloud platform may be divided into multiple subprograms, each of which may be loaded and run by a processor to execute different steps of the charging pile offline communication method of the above-mentioned method embodiment. Specifically, each subprogram may be stored in different memories, and each processor may be configured to execute programs in one or more memories to jointly implement the charging pile offline communication method of the above-mentioned method embodiment.

[0230] Another aspect of the present application also provides a mobile terminal, which may include at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, any of the above-mentioned charging pile offline communication methods applied to the mobile terminal is implemented.

[0231] In other embodiments, the mobile terminal may include multiple memories and multiple processors. The program for executing any of the above-mentioned charging pile offline communication methods applied to the mobile terminal may be divided into multiple subprograms, each of which may be loaded and run by a processor to execute different steps of the charging pile offline communication method of the above-mentioned method embodiment. Specifically, each subprogram may be stored in different memories, and each processor may be configured to execute programs in one or more memories to jointly implement the charging pile offline communication method of the above-mentioned method embodiment.

[0232] Another aspect of the present application also provides a communication system, such as Figure 7 As shown, the communication system 70 includes the charging pile 701 disclosed in the above embodiment, the mobile terminal 702 disclosed in the above embodiment, and the cloud platform 703 disclosed in the above embodiment. A Bluetooth communication connection is established between the above charging pile 701 and the above mobile terminal 702, a network connection is established between the above cloud platform 703 and the above mobile terminal 702, and the above charging pile 701 and the above cloud platform 703 communicate based on the above Bluetooth communication connection and the above network connection.

[0233] Regarding the information interaction process among the mobile terminal, the charging pile and the cloud platform, reference may be made to the description of any of the above method embodiments, which will not be repeated in this embodiment.

[0234] So far, the technical solutions of the present application have been described in conjunction with the specific implementations shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific implementations. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims

1. A charging pile offline communication method, characterized in that: Applied to the charging pile, comprising the steps of: In response to a received Bluetooth connection establishment request sent by a mobile terminal, generating a first public-private key pair according to a first preset algorithm; Sending the first public key in the first public-private key pair to the cloud platform through the mobile terminal, so that the cloud platform generates a shared key based on the first public key and the second private key according to a second preset algorithm, where the second private key is the private key in the second public-private key pair generated by the cloud platform according to the first preset algorithm; Receiving the shared key and the second public key in the second public-private key pair sent by the cloud platform based on the mobile terminal, and verifying the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm; When the shared key verification is successful, establishing a Bluetooth communication connection with the mobile terminal; Based on the Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, the mobile terminal communicates with the cloud platform and encrypts and transmits information based on the shared key.

2. The charging pile offline communication method according to claim 1, characterized in that: The method further comprises the steps of signing the first public key and verifying the second public key; in The step of signing the first public key comprises: Signing the first public key based on the third private key corresponding to the preset pile-end communication certificate to obtain first signature information; Sending the pile-end communication certificate and the first signature information to the cloud platform through the mobile terminal, so that the cloud platform verifies the first public key according to the pile-end communication certificate and the first signature information, and uses the first public key to generate the shared key if the verification passes; The step of verifying the second public key comprises: Receiving, based on the mobile terminal, a cloud communication certificate and second signature information sent by the cloud platform, where the second signature information is obtained after the cloud platform signs the second public key based on a fourth private key corresponding to the cloud communication certificate; Verify the cloud communication certificate according to the preset stake-side certificate chain; When the cloud communication certificate is verified, obtaining a fourth public key from the cloud communication certificate, and verifying the second signature information based on the fourth public key; When the second signature information is verified successfully, the second public key is verified successfully, and the second public key based on which the shared key is verified is the verified second public key.

3. A charging pile offline communication method, characterized in that: Applied to the cloud platform, including the following steps: In response to receiving a first public key from the charging pile sent by the mobile terminal based on a request to establish a Bluetooth connection with the charging pile, generating a second public-private key pair according to a first preset algorithm; The first public key is a public key in a first public-private key pair generated by the charging pile based on the first preset algorithm; Generate a shared key based on the second private key in the second public-private key pair and the first public key according to a second preset algorithm; Sending the second public key in the second public-private key pair and the shared key to the charging pile through the mobile terminal, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm; When the charging pile successfully verifies the shared key, the mobile terminal communicates with the charging pile and encrypts and transmits information based on the shared key.

4. A charging pile offline communication method, characterized in that: Applied to mobile terminals, including the steps of: Send a Bluetooth connection establishment request to the charging pile; Sending the first public key of the first public-private key pair generated based on the first preset algorithm and sent by the charging pile to the cloud platform, so that the cloud platform generates a shared key based on the first public key and the second private key according to the second preset algorithm, where the second private key is the private key of the second public-private key pair generated by the cloud platform according to the first preset algorithm; Sending the second public key in the second public-private key pair and the shared key received from the cloud platform to the charging pile, so that the charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm; When the charging pile successfully verifies the shared key, a Bluetooth communication connection is established with the charging pile, and information encrypted by the shared key is transmitted between the charging pile and the cloud platform.

5. A charging pile offline communication method, characterized in that: Includes steps: The mobile terminal sends a Bluetooth connection establishment request to the charging pile; The charging pile generates a first public-private key pair according to a first preset algorithm in response to the received Bluetooth connection establishment request, and sends a first public key in the first public-private key pair to the cloud platform through the mobile terminal; In response to receiving the first public key, the cloud platform generates a second public-private key pair according to the first preset algorithm, and generates a shared key based on a second private key in the second public-private key pair and the first public key according to the second preset algorithm; The cloud platform sends the second public key in the second public-private key pair and the shared key to the charging pile through the mobile terminal; The charging pile verifies the shared key based on the second public key and the first private key in the first public-private key pair according to the second preset algorithm; When the charging pile successfully verifies the shared key, the charging pile establishes a Bluetooth communication connection with the mobile terminal; The cloud platform and the charging pile communicate with each other based on the Bluetooth communication connection and the network connection established between the mobile terminal and the cloud platform, and encrypt and transmit information based on the shared key.

6. A charging pile, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 1 or 2 is implemented.

7. A cloud platform, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 3 is implemented.

8. A mobile terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 4 is implemented.

9. A communication system, characterized in that: It includes the charging pile as claimed in claim 6, the cloud platform as claimed in claim 7 and the mobile terminal as claimed in claim 8, a Bluetooth communication connection is established between the charging pile and the mobile terminal, a network connection is established between the cloud platform and the mobile terminal, and the charging pile and the cloud platform communicate based on the Bluetooth communication connection and the network connection.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the charging pile offline communication method according to any one of claims 1 to 5 is implemented.