Plug-and-play charging instant decoding method and device for automobile

The state machine jump method is used to analyze the PWM signal emitted by the charging pile, which solves the problem of inability to interpret the PWM signal immediately in plug-and-charge technology, realizes instant decoding of the charging process, and improves charging efficiency.

CN118544868APending Publication Date: 2024-08-27BAIC MOTOR CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410640594.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing plug-and-charge technology cannot instantly interpret the PWM signal emitted by the charging pile, resulting in delayed identification and decoding feedback.

Method used

Using a method based on state machine jumps, by creating CODE codes and forming corresponding PWM data packets, receiving and analyzing PWM wave signals one by one, and utilizing the timing information of the sending identification, header, manufacturer code and vehicle pile verification random code to achieve real-time decoding.

Benefits of technology

It achieves instant decoding of PWM signals, solves the problem of inability to interpret feedback immediately in plug-and-charge technology, and improves the efficiency of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118544868A
    Figure CN118544868A
Patent Text Reader

Abstract

The invention discloses a plug-and-play charging instant decoding method and a plug-and-play charging instant decoding device for an automobile. The method comprises the steps that a CODE code is created based on a CODE code request of a charging pile and returned to the charging pile, the charging pile forms a PWM data packet corresponding to the CODE code based on a CODE code coding rule and sends the PWM data packet at least once according to a guide time sequence, and the PWM data packet comprises a sending identifier, a packet header, two manufacturer codes and five bicycle pile verification random codes; wherein the sending identifier, the packet header, each manufacturer code and each bicycle pile verification random code respectively correspond to a section of PWM wave signal; and receiving each section of PWM wave signal of the PWM data packet one by one, and identifying and analyzing each section of PWM wave signal in the PWM data packet one by one based on a state machine jump mode in the receiving process to obtain a complete CODE code corresponding to the PWM data packet. According to the method, on the basis of CODE time sequence and instant decoding requirements, code development is carried out through state machine skipping, and instant decoding can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and more specifically, relates to a method and device for instant decoding of plug-and-charge of a car. Background Art

[0002] At present, in the development process of new energy vehicle projects, charging piles and automobile suppliers provide an interface for collecting PWM related parameters based on the plug-and-charge requirements for identifying and decoding CODE code PWM signals.

[0003] However, the acquisition interface only has basic information such as frequency, duty cycle, period, etc., and cannot decode the manufacturer code and random CODE issued by the charging pile according to the PWM coding specification.

[0004] The current plug-and-play recognition and decoding method for PWM signals is to first collect and then perform decoding calculations, which has the technical problem of being unable to interpret feedback in real time.

[0005] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0006] The purpose of the present invention is to propose a method and device for instant decoding of plug-and-charge of automobiles, which can realize instant decoding based on CODE timing and instant decoding requirements and based on state machine jump, and solve the technical problem that the current plug-and-charge recognition and decoding methods of PWM signals cannot provide instant interpretation and feedback.

[0007] To achieve the above objectives, in a first aspect, the present invention proposes a method for instant decoding of plug-and-play charging of a car, the method comprising:

[0008] A CODE code is created based on the CODE code request of the charging pile and returned to the charging pile. The charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a section of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration;

[0009] Each PWM wave signal of the PWM data packet is received one by one, and during the receiving process, each PWM wave signal in the PWM data packet is identified and analyzed one by one based on the state machine jump method to obtain a complete CODE code corresponding to the PWM data packet.

[0010] Optionally, in the PWM data packet, the PWM wave signal corresponding to the sending identifier is the first PWM wave of multiple consecutive cycles, the packet header is a high-level signal of continuous duration, each bit of manufacturer code or vehicle pile verification random code is the first PWM wave of multiple consecutive cycles formed according to the coding rules, and the number of consecutive PWM waves represents a specific number.

[0011] Optionally, the state machine is configured to have an initialization state, a first state, a second state, a third state, a fourth state and a fifth state, and performs recognition tasks when in the initialization state, the first state and the second state, and performs parsing tasks when in the third state, the fourth state and the fifth state.

