Charging pile control method based on bluetooth communication, charging pile system and medium
By directly verifying information via Bluetooth connection between the charging station and the client, the problem of unreliable charging caused by unstable network in underground parking garages is solved, enabling fast response and efficient charging control, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU JIUDIAN TECHNOLOGY CO LTD
- Filing Date
- 2025-05-23
- Publication Date
- 2026-07-10
AI Technical Summary
Unstable network signals in enclosed spaces such as underground parking garages prevent two-wheeled vehicle charging equipment from reliably communicating with user devices or servers, affecting the availability of charging services and user experience.
Through a pre-established Bluetooth connection, the client communicates directly with the charging pile, generates and verifies the first verification information, and uses the second verification information generated by the server to perform consistency verification, thereby controlling the power-on operation of the charging pile and reducing the data processing burden on the server.
It improves the timeliness of charging demand response, reduces server complexity, enhances operating efficiency and response speed, and provides a flexible and reliable charging experience.
Smart Images

Figure CN120564308B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of charging and discharging technology, and in particular to a charging pile control method, charging pile system and medium based on Bluetooth communication. Background Technology
[0002] Network signals in enclosed spaces such as underground parking garages are often unstable, causing two-wheeled vehicle charging equipment to be unable to reliably communicate with user equipment or servers, affecting the availability of charging services and reducing user experience.
[0003] CN114173329B provides a charging pile control method. A smart terminal can establish a Bluetooth connection with the charging pile and control the charging pile to perform power-on and power-off operations. In this method, the server is responsible for a lot of data processing tasks, such as data generation, signing, and generating encrypted control commands, which may cause a certain delay in the power-on and power-off operations.
[0004] Therefore, an improved charging pile control method and system is needed to enhance the timeliness of response to users' charging needs. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a charging pile control method, charging pile system and medium based on Bluetooth communication, which can improve the timeliness of response to users' charging needs.
[0006] In a first aspect, embodiments of the present invention provide a charging pile control method based on Bluetooth communication. The method is executed by a target charging pile. The method includes: obtaining first verification information from a client via a pre-established Bluetooth connection; obtaining order execution information from the client via the Bluetooth connection, the order execution information including second verification information; the second verification information being generated by a server based on an order sent from the client to the server according to a preset authentication rule, wherein the order includes the first verification information; performing consistency verification according to the preset authentication rule based on the first verification information and the second verification information; if the verification passes, performing a power-on operation according to the order execution information.
[0007] Preferably, the order execution information is generated by the client through the following steps: generating the order execution information based on the order confirmation information obtained from the server, wherein the order confirmation information includes the second verification information; and the order confirmation information is generated by the server through the following steps: generating the order confirmation information based on the order sent from the client.
[0008] Preferably, the method further includes: obtaining power-on control information from the server and performing a power-on operation; the power-on control information is generated by the server based on the order sent by the client to the server; sending power-on receipt information to the server according to the power-on operation result; the abnormality of the status of the power-on receipt information is used to indicate whether the server should send the order confirmation information to the client.
[0009] Preferably, the first verification information includes index data and reference verification data; the second verification information includes the index data and target verification data; the step of performing consistency verification according to the first verification information and the second verification information and the preset authentication rule includes: determining the first verification information that includes the same index data according to the index data in the second verification information; for the first verification information that includes the same index data, generating a conversion result according to the preset authentication rule based on the reference verification data in the first verification information; comparing the conversion result with the target verification data in the second verification information to determine whether they are consistent.
[0010] Preferably, the method further includes: before obtaining the first verification information from the client, obtaining a payment capability certificate from the client via the pre-established Bluetooth connection, and verifying the validity of the payment capability certificate; the payment capability certificate is generated by the client through the following steps: generating a public-private key pair, sending the public key in the public-private key pair to the target charging pile; obtaining balance information and estimated charging cost; generating a balance commitment based on the balance information and estimated charging cost; the balance commitment is used to send a random value to the target charging pile via the Bluetooth connection; generating the payment capability certificate based on the private key in the public-private key pair, the balance commitment, and the random value obtained from the target charging pile; the payment capability certificate is used by the target charging pile to verify the validity of the payment capability certificate based on the public key in the public-private key pair; receiving settlement request information sent by the client, generating order completion information, and sending it to the client; when a mobile network connection is available, sending the order completion information and the payment capability certificate to the server to control the server to perform transaction verification based on the order completion information and the payment capability certificate, and updating the order execution status and balance information if the verification is successful.
[0011] Preferably, the method further includes: before obtaining the first verification information from the client, obtaining wallet status information from the client via the pre-established Bluetooth connection; wherein the wallet status information is generated by the client in the following manner: based on the current time, current location, charging device information, and target charging pile information, obtaining the estimated charging cost through a cost estimation model; the cost estimation model is a machine learning model; obtaining balance information, and determining whether the wallet status information is available or unavailable based on the balance information and the estimated charging cost; if the wallet status information is available, sending wallet locking information to the client, the wallet locking information being used to control the client to lock the balance according to the estimated charging cost; receiving settlement request information sent by the client, generating order completion information, and sending it to the client; when the mobile network connection is available, sending the order completion information to the server, for controlling the server to perform transaction verification based on the order completion information, and updating the order execution status and balance information of the order if the verification is successful.
[0012] Preferably, receiving the settlement request information sent by the client and generating order completion information includes: receiving the settlement request information including third verification information; the third verification information includes index data and reference verification data; performing a comparison verification based on the first verification information and the third verification information; if the comparison verification passes, generating a deduction request information based on the order execution status and the settlement request information, and sending the deduction request information to the client; the deduction request information includes the actual cost, and the deduction request information is used to control the client to settle the balance according to the actual cost; the client settling the balance according to the actual cost includes: if the balance is greater than or equal to the actual cost, deducting the actual cost from the balance, generating payment information indicating successful deduction, and Release the lock; if the balance is less than the actual fee, obtain the user's identity; if the user is a regular user, generate payment information for overdue payment; if the user is a new user, obtain the new balance information, obtain the updated balance based on the new balance information, if the updated balance is greater than or equal to the actual fee, deduct the actual fee from the updated balance, generate payment information for successful deduction, and release the lock; otherwise, generate payment information for failed deduction; obtain payment information sent by the client; based on the deduction request information and the payment information, generate order completion information and power off information, and send the order completion information to the client. The order completion information includes the third verification information, the actual fee in the deduction request information, the payment information, and the power off information.
[0013] Preferably, the method further includes: obtaining the mobile network connection status of multiple nearby charging piles via a wired network or a short-range communication network; determining a preferred charging pile based on the mobile network connection status of the multiple charging piles; sending the order completion information to the server via the mobile network connection of the preferred charging pile; the step of sending the order completion information to the server via the mobile network connection of the preferred charging pile includes: sending an order completion forwarding request to the preferred charging pile via the wired network or short-range communication network at preset time intervals based on the order completion information; the order completion forwarding request is used to control the preferred charging pile to forward the order completion information to the server via the mobile network connection; receiving forwarding feedback information from the preferred charging pile; and stopping sending the order completion forwarding request to the preferred charging pile when the forwarding feedback information indicates successful forwarding.
[0014] On the other hand, a Bluetooth-based charging pile system is provided, comprising a target charging pile, a client, and a server. The client sends an order to the server, the order including first verification information, and simultaneously sends the first verification information to the target charging pile via a pre-established Bluetooth connection. The server sends order confirmation information to the client based on the order, the order confirmation information including second verification information, which is generated by the server based on the first verification information according to preset authentication rules. The client also sends order execution information to the target charging pile via the Bluetooth connection based on the order confirmation information, the order execution information including the second verification information. The target charging pile performs consistency verification based on the first and second verification information according to the preset authentication rules; if the verification passes, it performs a power-on operation.
[0015] On the other hand, a medium is provided that stores computer program instructions thereon, which, when executed by a processor, perform the Bluetooth-based charging pile control method described above.
[0016] In summary, the beneficial effects of the present invention are as follows: In some embodiments of the present invention, the client sends an order including first verification information to the server, and simultaneously sends the first verification information to the target charging pile through a pre-established Bluetooth connection; the server, based on the order, sends order confirmation information including second verification information to the client, the second verification information being generated by the server based on the first verification information according to preset authentication rules; the client then, based on the order confirmation information, sends order execution information including the second verification information to the target charging pile through the Bluetooth connection; the target charging pile performs consistency verification according to the first and second verification information and preset authentication rules, and if the verification passes, it performs a power-on operation, thus realizing the function of controlling the charging pile to power on based on Bluetooth communication, and also transferring some data processing work in this process to the client, for example... The process involves generating an order and initial verification information. The server then generates second verification information and other information for the order confirmation based on the first verification information and preset authentication rules. This reduces the server's workload and complexity, improving its efficiency and response speed. Simultaneously, the client sends the first verification information to the target charging station. The target charging station completes consistency verification based on the first verification information obtained from the client, the second verification information obtained from the server, and pre-agreed verification rules (i.e., preset verification rules). Since the first verification information and the second verification information generated based on it are generated in real-time, they achieve the effect of order verification without relying on fixed values pre-built into the server or charging station, thus providing flexibility in consistency verification. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.
[0018] Figure 1 This is an exemplary flowchart of a charging pile control method based on Bluetooth communication according to an embodiment of the present invention.
[0019] Figure 2 This is an exemplary flowchart of a consistency verification embodiment of the present invention.
[0020] Figure 3 This is a schematic diagram illustrating the determination of first verification information including the same index data according to an embodiment of the present invention.
[0021] Figure 4 This is an exemplary flowchart of order completion according to an embodiment of the present invention.
[0022] Figure 5This is an exemplary flowchart of an embodiment of the present invention, showing how order completion information is forwarded via a preferred charging station.
[0023] Figure 6 This is an exemplary composition diagram of a Bluetooth-based charging pile system according to an embodiment of the present invention. Detailed Implementation
[0024] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.
[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0026] Example 1
[0027] like Figure 1 As shown, this embodiment of the invention provides a charging pile control method based on Bluetooth communication. This method can be executed by the target charging pile and can be used in various scenarios such as two-wheeled vehicle charging and electric vehicle charging. For example, in situations such as... Figure 6 In the scenario shown, the Bluetooth-based charging pile system 100 includes a target charging pile 300, a client 200, and a server 400.
[0028] Charging piles are equipped with Bluetooth chips and modules to provide Bluetooth communication functionality. The target charging pile refers to the charging pile the user intends to use. Each charging pile can have a unique identifier, such as a serial number (SN), and can also have a preset key, which can be stored in the charging pile's non-volatile storage unit before leaving the factory. Charging piles can also simultaneously be equipped with mobile communication network (such as 4G, 5G, etc.) or other wireless network connection functions, including mobile communication modules, Bluetooth modules, etc. Charging piles in the same area or within the same community can also establish wired network connections. For example, charging piles can have network cards installed, forming a wired network through RJ45 network interfaces, Ethernet cables, and routers, allowing charging piles within the network to communicate with each other. Charging piles can directly connect to a server via a mobile network. When the mobile network signal is weak, they can connect wirelessly to clients via Bluetooth modules. When communicating between charging piles and clients via Bluetooth, commonly used encryption communication technologies in the Bluetooth protocol, such as symmetric encryption algorithms and frequency hopping techniques, can be used for encrypted communication.
[0029] The client can be a smart terminal used by the user, such as a mobile phone or tablet, on which an application provided by the charging pile service provider is installed or running. In the charging pile control method based on Bluetooth communication, the relevant methods executed by the client can be included in the application provided by the charging pile service provider (hereinafter referred to as the application). The client has Bluetooth communication connectivity and can also have cellular network or other wireless network connectivity. When the client communicates with the server based on a mobile network or other wireless network connection, common encrypted communication technologies can be used, such as encrypted communication via the HTTPS network interface. Users can pre-register on the server through the client, for example, by setting an account name, password, and topping up their wallet, so that the server can verify the user's identity, manage user orders, and collect fees. After a user pre-registers on the server through the client, the client's storage unit can store the user's identity, such as a regular user or a new user. A new user can be a user who has never settled an order after registration, while a regular user can be a user who has settled an order at least once after registration. After a user tops up their wallet through the client, or after the server, charging station, or other means deduct money from the wallet, the client can also retrieve the balance information from the server and store it in the client's storage unit. When the client is offline (e.g., when the wireless network connection is temporarily unavailable), it can display the previously stored balance information.
[0030] A server can be a single server or a group of servers, and can be used independently or jointly to perform one or more functions, such as storing data, processing data, or any combination thereof. A server can include any type of computerized device or system. Servers can be implemented on cloud platforms, such as private clouds, public clouds, distributed clouds, internal clouds, etc. A server can store information on multiple charging piles. That is, charging piles can be pre-registered in the server and managed and monitored through the server. For example, the server can include a database storing the serial number and / or preset key corresponding to each charging pile that has been manufactured.
[0031] For more information on Bluetooth-based charging station systems, see [link / reference]. Figure 6 And related explanations.
[0032] like Figure 1 As shown, the charging pile control method based on Bluetooth communication includes:
[0033] S1 obtains the first authentication information from the client via a pre-established Bluetooth connection.
[0034] The first verification information refers to the information generated during order submission for verification purposes. It can be generated by the client, such as a random number or verification code. This first verification information is used to subsequently verify whether a power-on operation should be performed for the order. The first verification information can be order-specific; for example, different first verification information may be generated each time the client submits an order.
[0035] An order refers to information related to a user's charging needs. For example, it may include at least one of the following: target charging station information (e.g., target charging station identifier, target charging station location, target charging station type, target charging station status), demand information (e.g., start time, charging duration, charging method), user information (e.g., user identifier), and order execution status (e.g., submitted, executed, completed, successfully deducted, overdue payment, failed deduction, etc.). Orders can be generated by the client. For example, the client can obtain information related to the user's charging needs through at least one method, such as user input or scanning a QR code on the target charging station, and then generate an order.
[0036] The first verification information can be included in the order after it is generated. The client can send the order to the server via a mobile network connection. At the same time as sending the order to the server, the first verification information can also be sent by the client as independent data to the target charging station via a pre-established Bluetooth connection.
[0037] Simultaneous can also refer to the situation where the sending actions occur or exist at the same point in time. Due to various factors, such as network latency and data processing speed, even if two sending actions should logically occur simultaneously, there may be a slight time difference in the actual network or system. Therefore, simultaneous can also mean almost simultaneous, where the two sending actions are very close in time and almost indistinguishable in order. For example, when a client executes a program, it performs the steps of sending an order to the server and simultaneously sending the first verification information to the target charging station. However, there may actually be a slight time difference of less than 0.3 seconds or 0.1 seconds between the first time the order is sent to the server and the second time the first verification information is sent to the target charging station. This can also be considered as a case of "simultaneous" sending.
[0038] The client needs to establish a Bluetooth connection with the target charging station beforehand. This can be achieved by: obtaining the target charging station's identifier, such as its serial number (SN); searching for nearby Bluetooth devices; finding the device corresponding to the target charging station's SN in the search list; and pairing with that device. Once pairing is successful, the Bluetooth connection is established. The target charging station's identifier can be obtained by scanning a QR code on the charging station or through any other feasible method.
[0039] The first verification information in the order sent by the client to the server is the same as the first verification information sent by the client to the target charging station through a pre-established Bluetooth connection.
[0040] Once the target charging station receives the first verification information, it can store it.
[0041] In some embodiments, the first verification information includes index data and reference verification data.
[0042] Index data serves as an index and retrieval tool. When a client generates multiple different first verification messages, each first verification message includes different index data. For example, the index data could be the ID value of the first verification message.
[0043] Reference verification data consists of the specific data values corresponding to the indexed data in the first verification information. Whether these values are correct determines whether the consistency verification passes. Clients can generate reference verification data using various feasible methods, such as random number generation algorithms, based on order data (e.g., start time, user ID, target charging station ID, or a combination thereof), or by modifying certain fields (e.g., replacing text).
[0044] In some embodiments, the index data includes the message number, and the reference verification data includes the order number.
[0045] Multiple rounds of conversations, with different or the same purpose, may occur between the client and the server, exchanging a large number of messages. For a single charging request, a user submits an order, and this order submission process can be viewed as a message passing process. Therefore, each order submission can correspond to a unique message number for tracking and management.
[0046] An order number is data used to identify an order. Clients can generate order numbers using various methods, such as database auto-incrementing fields, timestamps plus random numbers, custom order number generation rules, and UUIDs (Universally Unique Identifiers).
[0047] This invention enhances system security by designing the index data in the first verification data as the message number and the reference verification data as the order number. This utilizes both the message number and the order number for authentication-related operations. The message number, as index data, is unique and effectively prevents replay attacks; while the order number, as reference verification data, ensures the integrity and authenticity of the order, preventing order information from being tampered with or forged. Furthermore, a clear association is established between the message number and the order number, making the verification process clearer and more intuitive. The message number, as index data, uniquely identifies each message in the system, while the order number, as reference verification data, indicates the order information associated with that message, thus achieving precise matching between messages and orders. By designing the index data and reference verification data as the message number and order number respectively, the charging pile can subsequently determine the corresponding first verification information based on the message number, then find the corresponding order number based on the order number, and convert it according to preset authentication rules. This facilitates rapid authentication operations, simplifies the verification process, improves system efficiency and response speed, and makes system management and maintenance more convenient.
[0048] S2, via Bluetooth connection, obtains order execution information from the client. The order execution information includes second verification information. This second verification information is generated by the server based on the order sent from the client to the server according to preset authentication rules, wherein the order includes the first verification information.
[0049] Order execution information refers to information related to the client's control over powering on the target charging station. This information may include, for example, control commands (such as starting charging, stopping charging, adjusting charging parameters, and setting the start time), the target charging station identifier, and possibly encrypted information. Order execution information may also include additional control parameters, such as float charging duration and whether to check if the plug has been unplugged.
[0050] Order execution information is generated by the client through the following steps: Based on the order confirmation information obtained from the server, order execution information is generated. For example, after receiving the order confirmation information, the client parses and extracts key parameters required to control the charging station, such as charging parameters (e.g., 10A current, 220V voltage, fast charging mode), start time, and target charging station identifier, based on at least one of the following: order processing status, server status code, and subsequent operation instructions, to generate the order execution information. The client can also verify the received order confirmation information first to confirm its legality and completeness before parsing and extracting it.
[0051] Order confirmation information is information provided by the server confirming that an order can proceed. For example, order confirmation information may include at least one of the following: order processing status (e.g., payment status, confirmation time), server status code (indicating the result of the request processing), and instructions for subsequent operations (e.g., waiting for payment to complete, starting to control the device).
[0052] Order confirmation information is generated by the server through the following steps: Based on the order sent from the client, order confirmation information is generated.
[0053] The server can verify user identity, check charging pile status, and verify order validity based on at least one of the following information included in the order: target charging pile information, demand information, and user information. Then, it generates order confirmation information. Verifying user identity may include confirming whether the user is registered, whether their account status is normal, and whether the user has the right to use the shared charging pile. Checking the charging pile status may include querying the real-time status of the charging pile, including whether it is available, online, or faulty, ensuring that the user's reserved charging pile is available within the reserved time. Verifying order validity includes checking whether the reserved time in the order is reasonable, whether it conflicts with other users' orders, and whether the charging demand is within the charging pile's capacity. The server can also calculate the estimated charging cost based on the user's demand information and the charging pile's rate, and record this in the order confirmation information. The order confirmation information includes secondary verification information. For the same order, the secondary verification information in the order execution information is the same as the secondary verification information in the order confirmation information. The client can copy the secondary verification information from the order confirmation information and fill it into the order execution information.
[0054] The second verification information refers to the relevant information generated by the server when confirming an order for verification purposes.
[0055] The second verification information is generated by the server based on the first verification information included in the order, according to preset authentication rules. Preset authentication rules are rules or algorithms that guide the generation of the second verification information for authentication from the first verification information. Preset authentication rules may include at least one of the following: hash algorithm, encryption algorithm, digital signature, preset custom encoding method, Message Authentication Code (MAC), etc. Correspondingly, the second verification information may include at least one of the following: hash value, encrypted data, digital signature, preset custom encoding value, MAC value, etc.
[0056] In some embodiments, the second verification information includes index data and target verification data.
[0057] For the same order, the index data included in the second verification information is the same as the index data in the first verification information.
[0058] The target verification data is the specific data value corresponding to the index data in the second verification information. The server can generate the target verification data (Token) based on the reference verification data in the first verification information according to preset authentication rules. For example, the target verification data can be a hash value corresponding to the reference verification data in the first verification information, encrypted data, or a corresponding preset custom encoding value.
[0059] In some embodiments, the preset authentication rules include performing digital digest processing on the reference verification data in the first verification information.
[0060] Digital digest processing can convert the reference verification data in the first verification information into a fixed-length numerical value. For example, it can include hash algorithms (such as SHA-256, MD5, etc.) and MAC algorithms (such as HMAC, CMAC, etc.).
[0061] This invention addresses the need for charging piles to process large volumes of charging requests and authentication information. By setting preset authentication rules for digital digest processing, it significantly reduces data processing time, dramatically improves the speed and efficiency of the authentication process, accelerates response to user charging needs, and enhances user experience. Since digital digests are typically much shorter than the original data, they are more efficient in terms of storage. For charging piles, digital digest processing also saves storage space and reduces operating costs.
[0062] In some embodiments, the preset authentication rules include performing digital digest processing on the reference verification data, the identifier of the target charging pile, and the preset key of the target charging pile in the first verification information.
[0063] Digital digest processing can convert the reference verification data, the target charging pile identifier, and the target charging pile's preset key in the first verification information into a fixed-length numerical value. Specifically, the server can obtain the target charging pile identifier from the order received from the client; and then, based on the target charging pile identifier, it can search its database for the corresponding preset key.
[0064] This invention, by including the target charging station's identifier and preset key in the digest processing, generates a more complex and unique hash value, increasing the difficulty of unauthorized cracking or forgery of verification information, thereby improving the security of the entire authentication process. Digest processing that includes the charging station identifier and preset key allows each piece of verification information to be associated with a specific charging station, clearly distinguishing different charging stations during the verification process. This helps avoid erroneous operations and ensures that the verification information for each charging station is unique and accurate. If the charging station's identifier or preset key changes (e.g., charging station replacement or key update), the digest processing will reflect these changes, allowing the system to adapt more flexibly to changes in charging stations.
[0065] For the same order, the preset authentication rules involved in different steps need to be consistent.
[0066] In some embodiments, the charging pile control method based on Bluetooth communication further includes: obtaining power-on control information from the server and performing a power-on operation; the power-on control information is generated by the server based on an order sent by the client to the server; sending power-on receipt information to the server according to the power-on operation result; the abnormality of the status of the power-on receipt information is used to indicate whether the server should send order confirmation information to the client.
[0067] Since the target charging station may include mobile communication modules and has wireless network communication capabilities, it can communicate directly with the server when the wireless network environment is good. Therefore, after receiving the order and confirming that it can continue, the server can first try to directly control the target charging station to perform the power-on operation. If the direct control of the target charging station to power on fails, i.e., the power-on receipt information is abnormal, then the server will send order confirmation information to the client. The client then controls the target charging station to power on via Bluetooth.
[0068] Power-on control information refers to information directly controlled by the server to power on the target charging station. This information may include at least one of the following: control commands, target charging station identifier, possible encrypted information, server identifier, or server authentication information. The specific content of the control commands and possible encrypted information can be found in the order execution information. Upon receiving the power-on control information, the target charging station can respond to the server based on the execution status of the control commands.
[0069] Power-on receipt information is feedback information from the target charging station regarding the execution result and status of the power-on control information. For example, power-on receipt information may include at least one of the following: message confirmation information, execution status (such as whether charging has started), charging status (such as current charging current, voltage, amount charged, remaining charging time, etc.), error or fault information, etc.
[0070] Abnormalities in the power-on receipt information may include loss of power-on receipt information resulting in the server not receiving it, abnormal execution status, abnormal charging status, or other errors or fault information.
[0071] In this invention, before the server sends order confirmation information to the client based on the order, it first attempts to directly control the target charging pile to charge. If an abnormality occurs, it then sends order confirmation information to the client based on the order. The client then controls the charging pile to charge via Bluetooth connection. This is beneficial for prioritizing the more efficient direct control method, reducing intermediate steps, achieving efficient charging control, and ensuring system stability under abnormal conditions, providing users with a more reliable and flexible charging experience.
[0072] S3. Based on the first verification information and the second verification information, perform consistency verification according to the preset authentication rules. If the verification is successful, perform the power-on operation according to the order execution information.
[0073] The target charging pile can perform consistency verification according to the first verification information and the second verification information, and according to the preset authentication rules. This can include various feasible methods. For example, if the preset authentication rule is a preset custom encoding method, that is, a custom encoding method agreed upon in advance between the target charging pile, the client, and the server, the target charging pile can encode the first verification information according to the preset custom encoding method, and then directly compare it with the second verification information to determine whether they are consistent. If they are consistent, the verification is successful.
[0074] Based on the order execution information, the charging station can turn on its power switch, enabling it to begin providing power to the electric vehicle. It also records a charging log, including timestamps for power-on and power-off operations, the charging station's current status (e.g., powered on, charging), charging parameters, charging amount, and any possible errors or anomalies. This completes the execution of the power-on operation. For more information on charging parameters, please refer to the relevant instructions in step S2.
[0075] In some embodiments, such as Figure 2 As shown, the steps for the target charging pile to perform consistency verification according to the first verification information and the second verification information and in accordance with the preset authentication rules may include:
[0076] S301, based on the index data in the second verification information, determine the first verification information that includes the same index data.
[0077] After step S1, the target charging station can store the received first verification information, including index data and reference verification data. For example... Figure 3 As shown, the target charging pile 300 may include multiple first verification information entries 310, which are stored in the storage unit 303 of the target charging pile 300. Since the index data included in the second verification information is the same as the index data in the first verification information for the same order, after receiving the second verification information 320, the target charging pile can search for the first verification information 310 with the same index data 311 based on the index data 321 included in the second verification information 320.
[0078] S302, for the first verification information that includes the same index data, a conversion result is generated according to the reference verification data in the first verification information and in accordance with the preset authentication rules.
[0079] like Figure 3 As shown, for the first verification information 310 that includes the same index data 311, the target charging pile 300 generates a conversion result 330 according to the reference verification data 312 in the first verification information 310 and according to the preset authentication rules, such as the preset custom encoding method, hash algorithm, etc., such as the preset custom encoding value, hash value, etc.
[0080] Preferably, the preset authentication rules include performing digital digest processing on the reference verification data, the identifier of the target charging pile, and the preset key of the target charging pile in the first verification information. Correspondingly, the target charging pile reads its own identifier and its own preset key, performs digital digest processing based on the reference verification data, its own identifier, and its own preset key in the first verification information, and generates a conversion result of fixed length.
[0081] Since the target verification data 322 in the second verification information 320 is generated by the server based on the reference verification data in the first verification information and according to the same preset authentication rules, the target charging pile can determine the consistency between the first verification information 310 and the second verification information 320 based on the comparison between the target verification data 322 in the second verification information 320 and the conversion result 330.
[0082] S303. Compare the conversion result with the target verification data in the second verification information to determine whether they are consistent. If they are consistent, the verification is successful.
[0083] This invention utilizes a first verification information system comprising index data and reference verification data, and a second verification information system comprising index data and target verification data. During consistency verification, the charging pile uses the index data in the second verification information to locate the first verification information containing the same index data and generates a conversion result according to a preset authentication rule. The conversion result is then compared with the target verification data in the second verification information to determine consistency. The charging pile only needs to find the corresponding first verification information based on the index data for verification, eliminating the need to process the entire order or order confirmation information. This reduces data transmission and processing volume, lowers the system burden, and improves the response efficiency to user charging needs.
[0084] In some embodiments of the present invention, the client sends an order including first verification information to the server, and simultaneously sends the first verification information to the target charging pile via a pre-established Bluetooth connection. Based on the order, the server sends order confirmation information including second verification information to the client. The second verification information is generated by the server based on the first verification information according to preset authentication rules. The client then sends order execution information including the second verification information to the target charging pile via Bluetooth connection based on the order confirmation information. The target charging pile performs consistency verification based on the first and second verification information according to preset authentication rules. If the verification passes, it performs a power-on operation. This enables the function of controlling the charging pile to power on via Bluetooth communication and also allows some data processing work to be transferred to the client, such as generating the order and the first verification information. The server generates second verification information and other information in the order confirmation information based on the first verification information and preset authentication rules. This reduces the server's workload and complexity, and improves its operating efficiency and response speed. When the client sends an order to the server, it also sends the first verification information to the target charging pile. The target charging pile can complete the consistency verification based on the first verification information obtained from the client, the second verification information obtained from the server, and the pre-agreed verification rules (i.e., preset verification rules). Since the first verification information and the second verification information generated based on it are generated in real time, it can achieve the effect of order verification without relying on fixed values pre-built into the server or charging pile, making the consistency verification flexible.
[0085] In some embodiments, before step S1 is executed, the Bluetooth-based charging pile control method further includes the following steps S0_1 to S0_2. Steps S0_1 to S0_2 can be automatically started by the target charging pile after the user scans the target charging pile via a client to establish a pre-established Bluetooth connection with the target charging pile, specifically including:
[0086] S0_1: When the mobile network connection is unavailable, obtain wallet status information from the client via a pre-established Bluetooth connection.
[0087] Wallet status information relates to the user's wallet usage status; for example, it may indicate whether the wallet is available or unavailable. This information can be included in applications installed on the client device. The client can also retrieve wallet usage information from the server and update its local wallet status when a mobile network connection is available.
[0088] The wallet status information is generated by the client in the following way:
[0089] S0_11: Based on the current time, current location, charging equipment information, and target charging pile information, the estimated charging cost is obtained through the cost estimation model.
[0090] Specifically, when the target charging station sends a wallet information retrieval request, the client can obtain the current time, current location, charging device information, and target charging station information. The client can obtain the current time through a real-time clock (RTC) module or Network Time Protocol (NTP), obtain the current location through an included positioning module, obtain charging device information (such as device type and model) through user input, and obtain target charging station information (such as target charging station identifier and type) by scanning the QR code on the target charging station.
[0091] Estimated charging costs are the costs that are projected to be incurred based on current charging needs.
[0092] The charging cost estimation model can be a machine learning model, such as any of linear regression, decision tree regression, random forest, or neural networks. When training the initial charging cost estimation model, it can be based on a large number of labeled training samples. Each training sample can include sample time, sample location, sample charging device information, sample target charging station information, and the label includes the actual cost corresponding to that training sample. For example, when a mobile network connection is available, the client can retrieve a large number of sample orders from the server's sample library. Each sample order includes a set of sample time, sample location, sample charging device information, sample target charging station information, and sample actual cost. The client can also retrieve multiple historical orders from the user's local storage unit, using the historical time, historical location, historical charging device information, historical target charging station information, and historical actual cost from these historical orders as training samples and corresponding labels.
[0093] S0_12, obtain balance information, and based on the balance information and the estimated charging cost, obtain the wallet status information as either available or unavailable.
[0094] The client can retrieve balance information from the server, or retrieve the previously stored balance information from the client's storage unit.
[0095] The client can set the wallet status to available if the balance is greater than or equal to the estimated charging cost, and set it to unavailable if the balance is not locked.
[0096] S0_2, if the wallet status information is available, a wallet lock information is sent to the client. The wallet lock information is used to control the client to lock the balance according to the estimated charging cost.
[0097] If the target charging station obtains a wallet status information from the client indicating that the wallet is available, it sends a wallet lock information to the client, indicating that the next step can be performed, i.e., continue with steps S1 to S3; otherwise, there is no need to perform the next step.
[0098] After receiving the wallet lock information, the client can lock a corresponding portion of the balance based on the estimated charging cost. The locked amount in the wallet will not be freely available to the user.
[0099] Because the network connection between the target charging station and the server may be unstable or unavailable, traditional online payment verification methods may not function properly. This invention addresses this by having the target charging station, before step S1, detect when the mobile network connection is unavailable and obtain wallet status information from the client via a pre-established Bluetooth connection. If the wallet status is available, a wallet lock message is sent to the client to lock the corresponding balance, ensuring that the user has sufficient funds to pay for charging even when the network is disconnected. This facilitates the smooth completion of subsequent offline payment processes between the target charging station and the client. The locking mechanism prevents the user from arbitrarily using the locked balance during charging, reducing payment risks caused by user error or malicious behavior. Furthermore, the cost estimation model allows the system to dynamically obtain estimated costs based on different times, locations, and device information, more accurately reflecting the actual charging cost. The client's cost estimation model is continuously optimized when the mobile network connection is available, further improving the accuracy of the estimation and making the entire charging process more intelligent and adaptive.
[0100] To protect payment information and provide stronger privacy protection capabilities, in some embodiments, before step S1 is executed, the charging pile control method based on Bluetooth communication further includes: obtaining a payment ability proof from the client through a pre-established Bluetooth connection and verifying the validity of the payment ability proof. After the user scans the target charging pile through the client to pre-establish a Bluetooth connection with the target charging pile, after the client generates the payment ability proof and sends it to the target charging pile, the target charging pile automatically starts to verify the validity of the payment ability proof. If the payment ability proof is verified to be valid, it indicates that the user has sufficient payment ability and can proceed to the next step, that is, continue with steps S1 to S3; otherwise, there is no need to proceed to the next step.
[0101] The payment ability proof is generated by the client through the following steps:
[0102] S0_3, generate a public-private key pair and send the public key in the public-private key pair to the target charging pile.
[0103] The client can generate a private key and a public key paired with the private key through an asymmetric encryption algorithm to obtain a public-private key pair. For example, through the RSA algorithm, select two different large prime numbers p and q; calculate the modulus n = p * q; calculate the Euler's totient function φ(n) = (p - 1) * (q - 1); select an integer e such that 1 < e < φ(n) and e and φ(n) are relatively prime; calculate the private key d such that d * e ≡ 1 (mod φ(n)). The private key d is the generated private key.
[0104] The private key can be used by the client to sign relevant data, and the public key can be shared with the target charging pile for verifying relevant data.
[0105] S0_4, obtain balance information and estimated charging costs.
[0106] The method for obtaining balance information can refer to the relevant content in step S0_12 above.
[0107] The client can obtain the preset standard estimated charging costs from the server, or obtain the previously stored server-preset standard estimated charging costs from the storage unit of the client, or refer to the method for obtaining the estimated charging costs through the cost estimation model in step S0_11 above to obtain the estimated charging costs.
[0108] S0_5, generate a balance commitment based on the balance information and the estimated charging costs; the balance commitment is used to send a random value to the charging pile through the Bluetooth connection.
[0109] A balance commitment is an encrypted value that hides the balance information and the estimated charging cost, allowing verification of these values in subsequent steps. The server can generate a string based on the balance information, estimated charging cost, timestamp, and user identifier; based on this string, a balance commitment is generated through a hash operation, such as SHA-256. The client can then send the balance commitment to the target charging station via a pre-established Bluetooth connection.
[0110] Once the target charging station receives the balance commitment, it can generate a random value and return it to the client. This random value can be used to ensure the freshness and uniqueness of the session or transaction.
[0111] S0_6 generates a payment capability certificate based on the private key, balance commitment, and random value obtained from the charging pile in the public-private key pair; the payment capability certificate is used by the charging pile to verify the validity of the payment capability certificate based on the public key in the public-private key pair.
[0112] The client can use the private key in the public-private key pair to sign the balance commitment and the random value obtained from the charging station to generate proof of payment capability.
[0113] This invention ensures the confidentiality of payment information by generating and sending a public key to the charging station, while the private key is retained by the client. The use of a balance commitment further conceals the specific balance and estimated cost information. Verification is only performed using the public key during the verification phase, effectively preventing the leakage of sensitive information. The private key in the public-private key pair is used to sign the balance commitment and a random value, generating a proof of payment capability, ensuring the integrity and authentication of the payment information. The charging station verifies the proof of payment capability using the public key, ensuring the authenticity and validity of the payment request. The random value generated by the charging station ensures the freshness and uniqueness of each payment session, effectively preventing the possibility of replay attacks. Even if an attacker intercepts previous payment request information, they cannot launch a replay attack without a correct random value.
[0114] In one embodiment, before obtaining proof of payment capability from the client via a pre-established Bluetooth connection, the method further includes:
[0115] The consumption behavior data of each user is stored locally through multiple target charging piles. The consumption behavior data includes multiple consumption records. Each consumption record includes the client's historical charging records, payment timeliness, payment amount, and delay records. All consumption behavior data records are stored in the local storage of multiple smart terminals.
[0116] Specifically, in this step, each garage's multiple target charging stations locally store each user's consumption behavior data. This data is typically collected and recorded in real time while the user is charging. The smart terminal saves this data through local storage units, and this historical data is extracted for subsequent calculations when credit scoring is required.
[0117] To ensure data accuracy, consumer behavior data typically includes information from multiple dimensions, such as charging records, payment amounts, and payment timeliness. Smart terminals store and update this data periodically through relevant interfaces in applications or operating systems.
[0118] Consumer behavior data refers to various data generated by users during the use of charging stations, typically including charging records, payment records, and related behavioral information. Specifically, this includes: charging records, which contain information about each charging operation, such as charging time, charging device, and charging amount; payment timeliness, which refers to whether users pay charging fees on time, such as whether there are any delayed payments; payment amount, which is the amount paid by the user during each charging session; and delay records, which indicate whether there were any delays in the payment process and the duration of those delays. This data is generally stored in the local memory of the smart terminal and can reflect user behavior and payment habits in real time.
[0119] Based on the aforementioned consumption behavior data, an initial credit score is assigned to each user;
[0120] Specifically, the initial credit score is a value assigned to a user by the system when their consumption behavior data is first collected. This score is estimated based on the user's basic information and early behavioral habits, such as registration time and initial charging records. This score provides a starting benchmark for subsequent dynamic adjustments and score updates. The initial credit score is typically calculated based on the following aspects: the user's registration duration, behavior upon first use (such as whether a payment was successfully made), and early behaviors such as whether the user completed their first payment on time and whether they chose a preset payment method. If there is no historical data, the system can assign a default credit score to each new user.
[0121] The decay factor for each record is calculated based on the time difference between the consumption record and the current time.
[0122] The decay factor is a time-based weighting that indicates the impact of older records on credit scores. Calculated using an exponential function, it assigns higher weights to newer records and reduces the influence of older records through decay. For example, a user's recent charging activity may have a greater impact on their credit score, while a charging record from a year ago may have a smaller impact. The key to calculating the decay factor is the time difference—the gap between the time of each transaction and the current time. A common method is the exponential decay function. Based on the timestamp of each transaction record, the decay factor is calculated to ensure that records older than the current time have a correspondingly reduced influence. The final result is a factor inversely proportional to the time difference.
[0123] The weighted score for each consumption record is obtained by weighting the charging record, payment timeliness, payment amount, and delay record.
[0124] Each transaction record is assigned a different weight based on its importance (such as payment timeliness, payment amount, and delays). These weights are then applied to the record to obtain a weighted score. The weighted score of each record determines its impact on the final credit score. For example, timely payments may receive a higher weight, while delayed payments may receive a lower weight. This weighted scoring method assigns different weights to each transaction record based on its characteristics and calculates the contribution of each record to the user's credit score. By using a weighted scoring system, user behavior can be more accurately reflected, ensuring that factors such as payment timeliness and payment amount contribute to the credit score.
[0125] By using weighted scoring, the system can more accurately reflect the quality of users' payment behavior, ensuring that key behaviors (such as timely payments and large payments) have a significant impact on credit scores. Weighted scoring allows the contribution of each record to be adjusted based on actual circumstances, improving the rationality and accuracy of the scoring.
[0126] The initial credit score of each user is updated based on the weighted score and the decay factor to obtain the current credit score;
[0127] Specifically, the system updates a user's credit score based on the weighted score and decay factor of each record, ensuring that the system can reflect changes in user behavior in real time and adjust the score according to the latest data. This makes the credit score more dynamic and accurate, adapting to actual changes in the user, thereby improving the reliability of payment verification and credit assessment.
[0128] If the current credit score is higher than the first preset threshold, simplify the payment verification process and execute steps S0_1 to S0_2.
[0129] The first preset threshold is a credit scoring standard value pre-set by the system. When a user's credit score is higher than this value, it indicates that the user has a good credit level. When the credit score is higher than the first preset threshold, the simplified payment verification process can significantly improve the system's response speed and user experience. Even when the signal is unstable or the network is unavailable, the system can still quickly determine the user's payment ability, reducing waiting time. This is very important for users who frequently use charging stations, improving the efficiency of the entire system and user satisfaction.
[0130] If the current credit score is lower than the first preset threshold and higher than the second preset threshold, proceed with steps S0_1 to S0_6.
[0131] The second preset threshold is lower than the first preset threshold, indicating that the user's credit score is at a moderate level. When the user's credit score is between the first and second preset thresholds, the system needs to perform a more standard payment verification.
[0132] Specifically, when a user's credit score falls between the first and second preset thresholds, indicating a moderate credit level, the system needs to adopt a moderate verification strategy—neither overly simplistic nor overly stringent. In this case, the system needs to ensure the security of the payment process while avoiding excessive verification steps that could unnecessarily burden the user. For users with credit scores between the first and second preset thresholds, the system uses moderate payment verification to ensure security while avoiding excessive verification steps, thereby improving user experience and payment efficiency. By using proof of payment ability, balance commitment, and the generation of random values, the system effectively protects user payment privacy and ensures the security of the payment process. Furthermore, generating and verifying proof of payment ability effectively prevents replay attacks and fraudulent activities, ensuring the uniqueness and validity of each payment session. By performing local verification in the absence of a network, the system improves robustness and user satisfaction in environments with unstable signals.
[0133] Through these two different processing methods, the system can automatically adjust the complexity of payment verification based on the user's credit score. High-credit users (credit scores above a first preset threshold) can enjoy a simplified payment verification process, improving payment efficiency; while users with medium credit scores (credit scores between the first and second preset thresholds) will experience a moderate verification process, ensuring the security and effectiveness of the payment process. This flexible payment verification mechanism provides more refined services under different credit conditions, further enhancing the user experience and the system's intelligence. In some embodiments, after step S3 is executed, as... Figure 4 As shown, the Bluetooth-based charging pile control method also includes a step of ending the order, specifically including the following steps:
[0134] S4_1 receives settlement request information sent by the client.
[0135] When a user wants to end charging through the client, they can send a settlement request to the server or the target charging station. If the client's mobile network connection is unavailable, it can send the settlement request via a pre-established Bluetooth connection. For example, the user can scan the QR code on the target charging station, allowing the client to locate the order based on the obtained charging station information. For the found order, the user can click "Checkout" in the corresponding location within the client's application, thus generating and sending a settlement request to the target charging station.
[0136] The settlement request information may include third-party verification information. This third-party verification information may include index data and reference verification data, which are generated by the client based on the message number and order number of the found order, respectively.
[0137] S4_2, compare and verify the first verification information and the third verification information. If the comparison and verification pass, generate a deduction request information based on the order execution status and settlement request information, and send the deduction request information to the client. The deduction request information includes the actual cost and is used to control the client to settle the balance according to the actual cost.
[0138] The target charging station can first use the index data of the third verification information included in the settlement request information to find the first verification information with the same index data stored in the storage unit of the target charging station. The reference verification data in the third verification information is compared with the reference verification data of the found first verification information. If they are completely consistent, the charging station can continue to generate the deduction request information; otherwise, the user can be prompted that the order does not exist.
[0139] The target charging station can obtain the current order execution status from the charging log, including the timestamps of power-on and power-off operations, and charging amount. Based on the order execution status and the target charging station's fee calculation rules, it calculates the actual cost and fills the actual cost into the deduction request information to generate a deduction request. The target charging station's fee calculation rules can be preset in the target charging station or obtained by the target charging station from the server when a mobile network connection is available. These rules may include information such as the electricity price and tiered pricing in the target charging station's location. For more information on charging logs, please refer to the relevant explanation in step S3.
[0140] The client's settlement of the balance based on actual expenses includes:
[0141] S4_21: If the balance is greater than or equal to the actual fee, the actual fee will be deducted from the balance, generating a successful payment notification and unlocking the wallet. Here, the balance is not limited to the locked amount; any balance in the wallet can be used for settlement.
[0142] S4_22: If the balance is less than the actual cost, then obtain the user's identity. For details regarding user identity, regular users, and new users, please refer to the relevant explanations above.
[0143] S4_23 If the user is a regular user, then generate payment information for the outstanding fees.
[0144] "Use despite outstanding fees" means that although the user is currently in arrears, they are allowed to continue using the service temporarily. The locked balance in the wallet will remain locked.
[0145] S4_24: If the user is a new user, obtain the newly added balance information and obtain the updated balance based on the newly added balance information.
[0146] The "New Balance Information" is the balance information updated after prompting the user to top up their balance. The new balance information can be the amount added to the balance. The updated balance is the total balance after the top-up. If the new balance information is not obtained, a payment failure message can be generated. After a payment failure, the locked balance in the wallet remains locked.
[0147] S4_25: If the updated balance is greater than or equal to the actual fee, the actual fee will be deducted from the updated balance, a successful deduction payment message will be generated, and the lock will be released; otherwise, a failed deduction payment message will be generated.
[0148] S4_3 retrieves the payment information sent by the client.
[0149] After settling the balance according to the actual cost based on the deduction request information, the client sends payment information to the target charging pile, which then receives the payment information sent by the client.
[0150] S4_4: Based on the deduction request information and payment information, generate order end information and power off information, and send the order end information to the client. The order end information includes third verification data (such as message number and order number), actual cost in the deduction request information, payment information, and power off information.
[0151] For example, if the payment information indicates successful payment, the order end information includes the order number, actual cost, successful payment, and a timestamp indicating power off; if the payment information indicates failed payment, the order end information includes the order number, actual cost, failed payment, and a timestamp indicating power off; if the payment information indicates unpaid usage, the order end information includes the order number, actual cost, unpaid usage, and a timestamp indicating power off.
[0152] S4_5 sends the order completion information to the client.
[0153] If the payment information indicates a failed deduction or outstanding payment, the client can remind the user to recharge their balance at preset time intervals, each time the application starts running.
[0154] S4_6, when a mobile network connection is available, sends order completion information to the server via the mobile network connection to control the server to update the order execution status.
[0155] To improve the accuracy of server data, once the mobile network connection of the target charging station is restored to an available state, the order-related data in the server can be updated by sending order completion information and proof of payment ability to the server (if steps S0_3 to S0_6 were used). For more information on order execution status, please refer to the relevant explanation in step S1. When the order execution status is "overdue payment" or "payment failed," the server can push a message to the client reminding the user to recharge their balance at preset time intervals, each time the application starts running.
[0156] This invention, through steps S4_1 to S4_6, allows charging stations and clients to conduct payment settlements even without a network connection, expanding the application scenarios of charging stations, especially in areas with unstable or non-existent network signals. Users can charge and pay without waiting for a network connection, improving convenience. By introducing third-party verification information, including index data and reference verification data, transaction data can be verified offline, avoiding the influence of other users' operations on the target charging station and enhancing the security of the payment process. Different payment strategies are designed and provided based on user identity (regular user or new user) and balance status. This personalized payment method not only meets the needs of different users but also improves the user experience, making the payment process smoother and more convenient. Even offline, the target charging station can record the order execution status and payment information. When a mobile network connection is available, this information can be automatically synchronized to the server, ensuring the real-time nature and consistency of the order status and avoiding order status loss or confusion due to network interruption.
[0157] In some embodiments, after step S4_5, such as Figure 5As shown, the charging pile control method based on Bluetooth communication may further include the step of forwarding order completion information through a preferred charging pile, specifically including the following steps:
[0158] S5_1 obtains the mobile network connection status of multiple nearby charging piles through a wired network or short-range communication network.
[0159] For example, you can use an RJ45 interface or other wired network interface to send broadcast or directional requests to multiple nearby charging piles (such as those in the same community) that are connected to a local area network or wide area network to inquire about the mobile network connection status of the nearby charging piles. Alternatively, you can use short-range communication technologies such as Bluetooth or Wi-Fi Direct to send broadcast signals to multiple nearby charging piles (such as those in the same community) to request the nearby charging piles to reply with their mobile network connection status.
[0160] Mobile network connection status can include at least one of the following: whether it is online, signal strength, signal quality, etc.
[0161] S5_2, determine the preferred charging station based on the mobile network connection status of multiple charging stations.
[0162] Analyze the collected mobile network connection status information to evaluate the stability and reliability of the mobile network connection of each charging station; prioritize charging stations with strong signal strength and stable connection to determine the preferred charging stations.
[0163] S5_3 sends order completion information to the server via the mobile network connection of the preferred charging station.
[0164] Step S5_3 specifically includes:
[0165] S5_31, based on the order completion information, sends an order completion forwarding request to the preferred charging pile via a wired network or short-range communication network at preset request intervals; the order completion forwarding request is used to control the preferred charging pile to forward the order completion information to the server via the mobile network connection.
[0166] The order completion forwarding request contains order completion information and the server address.
[0167] Preferred charging stations can forward order completion information to the server via mobile network connection, which may include:
[0168] S5_311, parse the order completion forwarding request to obtain the order completion information and the address of the target server;
[0169] S5_312 establishes a network connection with the server using its mobile network (such as 4G / 5G, LTE, etc.) through network protocols such as DNS resolution and TCP handshake.
[0170] S5_313 encapsulates the order completion information into an HTTPS or TLS protocol format and sends the encapsulated order completion information to the server through the established mobile network connection.
[0171] S5_314, waiting for a response from the server.
[0172] S5_315, the preferred charging pile prepares forwarding feedback information based on the server's response, including status information such as forwarding success or forwarding failure. Through the wired network or short-range communication network previously used to receive forwarding requests, the preferred charging pile sends the forwarding feedback information to the target charging pile. For example, if the server's response indicates that the server has successfully received the order completion information, then a forwarding success feedback message is generated.
[0173] S5_32 receives and forwards feedback information from the preferred charging station.
[0174] The target charging station listens for forwarding feedback information from the preferred charging station. The forwarding feedback information may include at least one status such as forwarding successful, forwarding failed, or forwarding in progress.
[0175] S5_33: When the forwarding feedback information is "forwarding successful", stop sending the order termination forwarding request to the preferred charging pile.
[0176] This invention utilizes the mobile network of nearby charging stations as a backup channel to ensure that order completion information can be reliably transmitted to the server. This method avoids order status loss or confusion caused by the unavailability of the target charging station's mobile network, reduces the risk of data loss or transmission failure due to network problems, and facilitates the timely transmission and processing of order completion information to provide a more reliable and efficient charging service. Furthermore, it can intelligently select charging stations with stable mobile network connections as preferred charging stations for information forwarding, optimizing the utilization of network resources and avoiding transmission delays or failures caused by network congestion or instability.
[0177] In one embodiment, to further ensure the reliability of the payment process and the accuracy of the transaction results, after step S4_6 is executed, the method further includes the following steps:
[0178] S4_7: Retrieve the original order data from the server and extract the order completion information from the client.
[0179] The server retrieves the original order data corresponding to the order completion information from the order database, including the order number, payment amount, payment status, power outage timestamp, and user identity information. The server also extracts the payment status information, power status information, and summary verification information from the order completion information uploaded by the client or the target charging station.
[0180] S4_9, Based on the original order data and the order end information, perform a consistency comparison between payment and power outage status to obtain the consistency comparison result;
[0181] The server performs a consistency comparison between the original order data and the order completion information uploaded by the client to determine if any of the following anomalies exist: the payment status marker is inconsistent with the actual payment amount; the payment is marked as successful but the power is not actually disconnected; the power is disconnected but the actual payment status is failed; the power disconnection timestamp deviates significantly from the order record beyond a preset threshold.
[0182] S4_10, Generate an anomaly identification record based on the consistency comparison result;
[0183] If any of the abnormal conditions in step S4_9 is met, the server generates an abnormal identification record, which includes the order number, abnormal category, specific abnormal parameters, and timestamp of occurrence.
[0184] S4_11: Based on the exception record, execute a local log backtracking request to obtain local log data;
[0185] Specifically, based on the anomaly identifier record generated in step S4_10, the server sends a backtracking verification request instruction to the corresponding target charging pile through a preset Bluetooth connection protocol. After the instruction is executed, the target charging pile reads local log data, including locally stored payment status, power control logs, and order end summary, to obtain a set of local raw operation log information fed back by the charging pile, which is used for subsequent anomaly confirmation by the server.
[0186] S4_12: Based on local log data, original order information, and client order completion information, execute dynamic compensation control operations based on a preset compensation strategy;
[0187] Specifically, based on the local operation log of the charging pile obtained in step S4_11, and the original order information and client order completion information obtained in steps S4_7 to S4_8, a preset compensation strategy decision model is executed. This model is based on feature inputs including at least the user's historical payment credit score, order amount, historical abnormal frequency of the charging pile, and the current abnormal type, to obtain the optimal compensation measure suggestion corresponding to the current abnormal event, which is used to guide subsequent compensation execution actions. Subsequently, the server executes at least one compensation control operation, including: initiating a balance rollback instruction to the client account, issuing an immediate power-off instruction to the charging pile, recording subsidy points or discount records in the user account, or sending a manual intervention request instruction to the customer service system, obtaining a compensation response result, and recording the processing status in the order execution status, which is used by the server to synchronize the status of the order and identify the abnormal loop in the future.
[0188] Specifically, the server performs at least one compensation control operation corresponding to the exception type, including:
[0189] If the exception type is "payment successful but power not disconnected", then execute: send an immediate power-off command to the target charging station to compensate for the power outage control, and optionally issue subsidy points or electricity coupons to the user's account.
[0190] Specifically, when the exception type is "payment successful but power not disconnected," the system considers there to be a risk of abnormal device response or execution failure. To protect user property and prevent power abuse, the server issues an immediate power-off command according to the compensation policy to ensure that the charging station is cut off from power; at the same time, it may optionally issue points or electricity subsidies to the user's account to compensate for not immediately receiving the full service experience after payment.
[0191] If the exception type is payment failure but the power is disconnected, then execute: send a balance rollback instruction to the client account to refund the fee; optionally, trigger user behavior credit marking for subsequent risk control judgment.
[0192] Specifically, when the exception type is payment failure but the power is disconnected, the system identifies it as a transaction status misalignment. To prevent the system from mistakenly marking the user as evading payment or deducting fees incorrectly, the server executes a balance rollback instruction to restore the user's wallet balance. If such events occur frequently, the system can also mark the user's account as a behavioral risk, providing data support for subsequent risk control models.
[0193] If the exception type is payment amount discrepancy, the following actions will be taken: generate a difference adjustment instruction to correct the balance of overpayment / underpayment; at the same time, send a manual intervention request instruction to the customer service system to prompt the backend to review.
[0194] Specifically, when the anomaly type is a payment amount discrepancy, the system classifies this event as a highly sensitive accounting anomaly, which may be caused by interruption of order data synchronization between the client and the server, calculation differences, or cache corruption. Based on this, the server generates an adjustment instruction to automate error handling while ensuring user rights. If the amount discrepancy exceeds a preset threshold, a manual review work order will be automatically generated and submitted to back-end personnel for review to ensure the system's accounting compliance.
[0195] If the exception type is payment status loss or signature digest inconsistency, then: send a payment exception reminder notification to the client; mark the order as an exception dispute and initiate a manual review work order.
[0196] Specifically, when the anomaly type is inconsistent payment digest signature or missing payment status, the system cannot determine the authenticity of the transaction based on the existing data. In this case, the server sends a payment anomaly alert to the client, indicating that the current transaction status is uncertain; at the same time, the system marks the order as an "abnormal dispute status" and triggers a manual intervention process to facilitate subsequent tracing and coordination.
[0197] Through the aforementioned differentiated compensation mechanism, the system can flexibly and automatically implement corrective and user reassurance operations based on the nature and severity of the anomaly, forming a closed-loop anomaly management process.
[0198] Finally, the compensation response result is obtained, which includes information such as compensation type, execution status, and response timestamp. This result is written into the order execution status record for subsequent server-side order status synchronization and abnormal loop identification.
[0199] This invention introduces a compensation strategy matching mechanism based on anomaly type classification into the payment control process. It can implement corresponding corrective control operations according to typical scenarios such as inconsistent status during the payment process, signature digest verification failure, power execution abnormality, or payment amount error, including immediate power cut-off, balance rollback, difference correction, manual intervention, and user notification.
[0200] Compared to traditional charging control systems that rely solely on a single command to trigger state changes, this invention constructs a more flexible and fault-tolerant dynamic compensation framework. This framework not only enhances the system's ability to identify anomalies in extreme communication environments (such as Bluetooth synchronization failures or network interruptions), but also achieves intelligent judgment and feedback compensation through a combination of user profiling and decision-making models. It balances technical security, financial compliance, and user experience sustainability, making it suitable for the practical needs of highly reliable payment systems in both public and home charging station scenarios.
[0201] Example 2
[0202] Figure 6 An exemplary composition diagram of a Bluetooth-based charging pile system provided in an embodiment of the present invention is shown.
[0203] like Figure 6 As shown, the Bluetooth-based charging pile system 100 includes a target charging pile 300, a client 200, and a server 400.
[0204] Client 200 sends an order to server 400, the order including first verification information. Simultaneously, it sends the first verification information to the target charging station 300 via a pre-established Bluetooth connection 500. When sending the order to server 400, client 200 can do so via mobile communication network 600 or other wireless networks.
[0205] Server 400 is used to send order confirmation information to client 200 according to the order; the order confirmation information includes second verification information; the second verification information is generated by server 400 based on the first verification information according to preset authentication rules.
[0206] Client 200 is also used to send order execution information to target charging pile 300 via Bluetooth connection 500 based on order confirmation information; the order execution information includes second verification information.
[0207] The target charging pile 300 is used to perform consistency verification according to the first verification information and the second verification information, and to perform power-on operation if the verification is successful.
[0208] In some embodiments, before the server sends order confirmation information to the client according to the order: it sends power-on control information to the target charging pile and waits for the power-on receipt information from the target charging pile; if the power-on receipt information is abnormal, it sends order confirmation information to the client according to the order.
[0209] For more information about the target charging pile 300, client 200, and server 400, please refer to the relevant description in Example 1.
[0210] Example 3
[0211] This embodiment provides a medium storing computer program instructions. When the computer program instructions are executed by a processor, the charging pile control method based on Bluetooth communication described in any of the above embodiments is executed.
[0212] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0213] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0214] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0215] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A charging pile control method based on Bluetooth communication, wherein the method is executed by the target charging pile, characterized in that, The method includes: The client obtains and stores first verification information from the client via a pre-established Bluetooth connection; wherein, while sending an order to the server, the client sends the first verification information to the target charging pile via the pre-established Bluetooth connection, and the first verification information in the order is the same as the first verification information sent to the target charging pile; Through the Bluetooth connection, order execution information is obtained from the client. The order execution information includes second verification information. The second verification information is generated by the server based on the order sent by the client to the server according to a preset authentication rule. The order includes the first verification information. The target verification data in the second verification information is generated by the server based on the reference verification data in the first verification information, the identifier of the target charging pile, and the preset key of the target charging pile according to the preset authentication rule. The preset authentication rule includes performing digital digest processing on the reference verification data, the identifier of the target charging pile, and the preset key of the target charging pile. The server searches for the preset key corresponding to the target charging pile in the database according to the target charging pile identifier in the order. Based on the first verification information and the second verification information, a consistency verification is performed according to the preset authentication rules. If the verification passes, a power-on operation is performed according to the order execution information. The first verification information includes index data and reference verification data; the second verification information includes index data and target verification data. For the same order, the index data in the second verification information is the same as the index data in the first verification information. The index data is the message number, and the reference verification data is the order number. The step of performing consistency verification according to the first verification information and the second verification information, and in accordance with the preset authentication rules, includes: Based on the index data in the second verification information, the first verification information including the same index data is determined from the first verification information stored in the target charging pile; For the first verification information that includes the same index data, the target charging pile reads its own identifier and its own preset key, and generates a conversion result according to the preset authentication rules based on the reference verification data, its own identifier and its own preset key in the first verification information. The conversion result is compared with the target verification data in the second verification information to determine whether they are consistent.
2. The charging pile control method based on Bluetooth communication as described in claim 1, characterized in that, The order execution information is generated by the client through the following steps: Based on the order confirmation information obtained from the server, the order execution information is generated, wherein the order confirmation information includes the second verification information; the order confirmation information is generated by the server through the following steps: The order confirmation information is generated based on the order sent from the client.
3. The charging pile control method based on Bluetooth communication as described in claim 2, characterized in that, The method further includes: The server obtains power-on control information and performs a power-on operation; the power-on control information is generated by the server based on the order sent by the client to the server. Based on the power-on operation result, a power-on receipt is sent to the server; the abnormal status of the power-on receipt is used to indicate whether the server should send the order confirmation information to the client.
4. The charging pile control method based on Bluetooth communication as described in claim 1, characterized in that, The method further includes: Before obtaining the first verification information from the client, a payment capability certificate is obtained from the client via the pre-established Bluetooth connection, and the validity of the payment capability certificate is verified; the payment capability certificate is generated by the client through the following steps: Generate a public-private key pair and send the public key in the public-private key pair to the target charging pile; Get balance information and estimated charging cost; Based on the balance information and estimated charging cost, a balance commitment is generated; the balance commitment is used to send a random value to the target charging station via the Bluetooth connection. A payment capability proof is generated based on the private key in the public-private key pair, the balance commitment, and the random value obtained from the target charging pile; the payment capability proof is used by the target charging pile to verify the validity of the payment capability proof based on the public key in the public-private key pair; Receive the settlement request information sent by the client, generate order completion information, and send it to the client; When a mobile network connection is available, the order completion information and the payment capability certificate are sent to the server to control the server to perform transaction verification based on the order completion information and payment capability certificate. If the verification is successful, the order execution status and balance information of the order are updated.
5. The charging pile control method based on Bluetooth communication as described in claim 1, characterized in that, The method further includes: Before obtaining the first verification information from the client, wallet status information is obtained from the client via the pre-established Bluetooth connection; wherein, the wallet status information is generated by the client in the following manner: Based on the current time, current location, charging equipment information, and target charging pile information, the estimated charging cost is obtained through a cost estimation model; the cost estimation model is a machine learning model. Obtain balance information, and based on the balance information and the estimated charging cost, determine whether the wallet status is available or unavailable; If the wallet status information is in an available state, then a wallet lock information is sent to the client. The wallet lock information is used to control the client to lock the balance according to the estimated charging cost. Receive the settlement request information sent by the client, generate order completion information, and send it to the client; When a mobile network connection is available, the order completion information is sent to the server to control the server to perform transaction verification based on the order completion information. If the verification is successful, the order execution status and balance information of the order are updated.
6. The charging pile control method based on Bluetooth communication as described in claim 4 or 5, characterized in that, The step of receiving the settlement request information sent by the client and generating order completion information includes: Receive the settlement request information including third verification information; the third verification information includes index data and reference verification data; Based on the first verification information and the third verification information, a comparison verification is performed. If the comparison verification passes, a deduction request information is generated based on the order execution status and the settlement request information, and the deduction request information is sent to the client. The deduction request information includes the actual cost, and the deduction request information is used to control the client to settle the balance according to the actual cost. The client's settlement of the balance according to the actual cost includes: If the balance is greater than or equal to the actual fee, the actual fee is deducted from the balance, a payment message indicating successful deduction is generated, and the lock is released. If the balance is less than the actual fee, the user's identity is obtained; if the user is a regular user, payment information for the outstanding fee is generated. If the user is a new user, obtain the newly added balance information and then obtain the updated balance based on the newly added balance information; If the updated balance is greater than or equal to the actual fee, the actual fee is deducted from the updated balance to generate a successful payment message and unlock the device; otherwise, a failed payment message is generated. Obtain the payment information sent by the client; Based on the deduction request information and the payment information, an order completion information is generated and the power is turned off. At the same time, the order completion information is sent to the client. The order completion information includes the third verification information, the actual cost in the deduction request information, the payment information, and the power-off information.
7. The charging pile control method based on Bluetooth communication as described in claim 6, characterized in that, The method further includes: The mobile network connection status of multiple nearby charging stations can be obtained through wired networks or short-range communication networks. Based on the mobile network connection status of the plurality of charging piles, the preferred charging pile is determined; Sending the order completion information to the server via the mobile network connection of the preferred charging station; the sending of the order completion information to the server via the mobile network connection of the preferred charging station includes: Based on the order completion information, an order completion forwarding request is sent to the preferred charging pile via the wired network or short-range communication network at preset time intervals; the order completion forwarding request is used to control the preferred charging pile to forward the order completion information to the server via the mobile network connection; Receive and forward feedback information from the preferred charging pile; When the forwarding feedback information indicates that the forwarding was successful, the order termination forwarding request will be stopped from being sent to the preferred charging pile.
8. A charging pile system based on Bluetooth communication, the system comprising a target charging pile, a client, and a server, characterized in that, The client is used to send an order to the server. The order includes first verification information. At the same time, the client sends the first verification information to the target charging pile through a pre-established Bluetooth connection. The first verification information in the order is the same as the first verification information sent to the target charging pile. The server is used to send order confirmation information to the client according to the order; the order confirmation information includes second verification information; the second verification information is generated by the server based on the first verification information according to a preset authentication rule; the target verification data in the second verification information is generated by the server based on the reference verification data in the first verification information, the identifier of the target charging pile, and the preset key of the target charging pile according to the preset authentication rule, the preset authentication rule includes performing digital digest processing on the reference verification data, the identifier of the target charging pile, and the preset key of the target charging pile; the server is also used to search for the preset key corresponding to the target charging pile in the database according to the target charging pile identifier in the order. The client is also configured to send order execution information to the target charging pile via the Bluetooth connection based on the order confirmation information; the order execution information includes the second verification information; The target charging pile is used to perform consistency verification according to the first verification information and the second verification information, and according to the preset authentication rules. If the verification is successful, a power-on operation is performed. The first verification information includes index data and reference verification data; the second verification information includes index data and target verification data. For the same order, the index data in the second verification information is the same as the index data in the first verification information. The index data is a message number, and the reference verification data is an order number. The target charging pile is also used to store the received first verification information. The step of performing consistency verification according to the first verification information and the second verification information, and in accordance with the preset authentication rules, includes: Based on the index data in the second verification information, the first verification information including the same index data is determined from the first verification information stored in the target charging pile; For the first verification information that includes the same index data, the target charging pile reads its own identifier and its own preset key, and generates a conversion result according to the preset authentication rules based on the reference verification data, its own identifier and its own preset key in the first verification information. The conversion result is compared with the target verification data in the second verification information to determine whether they are consistent.
9. A medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, the charging pile control method based on Bluetooth communication as described in any one of claims 1-7 is performed.