A novel intelligent charging method based on an electric vehicle charging pile
By using asymmetric encryption algorithms and random number generation technology in electric vehicle charging piles, the intelligent plug-and-play charging function is realized, solving the problems of the existing charging methods being unintelligent, high cost and the risk of stolen electricity, and improving charging safety and management efficiency.
Patent Information
- Application Number
- CN202210460660.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-04-28
AI Technical Summary
The authorized charging methods of existing electric vehicle charging piles are not intelligent enough, have high costs, complex management, and have the risk of power stolen, especially Bluetooth communication control has security risks.
Bluetooth communication based on asymmetric encryption algorithm is adopted, and random numbers and public key encrypted ciphertext are generated, and keywords are verified with the charging pile after decrypting the mobile APP, plug and play charging function is realized, and random numbers are generated through system time and product serial number to improve password confidentiality.
It realizes intelligent plug-and-play charging, reduces management costs, enhances charging safety, prevents the risk of electricity theft, and is in line with the development direction of electric vehicle automation.
Smart Images

Figure CN114954091B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicle charging, and in particular to a novel intelligent charging method based on an electric vehicle charging pile. Background Art
[0002] With the rapid popularization of electric vehicles, the charging technology for electric vehicles is also developing rapidly. How to charge vehicles intelligently and safely is a technical topic that the current charging pile equipment developers are exploring. At present, the common authorized charging method on the market is to swipe the IC card to authorize charging. This method requires manual operation to swipe the card to authorize the start of charging, which is not intelligent enough. The hardware is relatively complex, and a card swipe identification area needs to be fixed in the charging pile panel area, which is also relatively expensive. In addition, once the IC card is lost, it involves re-issuing the card. The software complexity is also relatively high, which increases the management and maintenance costs. There are also defects in information security, such as IC cards are easy to copy or crack. At the same time, the charging pile equipment will use Bluetooth communication to control, diagnose and refresh the charging pile, especially diagnosis and refresh, which facilitates after-sales maintenance. Some charging pile equipment directly uses Bluetooth connection to control charging, but there is a risk of stolen charging, and the technology is not rigorous enough. Summary of the invention
[0003] In view of the shortcomings and defects of the existing technology, a new intelligent charging method based on an electric vehicle charging pile is provided, which can realize the plug-and-charge function and fast charging, and at the same time eliminate the risk of electricity theft.
[0004] To achieve the above objectives, the present invention provides the following technical solutions.
[0005] A novel intelligent charging method based on an electric vehicle charging pile comprises the following steps:
[0006] Step 1. The charging pile controller generates a random number by calling the random number function, then encrypts the keyword through the specified asymmetric encryption algorithm and public key, and sends the generated ciphertext to the mobile phone Bluetooth via Bluetooth communication;
[0007] Step 2. After receiving the ciphertext, the mobile phone Bluetooth uses the specified asymmetric decryption algorithm and private key to decrypt it, and then sends the generated decrypted keyword to the charging pile Bluetooth;
[0008] Step 3. The charging pile controller compares the read keyword with the previously sent keyword. If they are equal, it means that the mobile phone APP is the designated authorized user. When the gun is plugged in, charging is started to realize the plug-and-charge function.
[0009] The beneficial effects of the present invention are as follows: The charging method of the present invention utilizes the charging pile and mobile phone Bluetooth communication technology. After establishing a Bluetooth connection and the Bluetooth plug-and-charge authorization charging flag bit is 0, when the gun insertion action is detected, within a specified time, through the specified asymmetric algorithm to identify the identity of the mobile phone APP, after the identity recognition authentication passes, the charging is automatically started, which conforms to the development direction of electric vehicle automation technology. Moreover, a custom algorithm generates a random number. When the system starts, the time factor is initialized using the serial number value corresponding to the system time and the product serial number. At the same time, in the 5-millisecond periodic task, the time factor is incremented by 1 periodically, so that when writing the password on the production line, the obtained random numbers are basically non-repeating, improving the confidentiality of the password.
[0010] As an improvement of the present invention, the algorithm implementation of the random number is as follows:
[0011] Initialize the time factor, and then set the time factor value = the year of the system time + the month of the system time + the day of the system time + the hour of the system time * 3600 + the minute of the system time * 60 + the second of the system time + the serial number value corresponding to the product serial number.
[0012] First, find the quotient of the time factor:
[0013] Quotient = time factor / a;
[0014] Then, find the remainder of the time factor: Remainder = time factor % a;
[0015] Then, update the time factor:
[0016] Time factor = ((b * remainder) - (c * quotient));
[0017] Calculate the random number:
[0018] Random number = time factor % 0x7FFFFFFF;
[0019] Among them, a, b, and c are all natural numbers, and a is not 0, and the data bit of a is 17 bits.
[0020] After the Bluetooth module calls the random number function, it directly obtains the random number and also updates the time factor.
[0021] As an improvement of the present invention, before step one, the following steps are further included:
[0022] S1. The charging pile device starts, reads the time recorded by the RTC clock on the charging pile and the serial number value corresponding to the product serial number on the charging pile, and updates the system time.
[0023] As an improvement of the present invention, in step S1, the specific steps include:
[0024] S101. Read the RTC clock through IIC communication, update the system time, and then read the serial number value corresponding to the product serial number stored in the built-in memory of the controller on the charging pile.
[0025] S102. Obtain the serial number value corresponding to the product serial number, convert it into a decimal value, and then initialize the time factor of the random number. The time factor value = the year of the system time + the month of the system time + the day of the system time + the hour of the system time * 3600 + the minute of the system time * 60 + the second of the system time + the serial number value corresponding to the product serial number.
[0026] As an improvement of the present invention, after step three, it further includes step S4, enter the charging state, and detect whether the charging is ended, specifically including:
[0027] S401. Determine whether there is a manual authorization to stop charging, such as swiping the card for authorization or remotely authorizing to stop charging through the cloud. If a request is received, enter step S403; otherwise, enter step S402;
[0028] S402. Determine whether the current charging gun status is the un-plugged state. If it is the un-plugged state, it is necessary to end the charging and enter step S403; otherwise, enter step S401;
[0029] S403. Stop charging.
[0030] As an improvement of the present invention, after stopping charging, enter step S5. In the specified periodic task of the charging pile system, determine whether to clear the Bluetooth Plug and Charge authorization charging flag, specifically including:
[0031] S501. Determine whether there is a Plug and Charge state. If so, enter step S502; if not, end;
[0032] S502. Determine whether the Bluetooth Plug and Charge authorization charging time counting variable is greater than or equal to the threshold value. If it is satisfied, enter step S503; if it is not satisfied, enter S504;
[0033] S503. Determine whether there has been a disconnection state and a charging gun unplugging action state after the Bluetooth connection. If both are satisfied, clear the Bluetooth Plug and Charge authorization charging flag;
[0034] S504. Determine whether there is a charging gun unplugging action state; if it is satisfied, clear the Bluetooth Plug and Charge authorization charging flag.
[0035] As an improvement of the present invention, S7. Production line configuration, the charging pile only allows specified user mobile phones to connect. The specific process is as follows:
[0036] S701. First, write the serial number value corresponding to the specified product serial number through the diagnostic tool. After success, request the system to reset and restart. Wait for the system to start and enter step S702;
[0037] S702. Request to write the password through the diagnostic tool. After the charging pile controller receives the request, enter step S703;
[0038] S703. Calculate a random value by calling the random number generation function, and then calculate the password value = random value % 1000000, and enter step S704.
[0039] S704. Then determine whether the password value is equal to the preset value. If it is equal, regenerate it and enter step S703. Otherwise, convert the password value into the corresponding string and enter step S705;
[0040] S705. The charging pile controller sends the corresponding AT command through serial communication to write the password of the Bluetooth module, and writes the corresponding password string into the Bluetooth module, and enters step S706;
[0041] S706. The charging pile controller sends the corresponding AT command through serial communication to request to read the password of the Bluetooth module. After the Bluetooth module receives the request, it will reply the corresponding password to the charging pile controller. At the same time, it is uploaded to the diagnostic tool, and the password string is recorded through the tool and written into the user manual for the convenience of users to connect and use, and enter step S707;
[0042] S707. The charging pile controller sends the corresponding AT command through serial communication to request to read the name of the Bluetooth module. After the Bluetooth module receives the request, it will reply the corresponding name string to the charging pile controller. At the same time, it is uploaded to the diagnostic tool, and the name string is recorded through the tool and written into the user manual for the convenience of users to connect and use, and enter step S708;
[0043] S708. End the production line configuration.
[0044] As an improvement of the present invention, it further includes setting a freeze mode in the charging pile. When the charging pile is in the freeze state, it stops responding to the charging requests authorized manually and only responds to the Bluetooth plug-and-charge authorized charging service.
[0045] As an improvement of the present invention, set a timeout threshold for the freeze mode. Within the timeout threshold, the charging pile is in the freeze state. After exceeding the timeout threshold, the charging pile exits the freeze state.
[0046] As an improvement of the present invention, before step one, it further includes
[0047] S301. Determine whether the plug-and-charge function is enabled. If it is enabled, enter step S302;
[0048] S302. Determine whether the Bluetooth of the charging pile is connected to the mobile phone. If yes, proceed to step S303;
[0049] S303. Determine whether there is an action state of inserting the charging gun of the charging pile. If yes, proceed to step one.
[0050] As an improvement of the present invention, the following steps are further included between step one and step two:
[0051] S306. Determine whether the variable of the mobile phone identity confirmation timer is greater than or equal to the timeout threshold. If it is greater than or equal to the timeout threshold, it is considered that the mobile phone identity confirmation fails, and the action state of inserting the charging gun is cleared; if it is less than or equal to the timeout threshold, proceed to step two. Description of the Drawings
[0052] Figure 1 It is the overall system block diagram of the present invention. Detailed Embodiment
[0053] The present invention is further explained in conjunction with the drawings.
[0054] Refer to Figure 1 A novel intelligent charging method based on an electric vehicle charging pile is shown, including the following steps:
[0055] S1. The charging pile device is started, and the charging pile controller is initialized; the specific steps include:
[0056] S101. After the charging pile controller initializes the relevant peripherals, set the Bluetooth plug-and-charge authorization charging flag to 0, set the action state of inserting the charging gun to 0, set the action state of unplugging the charging gun to 0, read the RTC clock through IIC communication, and update the system time. Then read the serial number value corresponding to the product serial number stored in the built-in memory of the charging pile controller, and determine whether the function name string of the product serial number is the specified string. If it is the specified string, proceed to step S102; if it is not the specified string, it is considered that the product serial number has not been written in the production line, and proceed to step S2;
[0057] S102. Set the name of the Bluetooth module. First, obtain the last 3-digit string of the product serial number's production line number string. The name of the Bluetooth module is the string Wallbox + the last 3-digit string of the product serial number's production line number string. The charging pile controller sends the corresponding AT command request through serial communication to write the name of the Bluetooth module, and writes the corresponding name string into the Bluetooth module, so that users can quickly and accurately find the Bluetooth module of the specified charging pile, and proceed to step S103;
[0058] S103. Obtain the serial number string of the product serial number, convert it into a decimal value, and then initialize the time factor of the random number. The time factor value = the year of the system time + the month of the system time + the day of the system time + the hour of the system time * 3600 + the minute of the system time * 60 + the second of the system time + the serial number value corresponding to the product serial number, and enter step S2;
[0059] S2. The charging pile system enters the normal working mode, and periodically detects the status of the charging gun in the specified periodic task. When the gun is inserted, the CP voltage is 12V, and when the gun is not inserted, the CP voltage is 9V or 6V. The specific steps are as follows:
[0060] S201. The charging pile controller reads the CP voltage. If it is 12V, the current charging gun status is the uninserted state; otherwise, it is the inserted state. Enter step S202;
[0061] S202. If the previous charging gun status is the uninserted state and the current charging gun status is the inserted state, it is considered that there is an action of inserting the gun, and the charging gun insertion action status is set to 1; if the previous charging gun status is the inserted state and the current charging gun status is the uninserted state, it is considered that there is an action of pulling out the gun, and the charging gun pulling out action status is set to 1; update the status of the charging gun, and the previous charging gun status is equal to the current charging gun status. Enter step S3;
[0062] S3. The charging pile system enters the normal working mode and is in the non-charging state. According to the Bluetooth communication identity confirmation and the charging gun insertion action status, judge whether to automatically start charging to realize the plug-and-charge function;
[0063] S301. Judge whether the plug-and-charge function is enabled. By reading the plug-and-charge flag bit stored in the built-in memory of the charging pile controller, if it is 1, it means it is enabled, and enter step S302; if it is 0, it means it is disabled, and enter step S5;
[0064] S302. Then judge whether the charging pile Bluetooth is connected to the mobile phone and whether the Bluetooth plug-and-charge authorized charging flag is 0; if the charging pile Bluetooth is connected to the mobile phone and the Bluetooth plug-and-charge authorized charging flag is 0, enter step S303; if any one or both of them are not satisfied, enter step S5;
[0065] S303. Judge whether the charging gun insertion action status of the charging pile is 1. If it is satisfied, enter step one; if it is not satisfied, enter step S5;
[0066] Step 1. The charging pile controller generates a random number by calling a random number function, takes the lower 4 bytes as the keyword, encrypts the keyword through a specified asymmetric encryption algorithm and public key, and sends the generated ciphertext to the mobile phone Bluetooth via Bluetooth communication; initialize the mobile phone identity confirmation timer variable to 0, and enter step S305;
[0067] S305. Increment the mobile phone identity confirmation timer variable according to the specified period, and enter step S306;
[0068] S306. Then determine whether the mobile phone identity confirmation timer variable is greater than or equal to the timeout threshold (configured as 2 minutes in this embodiment). If it is greater than or equal to the timeout threshold, it is considered that the mobile phone identity confirmation fails, clear the charging gun plugging action status to 0, and enter step S5; if it is less than or equal to the timeout threshold, enter step 2;
[0069] Step 2. After receiving the ciphertext, the mobile phone Bluetooth decrypts it using the specified asymmetric decryption algorithm and private key, and then sends the generated decrypted keyword to the charging pile Bluetooth; the charging pile controller reads the corresponding keyword through the specified AT command. If it cannot be read, enter step S305; if it can be read, enter step 3;
[0070] Step 3. Compare the read keyword with the previously sent keyword. If they are equal, it means that the mobile phone APP is the specified authorized user. At the same time, set the Bluetooth plug-and-charge authorization charging flag to 1, start charging, and set the charging gun plugging action status to 0, and enter step S4; if they are not equal, enter step S5;
[0071] S4. Enter the charging state. It is necessary to detect whether the charging is ended, and it is necessary to detect the Bluetooth connection status and the charging gun status, etc. The specific steps are as follows:
[0072] S401. Determine whether there is a manual authorization to stop charging, such as swiping a card for authorization or remote authorization from the cloud to stop charging. If a request is received, enter step S403; otherwise, enter step S402;
[0073] S402. Determine whether the current charging gun status is the un-plugged state. If it is the un-plugged state, it is necessary to end the charging and enter step S403; otherwise, enter step S401;
[0074] S403. Stop charging and enter step S5;
[0075] S5. In the specified periodic task of the charging pile system, it is necessary to determine whether to clear the Bluetooth plug-and-charge authorization charging flag. The specific steps are as follows:
[0076] S501. The charging pile controller obtains the Bluetooth connection status. If the previous Bluetooth connection status was the connected state and the current Bluetooth connection status is the disconnected state, then set the Bluetooth disconnection status to 1; the previous Bluetooth connection status is equal to the current Bluetooth connection status; determine whether the Bluetooth plug-and-charge authorized charging flag is 1. If it is 1, then proceed to step S503; if it is not 1, then proceed to step S507;
[0077] S502. Determine whether the Bluetooth plug-and-charge authorized charging time counting variable is greater than or equal to the threshold value (in this embodiment, the threshold value is 5 minutes). If it is satisfied, proceed to step S503; if it is not satisfied, then proceed to S504;
[0078] S503. Determine whether the Bluetooth disconnection status is 1 and whether the charging gun unplugging action status is 1, that is, determine whether there has been a disconnection state and whether there has been a charging gun unplugging action state since the Bluetooth connection. If both are satisfied (i.e., there has been a Bluetooth disconnection and a charging gun unplugging action), then set the Bluetooth plug-and-charge authorized charging flag to 0, set the Bluetooth disconnection status to 0, and set the charging gun unplugging action status to 0, in order to facilitate the next plug-and-charge function and avoid unauthorized charging; proceed to step S506;
[0079] S504. Determine whether the charging gun unplugging action status is 1; if it is satisfied, then set the Bluetooth plug-and-charge authorized charging flag to 0 and set the charging gun unplugging action status to 0, in order to facilitate the next plug-and-charge function. That is, within a certain period of time, if the user needs to re-plug the charging gun due to reasons such as the inaccurate position of the charging gun, at this time, by clearing the authorized charging flag, it is convenient for the user to reconnect,
[0080] ; proceed to step S505;
[0081] S505. Increment the Bluetooth plug-and-charge authorized charging time counting variable by 1; proceed to step S506;
[0082] S506. If the current state is the uncharged state, then proceed to step S3; if the current state is the charging state, then proceed to step S4.
[0083] In step one, the random number algorithm is implemented, and the specific process is as follows:
[0084] S601 Initializes the time factor,
[0085] S602 The production of the random number function is implemented. First, divide the time factor:
[0086] quotient = time factor / a;
[0087] Then take the remainder of the time factor: remainder = time factor % a;
[0088] Re-update time factor:
[0089] Time factor = ((b * remainder) - (c * quotient));
[0090] Calculate random number:
[0091] Random number = time factor % 0x7FFFFFFF;
[0092] Where a, b, and c are all natural numbers, and a is not 0, and the data bit is 17 bits. a cannot be too small. Try to make the data ranges of both the remainder and the quotient relatively large. b should be larger than c to magnify the value range of the time factor. After the Bluetooth module calls the random number function, it directly obtains the random number, and at the same time updates the time factor.
[0093] S7. Production line configuration. To only allow a specified user's mobile phone to connect to the corresponding charging pile, when the user's mobile phone searches for the charging pile Bluetooth device, the correct password needs to be entered for the first time to establish a connection. The internal Bluetooth module of the charging pile generally defaults to a 6-digit digital password as the string "123456", but it is too simple. Therefore, the charging pile controller needs to set the password for the internal Bluetooth module. The process needs to first write the serial number value corresponding to the product serial number, and then write the password. The specific process is as follows:
[0094] S701. First, write the serial number value corresponding to the specified product serial number through the diagnostic tool. After success, request the system to reset and restart. Wait for the system to start and enter step S702;
[0095] S702. Request to write the password through the diagnostic tool. After the charging pile controller receives the request, enter step S703;
[0096] S703. By calling the random number generation function, calculate a random value, and then calculate the password value = random value % 1000000, and enter step S704.
[0097] S704. Then judge whether the password value is equal to the preset value. If it is equal, regenerate it and enter step S703. Otherwise, convert the password value into the corresponding string and enter step S705;
[0098] S705. The charging pile controller sends the corresponding AT command through serial communication to write the password of the Bluetooth module, and writes the corresponding password string into the Bluetooth module, and enters step S706;
[0099] S706. The charging pile controller sends the corresponding AT command through serial communication to request to read the password of the Bluetooth module. After the Bluetooth module receives the request, it will reply with the corresponding password to the charging pile controller. At the same time, it is uploaded to the diagnostic tool, and the password string is recorded through the tool and written into the user manual for the convenience of the user to connect and use, and enter step S707;
[0100] The charging pile controller sends the corresponding AT command through serial communication to request to read the name of the Bluetooth module. After receiving the request, the Bluetooth module will reply with the corresponding name string to the charging pile controller. At the same time, it is uploaded to the diagnostic tool, and the tool records the name string and writes it into the user manual for the convenience of users to connect and use, and then enters step S708;
[0101]
[0100] S708. End the production line configuration.
[0102] S8. The user's mobile phone APP can communicate with the cloud charging service platform through registration to configure the charging pile. The specific process is as follows:
[0103]
[0101] S801. Set the Bluetooth plug-and-charge function to be enabled or disabled. Click the corresponding button on the mobile phone APP interface to select enable. The mobile phone APP will configure the specified charging pile through the platform according to the registered pile number. After receiving the configuration information, the corresponding charging pile saves the plug-and-charge enabled state data in the memory. Each time it starts, it will read the corresponding data. If it is 1, it means the plug-and-charge function is enabled; otherwise, the plug-and-charge function is disabled.
[0104] S802. Set the function of freezing the charging pile. Click the corresponding button on the mobile phone APP interface. The mobile phone APP will freeze the specified charging pile through the platform according to the registered pile number. After receiving the freezing instruction, the charging pile sets the charging pile freezing timeout timer variable to 0 and sets the charging pile freezing state to 1. At the same time, it stops responding to the charging requests authorized manually. The freezing timeout timing is carried out. If it exceeds the specified time, regardless of whether the Bluetooth plug-and-charge charging service is started or not, it will automatically exit the freezing state. When the charging pile is in the freezing state, it only responds to the Bluetooth plug-and-charge authorized charging service.
[0105] In addition, the charging pile system enters the normal working mode and is in the non-charging state. In the specified periodic task, it can also perform charging management according to the authorization. The specific steps are as follows:
[0106]
[0102] S901. The charging pile controller first judges whether the charging pile freezing state is 1. If it is 1, manual authorization is not allowed, and it enters step S902; if it is not 1, manual authorization is allowed, and it enters step S903;
[0107] S902. Increment the charging pile freezing timeout timer variable by 1, and judge whether the charging pile freezing timeout timer variable is greater than or equal to the freezing timeout threshold (configured as 10 minutes in this embodiment). If it is satisfied, set the charging pile freezing state to 0 and enter step S903; if it is not satisfied, enter step S4;
[0108] S903. Is there manual authorization for charging, such as card swiping authorization or cloud remote authorization? If an authorization request is received, initialize the manual authorization timeout counter variable to 0 and proceed to step S904; if not, proceed to step S4;
[0109] S904. Determine whether the current charging gun status of the charging pile is the plugged-in state. If it is the plugged-in state, proceed to step S907; if it is the unplugged state, proceed to step S905;
[0110] S905. Increment the manual authorization timeout counter variable according to the specified period and proceed to step S906;
[0111] S906. Then determine whether the manual authorization timeout counter variable is greater than or equal to the authorization timeout threshold (configured as 5 minutes in this embodiment). If it is greater than or equal to the authorization timeout threshold, it is considered that the manual authorization fails, clear the requested authorization status, and proceed to step S901; if it is less than the authorization timeout threshold, proceed to step S904;
[0112] S907. The charging pile controller starts charging.
[0113] The present invention utilizes the charging pile and mobile phone Bluetooth communication technology. After establishing a Bluetooth connection and the Bluetooth plug-and-charge authorization charging flag bit is 0, when a gun plugging action is detected, within a specified time, through the specified asymmetric algorithm to identify the identity of the mobile phone APP, after the identity recognition authentication passes, the charging is automatically started, which conforms to the development direction of electric vehicle automation technology. Moreover, to prevent unauthorized charging problems, such as forgetting the mobile phone in the vehicle and using the charging pile to charge the attached vehicle, when starting the plug-and-charge function for charging, the Bluetooth plug-and-charge authorization charging flag bit is used to prevent repeated start of the plug-and-charge function. Only under specified conditions, such as: disconnecting the Bluetooth connection and having a gun unplugging action, the Bluetooth plug-and-charge authorization charging flag bit is cleared to 0 to prevent the plug-and-charge function from being started again. A custom algorithm is used to generate a random number. When the system starts, the time factor is initialized using the system time and the serial number corresponding serial number value of the product. At the same time, in the 5-millisecond periodic task, the time factor is incremented periodically. This makes the random numbers obtained when writing the password on the production line basically non-repeating, improving the confidentiality of the password.
[0114] The above is only a preferred embodiment of the present invention. Therefore, all equivalent changes or modifications made according to the structures, features, and principles described in the scope of the present invention patent application are included in the scope of the present invention patent application.
Claims
1. A novel intelligent charging method based on an electric vehicle charging pile, characterized in that: Based on the Bluetooth communication identity confirmation and the state of the charging gun plugging action, determine whether to automatically start charging to achieve the plug-and-charge function. The specific steps are as follows: Step 1. The charging pile controller generates a random number by calling the random number function, then encrypts the keyword through the specified asymmetric encryption algorithm and public key, and sends the generated ciphertext to the mobile phone Bluetooth through Bluetooth communication; Step 2. After receiving the ciphertext, the mobile phone Bluetooth decrypts it using the specified asymmetric decryption algorithm and private key, and then sends the generated decrypted keyword to the charging pile Bluetooth; Step 3. The charging pile controller compares the read keyword with the previously sent keyword. If they are equal, it means it is a specified authorized user, and starts charging when a gun plugging action is detected to achieve the plug-and-charge function; Production line configuration: The charging pile only allows specified user mobile phones to connect. The specific process is as follows: S701. Write the specified corresponding serial number value through the diagnostic tool and enter step S702; S702. Request to write the password through the diagnostic tool. After the charging pile controller receives the request, enter step S703; S703. Calculate a random value by calling the random number generation function, and then calculate the password value = random value % 1000000, and enter step S704; S704. Then judge whether the password value is equal to the preset value. If it is equal, regenerate it and enter step S703; otherwise, convert the password value into the corresponding string and enter step S705; S705. The charging pile controller sends the corresponding instruction through serial communication to write the password of the Bluetooth module, and writes the corresponding password string into the Bluetooth module, and enters step S706; S706. The charging pile controller sends the corresponding instruction through serial communication to request to read the password of the Bluetooth module. After the Bluetooth module receives the request, it will reply the corresponding password to the charging pile controller and enter step S707; S707. The charging pile controller sends the corresponding instruction through serial communication to request to read the name of the Bluetooth module. After the Bluetooth module receives the request, it will reply the corresponding name string to the charging pile controller and enter step S708; S708. End the production line configuration.
2. The novel intelligent charging method based on an electric vehicle charging pile according to claim 1, characterized in that: The algorithm implementation of the random number is as follows: Initialize the time factor, and then set the time factor value = the year of the system time + the month of the system time + the day of the system time + the hour of the system time * 3600 + the minute of the system time * 60 + the second of the system time + the serial number value corresponding to the product serial number, First, divide the time factor: Quotient = time factor / a; Then take the remainder of the time factor: Remainder = time factor % a; Then update the time factor: Time factor = ((b * Remainder) - (c * Quotient)); Calculate the random number: Random number = time factor % 0x7FFFFFFF; Among them, a, b, and c are all natural numbers, and a is not 0, and the data bit of a is 17 bits, After the Bluetooth module calls the random number function, it directly obtains the random number and also updates the time factor.
3. A novel intelligent charging method based on an electric vehicle charging pile according to claim 2, characterized in that: Before step 1, the following steps are also included: S1. The charging pile device starts, reads the time recorded by the RTC clock on the charging pile and the serial number value corresponding to the product serial number on the charging pile, and updates the system time.
4. A novel intelligent charging method based on an electric vehicle charging pile according to claim 3, wherein: In step S1, the specific steps include: S101. Read the clock on the charging pile, update the system time, and then read the serial number value corresponding to the product serial number stored in the built-in memory of the controller on the charging pile; S102. Obtain the serial number value corresponding to the product serial number, convert it into a decimal value, and then initialize the time factor of the random number. The time factor value = the year of the system time + the month of the system time + the day of the system time + the hour of the system time * 3600 + the minute of the system time * 60 + the second of the system time + the decimal value of the serial number value corresponding to the product serial number.
5. A novel intelligent charging method based on an electric vehicle charging pile according to claim 3, characterized in that: After step three, step S4 is also included. Enter the charging state and detect whether to end the charging, specifically including: S401. Judge whether there is a manual authorization to stop charging, such as swiping a card for authorization or remotely authorizing to stop charging through the cloud. If a request is received, enter step S403; otherwise, enter step S402; S402. Judge whether the current charging gun state is the state of not inserting the gun. If it is the state of not inserting the gun, then it is necessary to end the charging and enter step S403; otherwise, enter step S401; S403. Stop charging.
6. A novel intelligent charging method based on an electric vehicle charging pile according to claim 5, characterized in that: After stopping charging, enter step S5. In the specified periodic task of the charging pile system, judge whether to clear the Bluetooth plug-and-charge authorization charging flag, specifically including: S501. Judge whether the plug-and-charge state is enabled. If so, enter step S502; S502. Judge whether the Bluetooth plug-and-charge authorization charging time counting variable is greater than or equal to the threshold value. If it is satisfied, enter step S503; if it is not satisfied, enter S504; S503. Judge whether there has been a disconnection state and a charging gun unplugging action state after Bluetooth connection. If both are satisfied, clear the Bluetooth plug-and-charge authorization charging flag; S504. Judge whether there is a charging gun unplugging action state; if it is satisfied, clear the Bluetooth plug-and-charge authorization charging flag.
7. A novel intelligent charging method based on an electric vehicle charging pile according to claim 1, characterized in that: It also includes setting a freeze mode in the charging pile. When the charging pile is in the frozen state, it stops responding to the charging requests authorized manually and only responds to the Bluetooth plug-and-charge authorization charging service.
8. A novel intelligent charging method based on an electric vehicle charging pile according to claim 7, characterized in that: Set a timeout threshold for the freeze mode. Within the timeout threshold, the charging pile is in the frozen state. After exceeding the timeout threshold, the charging pile exits the frozen state.
9. A novel intelligent charging method based on an electric vehicle charging pile according to claim 1, wherein: The following steps are also included between step one and step two: S306. Judge whether the mobile phone identity confirmation timer variable is greater than or equal to the timeout threshold. If it is greater than or equal to the timeout threshold, it is considered that the mobile phone identity confirmation fails, and the charging gun plugging action state is cleared; if it is less than or equal to the timeout threshold, enter step two.
Citation Information
Patent Citations
Vehicle charging safety management method
CN112583595A
Electric vehicle charging method, system and device, charging pile and storage medium
CN114394026A