[0012] Optionally, the identifying and parsing each PWM wave signal in the PWM data packet one by one based on the state machine jump method includes:

[0013] In the identification task, if the state machine is currently in the initialization state, it directly jumps to the first state;

[0014] In the first state, the sending identifier is detected, and when the PWM wave corresponding to the sending identifier is detected and identified, the state is jumped to the second state;

[0015] In the second state, after the PWM wave corresponding to the packet header is identified, the data acquisition flag is turned on to start collecting the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code in turn, and the number of collected PWM waves is recorded through a global array, and then jump to the third state to execute the analysis task.

[0016] Optionally, the identifying and parsing each PWM wave signal in the PWM data packet one by one based on the state machine jump method includes:

[0017] In the parsing task:

[0018] In the third state, the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code collected in sequence are counted, the number of PWM waves in each PWM signal is parsed and converted into corresponding CODE numbers, until the number of collected PWM waves reaches the set number or the collection flag is identified as 0, the data parsing is completed and jumps to the fourth state;

[0019] In the fourth state, all CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, and the process jumps to the fifth state;

[0020] In the fifth state, after clearing the global array and technical information, switch back to the initialization state to prepare for receiving the PWM data packet sent by the charging pile next time.

[0021] Optionally, the charging pile sends the PWM data packet three times in succession;

[0022] During each parsing process of the PWM data packet, in the fourth state, after all CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, the corresponding sending completion flag is set to 1 and the application layer is notified. After all three sendings are completed, the sending completion flag is sent to notify the application layer.

[0023] Optionally, the frequency of the first PWM wave is 1KHZ and the duty cycle is 5%;

[0024] The PWM wave signal corresponding to the sending flag is the first PWM wave of 5 consecutive cycles within 5ms±1ms;

[0025] The packet header is a 9V level signal with a duration of 50ms±5ms;

[0026] Each PWM wave signal corresponding to each manufacturer code or vehicle pile verification random code is separated by a 9V high level with a duration of 20ms±5ms.

[0027] Optionally, the encoding rule is:

[0028] Number 1: 10 cycles of the first PWM wave, duration 10ms;

[0029] Number 2: 20 cycles of the first PWM wave, duration 20ms;

[0030] Number 3: 30 cycles of the first PWM wave, duration 30ms;

[0031] Number 4: 40 cycles of the first PWM wave, duration 40ms;

[0032] Number 5: 50 cycles of the first PWM wave, duration 50ms;

[0033] Number 6: 60 cycles of the first PWM wave, duration 60ms;

[0034] Number 7: 70 cycles of the first PWM wave, duration 70ms;

[0035] Number 8: 80 cycles of the first PWM wave, duration 80ms;

[0036] Number 9: 90 cycles of the first PWM wave, duration 90ms;

[0037] Digital 0: 100 cycles of the first PWM wave, duration 100ms.

[0038] In a second aspect, the present invention provides a plug-and-charge instant decoding device for a car, comprising:

[0039] A CODE code creation module is used to: create a CODE code based on the CODE code request of the charging pile and return it to the charging pile, the charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a packet header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the packet header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a section of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration;

[0040] The parsing module is used to: receive each PWM wave signal of the PWM data packet one by one, and in the receiving process, identify and parse each PWM wave signal in the PWM data packet one by one based on the state machine jump method to obtain the complete CODE code corresponding to the PWM data packet.

[0041] In a third aspect, the present invention proposes a charging cloud platform, comprising: a plug-and-charge instant decoding device for a car as described in claim 9.

[0042] The beneficial effects of the present invention are as follows: the method of the present invention first creates a CODE code based on the CODE code request of the charging pile and returns it to the charging pile, the charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rules, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a packet header, two-digit manufacturer codes and a five-digit vehicle pile verification random code, wherein the sending identifier, the packet header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a segment of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration; and then each segment of the PWM wave signal of the PWM data packet is received one by one, and during the receiving process, each segment of the PWM wave signal in the PWM data packet is identified and analyzed one by one based on the state machine jump method, and the complete CODE code corresponding to the PWM data packet is obtained. Based on the requirements of CODE timing and instant decoding, the method develops code based on state machine jumps to achieve instant decoding.

