CN117218766A - Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile - Google Patents

Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile Download PDF

Info

Publication number
CN117218766A
CN117218766A CN202310990280.4A CN202310990280A CN117218766A CN 117218766 A CN117218766 A CN 117218766A CN 202310990280 A CN202310990280 A CN 202310990280A CN 117218766 A CN117218766 A CN 117218766A
Authority
CN
China
Prior art keywords
authorization code
charging pile
charging
user
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310990280.4A
Other languages
Chinese (zh)
Inventor
夏亚军
朱恺
邱明
王冬妮
余传义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Junsheng New Energy Automotive Technology Co ltd
Joyson Elite Nanjing New Energy Vehicle System Research Institute Co ltd
Original Assignee
Ningbo Junsheng New Energy Automotive Technology Co ltd
Joyson Elite Nanjing New Energy Vehicle System Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Junsheng New Energy Automotive Technology Co ltd, Joyson Elite Nanjing New Energy Vehicle System Research Institute Co ltd filed Critical Ningbo Junsheng New Energy Automotive Technology Co ltd
Priority to CN202310990280.4A priority Critical patent/CN117218766A/en
Publication of CN117218766A publication Critical patent/CN117218766A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a private pile sharing and multiuser reservation charging method of a vehicle-mounted charging pile, wherein a vehicle-mounted charging pile system comprises the following components: the mobile phone terminal comprises a processor, a storage module electrically connected with the processor and a mobile phone Bluetooth module; the charging pile comprises an MCU controller, and a charging pile Bluetooth module and a 4G module which are electrically connected with the MCU controller; a server-based cloud service platform; the mobile phone terminal and the charging pile are communicated through Bluetooth, and the mobile phone terminal, the charging pile and the cloud service platform are communicated through 4G or WIFI. The multi-user reservation charging method comprises a user information registration step, a charging pile main user registration step, a charging pile information sharing step and a multi-user reservation charging step. By the method, the pile owner sharing charging pile, multi-user reservation charging and multi-user data management are realized, a set of charging pile equipment is shared by a plurality of users, and a technical means is provided for effectively and fully utilizing the charging pile equipment.

