Voltage detection method and device for charging pile CP signal

文档序号:1844742 发布日期:2021-11-16 浏览:13次 中文

阅读说明:本技术 充电桩cp信号的电压检测方法及装置 (Voltage detection method and device for charging pile CP signal ) 是由 许庆 于 2021-08-10 设计创作,主要内容包括:本申请涉及一种充电桩CP信号的电压检测方法及装置。所述方法包括:响应于检测到CP信号在目标时刻的电压进入预设电压范围,对CP信号在目标时刻之后的目标时段内的电压进行多轮采样以得到多组采样数据;根据多组采样数据计算得到目标时段内的CP信号电压评估值;如果CP信号电压评估值在预设电压范围内,将CP信号电压评估值作为CP信号的有效检测结果。采用本方法能够更准确地检测CP信号的电压。(The application relates to a charging pile CP signal voltage detection method and device. The method comprises the following steps: in response to the fact that the voltage of the CP signal at the target moment is detected to enter a preset voltage range, conducting multi-round sampling on the voltage of the CP signal in a target period after the target moment to obtain multiple groups of sampling data; calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data; and if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal. The method can be used for more accurately detecting the voltage of the CP signal.)

1. A voltage detection method for a charging pile CP signal comprises the following steps:

in response to the fact that the voltage of the CP signal at the target moment is detected to enter a preset voltage range, conducting multi-round sampling on the voltage of the CP signal in a target period after the target moment to obtain multiple groups of sampling data;

calculating to obtain a CP signal voltage evaluation value in the target time period according to the multiple groups of sampling data;

and if the CP signal voltage evaluation value is within the preset voltage range, taking the CP signal voltage evaluation value as an effective detection result of the CP signal.

2. The method of claim 1, wherein the charging pile comprises a controller and a CP signal detection circuit, and the method is implemented by the controller and the CP signal detection circuit, an analog-to-digital conversion terminal and a general input/output terminal of the controller are respectively connected to the CP signal detection circuit, the analog-to-digital conversion terminal is used for sampling a voltage of the CP signal by the CP signal detection circuit, and the general input/output terminal is used for detecting whether the voltage of the CP signal enters the preset voltage range.

3. The method of claim 2, wherein each of the plurality of sets of sample data comprises a plurality of sample values, and the calculating the estimated CP signal voltage value in the target period according to the plurality of sets of sample data comprises:

selecting at least two groups of continuous sampling data from the multiple groups of sampling data, and acquiring all sampling values in the at least two groups of continuous sampling data;

after removing the maximum value and the minimum value in all the sampling values, calculating to obtain an average sampling value according to the rest sampling values;

and calculating the CP signal voltage evaluation value according to the average sampling value.

4. The method of claim 3, wherein in selecting at least two consecutive sets of sample data from the plurality of sets of sample data, the number of sets of sample data selected is less than a predetermined sample set number threshold.

5. The method of claim 3, wherein the calculating the CP signal voltage estimate from the averaged sample value comprises:

acquiring a reference voltage value of the analog-to-digital conversion end and circuit characteristic data of the CP signal detection circuit;

and calculating to obtain the CP signal voltage evaluation value according to the average sampling value, the reference voltage value and the circuit characteristic data.

6. The method according to any one of claims 1 to 5, wherein the sampling the voltage of the CP signal in a target period after a target time to obtain a plurality of sets of sampling data in response to detecting that the voltage of the CP signal at the target time enters a preset voltage range comprises:

and in response to the fact that the voltage of the CP signal enters a preset voltage range, after waiting for a preset waiting time, performing multiple rounds of sampling on the voltage of the CP signal in a target time period after the preset waiting time to obtain multiple sets of sampling data.

7. The method according to any one of claims 1 to 5, wherein each sampling round of the multiple sampling rounds comprises a plurality of sampling periods, the duration of each sampling round is less than the minimum effective time of the CP signal voltage in the charging national standard, and the duration of each sampling period in the plurality of sampling periods is greater than the preset duration of signal jitter in the gun plugging and unplugging process.

8. The method according to any one of claims 1 to 5, further comprising:

if the CP signal voltage evaluation value exceeds the preset voltage range, judging that the CP signal voltage evaluation value is an invalid detection result of the CP signal;

and when the calculated CP signal voltage evaluation value is that the continuous times of invalid detection results exceed the threshold times, sending a CP voltage value abnormal report.

