A detection method, apparatus and electronic device

CN122922573APending Publication Date: 2026-10-16SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611222944.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]但是,在实际充电场景中,在对电动车的充电枪以及充电设备进行检测的过程中,外部信号会对检测信号产生干扰,从而影响到检测结果的准确性

Benefits of technology

[0006]根据本申请实施例的方法,可以提高检测结果响应速度,提高检测结果的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122922573A_ABST
    Figure CN122922573A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of vehicles. In order to improve the accuracy of a detection result, the application provides a detection method, a device and electronic equipment. The method comprises the following steps: measuring and sampling a connection state detection resistor according to a preset sampling period, and obtaining a plurality of continuous measurement values; performing filtering processing on the continuous measurement values in a first time length, and obtaining a first filtering result, wherein the first time length is longer than the sampling period; performing filtering processing on the continuous measurement values in a second time length, and obtaining a second filtering result, wherein the second time length is longer than the first time length; calculating a corresponding connection state detection resistor value according to the first filtering result and the second filtering result, and obtaining a first calculation result and a second calculation result; and determining a charging equipment connection state according to the first calculation result and the second calculation result. According to the method provided in the application, the response speed of a detection result can be improved, and the accuracy of the detection result can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicles, and in particular to a detection method, apparatus and electronic equipment. Background Technology

[0002] With the increasing popularity of electric vehicles, the number of charging facilities for them is growing rapidly. However, this also leads to a rise in charging malfunctions caused by physical damage and aging of the charging guns and equipment. To ensure charging safety, the charging guns and equipment are inspected during the charging process to promptly terminate charging if any abnormalities are detected.

[0003] However, in real-world charging scenarios, external signals can interfere with the detection signals during the testing of electric vehicle charging guns and charging equipment, thus affecting the accuracy of the test results. Therefore, a detection method is needed to filter out the interference of external signals and improve the accuracy of the test results. Summary of the Invention

[0004] To address the problem of how to filter interference from external signals on detection signals and improve the accuracy of detection results, this application provides a detection method, apparatus, and electronic device. This application also provides a computer program product and a computer-readable storage medium.

[0005] The embodiments of this application adopt the following technical solutions: In a first aspect, this application provides a detection method applied to an electronic device, the method comprising: According to the preset sampling period, the connection status detection resistor is measured and sampled to obtain multiple consecutive measurement values; Filtering is performed on multiple consecutive measurements within a first time period to obtain a first filtering result, wherein the first time period is longer than the sampling period; Filtering is performed on multiple consecutive measurements within a second time period to obtain a second filtering result, wherein the second time period is longer than the first time period; The corresponding connection state detection resistance value is calculated based on the first filtering result to obtain the first calculation result; The corresponding connection status detection resistance value is calculated based on the second filtering result to obtain the second calculation result; The connection status of the charging device is determined based on the first calculation result and the second calculation result.

[0006] The method according to the embodiments of this application can improve the response speed of detection results and improve the accuracy of detection results.

[0007] In one implementation of the first aspect, determining the connection status of the charging device based on the first calculation result and the second calculation result includes: During the process of plugging in or unplugging the charging gun, the connection status of the charging device is determined based on the first calculation result.

[0008] During the process of plugging in or unplugging the charging gun, the connection status of the charging device is determined based on the first calculation result. Since the first duration is shorter than the second duration, it can ensure that the connection status of the device can be quickly detected during the plugging in or unplugging of the charging gun, ensuring a fast response and avoiding the situation where the vehicle-side synchronous detection of a dead zone due to a long filtering window time is inconsistent with the actual charging connection. This avoids repeated changes in the charging status of the entire vehicle.

[0009] In states other than plugging and unplugging the charging gun, the connection status of the charging device is determined based on the second calculation result. Since the second duration is longer than the first duration and much longer than the sampling period of the underlying software measurement value, the problem of the mean calculation being unable to eliminate the fluctuation deviation caused by the crosstalk interference due to the filtering period being too small to cover the fluctuation period of the crosstalk interference can be avoided.

[0010] In one implementation of the first aspect: Filtering is performed on multiple consecutive measurements within a first time period to obtain a first filtering result, including calculating the average value of all measurements within the first time period to obtain the first filtering result; Filtering is performed on multiple consecutive measurements within a second time period to obtain a second filtering result, including calculating the average value of all measurements within the second time period to obtain the second filtering result.