[0043] The system of the present invention has other characteristics and advantages, which will be apparent from the drawings incorporated herein and the following detailed description, or will be described in detail in the drawings incorporated herein and the following detailed description, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, in which like reference numerals generally represent like components.

[0045] Figure 1 A flow chart showing the steps of the instant decoding method for plug-and-charge of a car according to the present invention is shown.

[0046] Figure 2 A schematic diagram of an overall solution of a plug-and-charge function is shown.

[0047] Figure 3 A schematic diagram of a plug-and-charge boot sequence is shown.

[0048] Figure 4 A schematic diagram showing a set of CP interaction information according to the present invention.

[0049] Figure 5 A schematic diagram of a code flow according to an embodiment of the present invention is shown.

[0050] Figure 6 A schematic diagram of a code flow according to another embodiment of the present invention is shown.

[0051] Figure 7 A schematic structural diagram of a plug-and-charge instant decoding device for a car according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0052] The present invention will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0053] According to the present invention, a charging instant decoding method for plug-and-play charging of a car is as follows: Figure 1 As shown, the method includes:

[0054] Step 101: Create a CODE code based on the CODE code request of the charging pile and return it to the charging pile. The charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the boot sequence, wherein the PWM data packet includes: a sending identifier, a packet header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the packet header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a segment of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration.

[0055] Step 102: Receive each PWM wave signal of the PWM data packet one by one, and identify and analyze each PWM wave signal in the PWM data packet one by one based on the state machine jump method during the receiving process to obtain a complete CODE code corresponding to the PWM data packet.

[0056] Through the specific implementation of this embodiment, code development can be carried out based on CODE timing and real-time decoding requirements, as well as state machine jumps, to achieve real-time decoding.

[0057] Preferably, in the PWM data packet, the PWM wave signal corresponding to the sending identifier is the first PWM wave of multiple consecutive cycles, the packet header is a high-level signal of continuous duration, each bit of manufacturer code or vehicle pile verification random code is the first PWM wave of multiple consecutive cycles formed according to the coding rules, and the number of consecutive PWM waves represents a specific number.

[0058] Preferably, the state machine is configured to have an initialization state, a first state, a second state, a third state, a fourth state and a fifth state, and performs recognition tasks when in the initialization state, the first state and the second state, and performs parsing tasks when in the third state, the fourth state and the fifth state.

[0059] Preferably, identifying and parsing each PWM wave signal in the PWM data packet one by one based on the state machine jump method includes: in the identification task, if the state machine is currently in the initialization state, it directly jumps to the first state; in the first state, the sending identifier is detected, and when the PWM wave corresponding to the sending identifier is detected and identified, it jumps to the second state; in the second state, after the PWM wave corresponding to the packet header is identified, the data acquisition flag is turned on to start collecting the PWM wave signal corresponding to each manufacturer code or vehicle pile verification random code in turn, and the number of collected PWM waves is recorded through a global array, and then jumps to the third state to execute the parsing task.

[0060] Preferably, identifying and parsing each PWM wave signal in the PWM data packet one by one based on the state machine jump method includes: in the parsing task: in the third state, counting the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code collected in sequence, parsing the number of PWM waves in each PWM signal and converting it into the corresponding CODE number, until the number of collected PWM waves reaches the set number or the collection flag is identified as 0, completing the data parsing and jumping to the fourth state; in the fourth state, assigning all CODE numbers calculated in the third state to the corresponding interface of the application layer, and jumping to the fifth state; in the fifth state, after clearing the global array and technical information, switching back to the initialization state, preparing to receive the next PWM data packet sent by the charging pile.

[0061] Preferably, the charging pile sends three PWM data packets in succession; in each parsing process of the PWM data packet, in the fourth state, after all the CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, the corresponding sending completion flag is set to 1 and the application layer is notified. After all three transmissions are completed, the all sending completion flag is sent to notify the application layer.