Description

Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile
Technical Field
The invention relates to the technical field of automobile electronics, in particular to a private pile sharing and multi-user reservation charging method for a vehicle-mounted charging pile.
Background
With the rapid popularization of new energy electric vehicles, the electric vehicles become mainstream consumer products of common people, but due to the fact that the prior planning is insufficient, the development of charging supporting facilities cannot keep pace, and particularly, the charging of the electric vehicles is very difficult in three-four-wire cities and rural areas.
Because the electric automobile can run 600 km basically after being charged once, the electric automobile can be charged once in a week under normal conditions, and each charging time is about 6 hours. If one charging pile (for home use) is disposed for each electric vehicle, it is conceivable that a plurality of users share one charging pile, so that the charging pile device is effectively utilized.
However, a plurality of users commonly use a set of charging pile equipment, firstly, a charging pile owner can share the charging pile of the user to other users who need the charging pile, and each user can reserve in advance under the condition that the current state of the charging pile is known. However, technical researches such as pile owner sharing charging pile, multi-user reservation charging, multi-user data management, charging electric energy metering charging and the like are the latest technical problems in the current electric automobile charging pile industry.
Disclosure of Invention
The invention provides a private pile sharing and multi-user reservation charging method for a vehicle-mounted charging pile, which aims to solve the defects in the prior art in the background art.
The embodiment of the invention provides a private pile sharing and multiuser reservation charging method for a vehicle-mounted charging pile, which comprises a user information registering step, a charging pile main user registering step, a charging pile information sharing step and a multiuser reservation charging step, wherein after the user information registering step and the charging pile main user registering step are completed:
the pile owner and the common user reserve and charge the charging pile, and if the charging pile is inquired to be online, the appointed charging pile can be reserved remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the condition of Bluetooth connection, bluetooth communication is used for reservation;
and the stake owner and the common user carry out remote authorization charging on the charging stake, and if the charging stake is inquired to be online, the remote authorization can be carried out through the server.
Further, the step of sharing the information of the charging pile specifically includes:
(c1) When the charging pile is started, firstly, reading the white list data stored locally, reading the user addition sequence number m, and entering the step (c 2);
(c2) The charging pile owner inputs a mobile phone number of a user to be shared in a charging pile sharing page of the mobile phone APP, sets a sharing time period and submits the sharing time period to a server for sharing application; after receiving the sharing information of the charging pile owner, the server creates a common user account in a database corresponding to the SN number, the server calls a random function to generate a random number and converts the random number into a decimal character string, the character string of the 6 characters at the back is reserved as an activation code, the server safely stores the activation code in the database corresponding to the common user, and meanwhile, the activation code of the common user is sent to a mobile phone APP of the charging pile owner, and the step (c 3) is carried out;
(c3) The charging pile owner sends the SN number and the activation code of the common user to the sharing user through the mobile phone APP, the sharing user downloads and installs the designated mobile phone APP installation software on a designated path, the user information of the server is registered, the account numbers are unified to be mobile phone numbers, the mobile phone numbers are used for registration, passwords are set, the common user binding is carried out on the charging pile by inputting the SN number, and the server requests to input the activation code after receiving the common user binding request; if the activation code input by the common user is consistent with the database activation code of the user corresponding to the SN number, the server agrees that the corresponding APP account is bound with the charging pile, and the step (c 4) is carried out, otherwise, the step (c 7) is carried out;
(c4) The common user mobile phone APP requests the server to send authorization code information, and after the server receives the request, the server reads the common authorization code stored in the database corresponding to the SN number, and the authorization code information is expressed by the following formula: user authorization code = common authorization code + (7 x n+1) x n+a, where n is the number of the common user, and each time the server adds one common user, the number n is added with 1, the first user number n is 1, where the value range of n is [ 1, 10000 ], and a is a calibration constant; the server encrypts the user authorization code and the sharing time period by using a designated secret key and an algorithm, then sends the user authorization code information to a designated user mobile phone APP, and the user mobile phone APP receives the user authorization code information and stores the ciphertext of the user authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (c 5) is entered;
(c5) The common user activates the charging pile by using the user authorization code information through the mobile phone APP, and if the charging pile is inquired to be online, the mobile communication can be carried out remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, bluetooth is used for communication with the charging pile; the mobile phone APP sends user authorization code information to the charging pile, the charging pile receives the user authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the user authorization code ciphertext and the sharing time period ciphertext to obtain user authorization code 1 and sharing time period data; the charging pile substitutes the locally stored common authorization code into a formula to calculate a user authorization code 2, wherein the user authorization code 2=the common authorization code+ (7xn+1) n+A, the value range of n is 1-10000, and A is a calibration constant; if n is from 1 to 10000, any one of the calculated user authorization codes 2 and 1 is equal, replying that the user authorization code is successfully activated, and entering step (c 6); if not, the reply message super authorization code is invalid, and the step (c 7) is entered;
(c6) The charging pile copies the user authorization code 1 and the information of the sharing time period data into the user authorization code, the starting time and the ending time address corresponding to the common user information array of the authorization white list, and the array serial numbers are the user added serial numbers m; adding a serial number m to the user, adding 1, and if m is greater than or equal to the maximum common user number, then m is equal to 0; adding a serial number m to a user for local safe storage, and carrying out local safe storage on the updated authorized white list data, and entering a step (c 7);
(c7) Ending;
the user authorization code information comprises a user authorization code instruction, a user authorization code ciphertext, a sharing time period data ciphertext and frame verification data.
Further, the user information registering step includes:
(a1) After the vehicle-mounted charging pile is assembled on a production line, power supply is required to be started and connection is established with a server, and after the connection is successful, the charging pile sends request SN number registration information; after receiving the request SN registration information, the server checks whether the SN is registered under the condition of passing the integrity check, if so, replies registration failure information to the charging pile, and enters the step (a 8); if the charging pile is not registered, responding to the registration, establishing a database corresponding to the SN, replying registration success information to the charging pile, and entering the step (a 2);
(a2) The server generates corresponding key data according to the SN, safely stores the key data in a database corresponding to the SN, and sends key configuration information; after receiving the secret key configuration information, the charging pile performs local safe storage under the condition that the integrity check passes, replies secret key configuration success information to the server, and enters the step (a 3);
(a3) The server generates an authorization code according to serial number data in the SN number, server system time data and a random number generated by using a random number function; authorization code = serial number data + server time data + random number in SN number, enter step (a 4);
(a4) The server generates a super-authorization code according to the authorization code, wherein the super-authorization code is used by the charging pile, and the super-authorization code=the authorization code &0x3FFFFFFF, so that the super-authorization code is not greater than 0x3FFFFFFF; the server stores the super authorization code data in a database corresponding to the SN number, encrypts the data by using a designated secret key and an algorithm, and then sends the super authorization code information to the charging pile corresponding to the SN number; the corresponding charging pile receives the super-authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a super-authorization code plaintext; the corresponding charging pile confirms the valid range of the super-authorization code, if the super-authorization code is smaller than or equal to 0x3FFFFF, the super-authorization code is considered to be valid, local safe storage is carried out, the server is responded to effectively receive the super-authorization code, the step (a 5) is carried out, otherwise, the server is responded to invalidity to receive the super-authorization code, and the step (a 8) is carried out;
(a5) The server generates a common authorization code according to the authorization code, and the common authorization code is used when the charging pile owner shares the common authorization code with other users; ordinary authorization code= ((authorization code &0x7 FFFFFFF) |0x40000000), such that the ordinary authorization code is greater than 0x3fffff and less than 0x80000000; the server carries out safe storage on the common authorization code data in a database corresponding to the SN number, encrypts the common authorization code data by using a designated secret key and algorithm, and then sends common authorization code information; the SN number corresponds to the charging pile and receives the common authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a common authorization code plaintext; the charging pile confirms the effective range of the common authorization code, if the common authorization code is larger than 0x3FFFFF and smaller than 0x80000000, the charging pile considers the common authorization code to be effective, carries out local safe storage, responds to the server to effectively receive the common authorization code, and enters the step (a 6); otherwise, responding to the invalid receiving of the common authorization code by the server, and entering the step (a 8);
(a6) The server calls a random function to generate a random number, and calculates an A calibration constant; the A calibration constant=random number &0x7FFF, so that the A calibration constant is smaller than 0x8000, the server safely stores the A calibration constant data in a database corresponding to the SN number, and then sends the A calibration constant information; the SN number corresponds to the charging pile to receive the A calibration constant information, and under the condition that the integrity check is passed, the charging pile confirms the effective range of the A calibration constant, if the A calibration constant is smaller than 0x8000, the charging pile considers the charging pile to be effective, carries out local safe storage, responds to the server to effectively receive the A calibration constant, and enters the step (a 7); otherwise, responding to the invalid receiving of the A calibration constant by the server, and entering the step (a 8);
(a7) The server calls a random function to generate a random number, converts the random number into a decimal character string, reserves the character string of the 6 characters at the back as an activation code, safely stores the activation code in a database corresponding to the SN number, and sends the activation code to a production line computer; after receiving the activation code, the production line computer makes a card, prints the activation code, the SN number and the corresponding two-dimensional code on the card through a card distribution tool, and coats a layer of scratch-off coating on the activation code; packaging the card and the corresponding charging pile together, and entering a step (a 8);
(a8) Ending;
the SN number registration information comprises a registration instruction, an SN number and frame verification data; the key configuration information includes a key configuration instruction, key data, and frame check data.
Further, the charging pile main user registration step specifically includes:
(b1) Firstly, a charging pile owner downloads and installs appointed mobile phone APP installation software according to a specification, registers user information of a server, unifies account numbers into mobile phone numbers, registers by using the mobile phone numbers, and sets passwords; scanning a two-dimensional code of the charging pile, applying for binding the charging pile of the SN number corresponding to the two-dimensional code, and sending application binding information; after receiving APP binding charging pile information, the server requests to input an activation code, a pile owner scrapes off an activation code coating of the card, inputs a corresponding 6-bit character string, sends the corresponding 6-bit character string to the server, and enters the step (b 2);
(b2) After receiving the activation code, the server reads the activation code stored in the database corresponding to the SN number, compares the activation code with the received activation code, agrees that the APP corresponding account number binds the charging pile if the activation code is the same, creates a super user account number in the database corresponding to the SN number, and enters the step (b 3); if not, the binding of the charging piles fails, and the step (b 6) is carried out;
(b3) The charging pile master mobile phone APP requests the server to send super authorization code information, after the server receives the request, the server reads the super authorization code stored by the super user in the SN number corresponding database, encrypts the super authorization code information by using a designated secret key and an algorithm, then sends the super authorization code information to the mobile phone APP, and the mobile phone APP receives the super authorization code information and stores the ciphertext of the super authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (b 4) is carried out;
(b4) The charging pile master mobile phone APP uses the super authorization code to perform super user activation on the charging pile, and if the charging pile is inquired to be online, mobile communication can be performed remotely through the server; if the charging pile is not on line, the charging pile is required to be positioned nearby the charging pile, and under the condition of Bluetooth connection, bluetooth is used for communication with the charging pile; the mobile phone APP sends the super authorization code ciphertext and the check value to the charging pile, after the charging pile receives the super activation information, the integrity of the frame information is checked first, the check value is calculated and compared with the received check value, and if the check values are equal, the step (b 5) is entered; if not, the reply message activation check fails, and the step (b 6) is entered;
(b5) The charging pile decrypts the ciphertext to obtain a super-authorization code, compares the super-authorization code with the locally stored super-authorization code, replies that the super-authorization code is successfully activated if the super-authorization code is equal to the locally stored super-authorization code, copies the plaintext of the super-authorization code into the corresponding address of the super-authorization code of the authorized white list, and performs local safe storage on the white list data; if not, the reply message super authorization code is invalid, and the step (b 6) is entered;
(b6) And (5) ending.
Furthermore, the pile owner and the common user reserve charging of the charging pile, and if the charging pile is inquired to be online, the appointed charging pile can be reserved remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, bluetooth communication is used for reservation, specifically:
(d1) Firstly, checking the state of a charging pile on a mobile phone APP, wherein the state of the charging pile mainly comprises a charging state, a reservation state, a fault state and an idle state, and if the state of the charging pile is the idle state, reservation can be requested to enter a step (d 2); if the state of the charging pile is not the idle state, reservation is not possible, and the step (d 5) is entered;
(d2) Clicking a mobile phone APP request reservation button, and sending reservation information (comprising a reservation instruction, an authorization code ciphertext and frame check data, wherein the reservation information is super authorization code ciphertext if the reservation information is a stake owner, or is user authorization code ciphertext if the reservation information is a stake owner); after the charging pile receives the reservation information, under the condition that the integrity check is passed, decrypting the received authorization code ciphertext to obtain an authorization code plaintext, comparing the authorization code plaintext, if the received authorization code is a super authorization code in a white list, the reservation authorization code is the super authorization code, and replying reservation success information to the mobile phone APP; if the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, the reserved authorization code is the corresponding user authorization code, and reservation success information is returned to the mobile phone APP; step (d 3) is entered; otherwise, replying reservation failure information to the mobile phone APP; step (d 5) is entered;
(d3) Setting the state of the charging pile as a reservation state once reservation of the charging pile is successful, and reporting state information to a server; setting a timeout reservation timer to 0, and entering step (d 4);
(d4) Under the condition that the charging pile is in a reservation state, adding 1 to a timeout reservation timer in a periodic task, judging whether the timeout reservation timer is larger than a reservation timeout threshold, if yes, directly canceling reservation, setting the state of the charging pile as an idle state, and reporting state information to a server; step (d 5) is entered;
(d5) And (5) ending.
Further, the stake owner and the ordinary user carry out remote authorization charging to the charging stake, if the charging stake is inquired to be online, the remote authorization can be carried out through the server, specifically:
(e1) Clicking a mobile phone APP to request a remote authorization charging button, and sending remote authorization information (comprising a remote authorization instruction, an authorization code ciphertext and frame verification data, wherein the remote authorization information is super authorization code ciphertext if the remote authorization instruction is a stake owner, or is user authorization code ciphertext if the remote authorization code ciphertext is a stake owner); after the charging pile receives the remote authorization information, under the condition that the integrity check passes, decrypting the received authorization code ciphertext to obtain an authorization code plaintext; if the charging pile is in an idle state, entering a step (e 2); if the charging pile is in the reserved state, entering a step (e 3); if the charging pile is in a fault state or in a charging state, directly rejecting the request, and entering a step (e 5);
(e2) The charging pile compares the received authorization codes, if the received authorization codes are super authorization codes in the white list, the charging pile directly authorizes the charging request, and replies authorization success information to the mobile phone APP; if the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, directly authorizing to request charging, wherein the current charging authorization code is the received authorization code, and replying authorization success information to the mobile phone APP; step (e 4) is entered; otherwise, replying authorization failure information to the mobile phone APP; step (e 5) is entered;
(e3) The charging pile compares the received authorization codes, if the received authorization codes are reserved authorization codes, the charging pile directly authorizes the charging request, the current charging authorization code is the received authorization code, and authorization success information is returned to the mobile phone APP; step (e 4) is entered; otherwise, replying authorization failure information to the mobile phone APP; step (e 5) is entered;
(e4) The charging pile checks whether the charging gun is inserted well, and if so, charging is started; if the charging gun is not inserted well, starting periodic timing, if the charging gun is not inserted well within 5 minutes after the time-out, directly canceling the authorization request, setting the charging pile to be in an idle state, and sending overtime canceling authorization information of the non-inserted gun to the corresponding mobile phone APP; step (e 5) is entered;
(e5) And (5) ending.
Furthermore, 7, the stake owner and the user perform unauthorized charging on the charging stake, and if the charging stake is inquired to be online, the unauthorized charging can be performed remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, the Bluetooth communication is used for canceling the authorized charging, which is specifically as follows:
(g1) The user can click a mobile phone APP to request Bluetooth or remotely cancel the authorization charging button, the mobile phone APP sends cancel authorization information, if the information is the stake owner, the information is super authorization code ciphertext, and otherwise, the information is user authorization code ciphertext; after receiving the information of canceling the authorized charging, the charging stake decrypts the received authorization code ciphertext to obtain an authorization code plaintext under the condition that the integrity check passes; the charging pile compares the received authorization codes, if the received authorization codes are super authorization codes, the charging is directly canceled, and the reason for canceling the charging is set as that the super user cancels the charging; if the received authorization code is the current charging authorization code, directly canceling charging, and setting the reason for canceling charging to cancel charging for the common user. Step (g 2) is entered;
(g2) And (5) ending.
11. Further, the common authorization code information comprises a common authorization code instruction, a common authorization code ciphertext and frame check data; the super-authorization code information includes super-authorization code instructions, super-authorization code ciphertext, and frame check data.
Furthermore, the A calibration constant is a constant in an ordinary user authorization code calculation formula and comprises a calibration constant instruction, A calibration constant data and frame verification data.
A vehicle-mounted charging pile system adopting the private pile sharing and multiuser reservation charging method comprises the following steps:
the mobile phone terminal comprises a processor, a storage module electrically connected with the processor and a mobile phone Bluetooth module;
the charging pile comprises an MCU controller, and a charging pile Bluetooth module and a 4G module which are electrically connected with the MCU controller;
a cloud service platform based on a server;
the mobile phone terminal and the charging pile are communicated through Bluetooth, and the mobile phone terminal, the charging pile and the cloud service platform are communicated through 4G or WIFI.
The above at least one technical scheme adopted by the embodiment of the invention can achieve the following beneficial effects:
by the method, the pile owner sharing charging pile, multi-user reservation charging and multi-user data management are realized, a set of charging pile equipment is shared by a plurality of users, and a technical means is provided for effectively and fully utilizing the charging pile equipment.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
Fig. 1 is a schematic block diagram of a vehicle-mounted charging pile system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments of the present invention and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The following describes in detail the technical solutions provided by the embodiments of the present invention with reference to the accompanying drawings.
In order to solve the problem that a set of charging pile equipment is shared by a plurality of users, the invention provides a private pile sharing and multiuser reservation charging method for a vehicle-mounted charging pile. As shown in fig. 1, the vehicle-mounted charging pile system comprises a main controller MCU, a bluetooth module and a 4G module, wherein the main controller MCU is in communication with the bluetooth module through a serial port 1 and in communication with the 4G module through a serial port 2. The mobile phone equipment needs to install a designated user APP program, so that a user can directly communicate with the charging pile through Bluetooth communication, and meanwhile, the mobile phone equipment can also communicate with the cloud server through mobile signals. Meanwhile, the mobile phone terminal comprises a processor, a storage module electrically connected with the processor, a mobile phone Bluetooth module and a cloud service platform based on a server. The mobile phone terminal and the charging pile are communicated through Bluetooth, and the mobile phone terminal, the charging pile and the cloud service platform are communicated through 4G or WIFI.
The method comprises the following specific steps:
(1) After the vehicle-mounted charging pile is generated and assembled on a production line, user information registration is required, and the method mainly comprises the following steps of:
(a1) After the vehicle-mounted charging pile is assembled on a production line, power supply is required to be started, connection is established between the vehicle-mounted charging pile and a server, and after the connection is successful, the charging pile sends request SN number registration information (comprising a registration instruction, a SN number and frame verification data). After receiving the request SN number registration information, the server checks whether the SN number is registered under the condition of passing the integrity check, and if so, returns registration failure information to the charging pile, and enters step (a 8). If the charging pile is not registered, the database corresponding to the SN is established in response to the registration, and registration success information is replied to the charging pile. Step (a 2) is entered;
(a2) The server generates corresponding key data according to the SN, safely stores the key data in a database corresponding to the SN, and sends key configuration information (comprising a key configuration instruction, the key data and frame verification data). After receiving the key configuration information, the charging pile performs local safe storage under the condition that the integrity check is passed, and replies key configuration success information to the server. Step (a 3) is entered;
(a3) The server generates an authorization code based on serial number data (data typically used for line generation numbers) in the SN number, server system time data, and a random number generated using a random number function. Authorization code = serial number data in SN number + server time data + random number. Step (a 4) is entered;
(a4) The server generates a super-authorization code according to the authorization code, wherein the super-authorization code is used by the charging pile, and the super-authorization code=the authorization code &0x3FFFFFFF, so that the super-authorization code is not greater than 0x3FFFFFFF; the server stores the super authorization code data in a database corresponding to the SN number, encrypts the data by using a designated secret key and an algorithm, and then sends the super authorization code information to the charging pile corresponding to the SN number; the corresponding charging pile receives the super-authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a super-authorization code plaintext; the corresponding charging pile confirms the valid range of the super-authorization code, if the super-authorization code is smaller than or equal to 0x3FFFFF, the super-authorization code is considered to be valid, local safe storage is carried out, the server is responded to effectively receive the super-authorization code, the step (a 5) is carried out, otherwise, the server is responded to invalidity to receive the super-authorization code, and the step (a 8) is carried out;
(a5) The server generates a common authorization code according to the authorization code, and the common authorization code is used when the charging pile owner shares the common authorization code with other users; ordinary authorization code= ((authorization code &0x7 FFFFFFF) |0x40000000), such that the ordinary authorization code is greater than 0x3fffff and less than 0x80000000; the server carries out safe storage on the common authorization code data in a database corresponding to the SN number, encrypts the common authorization code data by using a designated secret key and algorithm, and then sends common authorization code information; the SN number corresponds to the charging pile and receives the common authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a common authorization code plaintext; the charging pile confirms the effective range of the common authorization code, if the common authorization code is larger than 0x3FFFFF and smaller than 0x80000000, the charging pile considers the common authorization code to be effective, carries out local safe storage, responds to the server to effectively receive the common authorization code, and enters the step (a 6); otherwise, responding to the invalid receiving of the common authorization code by the server, and entering the step (a 8);
(a6) The server calls a random function to generate a random number, and calculates an A calibration constant; the A calibration constant=random number &0x7FFF, so that the A calibration constant is smaller than 0x8000, the server safely stores the A calibration constant data in a database corresponding to the SN number, and then sends the A calibration constant information; the SN number corresponds to the charging pile to receive the A calibration constant information, and under the condition that the integrity check is passed, the charging pile confirms the effective range of the A calibration constant, if the A calibration constant is smaller than 0x8000, the charging pile considers the charging pile to be effective, carries out local safe storage, responds to the server to effectively receive the A calibration constant, and enters the step (a 7); otherwise, responding to the invalid receiving of the A calibration constant by the server, and entering the step (a 8);
(a7) The server calls the random function to generate a random number, converts the random number into a decimal character string, reserves the character string of the 6 rear characters as an activation code, safely stores the activation code in a database corresponding to the SN number, and sends the activation code to the production line computer. And after receiving the activation code, the production line computer makes a card, prints the activation code, the SN number and the corresponding two-dimensional code on the card through a card distribution tool, and coats a scratch-off coating on the activation code. Packaging the card and the corresponding charging pile together, and entering a step (a 8);
(a8) And (5) ending.
(2) After the charging pile is installed, the charging pile owner needs to register the user of the charging pile owner. The specific process is as follows:
(b1) Firstly, a charging pile owner downloads and installs appointed mobile phone APP installation software according to a specification. And registering user information of the server, unifying the account numbers into mobile phone numbers, registering by using the mobile phone numbers, and setting passwords. And scanning the two-dimension code of the charging pile, applying for binding the charging pile of the SN number corresponding to the two-dimension code, and sending application binding information. After receiving APP binding charging pile information, the server requests to input an activation code, a pile owner scrapes off an activation code coating of the card, inputs a corresponding 6-bit character string and sends the corresponding 6-bit character string to the server. Step (b 2) is entered;
(b2) After receiving the activation code, the server reads the activation code stored in the database corresponding to the SN number, compares the activation code with the received activation code, agrees that the APP corresponding account number binds the charging pile if the activation code is the same, creates a super user account number in the database corresponding to the SN number, and enters the step (b 3); if not, the binding of the charging piles fails, and the step (b 6) is carried out;
(b3) The charging pile master mobile phone APP requests the server to send super authorization code information, after the server receives the request, the server reads the super authorization code stored by the super user in the SN number corresponding database, encrypts the super authorization code information by using a designated secret key and an algorithm, then sends the super authorization code information to the mobile phone APP, and the mobile phone APP receives the super authorization code information and stores the ciphertext of the super authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (b 4) is carried out;
(b4) The charging pile master mobile phone APP uses the super authorization code to perform super user activation on the charging pile, and if the charging pile is inquired to be online, mobile communication can be performed remotely through the server; if the charging pile is not on line, the charging pile is required to be positioned nearby the charging pile, and under the condition of Bluetooth connection, bluetooth is used for communication with the charging pile; the mobile phone APP sends the super authorization code ciphertext and the check value to the charging pile, after the charging pile receives the super activation information, the integrity of the frame information is checked first, the check value is calculated and compared with the received check value, and if the check values are equal, the step (b 5) is entered; if not, the reply message activation check fails, and the step (b 6) is entered;
(b5) The charging pile decrypts the ciphertext to obtain a super-authorization code, compares the super-authorization code with the locally stored super-authorization code, replies that the super-authorization code is successfully activated if the super-authorization code is equal to the locally stored super-authorization code, copies the plaintext of the super-authorization code into the corresponding address of the super-authorization code of the authorized white list, and performs local safe storage on the white list data; if not, the reply message super authorization code is invalid, and the step (b 6) is entered;
(b6) And (5) ending.
(3) When the charging pile owner uses the charging pile, the charging pile can be shared to a required user, and the specific process is as follows:
(c1) When the charging pile is started, firstly, reading the white list data stored locally, reading the user addition sequence number m, and entering the step (c 2);
(c2) The charging pile owner inputs a mobile phone number of a user to be shared in a charging pile sharing page of the mobile phone APP, sets a sharing time period and submits the sharing time period to a server for sharing application; after receiving the sharing information of the charging pile owner, the server creates a common user account in a database corresponding to the SN number, the server calls a random function to generate a random number and converts the random number into a decimal character string, the character string of the 6 characters at the back is reserved as an activation code, the server safely stores the activation code in the database corresponding to the common user, and meanwhile, the activation code of the common user is sent to a mobile phone APP of the charging pile owner, and the step (c 3) is carried out;
(c3) The charging pile owner sends the SN number and the activation code of the common user to the sharing user through the mobile phone APP, the sharing user downloads and installs the designated mobile phone APP installation software on a designated path, the user information of the server is registered, the account numbers are unified to be mobile phone numbers, the mobile phone numbers are used for registration, passwords are set, the common user binding is carried out on the charging pile by inputting the SN number, and the server requests to input the activation code after receiving the common user binding request; if the activation code input by the common user is consistent with the database activation code of the user corresponding to the SN number, the server agrees that the corresponding APP account is bound with the charging pile, and the step (c 4) is carried out, otherwise, the step (c 7) is carried out;
(c4) The common user mobile phone APP requests the server to send authorization code information, and after the server receives the request, the server reads the common authorization code stored in the database corresponding to the SN number, and the authorization code information is expressed by the following formula: user authorization code = common authorization code + (7 x n+1) x n+a, where n is the number of the common user, and each time the server adds one common user, the number n is added with 1, the first user number n is 1, where the value range of n is [ 1, 10000 ], and a is a calibration constant; the server encrypts the user authorization code and the sharing time period by using a designated secret key and an algorithm, then sends the user authorization code information to a designated user mobile phone APP, and the user mobile phone APP receives the user authorization code information and stores the ciphertext of the user authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (c 5) is entered;
(c5) The common user activates the charging pile by using the user authorization code information through the mobile phone APP, and if the charging pile is inquired to be online, the mobile communication can be carried out remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, bluetooth is used for communication with the charging pile; the mobile phone APP sends user authorization code information to the charging pile, the charging pile receives the user authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the user authorization code ciphertext and the sharing time period ciphertext to obtain user authorization code 1 and sharing time period data; the charging pile substitutes the locally stored common authorization code into a formula to calculate a user authorization code 2, wherein the user authorization code 2=the common authorization code+ (7xn+1) n+A, the value range of n is 1-10000, and A is a calibration constant; if n is from 1 to 10000, any one of the calculated user authorization codes 2 and 1 is equal, replying that the user authorization code is successfully activated, and entering step (c 6); if not, the reply message super authorization code is invalid, and the step (c 7) is entered;
(c6) The charging pile copies the user authorization code 1 and the information of the sharing time period data into the user authorization code, the starting time and the ending time address corresponding to the common user information array of the authorization white list, and the array serial numbers are the user added serial numbers m; adding a serial number m to the user, adding 1, and if m is greater than or equal to the maximum common user number, then m is equal to 0; adding a serial number m to a user for local safe storage, and carrying out local safe storage on the updated authorized white list data, and entering a step (c 7);
(c7) And (5) ending.
(4) Meanwhile, the pile owner and the common user reserve and charge the charging pile, and if the charging pile is inquired to be online, the appointed charging pile can be reserved remotely through the server. If the charging pile is not on line, the user is required to reach the vicinity of the charging pile, and in the case of Bluetooth connection, bluetooth communication is used for reservation. The specific process is as follows:
(d1) Firstly, checking the state of a charging pile on a mobile phone APP, wherein the charging pile state is mainly divided into a charging state, a reservation state, a fault state and an idle state, and if the charging pile state is the idle state, reservation can be requested to enter a step (d 2). If the state of the charging pile is not the idle state, reservation is not possible, and the step (d 5) is entered;
(d2) Clicking a mobile phone APP request reservation button, and sending reservation information (comprising a reservation instruction, an authorization code ciphertext and frame check data, wherein the reservation information is super authorization code ciphertext if the reservation information is a stake owner, or is user authorization code ciphertext if the reservation information is a stake owner). After the reservation information is received by the charging pile, under the condition that the integrity check is passed, the received authorization code ciphertext is decrypted to obtain an authorization code plaintext, and then the authorization code plaintext is compared, if the received authorization code is the super authorization code in the white list, the reservation authorization code is the super authorization code, and reservation success information is returned to the mobile phone APP. If the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, the reserved authorization code is the corresponding user authorization code, and reservation success information is returned to the mobile phone APP. Step (d 3) is entered; otherwise, the reservation failure information is replied to the mobile phone APP. Step (d 5) is entered;
(d3) And once reservation of the charging pile is successful, setting the state of the charging pile as a reservation state, and reporting the state information to a server. Setting a timeout reservation timer to 0, and entering step (d 4);
(d4) Under the condition that the charging pile is in a reservation state, adding 1 to a timeout reservation timer in a periodic task, judging whether the timeout reservation timer is larger than a reservation timeout threshold (defaulting to 60 minutes), if yes, directly canceling reservation, and setting the charging pile (d 5) to be finished.
(5) And the stake owner and the common user carry out remote authorization charging on the charging stake, and if the charging stake is inquired to be online, the remote authorization can be carried out through the server. The specific process is as follows:
(e1) Clicking the mobile phone APP requests a remote authorization charging button, and the mobile phone APP sends remote authorization information (comprising a remote authorization instruction, an authorization code ciphertext and frame verification data, wherein the remote authorization information is super authorization code ciphertext if the remote authorization instruction is a stake owner, or is user authorization code ciphertext). After the charging pile receives the remote authorization information, under the condition that the integrity check passes, the received authorization code ciphertext is decrypted to obtain the authorization code plaintext. If the charging pile is in an idle state, step (e 2) is entered. If the charging pile is in the reserved state, step (e 3) is entered. If the charging pile is in a fault state or in a charging state, directly rejecting the request, and entering a step (e 5);
(e2) The charging pile compares the received authorization codes, if the received authorization codes are super authorization codes in the white list, the charging pile directly authorizes the charging request, and replies authorization success information to the mobile phone APP. If the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, directly authorizing to request charging, and returning authorization success information to the mobile phone APP when the current charging authorization code is the received authorization code. Step (e 4) is entered; otherwise, the authorization failure information is replied to the mobile phone APP. Step (e 5) is entered;
(e3) The charging pile compares the received authorization codes, if the received authorization codes are reserved authorization codes, the charging pile directly authorizes the charging request, the current charging authorization code is the received authorization code, and authorization success information is returned to the mobile phone APP. Step (e 4) is entered; otherwise, replying authorization failure information to the mobile phone APP; step (e 5) is entered;
(e4) The charging pile checks whether the charging gun is inserted well, and if so, charging is started. If the charging gun is not inserted, starting to time periodically, if the charging gun is not inserted well within 5 minutes after the time-out, directly canceling the authorization request, setting the charging pile to be in an idle state, and sending overtime canceling authorization information of the non-inserted gun to the corresponding mobile phone APP.
Step (e 5) is entered;
(e5) And (5) ending.
(6) The stake owner and the user carry out Bluetooth communication authorization charging on the charging stake, if the charging stake is not on line, the user is required to reach the vicinity of the charging stake, and under the condition of Bluetooth connection, bluetooth communication is used for authorization; the specific process is as follows:
(f1) When a stake owner or a user approaches a charging stake, bluetooth can actively establish connection, and the connection can be established only by inputting a correct passkey for the first time. After the mobile phone APP inquires that the mobile phone Bluetooth and the charging pile Bluetooth are connected, authentication information (comprising an authentication instruction, an authorization code ciphertext and frame check data) is actively sent, if the mobile phone APP inquires that the mobile phone APP and the charging pile Bluetooth are connected, the mobile phone APP is the super authorization code ciphertext, and if the mobile phone APP is the pile owner, the mobile phone APP is the super authorization code ciphertext, otherwise the mobile phone APP is the user authorization code ciphertext). Step (f 2) is entered;
(f2) After the charging pile receives the information, under the condition that the integrity check passes, the received authorization code ciphertext is decrypted to obtain the authorization code plaintext. And comparing the authorization codes, if the received authorization codes are super authorization codes in the white list, setting the super user authentication as a passing state, recording the corresponding authorization codes, and replying authentication success information to the mobile phone APP. If the received authentication code is any user authentication code in the white list, and the current system time is greater than or equal to the effective starting time of the user authentication code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authentication code in the corresponding white list, setting the authentication of the corresponding common user to be in a passing state, recording the corresponding authorization code, and replying authentication success information to the mobile phone APP. And judging whether the charging pile is in a reserved state or not, and if so, entering a step (f 3). If not, entering a step (f 6);
(f3) If the charging stake set up plug and play function is on, step (f 4) is entered. If the charging pile is configured to close the plug and play function, entering a step (f 5);
(f4) Inquiring whether the corresponding authorization code is equal to the reserved authorization code when all the Bluetooth authentications are in the passing state, if yes, directly authorizing and requesting charging, setting the current charging authorization code to be equal to the reserved authorization code, and entering the step (f 9). If the Bluetooth authentication is not present and the authorization code corresponding to the passing state is equal to the reserved authorization code, entering a step (f 10);
(f5) The user can click a mobile phone APP to request a Bluetooth authorization charging button, and the mobile phone APP sends Bluetooth authorization information (comprising a Bluetooth authorization instruction, an authorization code ciphertext and frame verification data, wherein the Bluetooth authorization information is super authorization code ciphertext if the Bluetooth authorization instruction is a stake owner, or is user authorization code ciphertext); after the charging pile receives the authorization information, under the condition that the integrity check passes, the received authorization code ciphertext is decrypted to obtain an authorization code plaintext. And the charging pile compares the received authorization codes, if the received authorization codes are equal to the reserved authorization codes, the charging pile directly authorizes the charging request, sets the current charging authorization code as the reserved authorization code, and replies authorization success information to the mobile phone APP. Proceeding to step (f 9); otherwise, the authorization failure information is replied to the mobile phone APP. Proceeding to step (f 10);
(f6) If the charging stake set up plug and play function is on, step (f 7) is entered. If the charging pile is configured to close the plug and play function, entering a step (f 8);
(f7) Inquiring whether Bluetooth authentication is in a passing state, if so, directly authorizing and requesting charging, setting the current charging authorization code as the authorization code corresponding to the Bluetooth authentication in the passing state, and entering a step (f 9); otherwise, go to step (f 8);
(f8) The user can click the mobile phone APP to request the Bluetooth authorization charging button, and the mobile phone APP sends Bluetooth authorization information (comprising Bluetooth authorization instructions, authorization code ciphertext and frame verification data, wherein the Bluetooth authorization information is super authorization code ciphertext if the Bluetooth authorization instruction is a stake owner, or is user authorization code ciphertext). After the charging pile receives the authorization information, under the condition that the integrity check passes, the received authorization code ciphertext is decrypted to obtain an authorization code plaintext. And the charging pile compares the received authorization codes, if the received authorization codes are super authorization codes in the white list, the charging pile directly authorizes the charging request, sets the current charging authorization code as the received authorization code, and replies authorization success information to the mobile phone APP. If the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, directly authorizing and requesting charging, setting the current charging authorization code as the received authorization code, and replying authorization success information to the mobile phone APP. Step (f 9) is entered. Otherwise, the authorization failure information is replied to the mobile phone APP. Proceeding to step (f 10);
(f9) The charging pile checks whether the charging gun is inserted well, and if so, charging is started. If the charging gun is not inserted, starting to time periodically, if the charging gun is not inserted well within 5 minutes after the time-out, directly canceling the authorization request, setting the charging pile to be in an idle state, and sending overtime canceling authorization information of the non-inserted gun to the corresponding mobile phone APP.
Proceeding to step (f 10);
(f10) And (5) ending.
(7) The stake owner and user charge the stake to cancel the authorization to charge, if the inquiry fills the stake online, can long-range through the server cancel the authorization to charge, if fill the stake and do not online, need the user to charge near the stake, under the bluetooth connection condition, use bluetooth communication to cancel the authorization to charge, specific process is as follows:
(g1) The user can click a mobile phone APP to request Bluetooth or a remote cancel authorization charging button, and the mobile phone APP sends cancel authorization information (comprising Bluetooth or remote cancel authorization instructions, authorization code ciphertext and frame check data, wherein the information is super authorization code ciphertext if the information is a stake owner, otherwise the information is user authorization code ciphertext); after receiving the information of canceling the authorized charging, the charging stake decrypts the received authorization code ciphertext to obtain an authorization code plaintext under the condition that the integrity check passes; the charging pile compares the received authorization codes, if the received authorization codes are super authorization codes, the charging is directly canceled, and the reason for canceling the charging is set as that the super user cancels the charging; if the received authorization code is the current charging authorization code (the corresponding authorization code in authorization), the charging is directly canceled, and the charge cancellation reason is set as that the charging is canceled by the common user. Step (g 2) is entered;
(g2) And (5) ending.
(8) And configuring the charging pile, wherein only the charging pile owner has authority to configure the charging pile, and if the charging pile is inquired to be online, the charging pile can be remotely configured through the server. If the charging post is not on-line, it is required to reach the vicinity of the charging post, and in the case of bluetooth connection, configuration is performed using bluetooth communication. The specific process is as follows:
(h1) The stake owner clicks the cell-phone APP and gets into the configuration interface, wherein has the charging stake to plug and fill the functional configuration and opens and close the configuration of selecting. If the on is selected, the configuration state is the on data, and if the off is selected, the configuration state is the off data. The mobile phone APP sends the plug-and-play function configuration information (comprising a plug-and-play function configuration instruction, a configuration state, a super authorization code ciphertext and frame check data). Step (h 2) is entered;
(h2) After receiving the plug-and-play function configuration information, the charging pile decrypts the received authorization code ciphertext to obtain an authorization code plaintext under the condition that the integrity check is passed, if the received authorization code is a super authorization code, the plug-and-play function configuration state is set as the received configuration state, and the configuration state is stored in the EEPROM; step (h 3) is entered;
(h3) And (5) ending.
By the method, the pile owner sharing charging pile, multi-user reservation charging and multi-user data management are realized, a set of charging pile equipment is shared by a plurality of users, and a technical means is provided for effectively and fully utilizing the charging pile equipment.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (10)