[0011] In one implementation of the first aspect: Filtering multiple consecutive measurements within a first time period to obtain a first filtering result includes filtering multiple consecutive measurements within a first window to obtain a first filtering result, wherein the duration of the first window is the first time period, and during the process of continuously acquiring multiple measurements, each time a new measurement is acquired, the oldest measurement in the first window is deleted and the new measurement is added to the first window; Filtering is performed on multiple consecutive measurements within a second time period to obtain a second filtering result. This includes filtering multiple consecutive measurements within a second window to obtain a second filtering result, wherein the duration of the second window is the second time period. During the process of continuously acquiring multiple measurements, each time a new measurement is acquired, the oldest measurement in the second window is deleted, and the new measurement is added to the second window.

[0012] In one implementation of the first aspect: In each judgment cycle, the first filtering result and the second filtering result are obtained once, and the first calculation result and the second calculation result are calculated once accordingly; If the same charging device connection status is obtained in multiple consecutive judgment cycles of a preset time period, the connection status of the charging device is determined.

[0013] In one implementation of the first aspect, during the process of unplugging the charging gun, if the charging device is determined to be in a half-connected state or a connected state based on the first calculation result in multiple consecutive judgment cycles of the third duration, the charging device is determined to be in a half-connected state or a connected state, wherein the third duration is 40ms.

[0014] In one implementation of the first aspect, the judgment period is 1ms, the first duration is 20ms, and the second duration is 200ms.

[0015] Secondly, this application provides an electronic device, which includes a memory and a processor; The processor executes instructions stored in memory to cause the electronic device to perform the method as described in the first aspect.

[0016] Thirdly, this application provides a computer program product containing instructions that, when executed by a computing device system, cause a cluster of computing devices to perform the method as described in the first aspect.

[0017] Fourthly, this application provides a computer-readable storage medium including computer program instructions, which, when executed by a computer system, cause the computer system to perform the method as described in the first aspect. Attached Figure Description

[0018] Figure 1 The diagram shown is a schematic diagram of an electric vehicle charging circuit according to an embodiment of this application; Figure 2 The diagram shown is a schematic diagram of an electric vehicle charging fault according to an embodiment of this application; Figure 3 The diagram shown is a flowchart of a filtering scheme according to an embodiment of this application. Figure 4 The diagram shown is a schematic diagram of the measurement results of the connection status detection resistor according to an embodiment of this application; Figure 5 The diagram shown is a schematic diagram of an electronic device structure according to an embodiment of this application; Figure 6 The diagram shown is a schematic diagram of a detection device according to an embodiment of this application; Figure 7 The diagram shown is a schematic flowchart of a detection method according to an embodiment of this application; Figure 8 The diagram shown illustrates the plugging and unplugging process of a charging gun according to an embodiment of this application, including a resistance / state interval-time interval diagram. Figure 9 This is a schematic diagram of an electronic device structure according to an embodiment of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.

[0021] In electric vehicle charging scenarios, weak, unexpected voltage or current crosstalk may occur between the L / N power lines, protective ground lines, or control signal lines of the charging interface due to deteriorated insulation, humid environments, capacitive coupling, or poor grounding. These faults have small amplitudes and will not immediately trigger traditional overvoltage, overcurrent, or leakage protection, but they can interfere with the vehicle control device's accurate judgment of the charging status, leading to handshake failures and charging interruptions, significantly impacting charging compatibility and user experience.

[0022] For example, Figure 1 The diagram shown is a schematic diagram of an electric vehicle charging circuit according to an embodiment of this application.

[0023] like Figure 1 As shown, the charging socket's connection resistor R1 is typically located at the charging gun's nozzle. Different specifications of charging guns / piles use different connection check (CC) resistance values ​​to characterize the charging equipment's specifications. The vehicle-side CC resistance detection circuit uses an LDO voltage converted to 5V as a reference detection voltage. Through resistor voltage division, follower stabilization, and MCU analog-to-digital (A / D) mapping conversion, it obtains the specific detected real-time measurement value and reports it. Based on the measurement value, the CC resistance value can be calculated, corresponding to the charging gun's connection status and specifications.

[0024] Table 1 below shows the defined range of CC resistance (CCr) values ​​for each charging connection state (CCSts) between the charging gun and the charging pile.

[0025] Table 1

[0026] In practical applications, due to the aging of outdoor charging guns, the R1 resistor side of the gun head may experience AC cross-current in the L / N power line of the charging interface or high-frequency voltage cross-current in the CP control line.

[0027] For example, Figure 2 The diagram shown is a schematic diagram of an electric vehicle charging fault according to an embodiment of this application.

[0028] like Figure 2 As shown, the connection resistor R1 of the charging socket located at the head end of the charging gun is introduced with crosstalk interference. This crosstalk interference can be 50Hz power frequency crosstalk and / or high frequency crosstalk.

[0029] To address the issue of how to filter out interference from external signals on the detection signal and improve the accuracy of the detection results, a feasible technical solution is to use first-order filtering and report the results after a delay using the average of the samples.

[0030] For example, Figure 3 The diagram shown is a flowchart of a filtering scheme according to an embodiment of this application.

[0031] In one embodiment, the following is performed: Figure 3 The following procedure is used to determine the connection status between the charging gun and the charging station.

[0032] S300 samples and measures the CC circuit with a sampling period of 1ms to obtain multiple consecutive measurement values ​​for the CC resistor (for example, in one embodiment, the measurement value is a digital measurement value (AD value) obtained after analog-to-digital conversion).

[0033] S301, calculate the mean of the measurements over 10 consecutive sampling periods (10ms).

[0034] S302, based on the CC resistor voltage divider formula, calculates the corresponding CC resistance value according to the average of the measured values ​​obtained from S301.

[0035] S303. Based on the CC resistance value correspondence shown in Table 1, determine the connection status between the charging gun and the charging pile according to the CC resistance value calculated in S302.

[0036] Furthermore, to ensure the accuracy of the final judgment result, in one embodiment, the CC resistance value is calculated for multiple consecutive cycles (e.g., 5 sampling cycles), and the final judgment result is reported only after consistent judgment results are obtained for multiple consecutive cycles.

[0037] Specifically, maintain a fixed-length "window" of "M" (e.g., M=10ms). Each time a new period of measurement is detected, remove the oldest measurement from the window, add the new value to the window, and calculate the average of all measurements in the window as the filtering result.

[0038] In each sampling period, a new measurement value is acquired for each sample, and the average of all measurements within the window and the corresponding CC resistance value are calculated. After the first detection of a change in the connection status between the charging gun and the charging pile, a consistent change in connection status can be detected over multiple consecutive sampling periods (e.g., 5 sampling periods), thus confirming the change in connection status. That is, after the initial determination of a change in connection status, the determination result is reported after a delay of multiple sampling periods (e.g., 5ms).

[0039] Figure 4 The diagram shown is a sampled result of the measured value of the CC resistor according to an embodiment of this application.

[0040] like Figure 4 As shown, 401 is the waveform of the measured value (AD value) sampling result under the condition of no crosstalk interference, and 402 is the waveform of the AD value sampling result under the condition of crosstalk interference.

[0041] The mean calculation based on S301 can make the AD value under the condition of crosstalk interference and the AD value under the condition of no crosstalk interference consistent after the mean calculation, thereby filtering crosstalk interference.

[0042] However, when the frequency of crosstalk interference is too low (low-frequency power frequency interference), the averaging calculation of S301 cannot achieve the expected results. For example, when the crosstalk interference is a 50Hz power frequency crosstalk interference, the fluctuation period of the AD value curve (402) after interference is 20ms. The averaging calculation period of S301 (10ms) cannot cover the fluctuation period of the crosstalk interference, resulting in the averaging calculation failing to eliminate the fluctuation deviation caused by the crosstalk interference.

[0043] To address the aforementioned low-frequency power frequency interference, a feasible filtering solution is to extend the filtering "window".

[0044] For example, maintain a fixed-length "window" of "N" (N is greater than M, for example, N=200ms). Each time a new period of measurement is detected, remove the oldest value from the window, add the new value to the window, and calculate the average of all values ​​in the window as the filtering result.

[0045] However, in charging scenarios, the CAN communication reporting cycle for interaction between various controller nodes in the vehicle is typically 50ms / 100ms. When the user plugs or unplugs the charging gun, the 200ms sliding filter window time is too long, which may cause the vehicle to detect a dead zone false alarm during the actual operation, resulting in a discrepancy between the actual charging connection and the actual dead zone detection. This can lead to repeated changes in the charging status of the entire vehicle.

[0046] To address the aforementioned issues, one embodiment of this application proposes a detection method. In this method, a combination of "short-time fast filtering (first duration filtering)" and "long-time slow filtering (second duration filtering)" is employed, along with a dual-track detection scheme that switches on demand. Fast filtering is used to improve the response at resistance values ​​above the half-connection stage, while slow filtering is used to suppress interference fluctuations after a stable connection is established.

[0047] The methods described in this application are applied to electronic devices. This application does not impose specific limitations on the electronic devices to which the methods of this application are applied. For example, the electronic device may be a vehicle (vehicle infotainment system), a charging pile, a local device installed in the vehicle for providing charging management, a local device installed in the charging pile for providing charging management, or a remote device (e.g., a cloud server) remotely connected to the vehicle and / or charging pile to provide charging management services.