[0062] Preferably, the frequency of the first PWM wave is 1KHZ and the duty cycle is 5%; the PWM wave signal corresponding to the sending mark is the first PWM wave of 5 consecutive cycles within 5ms±1ms; the packet header is a 9V level signal with a duration of 50ms±5ms; the PWM wave signal corresponding to each bit of manufacturer code or vehicle pile verification random code is separated by a 9V high level with a duration of 20ms±5ms.

[0063] Preferably, the encoding rules are:

[0064] Number 1: 10 cycles of the first PWM wave, duration 10ms;

[0065] Number 2: 20 cycles of the first PWM wave, duration 20ms;

[0066] Number 3: 30 cycles of the first PWM wave, duration 30ms;

[0067] Number 4: 40 cycles of the first PWM wave, duration 40ms;

[0068] Number 5: 50 cycles of the first PWM wave, duration 50ms;

[0069] Number 6: 60 cycles of the first PWM wave, duration 60ms;

[0070] Number 7: 70 cycles of the first PWM wave, duration 70ms;

[0071] Number 8: 80 cycles of the first PWM wave, duration 80ms;

[0072] Number 9: 90 cycles of the first PWM wave, duration 90ms;

[0073] Digital 0: 100 cycles of the first PWM wave, duration 100ms.

[0074] The present invention is further described below by means of specific examples.

[0075] Example 1

[0076] This embodiment provides a method for instant decoding of plug-and-charge charging for a car.

[0077] When charging new energy vehicles, the overall solution of the plug-and-charge function is as follows: Figure 2 As shown in the figure, the boot sequence of plug and charge is as follows Figure 3 As shown, after receiving the CODE code, the charging pile sends it through the CP signal according to a specific coding rule. The information sent includes the data packet sending identifier and the data packet. Figure 4 The format shown is sent three times in succession.

[0078] Data packet sending mark: Send 5 cycles of 5% PWM signal (5ms±1ms) continuously, and start sending data packets after (0.95ms±0.03ms) after sending is completed.

[0079] The data packet includes: data packet header, manufacturer code (DATA1, DATA2), vehicle pile verification random code (DATA3-DATA7), where the header is a 9V level signal of 50ms±5ms, and the manufacturer code and vehicle pile verification random code are represented by the number of PWM waves with a frequency of 1KHZ and a duty cycle of 5%. The specific expression is as follows:

[0080] 1) Number 1: 10 cycles of PWM wave with a frequency of 1KHZ, a duty cycle of 5%, and a duration of 10ms;

[0081] 2) Number 2: 20 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 20ms;

[0082] 3) Number 3: 30 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 30ms;

[0083] 4) Number 4: 40 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 40ms;

[0084] 5) Number 5: 50 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 50ms;

[0085] 6) Number 6: 60 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 60ms;

[0086] 7) Number 7: 70 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 70ms;

[0087] 8) Number 8: 80 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 80ms;

[0088] 9) Number 9: 90 cycles of 1KHZ frequency, 5% duty cycle PWM wave, duration 90ms;

[0089] 10) Digital 0: 100 cycles of PWM wave with a frequency of 1KHZ, a duty cycle of 5%, and a duration of 100ms.

[0090] In view of the above rules, based on the BSW module (BSW, Basic Software, basic software module), the following methods are implemented through software code:

[0091] (1) Contents implemented in the 1ms task (i.e., recognition task)

[0092] In the 1ms task, the data transmission flag will be detected when BSW_State=1 (continuously sending 5 cycles of 5% PWM signal). After the detection is successful, the control jumps to BSW_State=2 state to start data collection. 1ms collects a value and puts it in the global array while recording the number of collected values. Poll to check whether there is data that has been parsed and send 0x577 messages for 40 frames with a period of 100ms. After the transmission is completed, clear the global related variable values ​​(such as the array for storing data and the number of collected data values, etc.) to prepare for the next collection.

[0093] The process is as follows Figure 5 As shown, where:

[0094] BSW_State=0 is mainly the initialization state. It will be detected in each 1ms task. If it is in the 0 state, it will jump directly to the 1 state.