1. The private pile sharing and multiuser reservation charging method for the vehicle-mounted charging pile is characterized by comprising a user information registering step, a charging pile main user registering step, a charging pile information sharing step and a multiuser reservation charging step, wherein after the user information registering step and the charging pile main user registering step are completed:
the pile owner and the common user reserve and charge the charging pile, and if the charging pile is inquired to be online, the appointed charging pile can be reserved remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the condition of Bluetooth connection, bluetooth communication is used for reservation;
And the stake owner and the common user carry out remote authorization charging on the charging stake, and if the charging stake is inquired to be online, the remote authorization can be carried out through the server.
2. The private pile sharing and multiuser reservation charging method for a vehicle-mounted charging pile according to claim 1, wherein the charging pile information sharing step specifically comprises:
(c1) When the charging pile is started, firstly, reading the white list data stored locally, reading the user addition sequence number m, and entering the step (c 2);
(c2) The charging pile owner inputs a mobile phone number of a user to be shared in a charging pile sharing page of the mobile phone APP, sets a sharing time period and submits the sharing time period to a server for sharing application; after receiving the sharing information of the charging pile owner, the server creates a common user account in a database corresponding to the SN number, the server calls a random function to generate a random number and converts the random number into a decimal character string, the character string of the 6 characters at the back is reserved as an activation code, the server safely stores the activation code in the database corresponding to the common user, and meanwhile, the activation code of the common user is sent to a mobile phone APP of the charging pile owner, and the step (c 3) is carried out;
(c3) The charging pile owner sends the SN number and the activation code of the common user to the sharing user through the mobile phone APP, the sharing user downloads and installs the designated mobile phone APP installation software on a designated path, the user information of the server is registered, the account numbers are unified to be mobile phone numbers, the mobile phone numbers are used for registration, passwords are set, the common user binding is carried out on the charging pile by inputting the SN number, and the server requests to input the activation code after receiving the common user binding request; if the activation code input by the common user is consistent with the database activation code of the user corresponding to the SN number, the server agrees that the corresponding APP account is bound with the charging pile, and the step (c 4) is carried out, otherwise, the step (c 7) is carried out;
(c4) The common user mobile phone APP requests the server to send authorization code information, and after the server receives the request, the server reads the common authorization code stored in the database corresponding to the SN number, and the authorization code information is expressed by the following formula: user authorization code = common authorization code + (7 x n+1) x n+a, where n is the number of the common user, and each time the server adds one common user, the number n is added with 1, the first user number n is 1, where the value range of n is [ 1, 10000 ], and a is a calibration constant; the server encrypts the user authorization code and the sharing time period by using a designated secret key and an algorithm, then sends the user authorization code information to a designated user mobile phone APP, and the user mobile phone APP receives the user authorization code information and stores the ciphertext of the user authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (c 5) is entered;
(c5) The common user activates the charging pile by using the user authorization code information through the mobile phone APP, and if the charging pile is inquired to be online, the mobile communication can be carried out remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, bluetooth is used for communication with the charging pile; the mobile phone APP sends user authorization code information to the charging pile, the charging pile receives the user authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the user authorization code ciphertext and the sharing time period ciphertext to obtain user authorization code 1 and sharing time period data; the charging pile substitutes the locally stored common authorization code into a formula to calculate a user authorization code 2, wherein the user authorization code 2=the common authorization code+ (7xn+1) n+A, the value range of n is 1-10000, and A is a calibration constant; if n is from 1 to 10000, any one of the calculated user authorization codes 2 and 1 is equal, replying that the user authorization code is successfully activated, and entering step (c 6); if not, the reply message super authorization code is invalid, and the step (c 7) is entered;
(c6) The charging pile copies the user authorization code 1 and the information of the sharing time period data into the user authorization code, the starting time and the ending time address corresponding to the common user information array of the authorization white list, and the array serial numbers are the user added serial numbers m; adding a serial number m to the user, adding 1, and if m is greater than or equal to the maximum common user number, then m is equal to 0; adding a serial number m to a user for local safe storage, and carrying out local safe storage on the updated authorized white list data, and entering a step (c 7);
(c7) Ending;
the user authorization code information comprises a user authorization code instruction, a user authorization code ciphertext, a sharing time period data ciphertext and frame verification data.
3. The private stake sharing and multiuser reservation charging method for a vehicular charging stake according to claim 1, wherein the user information registering step includes:
(a1) After the vehicle-mounted charging pile is assembled on a production line, power supply is required to be started and connection is established with a server, and after the connection is successful, the charging pile sends request SN number registration information; after receiving the request SN registration information, the server checks whether the SN is registered under the condition of passing the integrity check, if so, replies registration failure information to the charging pile, and enters the step (a 8); if the charging pile is not registered, responding to the registration, establishing a database corresponding to the SN, replying registration success information to the charging pile, and entering the step (a 2);
(a2) The server generates corresponding key data according to the SN, safely stores the key data in a database corresponding to the SN, and sends key configuration information; after receiving the secret key configuration information, the charging pile performs local safe storage under the condition that the integrity check passes, replies secret key configuration success information to the server, and enters the step (a 3);
(a3) The server generates an authorization code according to serial number data in the SN number, server system time data and a random number generated by using a random number function; authorization code = serial number data + server time data + random number in SN number, enter step (a 4);
(a4) The server generates a super-authorization code according to the authorization code, wherein the super-authorization code is used by the charging pile, and the super-authorization code=the authorization code &0x3FFFFFFF, so that the super-authorization code is not greater than 0x3FFFFFFF; the server stores the super authorization code data in a database corresponding to the SN number, encrypts the data by using a designated secret key and an algorithm, and then sends the super authorization code information to the charging pile corresponding to the SN number; the corresponding charging pile receives the super-authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a super-authorization code plaintext; the corresponding charging pile confirms the valid range of the super-authorization code, if the super-authorization code is smaller than or equal to 0x3FFFFF, the super-authorization code is considered to be valid, local safe storage is carried out, the server is responded to effectively receive the super-authorization code, the step (a 5) is carried out, otherwise, the server is responded to invalidity to receive the super-authorization code, and the step (a 8) is carried out;
(a5) The server generates a common authorization code according to the authorization code, and the common authorization code is used when the charging pile owner shares the common authorization code with other users; ordinary authorization code= ((authorization code &0x7 FFFFFFF) |0x40000000), such that the ordinary authorization code is greater than 0x3fffff and less than 0x80000000; the server carries out safe storage on the common authorization code data in a database corresponding to the SN number, encrypts the common authorization code data by using a designated secret key and algorithm, and then sends common authorization code information; the SN number corresponds to the charging pile and receives the common authorization code information, and under the condition that the integrity check is passed, the designated secret key and algorithm are used for decrypting the ciphertext to obtain a common authorization code plaintext; the charging pile confirms the effective range of the common authorization code, if the common authorization code is larger than 0x3FFFFF and smaller than 0x80000000, the charging pile considers the common authorization code to be effective, carries out local safe storage, responds to the server to effectively receive the common authorization code, and enters the step (a 6); otherwise, responding to the invalid receiving of the common authorization code by the server, and entering the step (a 8);
(a6) The server calls a random function to generate a random number, and calculates an A calibration constant; the A calibration constant=random number &0x7FFF, so that the A calibration constant is smaller than 0x8000, the server safely stores the A calibration constant data in a database corresponding to the SN number, and then sends the A calibration constant information; the SN number corresponds to the charging pile to receive the A calibration constant information, and under the condition that the integrity check is passed, the charging pile confirms the effective range of the A calibration constant, if the A calibration constant is smaller than 0x8000, the charging pile considers the charging pile to be effective, carries out local safe storage, responds to the server to effectively receive the A calibration constant, and enters the step (a 7); otherwise, responding to the invalid receiving of the A calibration constant by the server, and entering the step (a 8);
(a7) The server calls a random function to generate a random number, converts the random number into a decimal character string, reserves the character string of the 6 characters at the back as an activation code, safely stores the activation code in a database corresponding to the SN number, and sends the activation code to a production line computer; after receiving the activation code, the production line computer makes a card, prints the activation code, the SN number and the corresponding two-dimensional code on the card through a card distribution tool, and coats a layer of scratch-off coating on the activation code; packaging the card and the corresponding charging pile together, and entering a step (a 8);
(a8) Ending;
the SN number registration information comprises a registration instruction, an SN number and frame verification data; the key configuration information includes a key configuration instruction, key data, and frame check data.
4. The private pile sharing and multiuser reservation charging method for a vehicle-mounted charging pile according to claim 1, wherein the charging pile main user registration step specifically comprises the following steps:
(b1) Firstly, a charging pile owner downloads and installs appointed mobile phone APP installation software according to a specification, registers user information of a server, unifies account numbers into mobile phone numbers, registers by using the mobile phone numbers, and sets passwords; scanning a two-dimensional code of the charging pile, applying for binding the charging pile of the SN number corresponding to the two-dimensional code, and sending application binding information; after receiving APP binding charging pile information, the server requests to input an activation code, a pile owner scrapes off an activation code coating of the card, inputs a corresponding 6-bit character string, sends the corresponding 6-bit character string to the server, and enters the step (b 2);
(b2) After receiving the activation code, the server reads the activation code stored in the database corresponding to the SN number, compares the activation code with the received activation code, agrees that the APP corresponding account number binds the charging pile if the activation code is the same, creates a super user account number in the database corresponding to the SN number, and enters the step (b 3); if not, the binding of the charging piles fails, and the step (b 6) is carried out;
(b3) The charging pile master mobile phone APP requests the server to send super authorization code information, after the server receives the request, the server reads the super authorization code stored by the super user in the SN number corresponding database, encrypts the super authorization code information by using a designated secret key and an algorithm, then sends the super authorization code information to the mobile phone APP, and the mobile phone APP receives the super authorization code information and stores the ciphertext of the super authorization code in a mobile phone APP file system under the condition that the integrity check is passed, and then the step (b 4) is carried out;
(b4) The charging pile master mobile phone APP uses the super authorization code to perform super user activation on the charging pile, and if the charging pile is inquired to be online, mobile communication can be performed remotely through the server; if the charging pile is not on line, the charging pile is required to be positioned nearby the charging pile, and under the condition of Bluetooth connection, bluetooth is used for communication with the charging pile; the mobile phone APP sends the super authorization code ciphertext and the check value to the charging pile, after the charging pile receives the super activation information, the integrity of the frame information is checked first, the check value is calculated and compared with the received check value, and if the check values are equal, the step (b 5) is entered; if not, the reply message activation check fails, and the step (b 6) is entered;
(b5) The charging pile decrypts the ciphertext to obtain a super-authorization code, compares the super-authorization code with the locally stored super-authorization code, replies that the super-authorization code is successfully activated if the super-authorization code is equal to the locally stored super-authorization code, copies the plaintext of the super-authorization code into the corresponding address of the super-authorization code of the authorized white list, and performs local safe storage on the white list data; if not, the reply message super authorization code is invalid, and the step (b 6) is entered;
(b6) And (5) ending.
5. The private pile sharing and multiuser reservation charging method for the vehicle-mounted charging pile according to claim 1, wherein the pile owner and the common user reserve charging for the charging pile, and if the charging pile is inquired to be online, the appointed charging pile can be reserved remotely through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, bluetooth communication is used for reservation, specifically:
(d1) Firstly, checking the state of a charging pile on a mobile phone APP, wherein the state of the charging pile mainly comprises a charging state, a reservation state, a fault state and an idle state, and if the state of the charging pile is the idle state, reservation can be requested to enter a step (d 2); if the state of the charging pile is not the idle state, reservation is not possible, and the step (d 5) is entered;
(d2) Clicking a mobile phone APP request reservation button, and sending reservation information (comprising a reservation instruction, an authorization code ciphertext and frame check data, wherein the reservation information is super authorization code ciphertext if the reservation information is a stake owner, or is user authorization code ciphertext if the reservation information is a stake owner); after the charging pile receives the reservation information, under the condition that the integrity check is passed, decrypting the received authorization code ciphertext to obtain an authorization code plaintext, comparing the authorization code plaintext, if the received authorization code is a super authorization code in a white list, the reservation authorization code is the super authorization code, and replying reservation success information to the mobile phone APP; if the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, the reserved authorization code is the corresponding user authorization code, and reservation success information is returned to the mobile phone APP; step (d 3) is entered; otherwise, replying reservation failure information to the mobile phone APP; step (d 5) is entered;
(d3) Setting the state of the charging pile as a reservation state once reservation of the charging pile is successful, and reporting state information to a server; setting a timeout reservation timer to 0, and entering step (d 4);
(d4) Under the condition that the charging pile is in a reservation state, adding 1 to a timeout reservation timer in a periodic task, judging whether the timeout reservation timer is larger than a reservation timeout threshold, if yes, directly canceling reservation, setting the state of the charging pile as an idle state, and reporting state information to a server; step (d 5) is entered;
(d5) And (5) ending.
6. The private pile sharing and multiuser reservation charging method for vehicle-mounted charging piles according to claim 1, wherein the remote authorization charging is performed on the charging piles by the pile owner and the common user, if the charging piles are inquired to be online, the remote authorization is performed through the server, specifically:
(e1) Clicking a remote authorization charging button requested by a mobile phone APP, and sending remote authorization information by the mobile phone APP; after the charging pile receives the remote authorization information, under the condition that the integrity check passes, decrypting the received authorization code ciphertext to obtain an authorization code plaintext; if the charging pile is in an idle state, entering a step (e 2); if the charging pile is in the reserved state, entering a step (e 3); if the charging pile is in a fault state or in a charging state, directly rejecting the request, and entering a step (e 5);
(e2) The charging pile compares the received authorization codes, if the received authorization codes are super authorization codes in the white list, the charging pile directly authorizes the charging request, and replies authorization success information to the mobile phone APP; if the received authorization code is any user authorization code in the white list, and the current system time is greater than or equal to the effective starting time of the user authorization code in the corresponding white list, and the current system time is less than or equal to the effective ending time of the user authorization code in the corresponding white list, directly authorizing to request charging, wherein the current charging authorization code is the received authorization code, and replying authorization success information to the mobile phone APP; step (e 4) is entered; otherwise, replying authorization failure information to the mobile phone APP; step (e 5) is entered;
(e3) The charging pile compares the received authorization codes, if the received authorization codes are reserved authorization codes, the charging pile directly authorizes the charging request, the current charging authorization code is the received authorization code, and authorization success information is returned to the mobile phone APP; step (e 4) is entered; otherwise, replying authorization failure information to the mobile phone APP; step (e 5) is entered;
(e4) The charging pile checks whether the charging gun is inserted well, and if so, charging is started; if the charging gun is not inserted well, starting periodic timing, if the charging gun is not inserted well within 5 minutes after the time-out, directly canceling the authorization request, setting the charging pile to be in an idle state, and sending overtime canceling authorization information of the non-inserted gun to the corresponding mobile phone APP; step (e 5) is entered;
(e5) And (5) ending.
7. The private pile sharing and multiuser reservation charging method for vehicle-mounted charging piles according to claim 6, wherein the charging piles are subjected to unauthorized charging by the pile owner and the user, and if the charging piles are inquired to be online, the unauthorized charging can be remotely performed through the server; if the charging pile is not on line, a user is required to reach the vicinity of the charging pile, and under the Bluetooth connection condition, the Bluetooth communication is used for canceling the authorized charging, which is specifically as follows:
(g1) The user can click a mobile phone APP to request Bluetooth or remotely cancel an authorized charging button, and the mobile phone APP sends unauthorized information; after receiving the information of canceling the authorized charging, the charging stake decrypts the received authorization code ciphertext to obtain an authorization code plaintext under the condition that the integrity check passes; the charging pile compares the received authorization codes, if the received authorization codes are super authorization codes, the charging is directly canceled, and the reason for canceling the charging is set as that the super user cancels the charging; if the received authorization code is the current charging authorization code, directly canceling charging, and setting the reason for canceling charging to cancel charging for the common user. Step (g 2) is entered;
(g2) And (5) ending.
8. The private stake share and multiuser reservation charging method for a vehicular charging stake as claimed in claim 3, wherein the common authorization code information includes a common authorization code instruction, a common authorization code ciphertext and frame check data; the super-authorization code information includes super-authorization code instructions, super-authorization code ciphertext, and frame check data.
9. The private pile sharing and multiuser reservation charging method for the vehicle-mounted charging pile according to claim 3, wherein the A calibration constant is a constant in a common user authorization code calculation formula and comprises a calibration constant instruction, A calibration constant data and frame check data.
10. A vehicular charging pile system employing the private pile sharing and multiuser reservation charging method according to any one of claims 1-9, comprising:
the mobile phone terminal comprises a processor, a storage module electrically connected with the processor and a mobile phone Bluetooth module;
the charging pile comprises an MCU controller, and a charging pile Bluetooth module and a 4G module which are electrically connected with the MCU controller;
a cloud service platform based on a server;
the mobile phone terminal and the charging pile are communicated through Bluetooth, and the mobile phone terminal, the charging pile and the cloud service platform are communicated through 4G or WIFI.
CN202310990280.4A 2023-08-08 2023-08-08 Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile Pending CN117218766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310990280.4A CN117218766A (en) 2023-08-08 2023-08-08 Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310990280.4A CN117218766A (en) 2023-08-08 2023-08-08 Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile

Publications (1)

Publication Number Publication Date
CN117218766A true CN117218766A (en) 2023-12-12

Family

ID=89037827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310990280.4A Pending CN117218766A (en) 2023-08-08 2023-08-08 Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile

Country Status (1)

Country Link
CN (1) CN117218766A (en)

Similar Documents

Publication Publication Date Title
CN107650863B (en) Vehicle sharing method and system
CN107615291B (en) Method and system for safely and automatically obtaining service from machine equipment server
CN107077788B (en) System for exchanging and servicing packages using a key fob simulator
KR102158325B1 (en) Secure charging method for electric vehicles
WO2021135258A1 (en) Method and apparatus for using vehicle based on smart key
CN106515658A (en) Vehicle access control services and platform
CN106302510A (en) The authorization method of virtual key, system, mobile terminal and server
EP3201849A1 (en) Technological and financial partnerships to enable a package exchange service
CN109637034B (en) Vehicle time-sharing leasing method and system based on virtual key
CN106375312A (en) Virtual key authorization method and system, mobile terminal and server
US20200353836A1 (en) Method for reserving an electric charging station, and charging system
US20150294309A1 (en) Method, Device and Service Provision Unit for Authenticating a Customer for a Service to be Provided by the Service Provision Unit
CN106899972B (en) Vehicle registration method, vehicle charging method, device and system
CN108873680A (en) Update vehicle clock
JP2019078072A (en) Information processing device, information processing method, and program
KR20140000050A (en) Method and system for providing vehicles rental service using mobile communication terminal
CN115009076A (en) Charging method and device for charging pile, server and storage medium
KR20110117597A (en) Electric vehicle sharing device, system and an electric vehicle sharing method
JP2013258491A (en) Car sharing system and car sharing provisioning method
CN113978291A (en) Charging system, charging method and integrated equipment
CN117218766A (en) Private pile sharing and multiuser reservation charging method for vehicle-mounted charging pile
CN112428865B (en) Charging pile and control method thereof, server and control method thereof, and charging pile system
JP7070083B2 (en) Management server, information processing method and information processing system
CN111460427A (en) Binding method and device of power supply equipment, storage medium and equipment
CN109774526A (en) It is a kind of have prevent counterfeit knee identification method for authenticating

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination