PWM (Pulse Width Modulation) driving control method and device, electronic equipment and target vehicle

By calculating and adjusting the PWM signal driving frequency range of the target electrical equipment, the electromagnetic compatibility problem caused by PWM control technology is solved, the electromagnetic interference of radio equipment is reduced, and the normal operation of radio equipment is ensured.

CN120090651APending Publication Date: 2025-06-03TIANJIN JINGWEI HIRAIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510240980.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

The PWM control technology used in automotive electronic controllers leads to electromagnetic compatibility problems, affecting the working performance of radio equipment such as radio broadcasting vehicle radios. How to reduce the electromagnetic interference caused by these equipment?

Method used

By acquiring the current reception frequency of the radio device, the target driving frequency range corresponding to the PWM signal of the target electrical device is calculated, and the PWM signal of the target electrical device is ensured to drive within this range to avoid interfering with the received signal of the radio device.

Benefits of technology

It effectively reduces the electromagnetic interference received by radio equipment, ensures the normal working performance of radio equipment, and avoids the impact of electromagnetic radiation on vehicle-mounted radios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090651A_ABST
    Figure CN120090651A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of PWM control, in particular to a PWM drive control method and device, electronic equipment and a target vehicle. Acquiring a current receiving frequency of a current frequency band corresponding to the radio equipment; according to the current receiving frequency, calculating a target driving frequency range corresponding to a PWM signal of target electrical equipment in the target vehicle; wherein the PWM signal for driving the target electrical equipment in the target driving frequency range does not influence the radio equipment to receive the signal; correcting an initial driving frequency corresponding to the target electrical equipment based on the target driving frequency range to obtain a target driving frequency; and driving a PWM signal of the target electrical equipment based on the target driving frequency. Therefore, the higher harmonic frequency corresponding to the target driving frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio equipment, and the generated narrowband disturbance avoids the current receiving frequency of the current frequency band corresponding to the radio equipment which is being listened, so that the electromagnetic interference on the radio equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PWM control, and particularly to a PWM drive control method, device, electronic device and target vehicle. Background Art

[0002] Nowadays, many automotive electronic controllers in the automotive industry commonly use PWM control to achieve the action accuracy and reliability of controlled devices. From the perspective of electromagnetic compatibility analysis, since the principle of PWM is to use a square wave after signal modulation to control the controlled object, and its current change rate and voltage change rate are both relatively large and the frequency is mostly 10 kHz to 50 kHz, the high-order harmonic electromagnetic energy of the control waveform of PWM is relatively large and will inevitably cause electromagnetic compatibility problems such as electromagnetic radiation emission, and the working performance of AM / FM and other radio broadcast in-vehicle radios that communicate through electromagnetic waves will also be affected.

[0003] Then, how to reduce the electromagnetic interference received by radio devices such as in-vehicle radios for radio broadcasts has become an urgent problem to be solved. Summary of the Invention

[0004] In view of this, the present invention provides a PWM drive control method, device, electronic device and target vehicle to solve the problem of how to reduce the electromagnetic interference received by radio devices such as in-vehicle radios for radio broadcasts.

[0005] In a first aspect, the present invention provides a PWM drive control method, the method comprising:

[0006] Obtaining a current reception frequency of a current frequency band corresponding to a radio device;

[0007] Calculating a target drive frequency range of a PWM signal of a target electrical device in a target vehicle according to the current reception frequency; wherein, the PWM signal for driving the target electrical device within the target drive frequency range does not affect the radio device's reception of signals;

[0008] Based on the target drive frequency range, correcting an initial drive frequency corresponding to the target electrical device to obtain a target drive frequency;

[0009] Driving the PWM signal of the target electrical device based on the target drive frequency.

[0010] The PWM drive control method provided by the embodiment of the present application obtains the current receiving frequency of the current frequency band corresponding to the radio device, and calculates the target drive frequency range corresponding to the PWM signal of the target electrical device in the target vehicle. This ensures the accuracy of the calculated target drive frequency range, and further ensures that the PWM signal driving the target electrical device within the target drive frequency range does not affect the radio device's signal reception. Then, based on the target drive frequency range, the initial drive frequency corresponding to the target electrical device is corrected to obtain the target drive frequency, ensuring the accuracy of the obtained target drive frequency. The PWM signal of the target electrical device is driven based on the target drive frequency. Thus, the high-order harmonic frequency corresponding to the target drive frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, making the narrowband interference generated by it avoid the current receiving frequency of the current frequency band corresponding to the radio device being listened to, and further reducing the electromagnetic interference received by the radio device.

[0011] In an alternative embodiment, calculating the target drive frequency range corresponding to the PWM signal of the target electrical device in the target vehicle based on the current receiving frequency includes:

[0012] Calculating the maximum target drive frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency;

[0013] Calculating the minimum target drive frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency;

[0014] Determining the target drive frequency range according to the maximum target drive frequency and the minimum target drive frequency.

[0015] The PWM drive control method provided by the embodiment of the present application calculates the maximum target drive frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency, ensuring the accuracy of the calculated maximum target drive frequency. Calculating the minimum target drive frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency ensures the accuracy of the obtained minimum target drive frequency. Then, determining the target drive frequency range according to the maximum target drive frequency and the minimum target drive frequency ensures the accuracy of the determined target drive frequency range.

[0016] In an alternative embodiment, calculating the maximum target drive frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency includes:

[0017] Obtaining the minimum operator corresponding to the radio device;

[0018] Dividing the current receiving frequency by the minimum operator to calculate the maximum candidate drive frequency;

[0019] Obtain the first preset driving frequency range corresponding to the PWM signal of the target electrical device;

[0020] Detect whether the maximum candidate driving frequency is within the first preset driving frequency range;

[0021] If the maximum candidate driving frequency is within the first preset driving frequency range, determine the maximum candidate driving frequency as the maximum target driving frequency.

[0022] The PWM driving control method provided by the embodiments of the present application obtains the minimum operator corresponding to the radio device; divides the current receiving frequency by the minimum operator to calculate the maximum candidate driving frequency, ensuring that the high-order harmonic frequency corresponding to the calculated maximum candidate driving frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, so that the narrowband interference generated by it avoids the current receiving frequency of the current frequency band corresponding to the radio device being listened to. Then, obtain the first preset driving frequency range corresponding to the PWM signal of the target electrical device; detect whether the maximum candidate driving frequency is within the first preset driving frequency range; if the maximum candidate driving frequency is within the first preset driving frequency range, determine the maximum candidate driving frequency as the maximum target driving frequency. Ensure that the determined maximum target driving frequency is within the first preset driving frequency range, and the high-order harmonic frequency corresponding to the maximum target driving frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, so that the narrowband interference generated by it avoids the current receiving frequency of the current frequency band corresponding to the radio device being listened to.

[0023] In an alternative embodiment, calculating the maximum target driving frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency further includes:

[0024] If the maximum candidate driving frequency is not within the first preset driving frequency range, perform an operation of adding 1 to the minimum operator to obtain an updated minimum operator;

[0025] Divide the current receiving frequency by the updated minimum operator to calculate the maximum standby driving frequency;

[0026] Detect whether the maximum standby driving frequency is within the first preset driving frequency range;

[0027] If the maximum standby driving frequency is within the first preset driving frequency range, determine the maximum standby driving frequency as the maximum target driving frequency.

[0028] In the PWM drive control method provided by the embodiment of the present application, if the maximum candidate drive frequency is not within the first preset drive frequency range, the minimum operator is incremented by 1 to obtain an updated minimum operator, which ensures the accuracy of the obtained second operator. Since the high-order harmonics of PWM drive increase or decrease one by one and are only non-negative integers, 1 is selected instead of other numbers to achieve refined operation as much as possible to obtain the optimal second operator. Then, the current received frequency is divided by the updated minimum operator to calculate the maximum standby drive frequency, which ensures the accuracy of the calculated maximum standby drive frequency. It is detected whether the maximum standby drive frequency is within the first preset drive frequency range; if the maximum standby drive frequency is within the first preset drive frequency range, the maximum standby drive frequency is determined as the maximum target drive frequency. This ensures that the determined maximum target drive frequency is within the first preset drive frequency range and that the high-order harmonic frequency corresponding to the maximum target drive frequency falls outside the current received frequency of the current frequency band corresponding to the radio device, so that the narrowband interference generated by it avoids the current received frequency of the current frequency band corresponding to the radio device being listened to. In addition, the above method avoids the situation where the maximum standby drive frequency is not within the first preset drive frequency range, thereby affecting the accuracy of the PWM signal of the target electrical device.

[0029] In an alternative embodiment, obtaining the minimum operator corresponding to the radio device includes:

[0030] Obtaining the initial drive frequency corresponding to the target electrical device and the duty cycle corresponding to the initial drive frequency;

[0031] Obtaining the current vehicle speed corresponding to the target vehicle;

[0032] Inputting the initial drive frequency, duty cycle, current received frequency, and current vehicle speed into the harmonic number determination model to determine each harmonic number in the initial drive frequency whose interference index with respect to the current received frequency is greater than the preset interference threshold;

[0033] Calculating the minimum operator according to each harmonic number.

[0034] The PWM drive control method provided by the embodiment of the present application obtains the initial drive frequency corresponding to the target electrical device and the duty cycle corresponding to the initial drive frequency; obtains the current vehicle speed of the target vehicle; inputs the initial drive frequency, duty cycle, current receiving frequency, and current vehicle speed into the harmonic order determination model to determine each harmonic order in the initial drive frequency whose interference index to the current receiving frequency is greater than the preset interference threshold, ensuring the accuracy of each determined harmonic order. Then, according to each harmonic order, the minimum operator is calculated, ensuring that each high-order harmonic frequency corresponding to the maximum target drive frequency calculated based on the minimum operator falls outside the current receiving frequency of the current frequency band corresponding to the radio device, so that the narrowband harassment generated by it avoids the current receiving frequency of the current frequency band corresponding to the radio device being listened to.

[0035] In an alternative embodiment, calculating the minimum operator according to each harmonic order includes:

[0036] Determine the weight information corresponding to each harmonic order according to the interference index of each harmonic order to the harmonic order;

[0037] Multiply each harmonic order by the corresponding weight information to obtain the sum of harmonic orders;

[0038] Multiply the sum of harmonic orders by the first coefficient to obtain the minimum operator.

[0039] The PWM drive control method provided by the embodiment of the present application determines the weight information corresponding to each harmonic order according to the interference index of each harmonic order to the harmonic order, ensuring that the determined weight information matches the corresponding harmonic order and ensuring the accuracy of the weight information corresponding to each determined harmonic order. Then, multiply each harmonic order by the corresponding weight information to obtain the sum of harmonic orders, ensuring the accuracy of the calculated sum of harmonic orders. Then, multiply the sum of harmonic orders by the first coefficient to obtain the minimum operator, ensuring the accuracy of the obtained minimum operator.

[0040] In an alternative embodiment, correcting the initial drive frequency corresponding to the target electrical device based on the target drive frequency range to obtain the target drive frequency includes:

[0041] Obtain the initial drive frequency corresponding to the target electrical device;

[0042] Compare the initial drive frequency with the maximum target drive frequency and the minimum target drive frequency in the target drive frequency range;

[0043] If the initial drive frequency is greater than or equal to the minimum target drive frequency and less than or equal to the maximum target drive frequency, then determine the initial drive frequency as the target drive frequency;

[0044] If the initial driving frequency is greater than the maximum target driving frequency, the initial driving frequency is corrected to the maximum target driving frequency to obtain the target driving frequency;

[0045] If the initial driving frequency is less than the minimum target driving frequency, the initial driving frequency is corrected to the minimum target driving frequency to obtain the target driving frequency.

[0046] The PWM driving control method provided by the embodiment of the present application obtains the initial driving frequency corresponding to the target electrical device; compares the initial driving frequency with the maximum target driving frequency and the minimum target driving frequency in the target driving frequency range. Then, if the initial driving frequency is greater than or equal to the minimum target driving frequency and less than or equal to the maximum target driving frequency, the initial driving frequency is determined as the target driving frequency; if the initial driving frequency is greater than the maximum target driving frequency, the initial driving frequency is corrected to the maximum target driving frequency to obtain the target driving frequency; if the initial driving frequency is less than the minimum target driving frequency, the initial driving frequency is corrected to the minimum target driving frequency to obtain the target driving frequency. This ensures the accuracy of the obtained target driving frequency. Based on the target driving frequency, a PWM signal for driving the target electrical device is generated. Thus, the high-order harmonic frequency corresponding to the target driving frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, so that the narrowband interference generated by it avoids the current receiving frequency of the current frequency band corresponding to the radio device being listened to, thereby reducing the electromagnetic interference received by the radio device.

[0047] In a second aspect, the present invention provides a PWM driving control device, which includes:

[0048] An acquisition module, configured to acquire the current receiving frequency of the current frequency band corresponding to the radio device;

[0049] A calculation module, configured to calculate a target driving frequency range corresponding to the PWM signal of the target electrical device in the target vehicle according to the current receiving frequency; wherein, driving the PWM signal of the target electrical device within the target driving frequency range does not affect the radio device's reception of signals;

[0050] A correction module, configured to correct the initial driving frequency corresponding to the target electrical device based on the target driving frequency range to obtain the target driving frequency;

[0051] A driving module, configured to drive the PWM signal of the target electrical device based on the target driving frequency.