[0048] Specifically, the method provided in any embodiment of this application can be applied to electronic devices such as vehicles, charging piles, in-vehicle systems, mobile phones, tablets, personal digital assistants (PDAs), desktops, laptops, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, and netbooks. This application does not impose any special restrictions on the specific form of the aforementioned electronic devices.

[0049] Figure 5 The diagram shown is a schematic diagram of an electronic device structure according to an embodiment of this application.

[0050] The method provided in any embodiment of this application can be applied to... Figure 5 In the electronic device 100 shown.

[0051] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, interface 130, power management module 141, antenna 1, communication module 150, audio module 170, sensor module 180, camera 193, display screen 194, etc.

[0052] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] The processor 110 may be an on-chip device (SOC) or other architecture. The processor 110 may include a central processing unit (CPU) and may further include other types of processors.

[0054] Processor 110 may include one or more processing units. For example, the processing units of processor 110 may include any combination of one or more of the following: Central Processing Unit (CPU), Digital Signal Processor (DSP), Microcontroller Unit (MCU), Digital Signal Processor (DSP), Application Processor (AP), Graphics Processing Unit (GPU), Neural-network Processing Units (NPU), Image Signal Processing (ISP), Modem Processor, Controller, Video Codec, and Baseband Processor. Processing units of processor 110 may also include other processing units besides those described above.

[0055] In processor 110, different processing units can be independent devices or integrated into one or more processors. The controller can generate operation control signals based on the instruction opcode and timing signals to control instruction fetching and execution.

[0056] The processor may also include necessary hardware accelerators or logic processing hardware circuitry, such as an ASIC, or one or more integrated circuits for controlling the execution of the program in this application. Furthermore, the processor may have the capability to operate one or more software programs, which may be stored in a storage medium.

[0057] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] In some embodiments, processor 110 may include one or more interfaces.

[0059] The interfaces of processor 110 may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0060] Interface 130 is used to provide an interface for external access of electronic device 100 to processor 110.

[0061] In one embodiment, interface 130 is an interface of processor 110. In another embodiment, interface 130 includes an interface conversion module for converting one type of interface to another. One end of the interface conversion module provides external access for electronic device 100, and the other end of the interface conversion module is connected to the interface of processor 110.

[0062] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0063] Internal memory 121 can be used to store computer executable program code, which includes instructions.

[0064] The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function (such as sound playback, image playback, etc.). The data storage area may store data generated during the use of the electronic device 100 (such as vehicle driving data, navigation data, etc.).

[0065] Internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0066] The internal memory 121 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types of dynamic storage devices that can store information and instructions. It may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), a magnetic disk storage medium, or other magnetic storage devices. Alternatively, it may be any computer-readable medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer.

[0067] Processor 110 and internal memory 121 can be combined into a single processing device, or more commonly they are separate components.

[0068] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0069] The power management module 141 manages the power supply to various components of the electronic device 100. In one embodiment, the power management module 141 includes a charging management module and a battery. The charging management module receives charging input from a charger (e.g., a charging station).

[0070] The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be located in the same device.

[0071] The wireless communication function of electronic device 100 can be realized through antenna 1, communication module 150, etc.

[0072] Antenna 1 is used to transmit and receive electromagnetic wave signals. Antenna 1 may include one or more physical antennas. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0073] The communication module 150 may be one or more devices integrating at least one communication processing module. The communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on the electronic device 100. The communication module 150 can also provide wireless communication solutions, including wireless local area networks (WLANs) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies, for use on the electronic device 100.

[0074] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0075] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0076] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0077] In some embodiments, the electronic device 100 further includes a speaker, a microphone, etc. The electronic device 100 can implement audio functions through the audio module 170, the speaker, the microphone, and an application processor, such as music playback and voice control.

[0078] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0079] In some embodiments, the electronic device 100 also includes buttons, indicators, etc.

[0080] For example, buttons include vehicle start button, volume buttons, air conditioning control buttons, etc. Buttons can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0081] Indicators can be indicator lights, used to indicate vehicle status such as speed, charging status, and battery level; they can also be used to indicate messages such as fault alarms and low battery alarms.

[0082] In addition to the aforementioned components, the electronic device runs an operating system. For example, iOS. ® Operating system, Android ® Operating system, Windows ® Operating systems, such as vehicle operating systems, can be used to install and run applications. The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.

