Control guidance signal detection method, device, storage medium and vehicle
By using voltage acquisition based on the target voltage sampling frequency and voltage threshold range identification, the detection method of the control guidance signal is simplified, solving the problems of complexity and high cost in the existing technology, and realizing accurate identification of the CP signal voltage state and reliable control of the charging and discharging process.
Patent Information
- Application Number
- CN202611327841.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-20
AI Technical Summary
In the existing technology, the detection method of control and guidance signal is complicated and costly. The MCU is cumbersome to process when identifying voltage status, which can easily lead to abnormal charging and discharging functions and affect user experience.
A control guidance signal detection method is adopted, which obtains voltage data sequence by sampling the target voltage based on the sampling frequency, determines the voltage prior value by combining the effective voltage threshold range, and then identifies the voltage state. This simplifies the hardware circuit design and is applicable to different CP signal voltage acquisition hardware circuits and MCU CP signal acquisition circuits.
It achieves accurate identification of the voltage state of the CP signal under simplified hardware circuit conditions, adapts to multiple standard charging and discharging conditions, and improves the reliability and efficiency of the charging and discharging process.
Smart Images

Figure CN123136172A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive electronics technology, and more particularly to a method, apparatus, storage medium, and vehicle for detecting control and guidance signals. Background Technology
[0002] In recent years, electric vehicles have been widely promoted due to their low operating costs and energy-saving and environmentally friendly advantages. AC charging, as a common charging method for electric vehicles, has advantages such as less damage to the battery, low charging costs, and high compatibility with infrastructure. AC discharge functionality allows electric vehicles to become mobile energy storage devices, providing energy to electrical equipment at any time, significantly enhancing the practicality of electric vehicles. According to national standards, for vehicles that meet national, European, and American AC charging and discharging standards, the voltage, frequency, and duty cycle of the PWM (Pulse Width Modulation) signal in the control guidance circuit need to be detected during the charging and discharging process to determine the current state of the vehicle and the charging / discharging equipment, and control the charging and discharging process accordingly.
[0003] The CP (Control Pilot) function is used to monitor the interaction between the vehicle and the vehicle's power supply equipment (such as a charging station), or the interaction between the vehicle and the electrical equipment (such as an external load). When the on-board charger detects that the charging port is fully connected to the charging gun, the external power supply equipment or external load communicates with the on-board charger based on the CP signal.
[0004] Existing CP signal voltage detection methods mainly use two voltage detection circuits composed of components such as resistors, capacitors, and operational amplifiers to detect the high nominal voltage value and low level of the control and guidance signal, respectively. The collected data is processed using a filtering algorithm, and the original CP voltage value is calculated based on the collected voltage according to the hardware design principle. The current state of the CP signal is then determined based on the calculated original voltage value.
[0005] Existing technologies require separate voltage acquisition and calculation for the high and low levels of the CP signal, resulting in complex and costly dual-acquisition circuit designs. Furthermore, the MCU (Microcontroller Unit) needs to process the data in conjunction with the hardware's acquisition principles to separately calculate the original high and low nominal voltage values of the CP signal during voltage state identification. The voltage state identification logic and the acquisition circuit structure have a strong correlation, making the process cumbersome and resulting in poor algorithm reusability. In addition, improper matching of digital filtering algorithms or voltage calculation logic can lead to significant errors in the identified CP voltage value, causing false detections of the current charging state. This can result in abnormal shutdown or inability to start the charging / discharging function, negatively impacting the user experience. Summary of the Invention
[0006] This application provides a control guidance signal detection method, apparatus, storage medium, and vehicle, with the aim of effectively identifying the voltage state of the control guidance signal in the vehicle's AC charging and discharging system.
[0007] To achieve the above objectives, this application provides the following technical solution:
[0008] A method for detecting control and guidance signals, comprising:
[0009] Based on the target voltage sampling frequency, voltage acquisition is performed on the control guidance signal to obtain a voltage data sequence containing at least two valid data points; the valid data points include voltage values within a pre-calibrated target voltage threshold range; the target voltage threshold range includes multiple valid voltage threshold ranges corresponding to nominal voltage values;
[0010] Based on each voltage value in the voltage data sequence, and in combination with each effective voltage threshold range, the corresponding prior voltage value is determined.
[0011] Based on the prior voltage value, determine the nominal voltage level corresponding to the current cycle;
[0012] Based on the nominal voltage level corresponding to the current cycle, the voltage state of the control guidance signal is determined; the voltage state is used to control the charging and discharging process of the vehicle's AC charging and discharging system.
[0013] Optionally, the target voltage sampling frequency is greater than or equal to a first ratio and greater than or equal to a second ratio; the first ratio includes the ratio of a target product to a first duty cycle, the target product includes the product of a target quantity and a first frequency, the target quantity represents the total number of valid data points contained in the voltage data sequence, the first frequency represents the highest frequency of the control guidance signal, and the first duty cycle represents the lowest duty cycle of the control guidance signal; the second ratio includes the ratio of the target product to a target difference, the target difference is the difference between a preset duty cycle and a second duty cycle, and the second duty cycle represents the highest duty cycle of the control guidance signal.
[0014] Optionally, the voltage data sequence includes n voltage values sorted in order of acquisition time from earliest to latest; n is an integer greater than or equal to a target sum value, the target sum value includes the sum of a third ratio and a preset value, the third ratio includes the ratio of the target voltage sampling frequency to a second frequency, and the second frequency represents the lowest frequency of the control guidance signal.
[0015] Optionally, based on each voltage value of the voltage data sequence and in conjunction with each of the effective voltage threshold ranges, a corresponding prior voltage value is determined, including:
[0016] The voltage values in the voltage data sequence are traversed in order from back to front.
[0017] If multiple voltage values that are traversed consecutively are within the same effective voltage threshold range, the corresponding voltage prior value is determined based on the nominal voltage value corresponding to the same effective voltage threshold range.
[0018] Optionally, the method further includes:
[0019] If multiple voltage values traversed consecutively are not within the same effective voltage threshold range, the voltage prior value is determined based on a preset invalid voltage value.
[0020] Optionally, based on the prior voltage value, the nominal voltage level corresponding to the current cycle is determined, including:
[0021] The duration for obtaining the voltage prior value; the duration includes a first quantity to the target voltage sampling frequency, the first quantity representing the total number of consecutively traversed voltage values during the process of determining the voltage prior value;
[0022] If the duration exceeds the preset voltage confirmation time, the nominal voltage level corresponding to the current cycle is determined based on the voltage prior value.
[0023] Optionally, the method further includes:
[0024] If the duration does not exceed the voltage confirmation time, the nominal voltage value corresponding to the current cycle is determined based on the nominal voltage value of the previous cycle.
[0025] A control and guidance signal detection device, comprising:
[0026] A voltage acquisition unit is used to acquire voltage from a control guidance signal based on a target voltage sampling frequency to obtain a voltage data sequence containing at least two valid data points; the valid data points include voltage values within a pre-calibrated target voltage threshold range; the target voltage threshold range includes multiple valid voltage threshold ranges corresponding to nominal voltage values;
[0027] The prior identification unit is used to determine the corresponding voltage prior value based on each voltage value of the voltage data sequence and in combination with each effective voltage threshold range;
[0028] A voltage verification unit is used to determine the nominal voltage level corresponding to the current cycle based on the prior voltage value.
[0029] The state determination unit is used to determine the voltage state of the control guidance signal based on the nominal voltage value corresponding to the current cycle; the voltage state is used to control the charging and discharging process of the vehicle's AC charging and discharging system.
[0030] A storage medium comprising a stored program, wherein the program is executed by a processor to perform the control boot signal detection method.
[0031] A vehicle includes: a processor, a memory, and a bus; the processor and the memory are connected via the bus.
[0032] The memory is used to store a program, and the processor is used to run the program, wherein the program is executed by the processor to perform the control guidance signal detection method.
[0033] The technical solution provided in this application involves: acquiring voltage data from a control guidance signal based on a target voltage sampling frequency to obtain a voltage data sequence containing at least two valid data points; determining a priori voltage value based on each voltage value in the voltage data sequence and various valid voltage threshold ranges; determining the nominal voltage level corresponding to the current period based on the priori voltage value; and determining the voltage state of the control guidance signal based on the nominal voltage level corresponding to the current period. This application determines the nominal voltage level corresponding to the current period based on each voltage value in the voltage data sequence and various valid voltage threshold ranges to further control the voltage state of the guidance signal, effectively identifying the voltage state of the control guidance signal in a vehicle's AC charging and discharging system. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 A flowchart illustrating a control guidance signal detection method provided in an embodiment of this application;
[0036] Figure 2 A flowchart illustrating a process for determining a priori voltage values provided in an embodiment of this application;
[0037] Figure 3 A schematic diagram illustrating the process of determining the nominal voltage level corresponding to the current cycle, as provided in an embodiment of this application;
[0038] Figure 4This is a schematic diagram of the architecture of a control and guidance signal detection device provided in an embodiment of this application. Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] In this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0041] The applicant discovered that, to ensure the reliability of communication status detection during vehicle charging and discharging control, it is necessary to simultaneously detect the high and low levels of the positive and negative half-waves of the CP signal. In practical applications, the nominal frequency of the control guide signal in the vehicle's AC charging and discharging system is 1kHz, and the duty cycle range is (3%, 97%). Due to the high frequency and large duty cycle variation of the CP signal, using only one voltage acquisition circuit to simultaneously acquire both the high and low level voltages of the CP signal makes it difficult to ensure that the MCU's sampling time falls precisely within the required high or low level range. This results in the inability to acquire voltage values within specific level ranges, causing the CP signal status judgment to fail.
[0042] Therefore, this application provides a control guidance signal detection method that is adaptable to different CP signal voltage acquisition hardware circuits. It is used to identify high and low voltage levels and accurately identify the voltage state of the CP signal defined by different signal detection standards for charging and discharging functions. Based on this, it determines the current interaction state between the vehicle and external devices. Furthermore, it can be adapted to the CP signal acquisition circuit of an MCU. Only a voltage divider is needed within the ±12V range of the CP signal to ensure effective voltage data acquisition. No operational amplifier or additional filtering circuitry is required for extra processing of the CP signal. The MCU directly acquires the voltage-divided CP signal and, based on the acquired voltage data, identifies the voltage state of the CP signal to control the charging and discharging process of the vehicle's AC charging and discharging system. This achieves control of multiple standard charging and discharging conditions while simplifying the hardware circuitry.
[0043] like Figure 1 The diagram shown is a flowchart of a control guidance signal detection method provided in an embodiment of this application, which can be applied to an MCU and includes the following steps.
[0044] S101: Based on the target voltage sampling frequency, the control guidance signal is sampled for voltage to obtain a voltage data sequence containing at least two valid data points.
[0045] The valid data points include voltage values within the pre-calibrated target voltage threshold range; the target voltage threshold range includes the valid voltage threshold range corresponding to multiple nominal voltage values.
[0046] In some examples, different regions have different detection standards for the control guidance signals of vehicle AC charging and discharging systems.
[0047] For example, for Chinese standard AC charging, it is necessary to detect the high-level voltage states of 0V, 6V, and 9V. For European and American standard AC charging, in addition to the Chinese standard AC charging, it is necessary to detect the high-level voltage state of 3V and determine whether the charging process meets the environmental ventilation requirements.
[0048] For example, for the discharge function of a vehicle AC charging and discharging system, in addition to detecting the high-level voltage state required for the charging function, it is also necessary to detect the 12V high-level voltage state, determine whether the load device is connected, and detect the -12V low-level voltage state to confirm the presence of the diode in the control guide circuit and identify the type of connected load device.
[0049] Optionally, the target voltage sampling frequency is greater than or equal to a first ratio and greater than or equal to a second ratio; the first ratio includes the ratio of the target product to the first duty cycle, the target product includes the product of the target quantity and the first frequency, the target quantity represents the total number of valid data points contained in the voltage data sequence, the first frequency represents the highest frequency of the control guidance signal, and the first duty cycle represents the lowest duty cycle of the control guidance signal; the second ratio includes the ratio of the target product to the target difference, the target difference is the difference between the preset duty cycle and the second duty cycle, and the second duty cycle represents the highest duty cycle of the control guidance signal.
[0050] Understandably, when using only one acquisition circuit, in order to ensure that the MCU can acquire voltage points with a duty cycle in the range of [3%, 97%] and a voltage in the range of a custom high level or a custom low level, the target voltage sampling frequency, the frequency of the control guide signal, and the duty cycle of the control guide signal must satisfy the conditions shown in formulas (1) and (2). This can guarantee that in a set of voltage data acquired under any effective control guide signal duty cycle, there are at least m valid data points in the specified high level range and the specified low level range, where m is a positive integer greater than or equal to 2.
[0051] f ≥m f CPmax / D CPmin (1).
[0052] f ≥m f CPmax / (100%- D CPmax (2)。
[0053] In formulas (1) and (2), f represents the target voltage sampling frequency, and m represents the number of targets. f CPmax This represents the highest frequency (i.e., the first frequency) of the control and guidance signal. D CPmin This represents the minimum duty cycle (i.e., the first duty cycle) of the control and guidance signal. D CPmax 100% represents the highest duty cycle (i.e., the second duty cycle) of the control and guidance signal, while 100% represents the preset duty cycle.
[0054] In some examples, the data structure of the voltage data sequence can be an array. After acquiring the voltage of the control guide signal using the target voltage sampling frequency, the acquired voltage values can be stored in an n-dimensional array. V CPmiddle.
[0055] Optionally, the voltage data sequence includes n voltage values sorted in order of acquisition time from earliest to latest; n is an integer greater than or equal to the target sum value, the target sum value includes the sum of the third ratio and the preset value, the third ratio includes the ratio of the target voltage sampling frequency to the second frequency, and the second frequency represents the lowest frequency of the control guidance signal.
[0056] In some examples, the collected data is stored in an array in ascending order. V CP The first to the nth position of the array are represented as follows: the most recently acquired voltage data (i.e., the voltage value acquired at the latest time) is stored in the nth position of the array, and the oldest voltage data (i.e., the voltage value acquired at the earliest time) is stored in the nth position of the array. V CP The first position. Set the array. V CP The dimension n satisfies the condition shown in the following formula (3), ensuring that the array V CP The stored voltage data simultaneously contains voltage values within a specified high-level range and a specified low-level range, and can also be accessed via arrays. V CP Accurately reconstruct the PWM signal waveform within at least one cycle to ensure the reliability of the prior voltage values subsequently obtained based on the voltage data sequence.
[0057] n≥ f / f CPmin +1 (3).
[0058] In formula (3), f Represents the target voltage sampling frequency. f CPmin 1 represents the lowest frequency (i.e., the second frequency) of the control and guidance signal, and 1 represents a preset value.
[0059] It should be noted that the minimum and maximum frequencies of the control guide signal can be defined according to the specific requirements of the charging and discharging standards in different regions. In addition, the minimum and maximum duty cycles of the control guide signal can also be defined according to the specific requirements of the charging and discharging standards in different regions.
[0060] In a possible implementation, the MCU can use an ADC (Analog-to-Digital Converter) interface to directly acquire the voltage of the voltage-divided control pilot signal, simultaneously acquiring voltage data within a specified high-level range and a specified low-level range. After acquiring each new voltage data point, an array is created. V CP All data is placed into the arrayV CP Shift the least significant bit (i.e., the last bit in the sequence) one position, discard the previously stored first bit of data, and fill the array with the latest collected data. V CP The nth position.
[0061] It should be noted that, due to the different structures of the CP voltage acquisition circuit hardware, the mapping relationship between the sampled value and the original CP voltage value varies. Therefore, it is necessary to pre-calibrate the effective voltage threshold range corresponding to multiple nominal voltage values offline.
[0062] In some examples, for charging and discharging conditions defined by charging and discharging standards in different regions, the multiple nominal voltage values shown in the target voltage threshold range can be set as: 12V, 9V, 6V, 3V, 0V and -12V. Among them, 12V, 9V, 6V, 3V and 0V can be regarded as high-level voltages, and -12V can be regarded as low-level voltages.
[0063] In a possible implementation, the effective voltage threshold range corresponding to 12V is ( V 12VLoLim , V 12VUpLim For example, it can be defined as 11V to 13V.
[0064] In a possible implementation, the effective voltage threshold range corresponding to 9V is ( V 9VLoLim , V 9VUpLim For example, it can be defined as 8V to 10V.
[0065] In a possible implementation, the effective voltage threshold range corresponding to 6V is ( V 6VLoLim , V 6VUpLim For example, it can be defined as 5V to 7V.
[0066] In a possible implementation, the effective voltage threshold range corresponding to 3V is ( V 3VLoLim , V 3VUpLim For example, it can be defined as 2V to 4V.
[0067] In a possible implementation, the effective voltage threshold range corresponding to 0V is ( V 0VLoLim , V 0VUpLim For example, it can be defined as 0V to 1V.
[0068] In a possible implementation, the effective voltage threshold range corresponding to -12V is ( V -12VLoLim , V -12VUpLim For example, it can be defined as -13V to -11V.
[0069] It is important to emphasize that, in order to prevent abnormal data points caused by noise or other factors from affecting the detection results, it is necessary to ensure that the detected array... V CP If there are at least two consecutive valid data points, and the vast majority of valid data points or multiple consecutive valid data points are within the same valid voltage threshold range, then it can be determined that the voltage of the control guidance signal is within the valid range.
[0070] In some examples, the effective voltage threshold range of each nominal voltage value can be obtained directly using a constant voltage source through offline calibration, combining the theoretical effective range of the nominal voltage defined in each standard and the various CP voltage acquisition circuits used. Specifically, based on the definition of the control guidance signal in the charging and discharging standards of different regions, a constant voltage source combined with a CP voltage acquisition circuit can be used to calibrate the effective threshold range of the high-level voltage and low-level voltage of the control guidance signal, and the calibrated effective threshold range can be used for subsequent voltage identification.
[0071] S102: Based on each voltage value in the voltage data sequence and combined with each effective voltage threshold range, determine the corresponding prior voltage value.
[0072] Among them, the types of voltage prior values include high-level voltage prior values and low-level voltage prior values. The type of voltage prior value can be determined based on the effective voltage threshold range referenced when identifying the voltage prior value.
[0073] In some examples, if the nominal voltage value corresponding to the effective voltage threshold range referenced when identifying the voltage prior value is a high-level voltage, then the identified voltage prior value is a high-level voltage; if the nominal voltage value corresponding to the effective voltage threshold range referenced when identifying the voltage prior value is a low-level voltage, then the identified voltage prior value is a low-level voltage.
[0074] Optionally, the process of determining the corresponding prior voltage value based on each voltage value in the voltage data sequence and in combination with each effective voltage threshold range can be found in [reference needed]. Figure 2 The steps are shown.
[0075] S103: Determine the nominal voltage level corresponding to the current cycle based on the prior voltage value.
[0076] In this process, after obtaining the voltage prior value, the nominal voltage value corresponding to the current cycle is determined using the voltage prior value, which can realize the voltage validity confirmation of the control guidance signal. That is, the nominal voltage value corresponding to the current cycle is the effective voltage of the control guidance signal.
[0077] Optionally, the process for determining the nominal voltage level corresponding to the current cycle can be found in [reference needed]. Figure 3 The steps are shown.
[0078] In some examples, the nominal voltage level values include both high-level and low-level nominal voltage values. Specifically, a high-level nominal voltage value is determined based on a priori high-level voltage value, and a low-level nominal voltage value is determined based on a priori low-level voltage value.
[0079] S104: Determine the voltage state of the control guide signal based on the nominal voltage level corresponding to the current cycle.
[0080] The voltage status is used to detect the vehicle's AC charging and discharging system status. Generally speaking, a vehicle's AC charging and discharging system includes AC charging and AC discharging functions.
[0081] In a possible implementation, for the AC charging function, if the nominal value of the high-level voltage corresponding to the current cycle is 9V, then the control guidance signal is determined to be in a 9V high-level voltage state. The vehicle state corresponding to this 9V high-level voltage state is: connected to the charging equipment, but the vehicle has not completed the charging preparation work.
[0082] In a possible implementation, for the AC charging function, if the nominal high-level voltage corresponding to the current cycle is 6V, then the control guidance signal is determined to be in a 6V high-level voltage state. The vehicle state corresponding to this 6V high-level voltage state is: connected to the charging equipment, the vehicle has completed the charging preparation work, energy transmission is allowed to start, and there are no ventilation requirements for the charging environment.
[0083] In a possible implementation, for the AC charging function, if the nominal high-level voltage value corresponding to the current cycle is 3V, then the control guidance signal is determined to be in a 3V high-level voltage state. The vehicle state corresponding to this 3V high-level voltage state is: connected to the charging equipment, the vehicle has completed the charging preparation work, energy transfer is allowed to start, and the charging environment must meet the ventilation conditions.
[0084] In a possible implementation, for the AC charging function, if the nominal high-level voltage value corresponding to the current cycle is any voltage value other than 9V, 6V, and 0V, then the control guidance signal is determined to be in a first high-level voltage state. The vehicle state corresponding to this first high-level voltage state is: CP voltage abnormal, charging stopped.
[0085] In a possible implementation, for the AC discharge function, if the nominal value of the high-level voltage corresponding to the current cycle is 12V, then the control guidance signal is determined to be in a 12V high-level voltage state, and the vehicle state corresponding to this 12V high-level voltage state is: the discharge device is not connected.
[0086] In a possible implementation, for the AC discharge function, if the nominal high-level voltage corresponding to the current cycle is 9V, then the control guidance signal is determined to be in a 9V high-level voltage state. The vehicle state corresponding to this 9V high-level voltage state is: connected to the discharge device, but the discharge device is not ready to start energy transfer.
[0087] In a possible implementation, for the AC discharge function, if the nominal high-level voltage corresponding to the current cycle is 6V, then the control guidance signal is determined to be in a 6V high-level voltage state. The vehicle state corresponding to this 6V high-level voltage state is: connected to the discharge equipment, the discharge equipment is ready to start energy transmission, and there is no requirement for ventilation conditions in the discharge environment.
[0088] In a possible implementation, for the AC discharge function, if the nominal high-level voltage corresponding to the current cycle is 3V, then the control guidance signal is determined to be in a 3V high-level voltage state. The vehicle state corresponding to this 3V high-level voltage state is: connected to the discharge device, the discharge device is ready to start energy transfer, and the discharge environment must meet the ventilation conditions.
[0089] In a possible implementation, for the AC discharge function, if the nominal value of the low-level voltage corresponding to the current cycle is -12V, then the control guidance signal is determined to be in a -12V low-level voltage state. The vehicle state corresponding to this -12V low-level voltage state is: the diode is present in the control guidance circuit, and the connected device is a vehicle or a vehicle simulator, etc.
[0090] In a possible implementation, for the AC discharge function, the nominal high-level voltage value corresponding to the current cycle is any voltage value other than 12V, 9V, 6V, and 3V, indicating that the control guidance signal is in a non-standard voltage state. In addition, if the nominal low-level voltage value corresponding to the current cycle is 0V, it indicates that the control guidance signal is in a zero-potential state. This non-standard voltage state and the zero-potential state can be collectively referred to as the second-level voltage state. The vehicle state corresponding to the second-level voltage state is: no valid CP signal is currently output, or the CP signal output is abnormal, and the discharge stops.
[0091] In a possible implementation, for the AC discharge function, if the nominal value of the low-level voltage corresponding to the current cycle is any voltage value other than 0V and -12V, then the control guidance signal is determined to be in the third level voltage state. The vehicle state corresponding to this third level voltage state is: the diode in the control guidance circuit is not present, and the connected device is another type of load.
[0092] In the method described in this application embodiment, the CP voltage state of the current cycle can be effectively identified using the acquired voltage data sequence. Compared to conventional CP voltage identification methods, the method proposed in this invention does not require separate hardware acquisition circuits for high and low levels; only one acquisition circuit is needed. By pre-calibrating multiple effective threshold ranges of nominal voltage values, the CP voltage state under different duty cycles can be effectively identified. It eliminates the need for complex raw CP voltage calculations and state judgments based on hardware principles and filtering algorithms, making it flexibly applicable to different hardware acquisition circuits and suitable for charging and discharging functions in different regional standards.
[0093] The process described in S101-S104 above determines the nominal voltage level corresponding to the current cycle based on each voltage value of the voltage data sequence and in combination with each effective voltage threshold range, so as to further control the voltage state of the guidance signal and effectively identify the voltage state of the control guidance signal in the vehicle AC charging and discharging system.
[0094] like Figure 2 The diagram shown is a flowchart illustrating a process for determining a priori voltage values according to an embodiment of this application, including the following steps.
[0095] S201: Traverse each voltage value in the voltage data sequence from back to front according to the sequence number.
[0096] Specifically, the voltage values shown by each valid data point in the voltage data sequence can be traversed in order of acquisition time from latest to earliest.
[0097] S202: Determine whether multiple voltage values that are traversed consecutively are within the same effective voltage threshold range.
[0098] If multiple voltage values traversed consecutively are within the same effective voltage threshold range, then S203 is executed; if multiple voltage values traversed consecutively are not within the same effective voltage threshold range, then S204 is executed.
[0099] S203: Determine the corresponding prior voltage value based on the nominal voltage value corresponding to the same effective voltage threshold range.
[0100] Specifically, the voltage data sequence is processed sequentially from the nth bit to the 1st bit. In a single processing step, both the high-level voltage prior value and the low-level voltage prior value can be obtained simultaneously. Adjacent bits are then determined.V CP (x) and V CP (x-1) Whether they are within the same valid threshold range, where x represents the x-th data point in the voltage data sequence, decreasing progressively from x=n to x=2. If two consecutive voltage values are within the same valid voltage threshold range, then the high-level voltage prior value is... V HighRaw or low-level voltage prior value V LowRaw The value is assigned to the nominal voltage value corresponding to the same effective voltage threshold range.
[0101] In some examples, V CP (x) is 9.1V, V CP (x-1) is 9.2V. V CP (x) and V CP (x-1) are within the same effective voltage threshold range (i.e., 8V to 10V), and the nominal voltage value corresponding to 8V to 10V is 9V. Therefore, the a priori voltage value is determined to be 9V. Since 9V belongs to the high-level voltage, the obtained a priori voltage value is determined to be the high-level voltage value.
[0102] In some examples, V CP (x) is -12.1V, V CP (x-1) is -12.2V. V CP (x) and V CP (x-1) are within the same effective voltage threshold range (i.e. -13V to -11V), and the nominal voltage value corresponding to -13V to -11V is -12V. Therefore, the a priori voltage value is determined to be -12V. Since -12V belongs to the low-level voltage, it is determined that the obtained a priori voltage value is the low-level voltage value.
[0103] It should be noted that, in order to minimize the amount of data and reduce the computational load, it can be defined that if at least two consecutive voltage data points in the voltage data sequence are detected to be within the same effective voltage threshold range, then the voltage prior value is assigned to the nominal voltage value corresponding to the same effective voltage threshold range.
[0104] S204: Determine the voltage prior value based on the preset invalid voltage value.
[0105] If multiple consecutively traversed voltage values are not within the same effective voltage threshold range, or if all voltage values in the currently acquired voltage data sequence are not within the same effective voltage threshold range, then the prior voltage value is assigned as an invalid voltage value. V Inavlid .
[0106] In some examples, invalid voltage values V Inavlid This includes voltage values other than the multiple nominal voltage values, such as any voltage value other than 12V, 9V, 6V, 3V, 0V, and -12V.
[0107] It should be noted that the voltage prior value is updated in each operating cycle of the MCU. In addition, the total number of valid data points in the voltage data sequence (i.e., the target number m) can be increased according to the actual situation to improve the accuracy of the voltage prior value.
[0108] The processes shown in S201-S204 above utilize voltage data sequences and combine them with various effective voltage threshold ranges to effectively obtain the corresponding prior voltage values, providing a favorable reference for judging the effectiveness of subsequent control guidance signals.
[0109] like Figure 3 The diagram shown is a schematic representation of an implementation process for determining the nominal voltage level corresponding to the current cycle, as provided in an embodiment of this application, including the following steps.
[0110] S301: Duration for obtaining the prior voltage value.
[0111] The duration includes the ratio of a first quantity to the target voltage sampling frequency, where the first quantity represents the total number of consecutively traversed voltage values during the process of determining the prior voltage value.
[0112] In some examples, the corresponding voltage prior value is determined when traversing from the nth to the (n-3th)th bit of the voltage data sequence. In this case, the first quantity can be considered as 3, and the duration of this voltage prior value is 3 / f .
[0113] S302: Determine whether the duration exceeds the preset voltage confirmation time.
[0114] If the duration exceeds the preset voltage confirmation time, execute S303; if the duration does not exceed the voltage confirmation time, execute S304.
[0115] In some examples, voltage confirmation time T VltgCfrm It can be set according to the actual situation.
[0116] In a possible implementation, if the duration exceeds a preset voltage confirmation time, the voltage prior value is considered to remain unchanged beyond the voltage confirmation time; if the duration does not exceed the voltage confirmation time, the voltage prior value is considered to have changed before the voltage confirmation time has elapsed.
[0117] S303: Determine the nominal voltage level corresponding to the current cycle based on the prior voltage value.
[0118] Among them, the voltage prior value is considered valid if it remains unchanged for more than the voltage confirmation time.
[0119] In some examples, the nominal voltage level values include both high-level and low-level nominal voltage values.
[0120] In a possible implementation, if the high-level voltage prior value V HighRaw The duration exceeds the voltage confirmation time. T VltgCfrm The nominal value of the high-level voltage corresponding to the current cycle. V High The value is assigned as the prior value of the high-level voltage, i.e. V High = V HighRaw .
[0121] In a possible implementation, if the low-level voltage prior value V LowRaw The duration exceeds the voltage confirmation time. T VltgCfrm The nominal value of the low-level voltage corresponding to the current cycle. V Low The value is assigned as the prior value of the low-level voltage, i.e. V Low = V LowRaw .
[0122] S304: Determine the nominal voltage level for the current cycle based on the nominal voltage level of the previous cycle.
[0123] Specifically, if the voltage prior value changes before the voltage confirmation time has elapsed, the voltage prior value can be considered invalid.
[0124] In some examples, the so-called cycle can be understood as the signal detection cycle of the vehicle's AC charging and discharging system, and the specific time of the cycle can be set by technicians according to the actual situation.
[0125] In a possible implementation, if the high-level voltage prior value V HighRawThe duration did not exceed the voltage confirmation time. T VltgCfrm The nominal value of the high-level voltage corresponding to the current cycle. V High The value is assigned to the prior high-level voltage value of the previous cycle. V HighLast ,Right now V High = V HighLast .
[0126] In a possible implementation, if the low-level voltage prior value V LowRaw The duration did not exceed the voltage confirmation time. T VltgCfrm The nominal value of the low-level voltage corresponding to the current cycle. V Low The value is assigned to the prior low-level voltage value of the previous cycle. V LowLast ,Right now V Low = V LowLast .
[0127] The processes shown in S301-S304 above can identify the validity of the voltage prior value based on the duration of the voltage prior value, thereby determining the nominal voltage level value corresponding to the current cycle and effectively improving the reliability of the nominal voltage level value.
[0128] like Figure 4 The diagram shown is a schematic of the architecture of a control and guidance signal detection device provided in an embodiment of this application, including the following units.
[0129] The voltage acquisition unit 100 is used to acquire voltage from the control guidance signal based on the target voltage sampling frequency to obtain a voltage data sequence containing at least two valid data points; the valid data points include voltage values within a pre-calibrated target voltage threshold range; the target voltage threshold range includes valid voltage threshold ranges corresponding to multiple nominal voltage values.
[0130] Optionally, the target voltage sampling frequency is greater than or equal to a first ratio and greater than or equal to a second ratio; the first ratio includes the ratio of the target product to the first duty cycle, the target product includes the product of the target quantity and the first frequency, the target quantity represents the total number of valid data points contained in the voltage data sequence, the first frequency represents the highest frequency of the control guidance signal, and the first duty cycle represents the lowest duty cycle of the control guidance signal; the second ratio includes the ratio of the target product to the target difference, the target difference is the difference between the preset duty cycle and the second duty cycle, and the second duty cycle represents the highest duty cycle of the control guidance signal.
[0131] Optionally, the voltage data sequence includes n voltage values sorted in order of acquisition time from earliest to latest; n is an integer greater than or equal to the target sum value, the target sum value includes the sum of the third ratio and the preset value, the third ratio includes the ratio of the target voltage sampling frequency to the second frequency, and the second frequency represents the lowest frequency of the control guidance signal.
[0132] The prior identification unit 200 is used to determine the corresponding voltage prior value based on each voltage value in the voltage data sequence and in combination with each effective voltage threshold range.
[0133] Optionally, the prior identification unit 200 is specifically used to: traverse each voltage value of the voltage data sequence in order from back to front; if multiple voltage values traversed consecutively are within the same effective voltage threshold range, determine the corresponding voltage prior value based on the nominal voltage value corresponding to the same effective voltage threshold range.
[0134] Optionally, the prior identification unit 200 is also used to: if multiple voltage values traversed consecutively are not within the same effective voltage threshold range, determine a voltage prior value based on a preset invalid voltage value.
[0135] The voltage verification unit 300 is used to determine the nominal voltage level corresponding to the current cycle based on the voltage prior value.
[0136] Optionally, the voltage verification unit 300 is specifically used for: obtaining the duration of the voltage prior value; the duration includes the ratio of a first quantity to the target voltage sampling frequency, the first quantity representing the total number of consecutively traversed voltage values during the process of determining the voltage prior value; if the duration exceeds a preset voltage confirmation time, determining the nominal voltage level corresponding to the current period based on the voltage prior value.
[0137] Optionally, the voltage verification unit 300 is also used to: if the duration does not exceed the voltage confirmation time, determine the nominal voltage value corresponding to the current cycle based on the nominal voltage value of the previous cycle.
[0138] The state determination unit 400 is used to determine the voltage state of the control guidance signal based on the nominal voltage value corresponding to the current cycle; the voltage state is used to control the charging and discharging process of the vehicle's AC charging and discharging system.
[0139] The units described above determine the nominal voltage level corresponding to the current cycle based on the voltage values of the voltage data sequence and the effective voltage threshold range, so as to further control the voltage state of the guidance signal and effectively identify the voltage state of the control guidance signal in the vehicle AC charging and discharging system.
[0140] This application also provides a computer-readable storage medium including a stored program, wherein the program executes the control and guidance signal detection method provided in this application.
[0141] This application also provides a vehicle, including a processor, a memory, and a bus. The processor and the memory are connected via the bus. The memory is used to store a program, and the processor is used to run the program. During program execution, the control and guidance signal detection method provided in this application is executed.
[0142] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0143] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A method for detecting control and guidance signals, characterized in that, include: Based on the target voltage sampling frequency, voltage acquisition is performed on the control guidance signal to obtain a voltage data sequence containing at least two valid data points; The valid data points include voltage values within a pre-calibrated target voltage threshold range; The target voltage threshold range includes multiple effective voltage threshold ranges corresponding to nominal voltage values; Based on each voltage value in the voltage data sequence, and in combination with each effective voltage threshold range, the corresponding prior voltage value is determined. Based on the prior voltage value, determine the nominal voltage level corresponding to the current cycle; Based on the nominal voltage level corresponding to the current cycle, the voltage state of the control guidance signal is determined; the voltage state is used to control the charging and discharging process of the vehicle's AC charging and discharging system.
2. The method according to claim 1, characterized in that, The target voltage sampling frequency is greater than or equal to a first ratio and greater than or equal to a second ratio; the first ratio includes the ratio of the target product to the first duty cycle, the target product includes the product of the target quantity and the first frequency, the target quantity represents the total number of valid data points contained in the voltage data sequence, the first frequency represents the highest frequency of the control guidance signal, and the first duty cycle represents the lowest duty cycle of the control guidance signal; The second ratio includes the ratio of the target product to the target difference, where the target difference is the difference between the preset duty cycle and the second duty cycle, and the second duty cycle represents the highest duty cycle of the control guidance signal.
3. The method according to claim 1, characterized in that, The voltage data sequence includes n voltage values sorted in order of acquisition time from earliest to latest; n is an integer greater than or equal to a target sum value, the target sum value includes the sum of a third ratio and a preset value, the third ratio includes the ratio of the target voltage sampling frequency to a second frequency, and the second frequency represents the lowest frequency of the control guidance signal.
4. The method according to claim 3, characterized in that, Based on each voltage value in the voltage data sequence, and in conjunction with each effective voltage threshold range, the corresponding prior voltage value is determined, including: The voltage values in the voltage data sequence are traversed in order from back to front. If multiple voltage values that are traversed consecutively are within the same effective voltage threshold range, the corresponding voltage prior value is determined based on the nominal voltage value corresponding to the same effective voltage threshold range.
5. The method according to claim 4, characterized in that, The method further includes: If multiple voltage values traversed consecutively are not within the same effective voltage threshold range, the voltage prior value is determined based on a preset invalid voltage value.
6. The method according to claim 1, characterized in that, Based on the prior voltage value, the nominal voltage level corresponding to the current cycle is determined, including: The duration for obtaining the voltage prior value; the duration includes a first quantity to the target voltage sampling frequency, the first quantity representing the total number of consecutively traversed voltage values during the process of determining the voltage prior value; If the duration exceeds the preset voltage confirmation time, the nominal voltage level corresponding to the current cycle is determined based on the voltage prior value.
7. The method according to claim 6, characterized in that, The method further includes: If the duration does not exceed the voltage confirmation time, the nominal voltage value corresponding to the current cycle is determined based on the nominal voltage value of the previous cycle.
8. A control and guidance signal detection device, characterized in that, include: A voltage acquisition unit is used to acquire voltage from a control guidance signal based on a target voltage sampling frequency to obtain a voltage data sequence containing at least two valid data points; the valid data points include voltage values within a pre-calibrated target voltage threshold range. The target voltage threshold range includes multiple effective voltage threshold ranges corresponding to nominal voltage values; The prior identification unit is used to determine the corresponding voltage prior value based on each voltage value of the voltage data sequence and in combination with each effective voltage threshold range; A voltage verification unit is used to determine the nominal voltage level corresponding to the current cycle based on the prior voltage value. The state determination unit is used to determine the voltage state of the control guidance signal based on the nominal voltage value corresponding to the current cycle; the voltage state is used to control the charging and discharging process of the vehicle's AC charging and discharging system.
9. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program is executed by a processor to perform the control boot signal detection method according to any one of claims 1-7.
10. A vehicle, characterized in that, include: Processor, memory, and bus; The processor and the memory are connected via the bus; The memory is used to store a program, and the processor is used to run the program, wherein the program is executed by the processor to perform the control guidance signal detection method according to any one of claims 1-7.