9. The method according to any one of claims 1 to 5, further comprising:

and if the voltage of the CP signal is detected to be changed, and the CP signal voltage estimated values obtained through multiple calculations before and after the voltage of the CP signal is changed are all within the preset voltage range, and at least two continuous times of the CP signal voltage estimated values obtained through multiple calculations are the same, taking the CP signal voltage estimated value as an effective detection result of the CP signal, and outputting the effective detection result.

10. A voltage detection device for charging pile CP signals is characterized by comprising:

the voltage sampling module is used for responding to the fact that the voltage of the CP signal at the target moment enters a preset voltage range, and conducting multi-round sampling on the voltage of the CP signal in the target time period after the target moment to obtain multiple groups of sampling data;

the data processing module is used for calculating to obtain a CP signal voltage evaluation value in the target time period according to the multiple groups of sampling data;

and the detection result module is used for taking the CP signal voltage evaluation value as an effective detection result of the CP signal if the CP signal voltage evaluation value is within the preset voltage range.

Technical Field

The application relates to the technical field of electric vehicle charging, in particular to a charging pile CP signal voltage detection method and device.

Background

In order to monitor the interaction state between the charging pile and the electric vehicle during the operation of the charging pile, it is generally required to detect the voltage of a Control Pilot (CP) signal. The traditional CP signal voltage detection method adopts an average value sampling method, the sampled data is directly accumulated and summed within a certain time, then the accumulated sum value is divided by the sampling times, and the calculated average value is used as the effective detection data of the CP signal.

However, in the charging process of the charging pile, as shown in fig. 1, besides that the voltage value of the CP signal is switched between 6V, 9V, 12V and-12V, the voltage value is accompanied by PWM pulse according to the national standard, and as shown in fig. 2, in the process of inserting and pulling the gun, the CP voltage has instantaneous jitter and peak, so that the detection result obtained by using the average value sampling method is not accurate.

Disclosure of Invention

In view of the above, it is necessary to provide a charging pile CP signal voltage detection method and device capable of accurately detecting a CP signal voltage.

In order to achieve the above object, the present application provides a method for detecting a voltage of a CP signal of a charging pile, including:

in response to the fact that the voltage of the CP signal at the target moment is detected to enter a preset voltage range, conducting multi-round sampling on the voltage of the CP signal in a target period after the target moment to obtain multiple groups of sampling data;

calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data;

and if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal.

In some embodiments, the charging pile comprises a controller and a CP signal detection circuit, the method is implemented by the controller and the CP signal detection circuit, an analog-to-digital conversion end and a general input/output end of the controller are respectively connected to the CP signal detection circuit, the analog-to-digital conversion end is used for sampling a voltage of the CP signal through the CP signal detection circuit, and the general input/output end is used for detecting whether the voltage of the CP signal enters a preset voltage range.

In some embodiments, each of the plurality of sets of sample data includes a plurality of sample values, and the calculating a CP signal voltage evaluation value in the target period according to the plurality of sets of sample data includes:

selecting at least two groups of continuous sampling data from the plurality of groups of sampling data, and acquiring all sampling values in the at least two groups of continuous sampling data;

after removing the maximum value and the minimum value in all sampling values, calculating to obtain an average sampling value according to the rest sampling values;

and calculating to obtain a CP signal voltage evaluation value according to the average sampling value.

In some embodiments, in selecting at least two consecutive sets of sample data from the plurality of sets of sample data, the number of sets of sample data selected is less than a preset sample set number threshold.

In some embodiments, calculating the CP signal voltage estimate from the average sampled value includes:

acquiring a reference voltage value of an analog-digital conversion end and circuit characteristic data of a CP signal detection circuit;

and calculating to obtain a CP signal voltage evaluation value according to the average sampling value, the reference voltage value and the circuit characteristic data.

In some embodiments, in response to detecting that the voltage of the CP signal at the target time enters the preset voltage range, performing multiple rounds of sampling on the voltage of the CP signal within a target period after the target time to obtain multiple sets of sampling data, including:

and in response to the fact that the voltage of the CP signal enters the preset voltage range, after waiting for the preset waiting time, performing multiple rounds of sampling on the voltage of the CP signal in the target time period after the preset waiting time to obtain multiple groups of sampling data.

In some embodiments, each sampling cycle of the multiple sampling cycles comprises a plurality of sampling periods, the duration of each sampling cycle is less than the minimum effective time of the CP signal voltage in the charging national standard, and the duration of each sampling period of the plurality of sampling periods is greater than the preset duration of signal jitter when a gun is plugged and unplugged.

In some embodiments, the method further comprises:

if the CP signal voltage evaluation value exceeds the preset voltage range, judging that the CP signal voltage evaluation value is an invalid detection result of the CP signal;

and when the calculated CP signal voltage evaluation value is that the continuous times of invalid detection results exceed the threshold times, sending a CP voltage value abnormal report.

9-in some embodiments, the method further comprises:

and if the voltage of the CP signal is detected to be changed, and the CP signal voltage estimated values obtained through multiple calculations before and after the voltage of the CP signal is changed are all within the preset voltage range, and at least two continuous times of the CP signal voltage estimated values obtained through multiple calculations are the same, taking the CP signal voltage estimated value as an effective detection result of the CP signal, and outputting the effective detection result.

In a second aspect, the present application provides a voltage detection apparatus for charging pile CP signals, the apparatus including:

the voltage sampling module is used for responding to the fact that the voltage of the CP signal at the target moment enters a preset voltage range, and conducting multi-round sampling on the voltage of the CP signal in a target period after the target moment to obtain multiple groups of sampling data;

the data processing module is used for calculating a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data;

and the detection result module is used for taking the CP signal voltage evaluation value as an effective detection result of the CP signal if the CP signal voltage evaluation value is in a preset voltage range.

In a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the above embodiments when executing the computer program.

Compared with the prior art, the voltage detection method for the CP signal of the charging pile has the following beneficial effects:

according to the voltage detection method for the CP signal of the charging pile, in response to the fact that the voltage of the CP signal at the target moment is detected to enter a preset voltage range, multi-round sampling is conducted on the voltage of the CP signal in the target period after the target moment, so that multiple groups of sampling data are obtained; calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data; and if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal. The preset voltage range can be set as the effective range of the CP signal, so that the CP signal is sampled only when the voltage of the CP signal enters the effective range, the error of sampling data caused by sampling when the CP signal is a PWM pulse is avoided, and the accuracy of the sampling data is improved; then, a plurality of groups of sampling data are adopted to calculate and obtain a CP signal voltage evaluation value, each group of sampling data can comprise a plurality of sampling values, the influence of instant jitter of CP signals on a single group of sampling data when the gun is charged and unplugged can be reduced, and therefore the accuracy of a calculation result is improved; and finally, the calculation result within the preset voltage range is used as an effective detection result, the calculation result which is not within the preset voltage range is filtered, and the obtained voltage detection result of the CP signal is more accurate.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

FIG. 1 is an exemplary diagram of a charging post CP signal;

FIG. 2 is an exemplary graph of CP signal jitter during gun plugging;

fig. 3 is an application environment diagram of a voltage detection method of a charging pile CP signal in an embodiment;

fig. 4 is a schematic flowchart of a voltage detection method of a charging pile CP signal in an embodiment;

FIG. 5 is a flowchart illustrating a CP signal voltage evaluation value calculation step according to an embodiment;

fig. 6 is a schematic flowchart of a voltage detection method of a charging pile CP signal in another embodiment;

fig. 7 is a block diagram showing a voltage detection apparatus for a CP signal of a charging pile according to an embodiment;

FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Example one

The voltage detection method for the CP signal of the charging pile can be applied to the application environment of the charging pile shown in fig. 3. The charging pile can comprise a software module and a hardware module, the hardware module comprises a CP signal output circuit and a CP signal detection circuit, the software module comprises a CP control unit, a CP sampling unit and a CP voltage value calculating unit, and the software module can be an application program in a controller built in the charging pile. In some embodiments, the method may be implemented by a controller of the charging pile and a CP signal detection circuit, where an analog-to-digital conversion end and a general input/output end of the controller are respectively connected to the CP signal detection circuit, the analog-to-digital conversion end is used for sampling a voltage of the CP signal through the CP signal detection circuit, and the general input/output end is used for detecting whether the voltage of the CP signal enters a preset voltage range. In a specific implementation process, the interrupt mode of the general input/output end may be set as edge triggering, and when the voltage of the CP signal enters the preset voltage range, the controller receives an interrupt notification from the general input/output end, where the interrupt notification is used to enable the controller to determine that the voltage of the CP signal enters the preset voltage range.