[0083] Furthermore, in one embodiment, the method of this application embodiment can be applied to an electronic device. This electronic device may refer in whole or in part to electronic device 100.

[0084] In another embodiment, the method of this application can be applied to a system composed of multiple electronic devices, where each electronic device in the system executes a portion of the method steps. Any electronic device in the system can refer to electronic device 100 in whole or in part.

[0085] In order to implement the vehicle tail wing control method proposed in the embodiments of this application, an embodiment of this application also proposes a detection device.

[0086] Figure 6 The diagram shown is a schematic diagram of a detection device according to an embodiment of this application.

[0087] like Figure 6 As shown, the detection device 600 includes a sampling module 601, a first filtering module 602, a first calculation module 603, a second filtering module 604, a second calculation module 605, and a selection and reporting module 606.

[0088] The sampling module 601 is used to measure and sample the CC resistance to obtain the measured value.

[0089] In one embodiment, the measured value is the AD value.

[0090] The first filtering module 602 is used to filter the measured value based on a first duration to obtain a first filtering result.

[0091] The first calculation module 603 is used to calculate the corresponding CC resistance value based on the first filtering result, and obtain the first calculation result.

[0092] The second filtering module 604 is used to filter the sampled measurement results based on a second duration to obtain a second filtering result, wherein the second duration is longer than the first duration.

[0093] The second calculation module 605 is used to calculate the corresponding CC resistance value based on the second filtering result, and obtain the second calculation result.

[0094] Selecting the reporting module 606 is used to determine the connection status of the charging device based on the first calculation result and the second calculation result, and then reporting it.

[0095] This application does not limit the specific way of implementing the detection device. Those skilled in the art can design the implementation method of the device according to the actual situation.

[0096] For example, in one embodiment, the device is installed on the electronic device in hardware (e.g., a functional chip). In another embodiment, the device is installed in the operating system of the electronic device as software code. Yet another embodiment, the device is installed on the electronic device as a combination of hardware and software.

[0097] Furthermore, in one embodiment, the device is mounted on an electronic device.

[0098] In another embodiment, the device is mounted on multiple electronic devices, which together form a complete device structure. Different electronic devices may install the same functional modules, or different electronic devices may install different functional modules.

[0099] In the description of the embodiments of this application, for the sake of convenience, the device is described by dividing it into various modules according to its functions. The division of each module is only a logical functional division. When implementing the embodiments of this application, the functions of each module can be implemented in one or more software and / or hardware.

[0100] Specifically, the apparatus proposed in this application can be fully or partially integrated onto a single physical entity (e.g., a GPU or other type of processor), or it can be physically separated. These modules can be implemented entirely in software via processing element calls; entirely in hardware; or some modules can be implemented in software via processing element calls, while others are implemented in hardware. For example, the detection module can be a separate processing element or integrated into a chip in an electronic device. The implementation of other modules is similar. Furthermore, these modules can be fully or partially integrated together or implemented independently. During implementation, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0101] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these modules can be integrated together as a system-on-a-chip (SOC).

[0102] Figure 7 The diagram shown is a schematic flowchart of a detection method according to an embodiment of this application.

[0103] In one embodiment, the electronic device performs as follows Figure 7 The following procedure is used to detect and determine the connection status of the charging device.

[0104] The S700 measures and samples the CC resistor according to a preset sampling period to obtain multiple consecutive measurement values.

[0105] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the sampling module 601 in step S700.

[0106] Specifically, in one embodiment, in S700, the CC resistance is measured and sampled with a sampling period of 1ms.

[0107] In other embodiments, different sampling periods may be used for measurement sampling, for example, 2ms.

[0108] S701, performs filtering on multiple consecutive measurements within a first time period to obtain a first filtering result, wherein the first time period is longer than the sampling period.

[0109] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the first filtering module 602 in step S701.

[0110] Specifically, in one embodiment, filtering is achieved through mean calculation.

[0111] Specifically, in the process of filtering multiple consecutive measurements within the first time period, the mean of the multiple consecutive measurements within the first time period is calculated (the average value of all measurements within the first time period is calculated), and the result of the mean calculation is used as the filtering result (the first filtering result).

[0112] In other embodiments, filtering can also be implemented in other ways. For example, in one embodiment, during the filtering of multiple consecutive measurements within a first time period, the measurement value located at the middle time node among the multiple consecutive measurements within the first time period is determined, and this measurement value is used as the filtering result (first filtering result).

[0113] For example, in one embodiment, during the filtering process of multiple consecutive measurements within a first time period, the average of the maximum and minimum values ​​among the multiple consecutive measurements within the first time period is calculated, and this average is used as the filtering result (first filtering result).