[0052] The PWM drive control device provided by the embodiment of the present application obtains the current receiving frequency of the current frequency band corresponding to the radio device, and calculates the target drive frequency range corresponding to the PWM signal of the target electrical device in the target vehicle, ensuring the accuracy of the calculated target drive frequency range. Furthermore, it ensures that the PWM signal for driving the target electrical device within the target drive frequency range does not affect the signal reception of the radio device. Then, the initial drive frequency corresponding to the target electrical device is corrected based on the target drive frequency range to obtain the target drive frequency, ensuring the accuracy of the obtained target drive frequency. The PWM signal for driving the target electrical device is based on the target drive frequency. Thus, the high-order harmonic frequency corresponding to the target drive frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, enabling the narrowband interference generated by it to avoid the current receiving frequency of the current frequency band corresponding to the radio device being listened to, thereby reducing the electromagnetic interference received by the radio device.

[0053] In a third aspect, the present invention provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the PWM drive control method according to the first aspect or any corresponding implementation manner thereof.

[0054] In a fourth aspect, the present invention provides a target vehicle, including: an electronic device, a radio device, a target electrical device, and a vehicle body. Among them, the electronic device is communicatively connected to the radio device and the target electrical device, and the electronic device is used to perform the PWM drive control method according to the first aspect or any corresponding implementation manner thereof.

[0055] In a fifth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to perform the PWM drive control method according to the first aspect or any corresponding implementation manner thereof.

[0056] In a sixth aspect, the present invention provides a computer program product, including computer instructions, and the computer instructions are used to cause a computer to perform the PWM drive control method according to the first aspect or any corresponding implementation manner thereof. Description of the Drawings

[0057] In order to more clearly illustrate the specific implementation manners of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific implementation manners or the prior art. Obviously, the following drawings are some implementation manners of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0058] Figure 1 It is a schematic flowchart of the PWM drive control method according to an embodiment of the present invention;

[0059] Figure 2 It is a schematic flowchart of another PWM drive control method according to an embodiment of the present invention;

[0060] Figure 3 It is a flowchart of an electronic device calculating the maximum target drive frequency based on the minimum operator according to an embodiment of the present invention;

[0061] Figure 4 It is a flowchart of an electronic device calculating the minimum target drive frequency based on the maximum operator according to an embodiment of the present invention;

[0062] Figure 5 It is a structural block diagram of a PWM drive control device according to an embodiment of the present invention;

[0063] Figure 6 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed implementation manners

[0064] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0065] Nowadays, many automotive electronic controllers in the automotive industry commonly use PWM control to achieve the motion accuracy and reliability of controlled devices. From the perspective of electromagnetic compatibility analysis, since the principle of PWM is to use a square wave after signal modulation to control the controlled object, and its current change rate and voltage change rate are both relatively large and the frequency is mostly 10 kHz to 50 kHz. Therefore, the high-order harmonic electromagnetic energy of the PWM control waveform is relatively large and will inevitably cause electromagnetic compatibility problems such as electromagnetic radiation emission, and the working performance of AM / FM and other radio broadcast in-vehicle radios that communicate through electromagnetic waves will also be affected.

[0066] Exemplarily, taking the window motor controller with a driving frequency of 20 kHz and PWM as the control strategy as an example, most PWM control strategies only use the window position or switch gear as the feedback of the control quantity to debug the square wave, and the PWM driving signal of the window motor will generate electromagnetic radiation on the driving harness. In the AM band of the in-vehicle radio, the reception effect of the radio is very likely to be affected by the electromagnetic radiation generated by the PWM driving signal, and then the vehicle occupants will hear noises such as motor noise when using the in-vehicle radio, which affects the actual driving experience.

[0067] Then, how to reduce the electromagnetic interference received by radio devices such as in-vehicle radios has become an urgent problem to be solved.

[0068] It should be noted that for the PWM drive control method provided in the embodiments of the present application, the execution subject may be a PWM drive control device, and this PWM drive control device may be implemented as part or all of an electronic device through software, hardware, or a combination of software and hardware. Among them, the electronic device may be a control device in the target vehicle. In the following method embodiments, the execution subject is taken as an electronic device for illustration.

[0069] According to an embodiment of the present invention, an embodiment of a PWM drive control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.

[0070] In this embodiment, a PWM drive control method is provided, which can be used for the above-mentioned electronic device. Figure 1 It is a flowchart of the PWM drive control method according to an embodiment of the present invention, as Figure 1 shown, the process includes the following steps:

[0071] Step S101, obtain the current receiving frequency of the current frequency band corresponding to the radio device.

[0072] Optionally, the electronic device can communicate and connect with the radio device through a preset communication protocol. Among them, the preset communication protocol can be a vehicle data bus protocol such as CAN (Controller Area Network) or LIN (Local Interconnect Network). The radio device will encapsulate its current receiving frequency information in a data frame according to the established protocol format and send it to the electronic device regularly or when the receiving frequency changes.

[0073] For example, when the radio is tuned to a new station frequency, it immediately sends a data frame containing the new frequency information via the CAN bus. After receiving this data frame, the electronic device parses the frequency data therein according to the protocol, thereby obtaining the current receiving frequency.

[0074] Optionally, the electronic device can also obtain the current receiving frequency of the current frequency band corresponding to the radio device through a hardware connection. For example, there is a direct electrical connection between the electronic device and the front-end circuit of the radio. Using a frequency detection circuit, the electronic device can directly monitor key frequency signals such as the local oscillator frequency or intermediate frequency in the radio receiving circuit, and obtain the actual receiving frequency through certain calculations and conversions. This method is relatively common in some systems with high requirements for frequency accuracy and real-time performance, but it requires more complex hardware design and wiring.

[0075] Optionally, the electronic device can also run a dedicated software program to monitor the working state of the radio device. By analyzing information such as the signal characteristics and data traffic of the radio device, the current receiving frequency of the radio device is inferred. For example, the electronic device can monitor the spectral characteristics of the radio audio output, and roughly determine the current listened-to station frequency in combination with the known station frequency range and spectral template. At the same time, the electronic device can also analyze the data packet header information of the communication between the radio and the outside world, which may contain frequency-related parameters, and obtain the receiving frequency after extraction and conversion. This method is relatively flexible, but may be slightly inferior in terms of accuracy, and the algorithm and model need to be continuously optimized to improve the accuracy.

[0076] The embodiments of the present application do not specifically limit the method for the electronic device to obtain the current receiving frequency of the current frequency band corresponding to the radio device.

[0077] Step S102, calculate the target drive frequency range corresponding to the PWM signal of the target electrical device in the target vehicle according to the current receiving frequency.

[0078] Among them, the PWM signal for driving the target electrical device within the target drive frequency range does not affect the radio device's signal reception.

[0079] Specifically, the electronic device can analyze the characteristics and working requirements of the target electrical device. Among them, different electrical devices, such as window motors, wiper motors, etc., have different responses and sensitivities to the PWM drive frequency. For a window motor, its running speed and torque control are closely related to the PWM drive frequency, and the appropriate drive frequency range will also vary under different window positions and load conditions. Generally speaking, the common PWM drive frequency range for window motors may be between 10 kHz and 30 kHz, but the specific value still needs to refer to the motor model and technical manual.