[0095] BSW_State=1 mainly performs the identification of data transmission mark and the control of data collection start. When it reaches this state and the data transmission mark is successfully identified, the data collection flag is turned on and data collection begins. Data collection stops when the data collection reaches the specified number (the maximum number of PWMs required to complete a CODE transmission) or the data collection flag is 0 (the transmission of 0x577 is completed as required). In this state, when the data transmission mark is successfully identified, the state of BSW_State=2 is entered.

[0096] (2) Content implemented in the 20ms task (i.e., parsing task)

[0097] In the 20ms task, the main task is to analyze the collected data. When BSW_State=2, the packet header (50ms±5ms 9V level signal) information is identified and the state BSW_State=3 is entered to analyze the number of PWM and convert it into the corresponding CODE number. After judging that the next reception is completed and the 9V high level lasting 200ms±5ms ends this state and jumps to the next state BSW_State=4. In this state, the obtained value is assigned to the variable provided by the application layer, and the corresponding flag is set to the application layer for the next operation. After completing this operation, enter the next state BSW_State=5. This state mainly clears some variable values ​​used in this process to prepare for the next data reception.

[0098] The specific process is as follows Figure 6 As shown, where:

[0099] BSW_State=2 mainly identifies the packet header information 50ms±5ms 9V level signal

[0100] In the BSW_State=3 state, DATA0 is received first. Every time a point with a frequency of 1000hz is traversed, the PWM count value is increased by one, until the DATA with a frequency of 0 is traversed, and the high level between DATAs is waited for 20ms±5ms, and then DATA1 is received. This is repeated until DATA7 is received, and the high level lasting 200ms±5ms after the corresponding DATA is sent is recognized to complete the analysis of this data.

[0101] The BSW_State=4 state is mainly responsible for assigning the CODE value calculated in the previous state to the corresponding interface of the application layer. At the same time, in the three CP signal transmissions, each time the transmission is completed, the corresponding transmission completion flag is set to 1 to notify the application layer. After all three transmissions are completed, the all transmission completion flag is sent to notify the application layer.

[0102] The BSW_State=5 state mainly restores some variables involved in the whole process, such as BSW_State, to their initial values, in preparation for the next data reception.

[0103] This embodiment develops code based on CODE timing and real-time decoding requirements, as well as state machine jumps, to achieve real-time decoding.

[0104] Example 2

[0105] This embodiment provides a charging instant decoding device for plug-and-play charging of a car, such as Figure 7 As shown, the device includes: a CODE code creating module 31 and a parsing module 32.

[0106] A CODE code creation module 31 is used to: create a CODE code based on the CODE code request of the charging pile and return it to the charging pile, the charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a section of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration;

[0107] The parsing module 32 is used to: receive each PWM wave signal of the PWM data packet one by one, and identify and parse each PWM wave signal in the PWM data packet one by one based on the state machine jump method during the receiving process to obtain the complete CODE code corresponding to the PWM data packet.

[0108] In a specific application scenario, the CODE code creation module 31 is specifically used in the PWM data packet, the PWM wave signal corresponding to the sending identifier is the first PWM wave of multiple consecutive cycles, the packet header is a high-level signal of continuous duration, and each bit of manufacturer code or vehicle pile verification random code is the first PWM wave of multiple consecutive cycles formed according to the coding rules, and the number of consecutive PWM waves represents a specific number.

[0109] In a specific application scenario, the parsing module 32 is specifically used for a state machine configured to have an initialization state, a first state, a second state, a third state, a fourth state and a fifth state, and performs recognition tasks when in the initialization state, the first state and the second state, and performs parsing tasks in the third state, the fourth state and the fifth state.

[0110] In a specific application scenario, the parsing module 32 is specifically used to identify and parse each PWM wave signal in the PWM data packet one by one based on a state machine jump method, including: in the identification task, if the state machine is currently in the initialization state, it directly jumps to the first state; in the first state, the sending identifier is detected, and when the PWM wave corresponding to the sending identifier is detected and identified, it jumps to the second state; in the second state, after the PWM wave corresponding to the packet header is identified, the data acquisition flag is turned on to start collecting the PWM wave signal corresponding to each manufacturer code or vehicle pile verification random code in turn, and the number of collected PWM waves is recorded through a global array, and then jumps to the third state to execute the parsing task.