[0114] S702, performs filtering on multiple consecutive measurements within a second duration to obtain a second filtering result, wherein the second duration is longer than the first duration.

[0115] The specific implementation of filtering in S702 can be found in S701.

[0116] Specifically, in one embodiment, in S702, the mean of multiple consecutive measurements within the second time period is calculated, and the mean calculation result is used as the filtering result (second filtering result).

[0117] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the second filtering module 604 in step S702.

[0118] S703, based on the CC resistor voltage divider formula, calculates the corresponding CC resistor value according to the first filtering result, and obtains the first calculation result.

[0119] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the first calculation module 603 in step S703.

[0120] S704, based on the CC resistor voltage divider formula, calculates the corresponding CC resistor value according to the second filtering result, and obtains the second calculation result.

[0121] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the second calculation module 605 in step S704.

[0122] In one embodiment, S701, S703 and S702, S704 are executed in parallel, and the first calculation result and the second calculation result are output synchronously.

[0123] S705, based on the CC resistance value correspondence shown in Table 1, determines the connection status of the charging device according to the first calculation result and the second calculation result.

[0124] In one embodiment, the electronic device is equipped with Figure 6 The detection device 600 shown is executed by the selection and reporting module 606 in step S705.

[0125] In one embodiment, during the process of plugging in or unplugging the charging gun, the connection status of the charging device is determined based on a first calculation result. Since the first duration is shorter than the second duration, it can be ensured that the connection status of the device can be quickly detected during the plugging in or unplugging of the charging gun, ensuring a fast response and avoiding the situation where the vehicle-side synchronous detection of a dead zone due to a long filtering window time is inconsistent with the actual charging connection, thereby avoiding repeated changes in the charging status of the entire vehicle.

[0126] In states other than plugging and unplugging the charging gun, the connection status of the charging device is determined based on the second calculation result. Since the second duration is longer than the first duration and much longer than the sampling period of the underlying software measurement value, the problem of the mean calculation being unable to eliminate the fluctuation deviation caused by the crosstalk interference due to the filtering period being too small to cover the fluctuation period of the crosstalk interference can be avoided.

[0127] Specifically, in one embodiment, in S705, if the charging device connection state is determined to be either a connected state transitioning to a partially connected state or an unconnected state based on the first calculation result, the charging device connection state determined based on the first calculation result is taken as the final determined charging device connection state. Also, if the charging device connection state is determined to be either an unconnected state transitioning to a partially connected state or a connected state based on the first calculation result, the charging device connection state determined based on the first calculation result is taken as the final determined charging device connection state.

[0128] Furthermore, if the charging device connection state does not change from a connected state to a partially connected state or not connected based on the first calculation result, the charging device connection state determined based on the second calculation result will be taken as the final determined charging device connection state. Also, if the charging device connection state does not change from an unconnected state to a partially connected state or connected based on the first calculation result, the charging device connection state determined based on the first calculation result will be taken as the final determined charging device connection state.

[0129] For example, at time S0, if both the first and second calculation results are less than the CC resistance value corresponding to the half-connection state, then the corresponding device connection state is determined based on the second calculation result, and the interface specification is also determined based on the second calculation result to improve the accuracy of the detection results. After time S0, if the first calculation result first matches the CC resistance value corresponding to the half-connection state (the second calculation result is less than the CC resistance value corresponding to the half-connection state), then the charging device is determined to have entered the half-connection state. Alternatively, after time S0, if the first calculation result first is greater than the CC resistance value corresponding to the half-connection state (the second calculation result is less than the CC resistance value corresponding to the half-connection state), then the charging device is determined to have entered the unconnected state.

[0130] The method according to the embodiments of this application can improve the response speed of detection results and improve the accuracy of detection results.

[0131] Specifically, in one embodiment, the first duration is 20ms and the second duration is 200ms.

[0132] Furthermore, to ensure the accuracy of the final judgment result, in one embodiment, a judgment cycle is set, and the connection status is judged once in each judgment cycle. The final judgment result is confirmed when consistent judgment results are obtained in multiple consecutive judgment cycles. That is, the CC resistance value is calculated in multiple consecutive judgment cycles (e.g., 5 judgment cycles), and the final judgment result is reported only after consistent judgment results are obtained in multiple consecutive judgment cycles.

[0133] Specifically, in one embodiment, the judgment period is consistent with the sampling period, that is, the measurement result is sampled once in each judgment period.

[0134] Specifically, in one embodiment, a first window of a first duration is maintained. Each time a new period of measurement value is detected, the oldest measurement value is removed from the first window, and the new measurement value is added to the first window.

[0135] In each judgment cycle, upon acquiring a new measurement value, S701 is executed once to filter all measurement values ​​within the first window (e.g., calculate the mean of all measurement values), and the first filtering result is calculated once. Correspondingly, S703 is executed once to calculate the first calculation result.

[0136] At the same time, a second window with a second duration is maintained. Each time a new period of measurement is detected, the oldest measurement is removed from the second window and the new measurement is added to the second window.

[0137] In each judgment cycle, upon acquiring a new measurement value, S702 is executed once to filter all measurement values ​​within the second window (e.g., calculate the mean of all measurement values), and a second filtering result is calculated. Correspondingly, S704 is executed once to calculate a second calculation result.

[0138] In S705, the final judgment result is determined and reported only when the judgment results corresponding to multiple consecutive judgment cycles of a preset duration are consistent.

[0139] For example, during the process of unplugging the charging gun, if the charging device is determined to be in a semi-connected state or a connected state in multiple consecutive judgment cycles of a preset time period (e.g., the third time period) based on the first calculation result, it is determined that the charging device is in a semi-connected state or a connected state.

[0140] At time S0, if both the first and second calculation results are less than the CC resistance value corresponding to the half-connection state, the corresponding device connection state is determined based on the second calculation result, and the interface specification is also determined based on the second calculation result to improve the accuracy of the detection results. At time S1, after time S0, if the first calculation result first matches the CC resistance value corresponding to the half-connection state (the second calculation result is less than the CC resistance value corresponding to the half-connection state), the charging device connection state is not immediately determined to be in the half-connection state. Within a preset time period after time S1, if the first calculation result of each judgment cycle matches the CC resistance value corresponding to the half-connection state, the charging device connection state is determined to be in the half-connection state.

[0141] Figure 8 The diagram shown illustrates the plugging and unplugging process of a charging gun according to an embodiment of this application, including a resistance / state interval-time interval diagram.

[0142] Figure 8 Curve 801 represents the change curve of the first calculation result during the process of unplugging the charging gun; curve 802 represents the change curve of the second calculation result during the process of unplugging the charging gun; and curve 803 represents the actual time point at which the user unplugs the charging gun.

[0143] like Figure 8As shown, after the user unplugs the charging gun (time node 803), and after time node 804, the first calculation result is initially greater than the CC resistance value corresponding to the half-connection state. The delay between time node 803 and time node 804 is approximately 29ms. Compared to the second calculation result, the first calculation result responds to the unplugging of the charging gun much faster. Therefore, determining whether the charging device has entered a half-connection state or a connected state based on the first calculation result can effectively improve the timeliness of the detection result response.

[0144] Furthermore, between unplugging the charging gun and receiving a response from the first calculation result (between time nodes 803 and 804), there is an overlap between the first and second calculation results. To ensure the stability and reliability of the disconnected or connected state determined based on the first calculation result, after time node 804, and between time node 804 and time node 805 (the third time interval), only after determining that the charging device's connection state has entered a semi-connected or disconnected state based on the first calculation result, is the connection state of the charging device confirmed to be in a semi-connected or disconnected state, and a connection status report is made (reporting is performed at time node 805).

[0145] Specifically, to ensure accuracy, the reporting delay after time node 804 (the third duration) covers the period between unplugging the charging gun and the appearance of the first calculation result (between time nodes 803 and 804). There is an overlap between the first calculation result and the second calculation result. That is, the time from time node 804 to time node 805 (the third duration) is designed to be longer than the time between time nodes 803 and 804.

[0146] like Figure 8 As shown, in one embodiment, the third duration is designed to be 40ms.

[0147] An embodiment of this application also proposes an electronic device. This electronic device is used to execute the method flow or part of the method flow described in the embodiments of this application. This electronic device is a terminal device, base station device, or server device as described in the embodiments of this specification.

[0148] Figure 9 This is a schematic diagram of an electronic device structure according to an embodiment of this application.

[0149] like Figure 9 As shown, the electronic device 2500 includes a memory 2502 for storing computer program instructions and a processor 2501 for executing the program instructions. When the computer program instructions are executed by the processor 2501, the electronic device 2500 is triggered to execute the method steps performed by the electronic device as described in the embodiments of this application.

[0150] Specifically, in one embodiment of this application, the aforementioned one or more computer programs are stored in the aforementioned memory 2502. The aforementioned one or more computer programs include instructions that, when executed by the aforementioned electronic device 2500, cause the aforementioned electronic device 2500 to perform the method steps described in the embodiments of this application.