As shown in fig. 4, an embodiment of the present application provides a method for detecting a voltage of a CP signal of a charging pile, which is described by taking an example that the method is applied to a controller of the charging pile in fig. 3, and includes the following steps:

in response to detecting that the voltage of the CP signal at the target time enters the preset voltage range, the voltage of the CP signal in the target period after the target time is sampled for multiple rounds to obtain multiple sets of sampled data, step 202.

The CP signal is a charging control guide circuit signal of the charging pile, the preset voltage range can comprise a plurality of corresponding voltage value ranges when the CP signal is at a high level, and the voltage value ranges are determined according to the combination of a high-level voltage value commonly used by the CP signal and an allowable voltage deviation range. For example, when the CP signal is at a high level, the voltage value may be 6V, 9V or 12V, and accordingly, the preset voltage range may be set to include 6V (± 0.8V), 9V (± 0.8V) and 12V (± 0.8V). The target moment can be any moment in the process that a controller of the charging pile detects the voltage of the CP signal; the target time period may be a time period from the target time to a preset termination time, and the preset termination time may be a specific time, for example, a certain time of a certain day of a certain month of a certain year, and the target time period may also be set to a specific time unit, for example, an hour, a day, and the like, which may be specifically determined according to actual needs, and this is not limited in the embodiments of this specification.

Specifically, when detecting that the voltage of the CP signal at the target time enters a preset voltage range through a General-purpose input/output (GPIO) pin, a controller of the charging pile performs multiple sampling cycles on the voltage of the CP signal in a target time period after the target time through an Analog-to-digital converter (ADC) pin, and each sampling cycle can obtain a set of sampling data; each sampling cycle may include a plurality of sampling periods, and thus each set of sampling data in the plurality of sets of sampling data includes a plurality of sampling values, which are voltage values obtained by sampling the CP signal.

In some embodiments, each sampling cycle of the multiple sampling cycles includes multiple sampling periods, and the duration of each sampling cycle is less than the minimum effective time of the CP signal voltage in the charging national standard, so as to ensure that the CP signal voltage is always in the effective time during the sampling by the controller. Alternatively, the duration of each round of sampling may also be set as the duration obtained by subtracting an estimated deviation time, which is the delay and the stabilization time of the signal voltage output by the CP signal detection circuit relative to the actual CP signal voltage, from the minimum effective time of the CP signal voltage in the national standard of charging. For example: according to the requirement of the national charging standard (GB/T18487.1-2015), the effective time of the CP signal voltage is 100us at the minimum, and considering that the signal voltage output by the CP signal detection circuit has a certain delay and stabilization period relative to the actual CP signal voltage (for example, 5us before and after the signal voltage is removed, the effective sampling time is 90us at the minimum, the effective sampling time can be adjusted according to the actual CP signal waveform), 4 points of uniform sampling in the effective time of the CP signal voltage are defined, and the sampling period can be set to 20 us.

In some embodiments, the duration of each of the plurality of sampling periods is greater than a preset duration of signal jitter when the gun is plugged and unplugged, so as to ensure that the number of sampling values affected by the jitter signal generated when the gun is plugged and unplugged does not exceed one. The signal jitter during gun plugging is CP signal jitter caused by switch contact jitter of a hardware circuit during gun plugging, and the jitter duration is microsecond. For example: the CP signal jitter duration when the gun is plugged and unplugged is about 2-3 us, in order to sample a certain number of points in the effective time of the CP signal voltage in a planned mode to guarantee sampling accuracy and give consideration to hardware processing performance, 4 points can be uniformly sampled in the effective period, and therefore the influence of the CP signal jitter caused by plugging and unplugging the gun on a sampling value is reduced as far as possible in the voltage sampling stage.