[0111] In a specific application scenario, the parsing module 32 is also specifically used to identify and parse each PWM wave signal in the PWM data packet one by one in the state machine jump-based manner, including: in the parsing task: in the third state, the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code collected in sequence are counted, the number of PWM waves in each PWM signal is parsed and converted into corresponding CODE numbers, until the number of collected PWM waves reaches the set number or the collection flag is identified as 0, the data parsing is completed and jumps to the fourth state; in the fourth state, all CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, and jump to the fifth state; in the fifth state, after clearing the global array and technical information, switch back to the initialization state to prepare for receiving the next PWM data packet sent by the charging pile.

[0112] In a specific application scenario, the parsing module 32 is specifically used for the charging pile to continuously send the PWM data packet three times; in each parsing process of the PWM data packet, in the fourth state, after all the CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, the corresponding sending completion flag is set to 1 and the application layer is notified. After all three sendings are completed, the all sending completion flag is sent to notify the application layer.

[0113] In a specific application scenario, the parsing module 32 is specifically used for the first PWM wave with a frequency of 1KHZ and a duty cycle of 5%; the PWM wave signal corresponding to the sending mark is the first PWM wave of 5 consecutive cycles within 5ms±1ms; the packet header is a 9V level signal with a duration of 50ms±5ms; and the PWM wave signal corresponding to each bit of the manufacturer code or the vehicle pile verification random code is separated by a 9V high level with a duration of 20ms±5ms.

[0114] In a specific application scenario, the parsing module 32 is also specifically used for the encoding rule: Number 1: 10 cycles of the first PWM wave, with a duration of 10ms; Number 2: 20 cycles of the first PWM wave, with a duration of 20ms; Number 3: 30 cycles of the first PWM wave, with a duration of 30ms; Number 4: 40 cycles of the first PWM wave, with a duration of 40ms; Number 5: 50 cycles of the first PWM wave, with a duration of 50ms; Number 6: 60 cycles of the first PWM wave, with a duration of 60ms; Number 7: 70 cycles of the first PWM wave, with a duration of 70ms; Number 8: 80 cycles of the first PWM wave, with a duration of 80ms; Number 9: 90 cycles of the first PWM wave, with a duration of 90ms; Number 0: 100 cycles of the first PWM wave, with a duration of 100ms.

[0115] It should be noted that for other corresponding descriptions of the functional units involved in the instant decoding device for plug-and-play charging of a car provided in this embodiment, please refer to Figure 1 The corresponding description in will not be repeated here.

[0116] Example 3

[0117] This embodiment provides a vehicle, which may specifically include: Figure 7 The illustrated instant decoding device for plug-and-play charging of a vehicle may be a controller or electronic device for executing the instant decoding method for plug-and-play charging of a vehicle of the above embodiment. The vehicle may specifically be a new energy vehicle or the like.

[0118] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A plug-and-play charging instant decoding method for a car, characterized in that: The method comprises: A CODE code is created based on the CODE code request of the charging pile and returned to the charging pile. The charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a section of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration; Each PWM wave signal of the PWM data packet is received one by one, and during the receiving process, each PWM wave signal in the PWM data packet is identified and analyzed one by one based on the state machine jump method to obtain a complete CODE code corresponding to the PWM data packet.

2. The method according to claim 1, characterized in that In the PWM data packet, the PWM wave signal corresponding to the sending identifier is the first PWM wave of multiple consecutive cycles, the packet header is a high-level signal of continuous duration, each bit of manufacturer code or vehicle pile verification random code is the first PWM wave of multiple consecutive cycles formed according to the coding rules, and the number of consecutive PWM waves represents a specific number.