[0080] Next, the electronic device can obtain the relationship between the current receiving frequency and the high-order harmonics of the PWM signal. According to electromagnetic compatibility theory, the high-order harmonics of the PWM signal may interfere with the receiving frequency of the in-vehicle radio device. Assume that the current receiving frequency is f r , the PWM driving frequency is f PWM , and its high-order harmonic frequency is n×f PWM (n is the harmonic order). Through Fourier analysis, it can be known that when these high-order harmonic frequencies are close to or fall within the receiving band of the in-vehicle radio device, interference will occur. For example, if the receiving frequency of the in-vehicle radio is in the FM band of 87 kHz - 108 kHz, and the frequency calculated for a certain high-order harmonic of the PWM driving frequency (such as when n = 50) is close to this band, the PWM driving frequency needs to be adjusted.

[0081] Then, the electronic device determines the frequency constraint conditions to avoid interference. To avoid interfering with the in-vehicle radio device, it is necessary to ensure that there is a certain safety distance between the high-order harmonics of the PWM driving frequency and the current receiving frequency. Usually, a frequency interval Δf can be set, for example, Δf = 1 kHz. This means that for a given current receiving frequency f r , it is necessary to find the range of f pwm that satisfies |n×f r - f PWM | > Δf. For different harmonic orders n, such calculations and judgments need to be carried out.

[0082] Exemplarily, taking a specific example to illustrate, assume that the target electrical device is a window motor, and the current receiving frequency f r of the in-vehicle radio = 95 kHz, set Δf = 1 kHz, for n = 10, then there is |10×f pwm - 95 MHz| > 1 MHz. Solving this inequality gives: when 10×f pwm - 95 MHz > 1 MHz, f PWM > 9.6 kHz; when 10×f pwm - 95 MHz < -1 MHz, f PWM < 9.4 MHz. Repeating the above calculations for different n values (such as n = 5, 10, 15,...), a preliminary f PWM range is obtained.

[0083] This step will be introduced in detail below.

[0084] Step S103, based on the target driving frequency range, correct the initial driving frequency corresponding to the target electrical device to obtain the target driving frequency.

[0085] Specifically, the electronic device can obtain the initial driving frequency corresponding to the target electrical device. Then, the electronic device detects whether the initial driving frequency corresponding to the target electrical device is within the target driving frequency range. If the electronic device detects that the initial driving frequency corresponding to the target electrical device is not within the target driving frequency range, the electronic device corrects the initial driving frequency corresponding to the target electrical device based on the target driving frequency range to obtain the target driving frequency.

[0086] This step will be introduced in detail below.

[0087] Step S104, driving the PWM signal of the target electrical device based on the target driving frequency.

[0088] Specifically, after determining the target driving frequency, the electronic device drives the PWM signal of the target electrical device based on the target driving frequency.

[0089] The PWM driving control method provided by the embodiments of the present application obtains the current receiving frequency of the current frequency band corresponding to the radio device, and calculates the target driving frequency range corresponding to the PWM signal of the target electrical device in the target vehicle according to the current receiving frequency, ensuring the accuracy of the calculated target driving frequency range. Furthermore, it ensures that driving the PWM signal of the target electrical device within the target driving frequency range does not affect the radio device's signal reception. Then, the initial driving frequency corresponding to the target electrical device is corrected based on the target driving frequency range to obtain the target driving frequency, ensuring the accuracy of the obtained target driving frequency. Drive the PWM signal of the target electrical device based on the target driving frequency. Thus, the high-order harmonic frequency corresponding to the target driving frequency falls outside the current receiving frequency of the current frequency band corresponding to the radio device, making the narrowband interference generated by it avoid the current receiving frequency of the current frequency band corresponding to the radio device being listened to, thereby reducing the electromagnetic interference received by the radio device.

[0090] In this embodiment, a PWM driving control method is provided, which can be used for the above-mentioned electronic device. Figure 2 It is a flowchart of the PWM driving control method according to the embodiments of the present invention, as Figure 2 shown, and this process includes the following steps:

[0091] Step S201, obtaining the current receiving frequency of the current frequency band corresponding to the radio device.

[0092] For this step, please refer to the introduction of step S101 above and will not be elaborated here.

[0093] Step S202, calculating the target driving frequency range corresponding to the PWM signal of the target electrical device in the target vehicle according to the current receiving frequency.

[0094] Among them, the PWM signal for driving the target electrical device within the target driving frequency range does not affect the signal received by the radio device.

[0095] Specifically, the above step S202 may include the following steps:

[0096] Step S2021, calculate the maximum target driving frequency corresponding to the PWM signal of the target electrical device according to the current received frequency.

[0097] Specifically, the above step S2021 may include the following steps:

[0098] Step a1, obtain the minimum operator corresponding to the radio device.

[0099] Specifically, the above step a1 may include the following steps:

[0100] Step a11, obtain the initial driving frequency corresponding to the target electrical device and the duty cycle corresponding to the initial driving frequency.

[0101] Optionally, the electronic device may send a specific query instruction to the controller of the target electrical device. After receiving the instruction, the controller of the target electrical device will encapsulate the current initial driving frequency and duty cycle information in the format specified by the protocol and feedback it to the electronic device. For example, in the CAN protocol, there are dedicated message identifiers (IDs) for transmitting driving frequency and duty cycle data. The electronic device can obtain the required information by identifying these IDs and parsing the corresponding data fields.

[0102] Optionally, in the driving circuit of the target electrical device, a hardware module capable of detecting frequency and duty cycle is connected, such as a frequency / duty cycle measurement chip or circuit. These hardware modules are directly connected to the electronic device and transmit the real-time monitored driving frequency and duty cycle signals to the electronic device after converting them into digital signals. For example, some dedicated duty cycle measurement chips can accurately measure the duty cycle of the input pulse signal and send the data to the microcontroller of the electronic device for processing through parallel or serial interfaces.

[0103] The embodiments of the present application do not specifically limit the manner in which the electronic device obtains the initial driving frequency corresponding to the target electrical device and the duty cycle corresponding to the initial driving frequency.

[0104] Step a12, obtain the current vehicle speed corresponding to the target vehicle.

[0105] Specifically, the electronic device may obtain the current vehicle speed corresponding to the target vehicle based on the wheel speed sensor.

[0106] Step a13: Input the initial driving frequency, duty cycle, current receiving frequency, and current vehicle speed into the harmonic order determination model to determine each harmonic order in the initial driving frequency whose interference index with respect to the current receiving frequency is greater than a preset interference threshold.

