Vehicle battery replacement data protection method and device and medium
By desensitizing and encrypting the vehicle battery swap order, combined with location verification and image consistency self-test, the problem of low data security during battery swap is solved, the security of data transmission and storage is achieved, and the user experience and efficiency of battery swap services are improved.
Patent Information
- Application Number
- CN202410541959.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-04-30
- Publication Date
- 2025-07-08
AI Technical Summary
During the battery swap process, multiple data needs to be transmitted and shared by each other, resulting in low security of vehicle battery swap data.
By desensitizing and encrypting the vehicle battery swap order, we ensure that sensitive information is not transmitted to other platforms, and position verification is carried out after the vehicle coordinates are compared with the battery swap station coordinates. Combined with position verification and vehicle image consistency self-test, two-factor verification is realized to ensure the security of data transmission and stored procedures.
It improves the security of vehicle battery swap data, reduces the risk of tampering of sensitive information during transmission, and improves the user experience and efficiency of battery swap services.
Smart Images

Figure CN120277700A_ABST
Abstract
Description
[0001] This application claims priority based on the invention patent application filed with the China National Intellectual Property Administration on December 29, 2023, with the application number 202311867941.0 and the invention title "A Method, Device, and Medium for Protecting Vehicle Battery-Swap Data". The entire content of the above-mentioned Chinese patent application is incorporated herein by reference. Technical Field
[0002] This application relates to the field of battery-swap technology, and in particular, to a method, device, and medium for protecting vehicle battery-swap data. Background Art
[0003] An electric vehicle battery-swap station refers to a station that centrally stores and charges a large number of batteries through a centralized charging station and provides battery replacement services for electric vehicles. The essence of a battery-swap station is to explore the full life-cycle value of power batteries and realize the redistribution of interests between enterprises and consumers. Simply put, instead of charging, electric vehicles directly meet their cruising range by replacing the battery. This method of separating the vehicle from the battery for energy replenishment is called a battery-swap station.
[0004] In the battery-swap operation business, data from multiple parties needs to be used, including some sensitive data. For example, the vehicle location, driving trajectory, start and stop times of an electric vehicle, user information, communication methods, activity range of the user side, and battery-swap records, consumption information, driving mileage of the battery-swap station side. During the battery-swap process, data from multiple parties needs to be transmitted and shared with each other, resulting in relatively low security of vehicle battery-swap data. Summary of the Invention
[0005] Embodiments of this application provide a method, device, and medium for protecting vehicle battery-swap data to solve the following technical problem: During the battery-swap process, data from multiple parties needs to be transmitted and shared with each other, resulting in relatively low security of vehicle battery-swap data.
[0006] Embodiments of this application adopt the following technical solutions:
[0007] Embodiments of this application provide a method for protecting vehicle battery-swap data. The method includes: performing desensitization processing on a vehicle battery-swap order to obtain desensitized vehicle battery-swap information; encrypting and sending the desensitized vehicle battery-swap information to the vehicle manufacturer platform so that the vehicle manufacturer platform can obtain the vehicle coordinates and battery-swap station coordinates based on the desensitized vehicle battery-swap information and perform position verification on the vehicle coordinates and battery-swap station coordinates; obtaining the position verification result sent by the vehicle manufacturer platform and determining whether the vehicle battery-swap order is legal based on the position verification result; and encrypting the vehicle battery-swap order when it is determined that the vehicle battery-swap order is legal and saving the encrypted vehicle battery-swap order to a preset order database.
[0008] In the embodiments of the present application, by desensitizing the vehicle battery swapping order, it is possible to ensure that sensitive information will not be transmitted to other platforms, thereby ensuring the security of vehicle battery swapping data. In addition, by encrypting the transmitted battery swapping data and encrypting and storing the vehicle battery swapping order, the security of the data transmission process and the storage process can be ensured.
[0009] In one implementation of the present application, when it is determined that the vehicle battery swapping order is legal, based on the location verification result and the vehicle battery swapping order, the battery swapping waiting duration is determined; the battery swapping waiting duration is sent to the corresponding vehicle owner user, and after receiving the battery swapping instruction from the corresponding vehicle owner user, the vehicle battery swapping order is encrypted, and the encrypted vehicle battery swapping order is saved to the preset order database; or, after desensitizing the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information, the method further includes: generating a vehicle battery swapping order based on the captured vehicle image.
[0010] In the embodiments of the present application, by sending the battery swapping waiting duration to the vehicle owner user in a timely manner, the user can plan the itinerary in advance, improving the user experience. In addition, by encrypting the vehicle battery swapping order and saving it to the preset order database, data leakage or tampering can be prevented, protecting the privacy and information security of the vehicle owner user.
[0011] In one implementation of the present application, desensitizing the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information specifically includes: obtaining the vehicle battery swapping order, determining the user name, license plate number, vehicle identification code, and vehicle station entry information in the vehicle battery swapping order; desensitizing the user name and license plate number; generating desensitized vehicle information based on the vehicle identification code; and generating desensitized station entry information based on the vehicle station entry information; wherein the vehicle station entry information at least includes the vehicle station entry time and the coordinates of the battery swapping station.
[0012] In the embodiments of the present application, by desensitizing the vehicle battery swapping order, the user information and license plate number are not transmitted between platforms, thereby reducing the risk of being tampered with during the transmission process.
[0013] In one implementation of the present application, enabling the vehicle manufacturer platform to obtain the vehicle coordinates and the coordinates of the battery swapping station based on the desensitized vehicle battery swapping information and perform location verification on the vehicle coordinates and the coordinates of the battery swapping station specifically includes: enabling the vehicle manufacturer platform to obtain the vehicle coordinates based on the desensitized vehicle information; enabling the vehicle manufacturer platform to obtain the coordinates of the battery swapping station based on the desensitized station entry information; enabling the vehicle manufacturer platform to compare the vehicle coordinates with the coordinates of the battery swapping station to obtain the actual distance between the vehicle coordinates and the coordinates of the battery swapping station; comparing the actual distance with the preset distance threshold, and based on the comparison result, performing location verification.
[0014] In the embodiment of the present application, the vehicle coordinates are compared with the coordinates of the battery swapping station to determine the distance between the two. If the distance between the two is too large, it indicates that the captured vehicle image is a mis-shot by the system and is not a vehicle for battery swapping. If the distance between the two is within the preset distance threshold, it is determined as a vehicle for battery swapping, thereby realizing the screening of the captured vehicle images.
[0015] In one implementation manner of the present application, the actual distance is compared with the preset distance threshold, and based on the comparison result, position verification is performed, which specifically includes: when the actual distance is greater than the preset distance threshold, determining that the vehicle is not a vehicle for battery swapping and determining that the position verification result fails; when the actual distance is not greater than the preset distance threshold, determining that the vehicle is a vehicle for battery swapping and determining that the position verification result passes.
[0016] After the vehicle coordinates are compared with the coordinates of the battery swapping station in the embodiment of the present application, the verification result is sent to the current battery swapping platform, and the respective data is saved on their respective platforms, and only the verification result is returned according to the verification logic. The basic data does not participate in transmission and sharing, thereby reducing the probability of being attacked during data transmission and improving the security of vehicle battery swapping data.
[0017] In one implementation manner of the present application, the position verification result sent by the vehicle factory platform is obtained, and based on the position verification result, it is determined whether the vehicle battery swapping order is legal, which specifically includes: when the position verification result fails, performing a consistency self-check on the generated vehicle battery swapping order based on the captured vehicle image. When the self-check result is consistent, determining that the vehicle battery swapping order is legal; when the self-check result is inconsistent, determining that the vehicle battery swapping order is illegal; when the position verification result passes, determining that the vehicle battery swapping order is legal.
[0018] The embodiment of the present application realizes double verification of the vehicle battery swapping order by combining position verification and vehicle image consistency self-check, improves the accuracy of verification, and reduces errors or misjudgments that may be caused by a single verification method.
[0019] In one implementation manner of the present application, the desensitized vehicle battery swapping information is encrypted and sent to the vehicle factory platform, which specifically includes: generating a shared key based on the preset key exchange algorithm; encrypting the desensitized vehicle battery swapping information with the shared key, and signing the desensitized vehicle battery swapping information with the private key, and sending the signed desensitized vehicle battery swapping information to the vehicle factory platform; verifying the signature corresponding to the desensitized vehicle battery swapping information with the public key of the vehicle factory platform; when the verification passes, decrypting the desensitized vehicle battery swapping information based on the private key of the vehicle factory platform to obtain the desensitized vehicle battery swapping information.
[0020] In the embodiments of the present application, by encrypting the vehicle battery swapping information and performing digital signature, the security of the vehicle battery swapping information during the transmission process can be ensured. At the vehicle factory platform, by decrypting and verifying the vehicle battery swapping information, the risk of the vehicle battery swapping information being stolen or tampered with can be reduced.
[0021] In an implementation manner of the present application, generating a vehicle battery swapping order based on the captured vehicle image includes: determining the battery swapping priority based on the captured vehicle image, so as to generate a vehicle battery swapping order based on the battery swapping priority; preferably, determining the battery swapping priority based on the captured vehicle image, so as to generate a vehicle battery swapping order based on the battery swapping priority, specifically including: obtaining license plate characters according to the captured vehicle image, so as to obtain the license plate number based on the license plate characters; performing information matching in the pre-set vehicle owner information database according to the license plate number, so as to determine the vehicle owner information corresponding to the license plate number; wherein, the pre-set vehicle owner information database includes multiple license plate numbers, and also includes the license plate numbers corresponding to multiple vehicle owner information respectively; in the pre-set order database, determining the number of battery swapping orders corresponding to the vehicle owner information, so as to determine the current battery swapping priority based on the number of battery swapping orders; determining a pre-set order template based on the battery swapping priority, and filling the pre-set order template based on the vehicle owner information, vehicle information and battery swapping station information, so as to generate a vehicle battery swapping order.
[0022] In the embodiments of the present application, by determining the battery swapping priority according to the number of battery swapping orders corresponding to the vehicle owner information, the battery swapping arrangement for users with a large number of battery swapping orders can be prioritized, so as to reduce the waiting time for users to queue for battery swapping and improve the user experience. Secondly, different order templates are determined through different priorities, so as to improve the generation speed of vehicle battery swapping orders.
[0023] In an implementation manner of the present application, after obtaining the position verification result sent by the vehicle factory platform, the method further includes: determining the battery swapping waiting duration based on the position verification result and the vehicle battery swapping order; preferably, determining the battery swapping waiting duration based on the position verification result and the vehicle battery swapping order, specifically including: in the case where the verification result is verification passed, determining the corresponding battery swapping queue based on the battery swapping priority, and determining the vehicle battery swapping serial number based on the battery swapping queue; determining the queuing vehicle information based on the battery swapping serial number, and querying in the historical battery swapping database according to the queuing vehicle information, so as to determine the reference battery swapping duration corresponding to each queuing vehicle; wherein, the historical battery swapping database includes multiple battery swapping vehicle information, and also includes the reference battery swapping duration corresponding to multiple battery swapping vehicle information respectively; determining the battery swapping waiting duration based on the battery swapping queue and the queuing duration corresponding to each queuing vehicle.
[0024] Based on the battery swapping priority, the embodiments of the present application determine the queuing serial number of the battery swapping vehicle, and thus calculate the battery swapping waiting duration of the battery swapping vehicle, and can send the battery swapping waiting duration to the vehicle user, so as to remind each user of the battery swapping duration. At the same time, it also determines whether the current battery swapping task volume is saturated according to the queuing duration, so as to effectively monitor the workload of the battery swapping station.
[0025] In an implementation manner of the present application, encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to the preset order database, which specifically includes: adding a digital signature to the encrypted vehicle battery swapping order based on the preset private key; in the preset order database, determining the vehicle owner information corresponding to the encrypted vehicle battery swapping order, and binding the encrypted vehicle battery swapping order with the vehicle owner information, so as to save the digital signature and the vehicle battery swapping order to the preset order database; after saving the encrypted vehicle battery swapping order to the preset order database, the method further includes: performing a log access detection on the preset order database, and issuing an alarm when unauthorized access is detected.
[0026] The embodiments of the present application ensure the security of the vehicle battery swapping order during the storage process by encrypting the vehicle battery swapping order. And, by binding the encrypted vehicle battery swapping order with the vehicle owner information, the speed of matching the vehicle owner information can be improved. In addition, by performing a log access detection on the preset order database, the security of the database can be detected, and an alarm can be issued in a timely manner when risks are found.
[0027] The embodiments of the present application provide a vehicle battery swapping data protection device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can: desensitize the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information; encrypt and send the desensitized vehicle battery swapping information to the vehicle factory platform, so that the vehicle factory platform can obtain the vehicle coordinates and the battery swapping station coordinates based on the desensitized vehicle battery swapping information, and perform position verification on the vehicle coordinates and the battery swapping station coordinates; obtain the position verification result sent by the vehicle factory platform, and determine whether the vehicle battery swapping order is legal based on the position verification result; when it is determined that the vehicle battery swapping order is legal, encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to the preset order database.
[0028] A non-volatile computer storage medium provided by an embodiment of the present application stores computer-executable instructions, which are set to: desensitize a vehicle battery swapping order to obtain desensitized vehicle battery swapping information; encrypt and send the desensitized vehicle battery swapping information to a vehicle factory platform so that the vehicle factory platform can obtain vehicle coordinates and swapping station coordinates based on the desensitized vehicle battery swapping information and perform position verification on the vehicle coordinates and the swapping station coordinates; obtain the position verification result sent by the vehicle factory platform and determine whether the vehicle battery swapping order is legal based on the position verification result; and in the case of determining that the vehicle battery swapping order is legal, encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to a preset order database.
[0029] At least one of the technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: By desensitizing the vehicle battery swapping order, the embodiments of the present application can ensure that sensitive information will not be transmitted to other platforms, and the respective data is stored on their respective platforms, and only the verification result is returned according to the verification logic, and the basic data does not participate in transmission and sharing, thereby ensuring the security of vehicle battery swapping data. In addition, by encrypting the transmitted battery swapping data and encrypting and storing the vehicle battery swapping order, the security of the data transmission process and the storage process can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts. In the attached
[0031] In the figure:
[0032] Figure 1 It is the first flow chart of a vehicle battery swapping data protection method provided by an embodiment of the present application;
[0033] Figure 2 It is the second flow chart of a vehicle battery swapping data protection method provided by an embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of a vehicle battery swapping data protection process provided by an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of the structure of a vehicle battery swapping data protection device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0036] An embodiment of the present application provides a vehicle battery swapping data protection method, device and medium.
[0037] To enable those skilled in the art to better understand the technical solutions in this application, the following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0038] The following will detail the technical solutions proposed in the embodiments of the present invention through the accompanying drawings.
[0039] Figure 1 This is the first flowchart of a vehicle battery swapping data protection method provided for the embodiments of this application. As Figure 1 shown, the vehicle battery swapping data protection method includes the following steps:
[0040] S101. Perform desensitization processing on the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information.
[0041] In an embodiment of this application, when performing desensitization processing on the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information, it further includes: generating a vehicle battery swapping order based on the captured vehicle image. Specifically, based on the captured vehicle image, determine the battery swapping priority to generate a vehicle battery swapping order based on the battery swapping priority. Specifically, according to the captured vehicle image, obtain the license plate characters, and based on the license plate characters, obtain the license plate number. According to the license plate number, perform information matching in the pre-set vehicle owner information database to determine the vehicle owner information corresponding to the license plate number; where the pre-set vehicle owner information database includes multiple license plate numbers and also includes the license plate numbers corresponding to multiple vehicle owner information respectively. In the pre-set order database, determine the number of battery swapping orders corresponding to the vehicle owner information, and based on the number of battery swapping orders, determine the current battery swapping priority. Based on the battery swapping priority, determine the pre-set order template, and fill the pre-set order template based on the vehicle owner information, vehicle information, and battery swapping station information to generate a vehicle battery swapping order.
[0042] Specifically, through the monitoring and photographing device set in the battery swapping station, photograph the vehicle entering the battery swapping station, and upload the captured vehicle image to the battery swapping station platform. On the battery swapping station platform, a license plate recognition algorithm, such as a convolutional neural network model based on deep learning, can be used to recognize the license plate in the vehicle image. Recognize the license plate characters in the vehicle image through the license plate recognition algorithm.
[0043] For example, a character recognition algorithm, such as a method based on template matching, feature extraction, and machine learning, can be used to recognize the characters in the license plate. The recognized license plate characters can be combined to obtain the vehicle's license plate number.
[0044] Further, an embodiment of the present application is provided with a preset vehicle owner information database, which includes multiple license plate numbers, and also includes the vehicle owner information corresponding to each of the multiple license plate numbers. Query in the preset vehicle owner information database according to the license plate number in the acquired vehicle image to determine the vehicle owner information corresponding to the license plate number.
[0045] Further, according to the queried vehicle owner information, query the historical battery swapping order quantity corresponding to the vehicle owner information in the preset order database. The preset order database includes multiple vehicle owner information, and also includes the battery swapping order information corresponding to each of the multiple vehicle owner information.
[0046] For example, if the historical battery swapping order quantity corresponding to the current vehicle owner information is large, the priority corresponding to the current vehicle owner information is high, and the current vehicle owner can be preferentially swapped with the battery to reduce the waiting time for the current vehicle owner to swap the battery and improve the vehicle battery swapping experience of the user.
[0047] Further, different priorities correspond to different preset order templates. Determine the corresponding preset order template according to the priority corresponding to the current vehicle owner information. Fill the acquired vehicle owner information, vehicle information such as license plate number, and swapping station information into the preset order template to generate a vehicle battery swapping order.
[0048] Different priorities correspond to different preset order templates. Through different preset order templates, the priorities of each order can be clearly seen, so as to process the priorities of the orders.
[0049] In an embodiment of the present application, obtain a vehicle battery swapping order, and determine the user name, license plate number, vehicle identification code, and vehicle entry station information in the vehicle battery swapping order. Perform desensitization processing on the user name and license plate number. Generate desensitized vehicle information based on the vehicle identification code; and generate desensitized entry station information based on the vehicle entry station information; wherein the vehicle entry station information includes at least the vehicle entry time and the swapping station coordinates.
[0050] Specifically, in the swapping station platform, perform content recognition on the acquired vehicle battery swapping order to identify the user name, license plate number, vehicle identification code (VIN code), and vehicle entry station information in the order. User information includes information such as the user's name and contact information. Therefore, the transmission of user information should be reduced to reduce the risk of user information being tampered with or leaked. In addition, the license plate number is used to verify the vehicle. If the license plate number is tampered with during the transmission process, a problem of incorrect matching of the battery swapping vehicle will occur. Therefore, the license plate number also needs to be protected.
[0051] Based on this, the embodiments of the present application perform desensitization processing on the obtained user name and license plate number, generate desensitized vehicle information based on the vehicle identification code, and generate desensitized inbound information based on the vehicle inbound information, thereby protecting the security of user information and vehicle information.
[0052] S102. Encrypt and send the desensitized vehicle battery swapping information to the vehicle factory platform, so that the vehicle factory platform obtains the vehicle coordinates and the battery swapping station coordinates based on the desensitized vehicle battery swapping information, and performs position verification on the vehicle coordinates and the battery swapping station coordinates.
[0053] In an embodiment of the present application, a shared key is generated based on a preset key exchange algorithm. The desensitized vehicle battery swapping information is encrypted with the shared key, and the desensitized vehicle battery swapping information is signed with a private key, and the signed desensitized vehicle battery swapping information is sent to the vehicle factory platform. The signature corresponding to the desensitized vehicle battery swapping information is verified with the public key of the vehicle factory platform. In the case of successful verification, the desensitized vehicle battery swapping information is decrypted with the private key of the vehicle factory platform to obtain the desensitized vehicle battery swapping information.
[0054] Specifically, the embodiments of the present application use a secure and reliable symmetric encryption algorithm, such as AES (Advanced Encryption Standard), to encrypt the vehicle battery swapping information. The symmetric encryption algorithm uses the same key for encryption and decryption, and the security of the key needs to be ensured during the transmission process. The battery swapping station platform and the vehicle factory platform need to share a key, and a key exchange algorithm can be used to generate a shared key on a secure channel, and the generated shared key is used to encrypt the desensitized vehicle battery swapping information to ensure the integrity and confidentiality of the information.
[0055] Furthermore, in order to ensure the authenticity and consistency of the information, a digital signature is added to the encrypted information. The battery swapping station platform signs the information with a private key, and the vehicle factory platform verifies the validity of the signature with a public key. In the case of successful verification, the vehicle factory platform decrypts the desensitized vehicle battery swapping information according to the preset private key to obtain the desensitized vehicle battery swapping information.
[0056] The embodiments of the present application can ensure the security of the vehicle battery swapping information during the transmission process by encrypting the vehicle battery swapping information and performing digital signature. At the vehicle factory platform, the risk of the vehicle battery swapping information being stolen or tampered with is reduced by decrypting and verifying the vehicle battery swapping information.
[0057] In an embodiment of the present application, the vehicle factory platform obtains the vehicle coordinates based on the desensitized vehicle information. The vehicle factory platform obtains the coordinates of the battery swapping station based on the desensitized inbound information. The vehicle factory platform compares the vehicle coordinates with the coordinates of the battery swapping station to obtain the actual distance between the vehicle coordinates and the coordinates of the battery swapping station. The actual distance is compared with a preset distance threshold, and based on the comparison result, position verification is performed.
[0058] Specifically, in the vehicle factory platform, according to the obtained desensitized vehicle information, the vehicle identification code can be obtained, and based on this vehicle identification code, the coordinates of the vehicle can be queried. And according to the obtained desensitized inbound information, the information of the battery swapping station where the current vehicle performs battery swapping can be determined, so as to determine the coordinates of the battery swapping station.
[0059] In an embodiment of the present application, when the actual distance is greater than the preset distance threshold, it is determined that the vehicle is a non-battery-swapping vehicle, and the position verification result is determined to be verification failed. When the actual distance is not greater than the preset distance threshold, it is determined that the vehicle is a battery-swapping vehicle, and the position verification result is determined to be verification passed.
[0060] Further, the determined vehicle coordinates are compared with the coordinates of the battery swapping station, that is, the distance between the two is determined. If the distance between the two is relatively close, that is, less than the preset distance threshold, it means that the current vehicle is near the battery swapping station and is a battery-swapping vehicle. If the distance between the two is large, that is, not less than the preset distance threshold, it means that the current vehicle is not near the battery swapping station, and the vehicle may be a vehicle misphotographed or misidentified by the photographing device. According to the comparison result, the verification result is sent to the battery swapping station platform.
[0061] For example, the vehicle factory platform queries the position of the vehicle coordinates, compares them with the coordinates of the battery swapping station, and returns the verification result to the battery swapping station platform. "1" means that the vehicle is near the station and a battery swapping behavior may occur, and "0" means that the vehicle is not near the station and may be a vehicle misidentified by the photographing device.
[0062] After performing distance verification, the vehicle factory platform in the embodiment of the present application only sends the verification result to the battery swapping station platform through a preset identifier. For data such as the position information of the vehicle, it is stored in the vehicle factory platform, so that both the transmission of the distance verification result can be realized and the basic data can be ensured not to participate in the transmission process, ensuring the security of the battery swapping data.
[0063] S103. Obtain the position verification result sent by the vehicle factory platform, and determine whether the vehicle battery swapping order is legal based on the position verification result.
[0064] In an embodiment of the present application, when the location verification result fails the verification, the generated vehicle battery swapping order is self-checked for consistency based on the captured vehicle image. When the self-check result is consistent, it is determined that the vehicle battery swapping order is legal; when the self-check result is inconsistent, it is determined that the vehicle battery swapping order is illegal. When the location verification result passes the verification, it is determined that the vehicle battery swapping order is legal.
[0065] Specifically, if the location verification result received by the battery swapping station platform passes the verification, that is, after verification by the vehicle factory platform, it is determined that the distance between the vehicle and the battery swapping station is relatively close, then it is determined that the vehicle battery swapping order is legal.
[0066] Further, if the location verification result received by the battery swapping station platform fails the verification, that is, after verification by the vehicle factory platform, it is determined that the distance between the vehicle and the battery swapping station is relatively far. At this time, the battery swapping station platform performs a secondary detection, that is, a consistency self-check. The process of the consistency self-check is as follows: Compare the captured vehicle image with the vehicle information provided in the order. For example, key information such as vehicle model, color, license plate number, etc. can be checked. If the captured vehicle image is completely consistent with the information in the order, then the self-check result is consistent, and it can be determined that the vehicle battery swapping order is legal. If the self-check result is inconsistent, that is, there is one or more pieces of information in the captured vehicle image that do not match the information in the order, such as inconsistent vehicle color or license plate information, then it can be determined that the vehicle battery swapping order is illegal.
[0067] The embodiment of the present application can, on the one hand, ensure the accuracy of the vehicle battery swapping order through a dual verification method, and at the same time improve the efficiency of the battery swapping service and the user experience, effectively preventing order fraud and misoperations.
[0068] After obtaining the location verification result sent by the vehicle factory platform, based on the location verification result and the vehicle battery swapping order, the battery swapping waiting duration is determined. In an embodiment of the present application, when the verification result passes the verification, based on the battery swapping priority, the corresponding battery swapping queue is determined, and the vehicle battery swapping serial number is determined based on the battery swapping queue. The queuing vehicle information is determined based on the battery swapping serial number, and the historical battery swapping database is queried according to the queuing vehicle information to determine the reference battery swapping duration corresponding to each queuing vehicle; where the historical battery swapping database includes multiple battery swapping vehicle information, and also includes the reference battery swapping duration corresponding to multiple battery swapping vehicle information respectively. Based on the battery swapping queue and the reference battery swapping duration corresponding to each queuing vehicle, the battery swapping waiting duration is determined.
[0069] Specifically, the embodiment of the present application is provided with a historical battery replacement database, which includes multiple battery replacement vehicle information, such as the vehicle model information of the battery replacement vehicle, and also includes the reference battery replacement duration corresponding to different battery replacement vehicle information. For example, due to different vehicle models, the battery replacement complexity may be different, so the required battery replacement duration is different.
[0070] Further, after receiving the verification result sent by the vehicle factory platform, if the verification result is that the vehicle is near the battery replacement station, it is determined that the vehicle is a battery replacement vehicle. Determine the vehicle battery replacement order corresponding to the vehicle, and determine the battery replacement priority of the current vehicle according to the type of the vehicle battery replacement order. Different queuing queues are determined based on different priorities.
[0071] For example, if the priority of the current vehicle is the highest, determine the queue where the battery replacement vehicles with the same priority as the current vehicle are located, and arrange the current vehicle to queue in this queue. If the priority is high, the number of queuing vehicles in the queue is small, and the queue with a high priority is preferentially used for battery replacement.
[0072] Further, determine the vehicle information of the vehicles queuing in the current battery replacement queue, and determine the vehicle battery replacement serial number corresponding to the current vehicle. According to the vehicle battery replacement serial number, determine the number of battery replacement vehicles in front of the current vehicle. Query the reference battery replacement duration corresponding to the vehicles queuing in the historical battery replacement database, that is, the battery replacement duration required for each vehicle in the queue. Add up the reference battery replacement durations corresponding to the vehicles in the queue to obtain the battery replacement waiting duration corresponding to the current vehicle.
[0073] The embodiment of the present application calculates the battery replacement waiting duration of the battery replacement vehicle by determining the queuing serial number of the battery replacement vehicle, and can send the battery replacement waiting duration to the vehicle user, so as to remind each user of the battery replacement duration. At the same time, it also determines whether the current battery replacement task volume is saturated according to the queuing duration, so as to effectively monitor the workload of the battery replacement station.
[0074] S104. When it is determined that the vehicle battery replacement order is legal, encrypt the vehicle battery replacement order and save the encrypted vehicle battery replacement order to the preset order database.
[0075] In an embodiment of the present application, when it is determined that the vehicle battery replacement order is legal, based on the location verification result and the vehicle battery replacement order, determine the battery replacement waiting duration. Send the battery replacement waiting duration to the corresponding vehicle owner user, and after receiving the battery replacement instruction from the corresponding vehicle owner user, encrypt the vehicle battery replacement order and save the encrypted vehicle battery replacement order to the preset order database.
[0076] Specifically, if the vehicle battery swapping order is legal, based on the battery swapping queue and the reference battery swapping duration corresponding to each queuing vehicle, the battery swapping waiting duration is determined. After determining the battery swapping waiting duration, the battery swapping waiting duration is sent to the corresponding user to facilitate the user's decision on whether to perform battery swapping according to the waiting duration. If the user agrees to perform battery swapping, an instruction to agree to battery swapping is sent to the battery swapping station platform, and the battery swapping station performs vehicle battery swapping according to the received battery swapping instruction. In addition, the battery swapping station platform encrypts the vehicle battery swapping order, for example, encrypts the order number, vehicle information, battery swapping time, battery swapping location, user information, etc., and saves the encrypted vehicle battery swapping order to a preset order database.
[0077] In an embodiment of the present application, a digital signature is added to the encrypted vehicle battery swapping order based on a preset private key. In the preset order database, the vehicle owner information corresponding to the encrypted vehicle battery swapping order is determined, and the encrypted vehicle battery swapping order is bound to the vehicle owner information, so as to save the digital signature and the vehicle battery swapping order to the preset order database. After saving the encrypted vehicle battery swapping order to the preset order database, the method further includes detecting log access to the preset order database and issuing an alarm in the case of detecting unauthorized access.
[0078] Specifically, in the embodiment of the present application, the vehicle battery swapping order is encrypted by a symmetric encryption algorithm or an asymmetric encryption algorithm. If the symmetric encryption algorithm is selected, the same key is used for encryption and decryption. If the asymmetric encryption algorithm is selected, the public key is used for encryption and the private key is used for decryption. According to the selected encryption algorithm, a key pair is generated. If the symmetric encryption algorithm is used, a key needs to be generated. If the asymmetric encryption algorithm is used, a pair of public and private keys needs to be generated.
[0079] Further, the vehicle battery swapping order data is encrypted. If the symmetric encryption algorithm is used, the generated key is used to encrypt the order data. If the asymmetric encryption algorithm is used, the public key is used to encrypt the order data. To ensure the integrity and authenticity of the order data, a digital signature is added to the encrypted order data. The order data can be signed with the private key and then the signature is saved together with the order data.
[0080] Further, in the preset order database, the vehicle owner information corresponding to the encrypted vehicle battery swapping order is queried, and then the current encrypted vehicle battery swapping order is bound to the vehicle owner information, and the encrypted data is saved to the preset order database. By binding the vehicle owner information to the order data, the number of orders corresponding to the vehicle owner can be quickly determined by looking up the vehicle owner information, so as to quickly perform battery swapping priority division.
[0081] Furthermore, access to encrypted data can be restricted through key management and access control, and logging and monitoring mechanisms can be established to detect and prevent any unauthorized access or modification, so as to ensure the security of the data of battery swapping vehicles.
[0082] Figure 2 This is the second flowchart of a vehicle battery swapping data protection method provided by an embodiment of the present application. As Figure 2 shown, the vehicle battery swapping data protection method includes the following steps:
[0083] S201. Based on the captured vehicle images, determine the battery swapping priority, and generate a vehicle battery swapping order based on the battery swapping priority.
[0084] S202. Desensitize the vehicle battery swapping order to obtain the desensitized vehicle battery swapping information.
[0085] S203. Encrypt and send the desensitized vehicle battery swapping information to the vehicle factory platform, so that the vehicle factory platform can obtain the vehicle coordinates and the battery swapping station coordinates based on the desensitized vehicle battery swapping information, and verify the positions of the vehicle coordinates and the battery swapping station coordinates.
[0086] S204. Obtain the position verification result sent by the vehicle factory platform, and determine the battery swapping waiting duration based on the position verification result and the vehicle battery swapping order.
[0087] S205. Send the battery swapping waiting duration to the corresponding vehicle owner user, and after receiving the battery swapping instruction from the corresponding vehicle owner user, encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to the preset order database.
[0088] Figure 3 This is a schematic diagram of the vehicle battery swapping data protection process provided by an embodiment of the present application. As Figure 3 shown, after the battery swapping station platform obtains the battery swapping order containing user data, it desensitizes the battery swapping order, and sends the obtained vehicle information and the station entry information to the vehicle factory platform. The vehicle factory platform determines the vehicle coordinates according to the obtained vehicle information, determines the battery swapping station coordinates according to the obtained station entry information, compares the vehicle coordinates with the battery swapping station coordinates. If the distance between the vehicle coordinates and the battery swapping station coordinates is relatively close, it is determined that the battery swapping behavior occurs. If the distance between the vehicle coordinates and the battery swapping station coordinates is relatively far, it is determined that the battery swapping behavior does not occur. The vehicle factory platform sends the battery swapping verification result to the charging station platform, and the charging station platform determines the association relationship between the vehicle and the user according to the obtained battery swapping verification result to determine the battery swapping order and perform battery swapping.
[0089] Figure 4 This is a schematic diagram of the structure of a vehicle battery swapping data protection device provided by an embodiment of the present application. As Figure 4As shown, a vehicle battery swapping data protection device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: desensitize a vehicle battery swapping order to obtain desensitized vehicle battery swapping information; encrypt and send the desensitized vehicle battery swapping information to a vehicle factory platform so that the vehicle factory platform can obtain vehicle coordinates and battery swapping station coordinates based on the desensitized vehicle battery swapping information and perform position verification on the vehicle coordinates and the battery swapping station coordinates; obtain the position verification result sent by the vehicle factory platform and determine whether the vehicle battery swapping order is legal based on the position verification result; and encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to a preset order database when it is determined that the vehicle battery swapping order is legal.
[0090] A non-volatile computer storage medium provided by an embodiment of the present application stores computer-executable instructions, and the computer-executable instructions are set to: desensitize a vehicle battery swapping order to obtain desensitized vehicle battery swapping information; encrypt and send the desensitized vehicle battery swapping information to a vehicle factory platform so that the vehicle factory platform can obtain vehicle coordinates and battery swapping station coordinates based on the desensitized vehicle battery swapping information and perform position verification on the vehicle coordinates and the battery swapping station coordinates; obtain the position verification result sent by the vehicle factory platform and determine whether the vehicle battery swapping order is legal based on the position verification result; and encrypt the vehicle battery swapping order and save the encrypted vehicle battery swapping order to a preset order database when it is determined that the vehicle battery swapping order is legal.
[0091] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or one or more of the blocks
[0092] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one or more of the flows Figure 1 or one or more of the blocks
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 steps of the functions specified in one block or multiple blocks.
[0094] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory. The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
[0095] Computer-readable media includes permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0096] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0097] This specification can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0098] Each embodiment in this application is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of devices, equipment, and non-volatile computer storage media, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the corresponding parts of the method embodiments for the relevant content.
[0099] The above description is only for the embodiments of this application and is not intended to limit this application. For those skilled in the art, various changes and modifications can be made to the embodiments of this application. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for protecting vehicle battery swapping data, characterized in that The method includes: Performing desensitization processing on the vehicle battery swapping order to obtain desensitized vehicle battery swapping information; Encrypting and sending the desensitized vehicle battery swapping information to the vehicle factory platform, so that the vehicle factory platform obtains the vehicle coordinates and the battery swapping station coordinates based on the desensitized vehicle battery swapping information, and performs position verification on the vehicle coordinates and the battery swapping station coordinates; Obtaining the position verification result sent by the vehicle factory platform, and determining whether the vehicle battery swapping order is legal based on the position verification result; When it is determined that the vehicle battery swapping order is legal, encrypting the vehicle battery swapping order and saving the encrypted vehicle battery swapping order to a preset order database.
2. The vehicle battery swapping data protection method according to claim 1, wherein, The method further includes: When it is determined that the vehicle battery swapping order is legal, determining the battery swapping waiting duration based on the position verification result and the vehicle battery swapping order; Sending the battery swapping waiting duration to the corresponding vehicle owner user, and after receiving the battery swapping instruction from the corresponding vehicle owner user, encrypting the vehicle battery swapping order and saving the encrypted vehicle battery swapping order to a preset order database; Or, when performing desensitization processing on the vehicle battery swapping order to obtain desensitized vehicle battery swapping information, the method further includes: Generating a vehicle battery swapping order based on the captured vehicle image.
3. The vehicle battery swapping data protection method according to claim 1, characterized in that, The performing desensitization processing on the vehicle battery swapping order to obtain desensitized vehicle battery swapping information specifically includes: Obtaining the vehicle battery swapping order, and determining the user name, license plate number, vehicle identification code, and vehicle entry information in the vehicle battery swapping order; Performing desensitization processing on the user name and the license plate number; Generating desensitized vehicle information based on the vehicle identification code; and Generating desensitized entry information based on the vehicle entry information; wherein the vehicle entry information at least includes the vehicle entry time and the battery swapping station coordinates.
4. A method for protecting vehicle battery swapping data according to claim 3, wherein, The making the vehicle factory platform obtain the vehicle coordinates and the battery swapping station coordinates based on the desensitized vehicle battery swapping information, and performing position verification on the vehicle coordinates and the battery swapping station coordinates specifically includes: Making the vehicle factory platform obtain the vehicle coordinates based on the desensitized vehicle information; Making the vehicle factory platform obtain the battery swapping station coordinates based on the desensitized entry information; Making the vehicle factory platform compare the vehicle coordinates with the battery swapping station coordinates to obtain the actual distance between the vehicle coordinates and the battery swapping station coordinates, compare the actual distance with a preset distance threshold, and perform position verification based on the comparison result.
5. The vehicle battery swapping data protection method according to claim 4, wherein The comparing the actual distance with a preset distance threshold and performing position verification based on the comparison result specifically includes: When the actual distance is greater than the preset distance threshold, determining that the vehicle is a non-battery swapping vehicle and determining that the position verification result is verification failed; When the actual distance is not greater than the preset distance threshold, determining that the vehicle is a battery swapping vehicle and determining that the position verification result is verification passed.
6. The vehicle power replacement data protection method according to claim 1, wherein The obtaining the position verification result sent by the vehicle factory platform, and determining whether the vehicle battery swapping order is legal based on the position verification result specifically includes: In the case where the location verification result is a failure, perform a consistency self-check on the generated vehicle battery swapping order based on the captured vehicle image. In the case where the self-check result is consistent, determine that the vehicle battery swapping order is legal. In the case where the self-check result is inconsistent, determine that the vehicle battery swapping order is illegal; In the case where the location verification result is a pass, determine that the vehicle battery swapping order is legal; Alternatively, the encrypting and sending the desensitized vehicle battery swapping information to the vehicle factory platform specifically includes: Generating a shared key based on a preset key exchange algorithm; Encrypting the desensitized vehicle battery swapping information with the shared key, and signing the desensitized vehicle battery swapping information with a private key, and sending the signed desensitized vehicle battery swapping information to the vehicle factory platform; Verifying the signature corresponding to the desensitized vehicle battery swapping information with the public key of the vehicle factory platform; In the case where the verification passes, decrypt the desensitized vehicle battery swapping information with the private key of the vehicle factory platform to obtain the desensitized vehicle battery swapping information.
7. A method for protecting vehicle battery swapping data according to claim 2, characterized in that, The generating a vehicle battery swapping order based on the captured vehicle image includes: determining a battery swapping priority based on the captured vehicle image, and generating a vehicle battery swapping order based on the battery swapping priority; Preferably, the determining a battery swapping priority based on the captured vehicle image and generating a vehicle battery swapping order based on the battery swapping priority specifically includes: Obtaining license plate characters according to the captured vehicle image, and obtaining a license plate number based on the license plate characters; Performing information matching in a preset vehicle owner information database according to the license plate number to determine the vehicle owner information corresponding to the license plate number; wherein the preset vehicle owner information database includes multiple license plate numbers, and also includes the license plate numbers corresponding to the multiple vehicle owner information respectively; In a preset order database, determining the number of battery swapping orders corresponding to the vehicle owner information, and determining the current battery swapping priority based on the number of battery swapping orders; Determining a preset order template based on the battery swapping priority, and filling the preset order template based on the vehicle owner information, vehicle information, and battery swapping station information to generate the vehicle battery swapping order.
8. A method for protecting vehicle battery swapping data according to claim 1, characterized in that After obtaining the location verification result sent by the vehicle factory platform, the method further includes: determining a battery swapping waiting duration based on the location verification result and the vehicle battery swapping order; Preferably, determining a battery swapping waiting duration based on the location verification result and the vehicle battery swapping order specifically includes: In the case where the location verification result is a pass, determining a corresponding battery swapping queue based on the battery swapping priority, and determining a vehicle battery swapping serial number based on the battery swapping queue; Determining queuing vehicle information based on the battery swapping serial number, and querying in a historical battery swapping database according to the queuing vehicle information to determine the reference battery swapping duration corresponding to each queuing vehicle; wherein the historical battery swapping database includes multiple battery swapping vehicle information, and also includes the reference battery swapping duration corresponding to the multiple battery swapping vehicle information respectively; Determine the power swapping waiting duration based on the reference power swapping durations respectively corresponding to the power swapping queue and each queuing vehicle; Alternatively, encrypting the vehicle power swapping order and saving the encrypted vehicle power swapping order to a preset order database specifically includes: Adding a digital signature to the encrypted vehicle power swapping order based on a preset private key; Determining the vehicle owner information corresponding to the encrypted vehicle power swapping order in the preset order database, and binding the encrypted vehicle power swapping order with the vehicle owner information, so as to save the digital signature and the vehicle power swapping order to the preset order database; After saving the encrypted vehicle power swapping order to the preset order database, the method further includes: Performing a log access detection on the preset order database, and issuing an alarm when unauthorized access is detected.
9. A vehicle battery swapping data protection device, characterized in that The device includes a memory for storing computer program instructions and a processor for executing the program instructions. When the computer program instructions are executed by the processor, the device is triggered to execute the method according to any one of claims 1-8.
10. A non-volatile computer storage medium stores computer-executable instructions, characterized in that, The computer-executable instructions can execute the method according to any one of claims 1-8.