In some embodiments, step 202 comprises: and in response to the fact that the voltage of the CP signal enters the preset voltage range, after waiting for the preset waiting time, performing multiple rounds of sampling on the voltage of the CP signal in the target time period after the preset waiting time to obtain multiple groups of sampling data. Considering that a certain delay and a certain stabilization period exist in the signal output by the CP signal detection circuit relative to the actual CP signal, the preset waiting time may adopt the estimated deviation time, so that 5us are respectively removed before and after the minimum effective time 100us of the CP signal voltage, and the final minimum samplable time is 90 us. Further considering that the jitter duration of the CP signal is about 2-3 us when the gun is plugged and unplugged, in order to take sampling accuracy and hardware processing performance into account, it is defined that each sampling cycle can sample a certain number of points within the effective time of the CP signal voltage, that is, each sampling cycle can include a certain number of sampling periods, and specifically, it can be defined that 4-point voltage values are uniformly collected within the effective time of the CP signal voltage. For example: when the effective time of the CP signal voltage is 100us, the controller may set the sampling period to 20us, and adopt a centered sampling mode, that is, sampling is performed while avoiding the first 20us and the second 20us of the effective time of the CP signal voltage, so that 4 sampling values may be obtained as a set of sampling data through one round of sampling within the effective time of the CP signal voltage.

And 204, calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data.

Each group of sampling data in the multiple groups of sampling data comprises a plurality of sampling values, and the CP signal voltage evaluation value in the target period is a voltage value calculated according to part or all of the sampling values contained in the multiple groups of sampling data.

Specifically, the controller sequentially selects a predetermined number of sets of sample data from the plurality of sets of sample data in time sequence, and calculates the sample data to obtain one or more CP signal voltage evaluation values, wherein the CP signal voltage evaluation values calculated by the controller are sequentially arranged in time sequence.

In some embodiments, as shown in fig. 5, step 204 comprises the steps of:

step 302, at least two groups of continuous sampling data are selected from the multiple groups of sampling data, and all sampling values in the at least two groups of continuous sampling data are obtained.

And step 304, removing the maximum value and the minimum value in all the sampling values, and calculating to obtain an average sampling value according to the remaining sampling values.

And step 306, calculating to obtain a CP signal voltage evaluation value according to the average sampling value.

Specifically, step 306 includes the steps of: acquiring a reference voltage value of an ADC pin of a controller and circuit characteristic data of a CP signal detection circuit; and calculating to obtain a CP signal voltage evaluation value according to the average sampling value, the reference voltage value and the circuit characteristic data.

When the hardware structure is determined, that is, the controller and the CP signal detection circuit are determined structures, the reference voltage value of the ADC pin of the controller and the circuit characteristic data of the CP signal detection circuit are generally known, and the controller may directly calculate the CP signal voltage evaluation value according to the known reference voltage value and the circuit characteristic data and the calculated average sampling value by using a currently general voltage sampling formula.

Generally, when a charging gun of a charging pile is physically connected with a vehicle-end charging socket, contact jitter can be caused between the charging gun and the vehicle-end charging socket, and the time scale of CP signal jitter caused by the contact jitter is millisecond-level, and at this time, if a single set of sampling data is used for calculating a sampling value, an inaccurate calculation result cannot be obtained, so in the above embodiment, at least two sets of sampling data are used for calculating an average sampling value, and the influence of CP signal jitter on the calculation result is reduced by increasing the number of sets of sampling data, thereby improving the accuracy of the detection result.

In some embodiments, in the process of selecting at least two consecutive sets of sample data from the plurality of sets of sample data, the number of sets of the selected sample data is less than a preset threshold value of the number of sets of sample data, so as to ensure real-time performance of the detection result. For example: the controller can select 4 groups of continuous sampling data from the groups of sampling data, and calculate the CP signal voltage estimated value according to the 4 groups of continuous sampling data.

And step 206, if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal.

And the effective detection result of the CP signal is a voltage value finally reported by the controller.

Specifically, the controller judges whether the CP signal voltage evaluation value is within a preset voltage range, if so, the voltage value of the CP signal is used as an effective detection result of the CP signal, and the effective detection result is reported. For example: in the specific implementation process, the controller detects whether a voltage evaluation value of a CP signal is within an effective voltage range of 6V, 9V and 12V (a voltage deviation range is ± 0.8V, and the voltage deviation range can be an appropriate value according to errors existing in circuit devices and the influence of ambient temperature), and if the voltage evaluation value is within the effective voltage range, the voltage value of the CP signal is taken as an effective detection result.

In this embodiment, the calculation result that is influenced by voltage jitter and peak value when the gun is plugged and unplugged and exceeds the preset voltage range can be filtered out through the step 206, so that the accuracy of the detection result is improved.