[0107] Specifically, the electronic device can input the initial driving frequency, duty cycle, current receiving frequency, and current vehicle speed into the harmonic order determination model. The harmonic order determination model uses the Fast Fourier Transform (FFT) algorithm to perform spectral analysis on the input initial driving frequency, converting the PWM signal in the time domain into a frequency domain signal, thereby obtaining the frequency and amplitude information of the harmonic components of the initial driving frequency.

[0108] For each harmonic component, the harmonic order determination model can calculate the interference index corresponding to the harmonic component. Specifically, the harmonic order determination model can consider factors such as the amplitude of the harmonic component, the proximity of its frequency to the current receiving frequency, and its propagation attenuation characteristics under the current vehicle speed and electromagnetic environment.

[0109] For example, the interference index In can be expressed as I n = A n × g(f n - f r ) × h(v) × k(d), where An is the amplitude of the nth harmonic, f n is the frequency of the nth harmonic, f r is the current receiving frequency, g(x) is a function related to the frequency deviation, used to measure the impact of the proximity of the harmonic frequency to the receiving frequency on interference (e.g., g(x) = exp(-α|x|), where α is the attenuation coefficient), h(v) is the vehicle speed impact function, and d(k) is the duty cycle impact function. Compare the calculated interference index In with the preset interference threshold. If In is greater than the preset interference threshold, then determine this harmonic order as the harmonic order that may interfere with the current receiving frequency.

[0110] Among them, the harmonic order determination model is obtained by training the original machine learning model using a large amount of historical experimental data and actual vehicle operation data. Among them, the historical experimental data and actual vehicle operation data include different initial drive frequencies, duty cycles, current received frequencies, vehicle speeds, and the corresponding interfering harmonic orders and actual interference conditions. Through training, the original machine learning model can learn the complex non-linear relationship between the input parameters and the interfering harmonic orders, and continuously adjust its own parameters and structure to improve the accuracy and generalization ability of the model. For example, in a neural network model, multiple hidden layers can be set, and different activation functions (such as ReLU, Sigmoid, etc.) can be used. The weights and biases of the network can be continuously optimized through the backpropagation algorithm, so that it can better adapt to different vehicle operating conditions and electronic device configurations and accurately determine the interfering harmonic orders.

[0111] Step a14: Calculate the minimum operator according to each harmonic order.

[0112] Specifically, the above step a14 may include the following steps:

[0113] Step a141: Determine the weight information corresponding to each harmonic order according to the interference index of each harmonic order with respect to the harmonic order.

[0114] Specifically, the electronic device can analyze the relationship between the harmonic order and the interference index. Generally speaking, the higher the interference index, the greater the potential interference of the harmonic order on the current received frequency, and a relatively higher weight should be assigned. For example, if the interference index of a certain harmonic order is several times that of other harmonic orders, then it should play a dominant role in weight allocation. A basic weight allocation rule can be set, such as setting the weight of the harmonic order with the largest interference index to 1, and the weights of other harmonic orders are allocated according to the ratio of their interference indices to the largest interference index.

[0115] Secondly, the electronic device can also obtain the frequency position of the harmonic order. High-frequency harmonics and low-frequency harmonics have different interference characteristics with respect to the received frequency. Usually, harmonics close to the received frequency may produce a greater interference effect due to their frequency proximity, even if their interference indices are not the highest. Therefore, a frequency proximity factor needs to be introduced to adjust the weight. The absolute value of the difference between the harmonic frequency and the received frequency can be calculated and mapped to a weight adjustment coefficient. For example, when the difference is within a certain range, the weight adjustment coefficient varies between 0.5 and 1.5. The smaller the difference, the larger the coefficient, thereby increasing the weight of the harmonic order.

[0116] In addition, the electronic device can also obtain the electromagnetic environment and system characteristics of the current actual scenario. Under different vehicle operating environments and electronic device configurations, the propagation and interference effects of harmonics will vary. For example, in the complex electromagnetic environment of urban traffic, low-frequency harmonics may be more easily attenuated by interference from other electromagnetic signals. At this time, the weight of high-frequency harmonics may need to be relatively increased. By analyzing a large amount of experimental data in different environments, a relationship table between environmental factors and weight adjustment can be established, and the weights of harmonic orders can be further corrected according to the actual environmental conditions.

[0117] Finally, the electronic device determines the final weight information by comprehensively considering the above factors and using weighted summation or other appropriate mathematical methods.

[0118] For example, let the harmonic order be n i , its corresponding interference index be I i , the frequency proximity factor be F i , and the environmental factor be E i , then the weight w i can be expressed as:

[0119]

[0120] where k 1 , k 2 , k 3 are proportionality coefficients, and k 1 +k 2 +k 3 = 1.

[0121] Step a142: Multiply each harmonic order by the corresponding weight information to obtain the sum of harmonic orders.

[0122] Specifically, the electronic device can multiply each harmonic order by the corresponding weight information to obtain the sum of harmonic orders.

[0123] Step a143: Multiply the sum of harmonic orders by the first coefficient to obtain the minimum operator.

[0124] Specifically, the electronic device can multiply the sum of harmonic orders by the first coefficient to obtain the minimum operator.

[0125] Among them, the first coefficient can be 0.5, or 0.6, or other values. The embodiments of the present application do not make specific limitations on the first coefficient.

[0126] Step a2: Divide the current received frequency by the minimum operator to calculate the maximum candidate drive frequency.

[0127] Specifically, after the electronic device obtains the minimum operator, the electronic device can divide the currently received frequency by the minimum operator to calculate the maximum candidate drive frequency.

[0128] Step a3: Obtain the first preset drive frequency range corresponding to the PWM signal of the target electrical device.

[0129] Specifically, the electronic device can receive the first preset drive frequency range corresponding to the PWM signal of the target electrical device input by the user, or can receive the first preset drive frequency range corresponding to the PWM signal of the target electrical device sent by other devices.

[0130] Among them, the first preset drive frequency range can be the preset range corresponding to the maximum drive frequency of the PWM signal of the target electrical device.

[0131] Exemplarily, the first preset drive frequency range can be 20 kHz - 22 kHz.

[0132] The embodiments of the present application do not specifically limit the manner in which the electronic device obtains the first preset drive frequency range, nor do they specifically limit the first preset drive frequency range.

[0133] Step a4: Detect whether the maximum candidate drive frequency is within the first preset drive frequency range.

[0134] Specifically, the electronic device can compare the maximum candidate drive frequency with the first preset drive frequency range to detect whether the maximum candidate drive frequency is within the first preset drive frequency range.

[0135] Step a5: If the maximum candidate drive frequency is within the first preset drive frequency range, then determine the maximum candidate drive frequency as the maximum target drive frequency.

[0136] Specifically, if the maximum candidate drive frequency is within the first preset drive frequency range, then the electronic device determines the maximum candidate drive frequency as the maximum target drive frequency.

[0137] Step a6: If the maximum candidate drive frequency is not within the first preset drive frequency range, then perform an operation of adding 1 to the minimum operator to obtain an updated minimum operator.