3. The method according to claim 2, characterized in that The state machine is configured to have an initialization state, a first state, a second state, a third state, a fourth state and a fifth state, and performs recognition tasks when in the initialization state, the first state and the second state, and performs parsing tasks when in the third state, the fourth state and the fifth state.

4. The method according to claim 3, characterized in that The method of identifying and analyzing each PWM wave signal in the PWM data packet one by one based on the state machine jump includes: In the identification task, if the state machine is currently in the initialization state, it directly jumps to the first state; In the first state, the sending identifier is detected, and when the PWM wave corresponding to the sending identifier is detected and identified, the state is jumped to the second state; In the second state, after the PWM wave corresponding to the packet header is identified, the data acquisition flag is turned on to start collecting the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code in turn, and the number of collected PWM waves is recorded through a global array, and then jump to the third state to execute the analysis task.

5. The method according to claim 4, characterized in that The method of identifying and analyzing each PWM wave signal in the PWM data packet one by one based on the state machine jump includes: In the parsing task: In the third state, the PWM wave signals corresponding to each manufacturer code or vehicle pile verification random code collected in sequence are counted, the number of PWM waves in each PWM signal is parsed and converted into corresponding CODE numbers, until the number of collected PWM waves reaches the set number or the collection flag is identified as 0, the data parsing is completed and jumps to the fourth state; In the fourth state, all CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, and the process jumps to the fifth state; In the fifth state, after clearing the global array and technical information, switch back to the initialization state to prepare for receiving the PWM data packet sent by the charging pile next time.

6. The method according to claim 5, characterized in that The charging pile sends the PWM data packet three times in succession; During each parsing process of the PWM data packet, in the fourth state, after all CODE numbers calculated in the third state are assigned to the corresponding interface of the application layer, the corresponding sending completion flag is set to 1 and the application layer is notified. After all three sendings are completed, the sending completion flag is sent to notify the application layer.

7. The method according to claim 2, characterized in that The frequency of the first PWM wave is 1KHZ, and the duty cycle is 5%; The PWM wave signal corresponding to the sending flag is the first PWM wave of 5 consecutive cycles within 5ms±1ms; The packet header is a 9V level signal with a duration of 50ms±5ms; Each PWM wave signal corresponding to each manufacturer code or vehicle pile verification random code is separated by a 9V high level with a duration of 20ms±5ms.

8. The method according to claim 6, characterized in that The encoding rules are: Number 1: 10 cycles of the first PWM wave, duration 10ms; Number 2: 20 cycles of the first PWM wave, duration 20ms; Number 3: 30 cycles of the first PWM wave, duration 30ms; Number 4: 40 cycles of the first PWM wave, duration 40ms; Number 5: 50 cycles of the first PWM wave, duration 50ms; Number 6: 60 cycles of the first PWM wave, duration 60ms; Number 7: 70 cycles of the first PWM wave, duration 70ms; Number 8: 80 cycles of the first PWM wave, duration 80ms; Number 9: 90 cycles of the first PWM wave, duration 90ms; Digital 0: 100 cycles of the first PWM wave, duration 100ms.

9. A plug-and-play charging instant decoding device for a car, characterized in that: include: A CODE code creation module is used to: create a CODE code based on the CODE code request of the charging pile and return it to the charging pile, the charging pile forms a PWM data packet corresponding to the CODE code based on the CODE code encoding rule, and sends the PWM data packet at least once according to the guide timing, wherein the PWM data packet includes: a sending identifier, a packet header, a two-digit manufacturer code and a five-digit vehicle pile verification random code, wherein the sending identifier, the packet header, each bit of the manufacturer code and each bit of the vehicle pile verification random code respectively correspond to a section of PWM wave signal, and adjacent PWM wave segments are separated by a high level of a set duration; The parsing module is used to: receive each PWM wave signal of the PWM data packet one by one, and in the receiving process, identify and parse each PWM wave signal in the PWM data packet one by one based on the state machine jump method to obtain the complete CODE code corresponding to the PWM data packet.

10. An automobile, characterized in that: include: The instant decoding device for plug-and-charge of a car as claimed in claim 9.