In the voltage detection method for the CP signal of the charging pile provided in the embodiment, in response to detecting that the voltage of the CP signal at the target time enters the preset voltage range, the voltage of the CP signal in the target time period after the target time is sampled for multiple times to obtain multiple sets of sampling data; calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data; and if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal. The preset voltage range can be set as the effective range of the CP signal, so that the CP signal is sampled only when the voltage of the CP signal enters the effective range, the error of sampling data caused by sampling when the CP signal is a PWM pulse is avoided, and the accuracy of the sampling data is improved; then, a plurality of groups of sampling data are adopted to calculate and obtain a CP signal voltage evaluation value, each group of sampling data can comprise a plurality of sampling values, the influence of instant jitter of CP signals on a single group of sampling data when the gun is charged and unplugged can be reduced, and therefore the accuracy of a calculation result is improved; and finally, the calculation result within the preset voltage range is used as an effective detection result, the calculation result which is not within the preset voltage range is filtered, the obtained voltage detection result of the CP signal is more accurate, and the voltage abnormity of the CP signal can be timely found.

Example two

In the prior art, an average value sampling method is usually used, and a detection result obtained by calculation is extremely easily influenced by voltage jitter and a peak value during gun insertion and extraction, so that a small amount of overhigh or overlow detection results are obtained, and unnecessary false alarm is caused. Therefore, based on the above embodiments, the voltage detection method for the CP signal of the charging pile provided in this embodiment has the technical effect of avoiding false alarm. The same or similar contents as those in the first embodiment may refer to the above description, and are not repeated herein.

In this embodiment, a method for detecting a voltage of a CP signal of a charging pile is provided, as shown in fig. 6, the method includes the following steps:

in response to detecting that the voltage of the CP signal at the target time enters the preset voltage range, the voltage of the CP signal in the target period after the target time is sampled for multiple rounds to obtain multiple sets of sampled data, step 202.

And 204, calculating to obtain a CP signal voltage evaluation value in a target time period according to the multiple groups of sampling data.

Step 205, determining whether the CP signal voltage evaluation value is within a preset voltage range.

And step 206, if the CP signal voltage evaluation value is in the preset voltage range, taking the CP signal voltage evaluation value as a valid detection result of the CP signal.

And step 208, if the CP signal voltage evaluation value exceeds the preset voltage range, judging the CP signal voltage evaluation value as an invalid detection result of the CP signal.

And step 210, when the calculated CP signal voltage evaluation value is that the continuous times of invalid detection results exceed the threshold times, sending out a CP voltage value abnormal report.

The threshold times can be set by a user according to various conditions affecting the accuracy of the calculated value and actual measurement conditions, and the smaller the selected threshold times is, the higher the sensitivity of the controller to the invalid detection result is. In the practical implementation process, in order to avoid the false negative report, any integer can be taken as the threshold number within the range of 3-10. For example, when the number of consecutive times of the CP signal voltage evaluation value as an invalid detection result exceeds 3 times, the controller reports that the CP voltage value is abnormal.

Specifically, the controller does not operate when the calculated CP signal voltage evaluation value is that the number of consecutive times of invalid detection results does not exceed the threshold number, and issues a CP voltage value abnormality report when the calculated CP signal voltage evaluation value is that the number of consecutive times of invalid detection results exceeds the threshold number.

In this embodiment, a voltage detection method for a charging pile CP signal is provided, and when a CP signal voltage evaluation value obtained by calculation indicates that the number of consecutive times of invalid detection results exceeds a threshold number, a CP voltage value exception report is sent out, so that a small number of abnormal detection results caused by voltage jitter and a peak value during gun plugging and unplugging are filtered, unnecessary false alarms are reduced, and an alarm can be given in time if necessary.

EXAMPLE III

Based on the foregoing embodiment, in this embodiment, another method for detecting a voltage of a CP signal of a charging pile is provided, where the method further includes the following steps:

and if the voltage of the CP signal is detected to be changed, and the CP signal voltage estimated values obtained through multiple calculations before and after the voltage of the CP signal is changed are all within the preset voltage range, and at least two continuous times of the CP signal voltage estimated values obtained through multiple calculations are the same, taking the CP signal voltage estimated value as an effective detection result of the CP signal, and outputting the effective detection result.

Optionally, an effective number threshold is preset, and the controller takes the CP signal voltage evaluation value as an effective detection result of the CP signal when the calculated CP signal continuously exceeds the effective number threshold for the same number of times.