[0138] Specifically, if the maximum candidate drive frequency is not within the first preset drive frequency range, then the electronic device performs an operation of adding 1 to the minimum operator to obtain an updated minimum operator.

[0139] Step a7: Divide the currently received frequency by the updated minimum operator to calculate the maximum standby drive frequency.

[0140] Specifically, the electronic device divides the current received frequency by the updated minimum operator to calculate the maximum standby drive frequency.

[0141] Step a8, detect whether the maximum standby drive frequency is within the first preset drive frequency range.

[0142] Specifically, the electronic device detects whether the maximum standby drive frequency is within the first preset drive frequency range.

[0143] Step a9, if the maximum standby drive frequency is within the first preset drive frequency range, determine the maximum standby drive frequency as the maximum target drive frequency.

[0144] Specifically, if the maximum standby drive frequency is within the first preset drive frequency range, the electronic device determines the maximum standby drive frequency as the maximum target drive frequency.

[0145] Exemplarily, as Figure 3 shown, it is a flowchart of the electronic device calculating the maximum target drive frequency based on the minimum operator.

[0146] Step S2022, calculate the minimum target drive frequency corresponding to the PWM signal of the target electrical device according to the current received frequency.

[0147] Specifically, the above step S2022 may include the following steps:

[0148] Step b1, obtain the maximum operator corresponding to the radio device.

[0149] Specifically, the above step b1 may include the following steps:

[0150] Step b11, obtain the initial drive frequency corresponding to the target electrical device and the duty cycle corresponding to the initial drive frequency.

[0151] Step b12, obtain the current vehicle speed corresponding to the target vehicle.

[0152] Step b13, input the initial drive frequency, duty cycle, current received frequency, and current vehicle speed into the harmonic number determination model to determine each harmonic number in the initial drive frequency whose interference index with respect to the current received frequency is greater than the preset interference threshold.

[0153] Step b14, calculate the maximum operator according to each harmonic number.

[0154] Specifically, the above step b14 may include the following steps:

[0155] Step b141, determine the weight information corresponding to each harmonic number according to the interference index of each harmonic number with respect to the harmonic number.

[0156] Step b142: Multiply each harmonic order by the corresponding weight information to obtain the total harmonic order.

[0157] Step b143: Multiply the total harmonic order by the second coefficient to obtain the maximum operator.

[0158] Among them, the second coefficient is greater than the first coefficient. An exemplary second coefficient can be 1.2 or 1.3. The embodiments of the present application do not make specific limitations on the second coefficient.

[0159] Step b2: Divide the current received frequency by the maximum operator to calculate the minimum candidate drive frequency.

[0160] Step b3: Obtain the second preset drive frequency range corresponding to the PWM signal of the target electrical device.

[0161] Among them, the second preset drive frequency range can be the preset range corresponding to the minimum drive frequency of the PWM signal of the target electrical device.

[0162] The maximum value in the second preset drive frequency range is less than or equal to the minimum value in the first preset drive frequency range.

[0163] For example, the second preset drive frequency range is 18kHz - 20kHz.

[0164] Step b4: Detect whether the minimum candidate drive frequency is within the second preset drive frequency range.

[0165] Step b5: If the minimum candidate drive frequency is within the second preset drive frequency range, determine the minimum candidate drive frequency as the minimum target drive frequency.

[0166] Step b6: If the minimum candidate drive frequency is not within the second preset drive frequency range, perform a subtraction operation on the maximum operator to obtain an updated maximum operator.

[0167] Step b7: Divide the current received frequency by the updated maximum operator to calculate the minimum standby drive frequency.

[0168] Step b8: Detect whether the minimum standby drive frequency is within the second preset drive frequency range.

[0169] Step b9: If the minimum standby drive frequency is within the second preset drive frequency range, determine the minimum standby drive frequency as the minimum target drive frequency.

[0170] Exemplarily, as Figure 4 shown, it is a flowchart of an electronic device calculating the minimum target drive frequency based on the maximum operator.

[0171] Step S2023: Determine the target drive frequency range according to the maximum target drive frequency and the minimum target drive frequency.

[0172] Specifically, the electronic device determines the maximum target drive frequency as the maximum value in the target drive frequency range, and determines the minimum target drive frequency as the minimum value in the target drive frequency range.

[0173] Step S203: Modify the initial drive frequency corresponding to the target electrical device based on the target drive frequency range to obtain the target drive frequency.

[0174] Specifically, the above Step S203 may include the following steps:

[0175] Step S2031: Obtain the initial drive frequency corresponding to the target electrical device.

[0176] Optionally, the electronic device may send a specific query instruction to the controller of the target electrical device. After receiving the instruction, the controller of the target electrical device will encapsulate the current initial drive frequency of the target electrical device in the format specified by the protocol and feedback it to the electronic device. For example, in the CAN protocol, there are dedicated message identifiers (IDs) for transmitting the initial drive frequency. The electronic device can obtain the required information by identifying these IDs and parsing the corresponding data fields.

[0177] Optionally, in the drive circuit of the target electrical device, a hardware module capable of detecting the initial drive frequency is connected, such as a frequency measurement chip or circuit. These hardware modules are directly connected to the electronic device and transmit the initially detected drive frequency to the electronic device after converting it into a digital signal.

[0178] The embodiments of the present application do not specifically limit the manner in which the electronic device obtains the initial drive frequency corresponding to the target electrical device.

[0179] Step S2032: Compare the initial drive frequency with the maximum target drive frequency and the minimum target drive frequency in the target drive frequency range.

[0180] Specifically, the electronic device compares the initial drive frequency corresponding to the target electrical device with the maximum target drive frequency and the minimum target drive frequency in the target drive frequency range.

[0181] Step S2033: If the initial drive frequency is greater than or equal to the minimum target drive frequency and less than or equal to the maximum target drive frequency, then determine the initial drive frequency as the target drive frequency.

[0182] Specifically, if the initial driving frequency is greater than or equal to the minimum target driving frequency and less than or equal to the maximum target driving frequency, the electronic device determines the initial driving frequency as the target driving frequency.

[0183] Step S2034: If the initial driving frequency is greater than the maximum target driving frequency, correct the initial driving frequency to the maximum target driving frequency to obtain the target driving frequency.

[0184] Specifically, if the initial driving frequency is greater than the maximum target driving frequency, the electronic device corrects the initial driving frequency to the maximum target driving frequency to obtain the target driving frequency.

[0185] Step S2035: If the initial driving frequency is less than the minimum target driving frequency, correct the initial driving frequency to the minimum target driving frequency to obtain the target driving frequency.

[0186] Specifically, if the initial driving frequency is less than the minimum target driving frequency, the electronic device corrects the initial driving frequency to the minimum target driving frequency to obtain the target driving frequency.

[0187] Step S204: Drive the PWM signal of the target electrical device based on the target driving frequency.

[0188] For this step, please refer to the introduction of step S104 above and will not be elaborated here.

[0189] The PWM driving control method provided by the embodiment of the present application obtains the initial driving frequency corresponding to the target electrical device and the duty cycle corresponding to the initial driving frequency; obtains the current vehicle speed corresponding to the target vehicle; inputs the initial driving frequency, the duty cycle, the current receiving frequency, and the current vehicle speed into the harmonic number determination model to determine each harmonic number in the initial driving frequency whose interference index with respect to the current receiving frequency is greater than the preset interference threshold, ensuring the accuracy of each determined harmonic number. Then, according to each harmonic number, the minimum operator is calculated, ensuring that each high-order harmonic frequency corresponding to the maximum target driving frequency calculated based on the minimum operator falls outside the current receiving frequency of the current frequency band corresponding to the radio device, so that the narrowband harassment generated by it avoids the current receiving frequency of the current frequency band corresponding to the radio device being listened to. Then, according to the interference index of each harmonic number with respect to the harmonic number, the weight information corresponding to each harmonic number is determined, ensuring that the determined weight information matches the corresponding harmonic number and ensuring the accuracy of the weight information corresponding to each determined harmonic number. Then, each harmonic number is multiplied by the corresponding weight information to obtain the sum of harmonic numbers, ensuring the accuracy of the calculated sum of harmonic numbers. Then, the sum of harmonic numbers is multiplied by the first coefficient to obtain the minimum operator, ensuring the accuracy of the obtained minimum operator.

[0190] Next, divide the current received frequency by the minimum operator to calculate the maximum candidate driving frequency, ensuring that the high-order harmonic frequency corresponding to the calculated maximum candidate driving frequency falls outside the current received frequency of the current frequency band of the radio device, so that the narrowband interference generated by it avoids the current received frequency of the current frequency band of the radio device being listened to. Then, obtain the first preset driving frequency range corresponding to the PWM signal of the target electrical device; detect whether the maximum candidate driving frequency is within the first preset driving frequency range; if the maximum candidate driving frequency is within the first preset driving frequency range, then determine the maximum candidate driving frequency as the maximum target driving frequency. This ensures that the determined maximum target driving frequency is within the first preset driving frequency range and that the high-order harmonic frequency corresponding to the maximum target driving frequency falls outside the current received frequency of the current frequency band of the radio device, so that the narrowband interference generated by it avoids the current received frequency of the current frequency band of the radio device being listened to.

[0191] In addition, if the maximum candidate driving frequency is not within the first preset driving frequency range, then perform an operation of adding 1 to the minimum operator to obtain an updated minimum operator, ensuring the accuracy of the obtained second operator. Since the high-order harmonics of PWM driving increase or decrease one by one and are only non-negative integers, choosing 1 instead of other numbers is to achieve refined operation as much as possible to obtain the optimal second operator. Then, divide the current received frequency by the updated minimum operator to calculate the maximum standby driving frequency, ensuring the accuracy of the calculated maximum standby driving frequency. Detect whether the maximum standby driving frequency is within the first preset driving frequency range; if the maximum standby driving frequency is within the first preset driving frequency range, then determine the maximum standby driving frequency as the maximum target driving frequency. This ensures that the determined maximum target driving frequency is within the first preset driving frequency range and that the high-order harmonic frequency corresponding to the maximum target driving frequency falls outside the current received frequency of the current frequency band of the radio device, so that the narrowband interference generated by it avoids the current received frequency of the current frequency band of the radio device being listened to. In addition, the above method avoids the situation where the maximum standby driving frequency is not within the first preset driving frequency range, thus affecting the accuracy of the PWM signal of the target electrical device.

[0192] Similarly, according to the current received frequency, calculate the minimum target driving frequency corresponding to the PWM signal of the target electrical device, ensuring the accuracy of the obtained minimum target driving frequency. Then, based on the maximum target driving frequency and the minimum target driving frequency, determine the target driving frequency range, ensuring the accuracy of the determined target driving frequency range.

[0193] In this embodiment, a PWM drive control device is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be elaborated again. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0194] This embodiment provides a PWM drive control device, as Figure 5 shown, including:

[0195] An acquisition module 301, configured to acquire the current reception frequency of the current frequency band corresponding to the radio device;

[0196] A calculation module 302, configured to calculate a target drive frequency range corresponding to the PWM signal of the target electrical device in the target vehicle according to the current reception frequency; wherein, the PWM signal for driving the target electrical device within the target drive frequency range does not affect the radio device's reception of signals;

[0197] A correction module 303, configured to correct the initial drive frequency corresponding to the target electrical device based on the target drive frequency range to obtain the target drive frequency;

[0198] A drive module 304, configured to drive the PWM signal of the target electrical device based on the target drive frequency.

[0199] In some alternative implementation manners, the calculation module 302 is specifically configured to calculate the maximum target drive frequency corresponding to the PWM signal of the target electrical device according to the current reception frequency; calculate the minimum target drive frequency corresponding to the PWM signal of the target electrical device according to the current reception frequency; and determine the target drive frequency range according to the maximum target drive frequency and the minimum target drive frequency.

[0200] In some alternative implementation manners, the calculation module 302 is specifically configured to obtain the minimum operator corresponding to the radio device; divide the current reception frequency by the minimum operator to calculate the maximum candidate drive frequency; obtain the first preset drive frequency range corresponding to the PWM signal of the target electrical device; detect whether the maximum candidate drive frequency is within the first preset drive frequency range; and if the maximum candidate drive frequency is within the first preset drive frequency range, determine the maximum candidate drive frequency as the maximum target drive frequency.

[0201] In some alternative embodiments, the calculation module 302 is specifically configured to: if the maximum candidate driving frequency is not within the first preset driving frequency range, increment the minimum operator by 1 to obtain an updated minimum operator; divide the current received frequency by the updated minimum operator to calculate the maximum standby driving frequency; detect whether the maximum standby driving frequency is within the first preset driving frequency range; and if the maximum standby driving frequency is within the first preset driving frequency range, determine the maximum standby driving frequency as the maximum target driving frequency.

[0202] In some alternative embodiments, the calculation module 302 is specifically configured to obtain the initial driving frequency corresponding to the target electrical device and the duty cycle corresponding to the initial driving frequency; obtain the current vehicle speed of the target vehicle; input the initial driving frequency, the duty cycle, the current received frequency, and the current vehicle speed into a harmonic number determination model to determine each harmonic number in the initial driving frequency whose interference index with respect to the current received frequency is greater than a preset interference threshold; and calculate a minimum operator according to each harmonic number.

[0203] In some alternative embodiments, the calculation module 302 is specifically configured to determine the weight information corresponding to each harmonic number according to the interference index of each harmonic number with respect to the harmonic number; multiply each harmonic number by the corresponding weight information to obtain a total harmonic number; and multiply the total harmonic number by a first coefficient to obtain a minimum operator.