[0151] It is understood that the structural description of the electronic device 2500 in this application does not constitute a specific limitation on the electronic device 2500. In other embodiments of this application, the electronic device 2500 may include other components besides the processor 2501 and the memory 2502.

[0152] In one embodiment, electronic device 2500 may refer to electronic device 100, wherein processor 2501 may refer to processor 110, and memory 2502 may refer to internal memory 121.

[0153] Processor 2501 and memory 2502 can be combined into a single processing device, but more commonly they are separate components.

[0154] An embodiment of this application also provides an electronic chip. This electronic chip is used to execute the method flow or part of the method flow described in the embodiments of this application.

[0155] Specifically, the electronic chip includes a processor for executing program instructions. When the computer program instructions are executed by the processor, the electronic chip is triggered to perform the steps described in the embodiments of this application. The processor of the electronic chip can refer to the processor of the above-described electronic device.

[0156] Optionally, the devices, apparatuses, and modules described in the embodiments of this application may be implemented by computer chips or physical entities, or by products with certain functions.

[0157] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media containing computer-usable program code.

[0158] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0159] Specifically, one embodiment of this application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the method provided in the embodiment of this application.

[0160] An embodiment of this application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to perform the method provided in the embodiment of this application.

[0161] The embodiments described in this application are described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0162] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0163] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0164] It should also be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0165] In this application, 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.

[0166] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0167] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0168] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments of this application can be implemented using electronic hardware, computer software, or a combination of electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0169] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0170] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A detection method, characterized in that, The method is applied to an electronic device, and the method includes: According to the preset sampling period, the connection status detection resistor is measured and sampled to obtain multiple consecutive measurement values; Filtering is performed on multiple consecutive measurement values ​​within a first time period to obtain a first filtering result, wherein the first time period is longer than the sampling period; A second filtering result is obtained by filtering multiple consecutive measurement values ​​within a second time period, wherein the second time period is longer than the first time period; Calculate the corresponding connection status detection resistance value based on the first filtering result to obtain the first calculation result; The corresponding connection status detection resistance value is calculated based on the second filtering result to obtain the second calculation result; The connection status of the charging device is determined based on the first calculation result and the second calculation result.

2. The method according to claim 1, characterized in that, Determining the connection status of the charging device based on the first calculation result and the second calculation result includes: During the process of plugging in or unplugging the charging gun, the connection status of the charging device is determined based on the first calculation result.

3. The method according to claim 2, characterized in that: The step of filtering multiple consecutive measurement values ​​within a first time period to obtain a first filtering result includes calculating the average value of all measurement values ​​within the first time period to obtain the first filtering result. The step of filtering multiple consecutive measurements within a second time period to obtain a second filtering result includes calculating the average value of all measurements within the second time period to obtain the second filtering result.

4. The method according to claim 3, characterized in that: The step of filtering multiple consecutive measurement values ​​within a first time period to obtain a first filtering result includes filtering multiple consecutive measurement values ​​within a first window to obtain the first filtering result, wherein the duration of the first window is the first time period, and during the process of continuously acquiring multiple measurement values, each time a new measurement value is acquired, the oldest measurement value in the first window is deleted and the new measurement value is added to the first window; The step of filtering multiple consecutive measurement values ​​within a second time period to obtain a second filtering result includes filtering multiple consecutive measurement values ​​within a second window to obtain the second filtering result, wherein the time period of the second window is the second time period; during the process of continuously acquiring multiple measurement values, each time a new measurement value is acquired, the oldest measurement value in the second window is deleted, and the new measurement value is added to the second window.

5. The method according to claim 4, characterized in that: In each judgment period, the first filtering result and the second filtering result are obtained once, and the first calculation result and the second calculation result are calculated once accordingly. If the same charging device connection status is obtained in multiple consecutive judgment cycles of a preset duration, the connection status of the charging device is determined.

6. The method according to claim 5, characterized in that, During the process of unplugging the charging gun, if the charging device is determined to be in a half-connected state or a connected state in multiple consecutive judgment cycles of the third duration, based on the first calculation result, the charging device is determined to be in a half-connected state or a connected state. The third duration is 40ms.

7. The method according to any one of claims 1-6, characterized in that, The sampling period is 1ms, the first duration is 20ms, and the second duration is 200ms.

8. An electronic device, characterized in that, The electronic device includes a memory and a processor; The processor is configured to execute instructions stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-7.

9. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device system, it causes the computing device cluster to perform the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, It includes computer program instructions, which, when executed by a computer system, perform the method as described in any one of claims 1-7.