To illustrate the present embodiment in detail, the following examples are given: when the voltage of the CP signal is switched from 6V to 9V, according to the first embodiment, it can be known that both 6V and 9V are located in the preset voltage range corresponding to the CP signal, that is, the voltage of the CP signal is an effective voltage value before and after the switching, and in order to obtain an accurate detection result, when the voltage evaluation value of the CP signal calculated after the switching is about 9V continuously twice, it is indicated that the voltage of the CP signal has been switched and enters a stable period, 9V is taken as an effective detection result of the CP signal, and the effective detection result is output.

In this embodiment, a voltage detection method for a charging pile CP signal is provided, which is suitable for a case that an effective voltage value of a CP signal changes, and when a calculated CP signal voltage evaluation value is the same for at least two consecutive times, the CP signal voltage evaluation value is used as an effective detection result of the CP signal, so that an inaccurate calculation result caused by voltage change can be eliminated, and a more stable and accurate detection result can be obtained.

It should be understood that although the various steps in the flow charts of fig. 4-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 4-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.

Example four

Referring to fig. 7, the present embodiment provides a voltage detection apparatus for a CP signal of a charging pile, including:

the voltage sampling module 100 is configured to perform multiple rounds of sampling on the voltage of the CP signal in a target period after a target time to obtain multiple sets of sampling data in response to detecting that the voltage of the CP signal at the target time enters a preset voltage range;

the data processing module 200 is configured to calculate a CP signal voltage evaluation value in a target time period according to multiple sets of sampling data;

and a detection result module 300 for taking the CP signal voltage evaluated value as an effective detection result of the CP signal if the CP signal voltage evaluated value is within the preset voltage range.

In some embodiments, each of the plurality of sets of sample data includes a plurality of sample values, and the data processing module 200 is specifically configured to select at least two consecutive sets of sample data from the plurality of sets of sample data, and obtain all sample values in the at least two consecutive sets of sample data; after removing the maximum value and the minimum value in all sampling values, calculating to obtain an average sampling value according to the rest sampling values; and calculating to obtain a CP signal voltage evaluation value according to the average sampling value.

In some embodiments, the data processing module 200 selects at least two consecutive sets of sample data from the plurality of sets of sample data, wherein the number of sets of the selected sample data is less than a preset sample set threshold.

In some embodiments, the data processing module 200 is further specifically configured to obtain a reference voltage value of the analog-to-digital conversion terminal and circuit characteristic data of the CP signal detection circuit; and calculating to obtain a CP signal voltage evaluation value according to the average sampling value, the reference voltage value and the circuit characteristic data.

In some embodiments, the voltage sampling module 100 is specifically configured to, in response to detecting that the voltage of the CP signal enters the preset voltage range, wait for a preset waiting time period, and perform multiple sampling rounds on the voltage of the CP signal within a target time period after the preset waiting time period to obtain multiple sets of sampling data.

In some embodiments, each sampling cycle of the multiple sampling cycles comprises a plurality of sampling periods, the duration of each sampling cycle is less than the minimum effective time of the CP signal voltage in the charging national standard, and the duration of each sampling period of the plurality of sampling periods is greater than the preset duration of signal jitter when a gun is plugged and unplugged.

In some embodiments, the detection result module is further configured to determine the CP signal voltage evaluation value as an invalid detection result of the CP signal if the CP signal voltage evaluation value is out of a preset voltage range, and the apparatus further includes: and the abnormity reporting module is used for sending out a CP voltage value abnormity report when the continuous times of invalid detection results of the calculated CP signal voltage evaluation value exceed the threshold times.

In some embodiments, the detection result module is further configured to, if it is detected that the voltage of the CP signal changes, and the CP signal voltage evaluation values obtained through multiple computations before and after the voltage of the CP signal changes are both within a preset voltage range, and at least two consecutive times of the CP signal voltage evaluation values obtained through multiple computations are the same, take the CP signal voltage evaluation value as an effective detection result of the CP signal, and output the effective detection result.

For specific limitations of the voltage detection device for the charging pile CP signal, see the limitations of the voltage detection method for the charging pile CP signal in the foregoing embodiments, which are not described herein again. All or part of the modules in the voltage detection device for the charging pile CP signal can be realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

EXAMPLE five

In this embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection.

The processor executes the computer program to implement the steps of the method for detecting the voltage of the CP signal of the charging pile as described in the embodiments. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad, a microphone, a camera or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种交流地电位梯度电压信号测量装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!