[0204] In some alternative embodiments, the correction module 303 is specifically configured to obtain the initial driving frequency corresponding to the target electrical device; compare the initial driving frequency with the maximum target driving frequency and the minimum target driving frequency in the target driving frequency range; if the initial driving frequency is greater than or equal to the minimum target driving frequency and less than or equal to the maximum target driving frequency, determine the initial driving frequency as the target driving frequency; if the initial driving frequency is greater than the maximum target driving frequency, correct the initial driving frequency to the maximum target driving frequency to obtain the target driving frequency; and if the initial driving frequency is less than the minimum target driving frequency, correct the initial driving frequency to the minimum target driving frequency to obtain the target driving frequency.

[0205] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0206] The PWM drive control device in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0207] An embodiment of the present invention further provides an electronic device having the above-mentioned Figure 5 shown PWM drive control device.

[0208] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of an electronic device provided by an optional embodiment of the present invention. As Figure 6 shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). Figure 6 In

[0209] FIG., a single processor 10 is taken as an example.

[0210] The processor 10 may be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device may be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.

[0210] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0211] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the electronic device. In addition, the memory 20 may include a high-speed random access memory, and may further include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely provided with respect to the processor 10, and these remote memories may be connected to the electronic device through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0212] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid state drive; the memory 20 may further include a combination of the above types of memory.

[0213] The electronic device further includes a communication interface 30 for the electronic device to communicate with other devices or communication networks.

[0214] An embodiment of the present invention further provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading through a network the original computer code stored in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium can also include a combination of the above types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor or the hardware, the method shown in the above embodiment is implemented.

[0215] The present invention provides a target vehicle, including: an electronic device, a radio device, a target electrical device, and a vehicle body. Among them, the electronic device is communicatively connected to the radio device and the target electrical device, and the electronic device is used to execute the PWM drive control method of any of the above embodiments.

[0216] A part of the present invention can be applied as a computer program product, such as computer program instructions. When executed by a computer, through the operation of the computer, the methods and / or technical solutions according to the present invention can be called or provided. Those skilled in the art should be able to understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways for computer program instructions to be executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible by the computer.

[0217] Although embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A PWM drive control method, characterized in that: The method comprises: Obtain the current receiving frequency of the current frequency band corresponding to the radio device; Calculating a target driving frequency range corresponding to a PWM signal of a target electrical device in a target vehicle according to the current receiving frequency; wherein the PWM signal driving the target electrical device within the target driving frequency range does not affect the receiving signal of the radio device; Based on the target driving frequency range, the initial driving frequency corresponding to the target electrical device is corrected to obtain a target driving frequency; A PWM signal is generated to drive the target electrical device based on the target driving frequency.

2. The method according to claim 1, characterized in that The current receiving frequency calculates the target driving frequency range corresponding to the PWM signal of the target electrical device in the target vehicle, including: Calculating the maximum target driving frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency; Calculating the minimum target driving frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency; The target driving frequency range is determined according to the maximum target driving frequency and the minimum target driving frequency.

3. The method according to claim 2, characterized in that The step of calculating the maximum target driving frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency includes: Obtaining a minimum operator corresponding to the radio device; Calculate the maximum candidate driving frequency by dividing the current receiving frequency by the minimum operator; Acquire a first preset driving frequency range corresponding to the PWM signal of the target electrical device; detecting whether the maximum candidate driving frequency is within the first preset driving frequency range; If the maximum candidate driving frequency is within the first preset driving frequency range, the maximum candidate driving frequency is determined as the maximum target driving frequency.

4. The method according to claim 3, characterized in that The step of calculating the maximum target driving frequency corresponding to the PWM signal of the target electrical device according to the current receiving frequency further includes: If the maximum candidate driving frequency is not within the first preset driving frequency range, adding 1 to the minimum operator to obtain an updated minimum operator; Calculate the maximum standby driving frequency by dividing the current receiving frequency by the updated minimum operator; detecting whether the maximum standby driving frequency is within the first preset driving frequency range; If the maximum standby driving frequency is within the first preset driving frequency range, the maximum standby driving frequency is determined as the maximum target driving frequency.

5. The method according to claim 3, characterized in that: The obtaining of the minimum operator corresponding to the radio device comprises: Acquire an initial driving frequency corresponding to the target electrical device and a duty cycle corresponding to the initial driving frequency; Obtaining the current speed of the target vehicle; Inputting the initial driving frequency, the duty cycle, the current receiving frequency and the current vehicle speed into a harmonic order determination model, and determining each harmonic order of the initial driving frequency whose interference index to the current receiving frequency is greater than a preset interference threshold; The minimum operator is calculated according to each of the harmonic orders.

6. The method according to claim 5, characterized in that The step of calculating the minimum operator according to each of the harmonic orders includes: Determining weight information corresponding to each of the harmonic orders according to the interference index of each of the harmonic orders to the harmonic order; Multiply each harmonic order by the corresponding weight information to obtain the sum of the harmonic orders; The minimum operator is obtained by multiplying the sum of the harmonic orders by a first coefficient.

7. The method according to claim 1, characterized in that The step of correcting the initial driving frequency corresponding to the target electrical device based on the target driving frequency range to obtain the target driving frequency includes: Obtaining an initial driving frequency corresponding to the target electrical device; comparing the initial driving frequency with a maximum target driving frequency and a minimum target driving frequency in the target driving frequency range; If the initial driving frequency is greater than or equal to the minimum target driving frequency and less than or equal to the maximum target driving frequency, the initial driving frequency is determined as the target driving frequency; If the initial driving frequency is greater than the maximum target driving frequency, the initial driving frequency is corrected to the maximum target driving frequency to obtain the target driving frequency; If the initial driving frequency is less than the minimum target driving frequency, the initial driving frequency is corrected to the minimum target driving frequency to obtain the target driving frequency.

8. A PWM drive control device, characterized in that: The device comprises: An acquisition module, used to acquire a current receiving frequency of a current frequency band corresponding to a radio device; A calculation module, configured to calculate a target driving frequency range corresponding to a PWM signal of a target electrical device in a target vehicle according to the current receiving frequency; wherein the PWM signal driving the target electrical device within the target driving frequency range does not affect the signal received by the radio device; A correction module, used for correcting the initial driving frequency corresponding to the target electrical device based on the target driving frequency range to obtain a target driving frequency; A driving module is used to drive a PWM signal of the target electrical device based on the target driving frequency.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the PWM drive control method according to any one of claims 1 to 7 by executing the computer instructions.

10. A target vehicle, characterized in that: include: An electronic device, a radio device, a target electrical device and a vehicle body, wherein the electronic device is communicatively connected with the radio device and the target electrical device, and wherein the electronic device is used to execute the PWM drive control method according to any one of claims 1 to 7.