Adaptive power supply driving method, system and electronic equipment
By acquiring and judging the peripheral frequency to be measured and output frequency to be output of the PWM control module, generating adjustment signals to adjust the PWM wave output module, the electromagnetic interference and noise problems of the PWM control module are solved, and the flexibility and adaptability of power drive are improved.
Patent Information
- Application Number
- CN202510662923.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-05-22
AI Technical Summary
The electromagnetic interference and noise problems generated by existing PWM control modules during use are difficult to adjust after the frequency and duty cycle are fixed, resulting in high hardware replacement costs and inflexible use.
By obtaining the peripheral frequency to be measured and the frequency to be output, determining its similarity and generating corresponding adjustment signals, adjusting the PWM wave output module to reduce interference, and using the first adjustment signal and the second adjustment signal to jointly adjust the PWM wave output module to improve adaptability.
It reduces signal interference to surrounding electrical appliances, improves the flexibility and regulation adaptability of power drives, and reduces the need for hardware replacement.
Smart Images

Figure CN120185432B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of PWM control, and in particular to an adaptive power supply driving method, system, and electronic device. Background Art
[0002] PWM (Pulse Width Modulation) control is an electronic technology that achieves precise control of electronic devices such as motors or blowers by adjusting the duty cycle of the pulse signal. Its basic principle is to periodically change the high-level time of the pulse signal (i.e., the pulse width) while maintaining the output period of the pulse signal unchanged. This technology is widely used in scenarios that require precise control of power transmission or energy output.
[0003] Considering that control modules based on PWM control usually generate electromagnetic interference and noise during use, in order to effectively solve the electromagnetic interference and noise problems that may be generated during the operation of the PWM control module, the motor speed is currently adjusted mainly by controlling the duty cycle of the PWM signal.
[0004] However, after the circuit parameters are generally configured, the frequency and duty cycle of the PWM output are fixed and cannot be adjusted. In field use, once it is found that the PWM output frequency interferes with the communication of other electromagnetic wave communication electronic equipment, it is difficult to improve it. The only solution is to replace the hardware, which is costly and inflexible. Summary of the Invention
[0005] In order to reduce signal interference and improve the flexibility of power drive use, the present application provides an adaptive power drive method, system and electronic device.
[0006] In a first aspect, the present application provides an adaptive power supply driving method, which adopts the following technical solutions:
[0007] An adaptive power supply driving method is applied to an adaptive power supply driving device, wherein the adaptive power supply driving device includes a PWM wave output module and comprises the following steps:
[0008] Obtaining the peripheral frequency to be measured and the output frequency corresponding to the PWM wave output module;
[0009] Comparing the ambient frequency to be measured with the frequency to be output, and determining whether the ambient frequency to be measured is similar to the frequency to be output;
[0010] If the peripheral frequency to be measured is similar to the frequency to be output, generating a first adjustment signal according to the peripheral frequency to be measured, and adjusting the PWM wave output module according to the first adjustment signal;
[0011] If the measured ambient frequency is not similar to the output frequency, determining whether the measured ambient frequency falls within a difference range set, the difference range set including at least one range value;
[0012] If the peripheral frequency to be measured falls within the difference range set, a second adjustment signal is generated according to the frequency to be output and a second preset value, and the PWM wave output module is adjusted according to the second adjustment signal.
[0013] By adopting the above technical solution, the peripheral frequency to be measured is compared with the frequency to be output to determine whether the peripheral frequency to be measured is similar to the frequency to be output. If they are similar, it means that the frequency to be output of the PWM wave output will affect the peripheral electrical appliances to be measured. Therefore, it is necessary to adjust the PWM wave output module through the first adjustment signal to control the PWM wave output module to output different frequencies to reduce signal interference to the surrounding electrical appliances. By adjusting the first adjustment signal, the replacement of hardware is reduced and the flexibility of power drive use is improved. If the peripheral frequency to be measured is not similar to the frequency to be output, it is determined whether the peripheral frequency to be measured falls into the difference range set. If the peripheral frequency to be measured falls into the difference range set, a second adjustment signal is generated according to the frequency to be output and the second preset value, and the PWM wave output module is adjusted according to the second adjustment signal. The PWM wave output module is adjusted together by the first adjustment signal and the second adjustment signal to improve the adaptability of the regulation of the PWM wave output module.
[0014] In some embodiments, determining whether the measured ambient frequency is similar to the to-be-output frequency comprises the following steps:
[0015] generating a similar range value according to the frequency to be output, and determining whether the peripheral frequency to be measured falls within the similar range value;
[0016] If the peripheral frequency to be measured falls within the similar range value, it is determined that the peripheral frequency to be measured is similar to the frequency to be output;
[0017] If the peripheral frequency to be measured does not fall within the similar range of values, it is determined that the peripheral frequency to be measured is not similar to the frequency to be output.
[0018] In some embodiments, before comparing the ambient frequency to be measured with the frequency to be output, the following steps are further included:
[0019] Acquire a frequency set to be measured, where the frequency set to be measured includes several groups of the frequencies to be measured;
[0020] Obtaining a number of the frequencies to be compared according to the set of frequencies to be measured, and determining whether the number to be compared exceeds a preset number;
[0021] If the number to be compared exceeds the preset number, obtaining a frequency adjustment value according to the set of frequencies to be measured and the frequency to be output, the frequency adjustment value representing the minimum frequency value in the set of frequencies to be measured, and the signal limit value representing the maximum frequency value in the set of frequencies to be measured;
[0022] The frequency adjustment value is used as the peripheral frequency to be measured, and a signal mark is performed on the peripheral frequency to be measured according to the signal limit value to obtain a limit mark.
[0023] By adopting the above technical solution, data to be compared is obtained based on the frequencies to be measured in the set of frequencies to be measured, and it is determined whether the number to be compared exceeds the preset number. If the number to be compared exceeds the preset number, a frequency adjustment value and a signal limit value are obtained based on the set of frequencies to be measured; the frequency adjustment value is used as the peripheral frequency to be measured, and a signal mark is performed on the peripheral frequency to be measured based on the signal limit value to obtain a limit mark, and comparison is performed based on the frequency adjustment value. However, the signal mark is performed on the peripheral frequency to be measured based on the signal limit value, and actual analysis is performed according to actual conditions. When there are many surrounding electrical appliances, comparison is required to reasonably obtain the peripheral frequency to be measured, thereby improving the accuracy of the output value of the PWM wave output module.
[0024] In some embodiments, generating a first adjustment signal according to the measured ambient frequency includes the following steps:
[0025] Determine whether there is a restriction mark on the peripheral frequency to be measured;
[0026] If a restriction mark exists in the peripheral frequency to be measured, generating the first adjustment signal according to the restriction mark;
[0027] If the ambient frequency to be measured does not have a restriction mark, the first adjustment signal is generated according to the ambient frequency to be measured.
[0028] By adopting the above technical solution, actual analysis is performed according to actual conditions. When there are many surrounding electrical appliances, comparison is required, and the surrounding frequencies to be measured are reasonably obtained and compared based on the frequency adjustment value. The first adjustment signal is limited based on the signal limit value. The first adjustment signal is generated based on the signal limit value so that the PWM wave output module does not affect all surrounding electrical appliances. The value output by the PWM wave output module is adjusted by the signal limit value and the frequency adjustment value, which does not affect all surrounding electrical appliances, thereby improving the signal adjustment efficiency of the PWM wave output module.
[0029] In some embodiments, before obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module, the following steps are also included:
[0030] Acquire a historical database, and acquire a number of frequencies to be compared and frequency start times corresponding to the frequencies to be compared based on the historical database;
[0031] generating corresponding estimated adjustment data according to the frequency to be compared, wherein the estimated adjustment data represents data that can be output by the PWM wave output module;
[0032] A data adjustment signal is generated according to the estimated adjustment data, and the data adjustment signal is time-marked based on the frequency start time to obtain a corresponding adjustment mark signal, and the adjustment mark signal is stored in the history database.
[0033] By adopting the above technical solution, the frequency to be compared and the frequency start time corresponding to the frequency to be compared are obtained based on the historical database, the adjustment mark signal is obtained, and the adjustment mark signal is stored in the historical database, so that the data in the historical database is more sufficient, which facilitates the subsequent acquisition of corresponding data in the historical database.
[0034] In some embodiments, the step of obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module includes the following steps:
[0035] Obtaining the peripheral frequency to be measured and the corresponding time to be adjusted;
[0036] Filtering the peripheral frequency to be measured and the time to be adjusted in the historical database;
[0037] Determine whether the corresponding frequency to be compared is found in the historical database;
[0038] If the corresponding frequency to be compared is found in the historical database, obtaining a corresponding adjustment mark signal according to the frequency to be compared;
[0039] The output data corresponding to the PWM wave output module is adjusted according to the adjustment mark signal.
[0040] By adopting the above technical solution, after obtaining the peripheral frequency to be measured and the corresponding time to be adjusted, the peripheral frequency to be measured and the time to be adjusted are screened in the historical database. If the corresponding frequency to be compared is screened in the historical database, the corresponding adjustment mark signal is obtained according to the frequency to be compared, and the output data corresponding to the PWM wave output module is adjusted according to the adjustment mark signal. There is no need to generate the first adjustment signal to control the PWM wave output module, thereby improving the control efficiency of the PWM wave output module.
[0041] In some embodiments, after determining whether the corresponding frequency to be compared is found in the historical database, the following steps are further included:
[0042] Periodically acquiring the historical database and obtaining the reference time of the adjustment mark signal;
[0043] Obtaining a reference interval according to the reference time and the current time, and comparing the reference interval with a preset interval;
[0044] If the reference interval exceeds the preset interval, a deletion signal is generated, and the history database is updated according to the deletion signal.
[0045] By adopting the above technical solution, the historical database is regularly obtained, and the reference time of the adjustment mark signal is obtained. By comparing the reference interval with the preset interval, the surrounding infrequently used devices are obtained. For the surrounding infrequently used devices, a deletion signal can be generated to delete the data in the historical database, thereby improving the efficiency of data screening.
[0046] In some embodiments, the adaptive power driving device further includes a power driving module, a switch module, and a load module. After adjusting the PWM wave output module according to the first adjustment signal, the device further includes the following steps:
[0047] controlling the switch module to open according to the first regulating signal, and loading the load module onto the power driving module;
[0048] Determining whether the power supply of the power drive module is stable;
[0049] If the power supply of the power driving module is stable, the adjustment frequency is obtained according to the PWM wave output module, and it is determined whether the adjustment frequency is a preset frequency;
[0050] If the adjustment frequency is the preset frequency, a load closing signal is generated, and the switch module is controlled to be closed according to the load closing signal;
[0051] If the power supply of the power driving module is unstable, a load closing signal is generated, and the switch module is controlled to be closed according to the load closing signal.
[0052] By adopting the above technical solution, the switch module is controlled to open according to the first adjustment signal, the load module is loaded on the power drive module, and the load capacity of the power drive module is tested, thereby ensuring that after the PWM wave drive power is output, the output power is sufficient to support RS485 communication operation.
[0053] In a second aspect, the present application provides an adaptive power drive system, which adopts the following technical solutions:
[0054] An adaptive power supply driving system, a system for executing the adaptive power supply driving method according to the first aspect, comprising:
[0055] A frequency acquisition module, the frequency acquisition module is used to obtain the peripheral frequency to be measured and the output frequency corresponding to the PWM wave output module;
[0056] a frequency comparison module, the frequency comparison module being network-connected to the frequency acquisition module to receive the peripheral frequency to be measured and the frequency to be output, and comparing the peripheral frequency to be measured with the frequency to be output, and determining whether the peripheral frequency to be measured is similar to the frequency to be output;
[0057] a data processing module, configured to generate a first adjustment signal according to the peripheral frequency to be measured, and adjust the PWM wave output module according to the first adjustment signal, if the peripheral frequency to be measured is similar to the frequency to be output;
[0058] If the measured ambient frequency is not similar to the output frequency, the frequency comparison module is used to determine whether the measured ambient frequency falls within a difference range set, where the difference range set includes at least one range value;
[0059] If the measured peripheral frequency falls within the difference range set, the data processing module is configured to generate a second adjustment signal according to the frequency to be output and a second preset value, and adjust the PWM wave output module according to the second adjustment signal.
[0060] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0061] An electronic device comprising a processor and a memory coupled to each other, wherein the memory stores a computer program that can be run on the processor;
[0062] When the computer program is executed by the processor, the adaptive power supply driving method as described in the first aspect is implemented.
[0063] In summary, this application includes at least one of the following beneficial technical effects:
[0064] 1. Compare the measured peripheral frequency with the frequency to be output, and determine whether the measured peripheral frequency and the frequency to be output are similar. If they are similar, it means that the frequency to be output of the PWM wave output will affect the peripheral electrical appliances to be measured. Therefore, it is necessary to adjust the PWM wave output module through the first adjustment signal to control the PWM wave output module to output different frequencies, reduce signal interference to the surrounding electrical appliances, and reduce hardware replacement and improve the flexibility of power drive use by adjusting the first adjustment signal. If the measured peripheral frequency and the frequency to be output are not similar, determine whether the measured peripheral frequency falls within a different range set. If the measured peripheral frequency falls within the different range set, generate a second adjustment signal according to the frequency to be output and a second preset value, and adjust the PWM wave output module according to the second adjustment signal. The PWM wave output module is adjusted together by the first adjustment signal and the second adjustment signal, thereby improving the adaptability of the regulation of the PWM wave output module.
[0065] 2. Obtain the data to be compared based on the measured frequencies in the measured frequency set, and determine whether the number to be compared exceeds the preset number. If the number to be compared exceeds the preset number, obtain the frequency adjustment value and the signal limit value based on the measured frequency set; use the frequency adjustment value as the measured peripheral frequency, and mark the measured peripheral frequency according to the signal limit value to obtain the limit mark, and compare based on the frequency adjustment value, but mark the measured peripheral frequency based on the signal limit value. Perform actual analysis based on the actual situation. When there are many surrounding electrical appliances, comparison is required to reasonably obtain the measured peripheral frequency and improve the accuracy of the output value of the PWM wave output module. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 This is a block diagram of an adaptive power driving method provided by an embodiment of the present application;
[0067] Figure 2 This is a flowchart of the steps for determining whether the ambient frequency to be measured is similar to the frequency to be output, provided in an embodiment of the present application;
[0068] Figure 3 is a block diagram of another method provided in an embodiment of the present application;
[0069] Figure 4 This is a block diagram of a method for generating a first adjustment signal provided in an embodiment of the present application;
[0070] Figure 5 Schematic diagram of the structure of an adaptive power drive system provided in an embodiment of the present application;
[0071] Figure 6 It is a structural block diagram of the electronic device provided in this embodiment.
[0072] Explanation of reference numerals: 10, frequency acquisition module; 20, frequency comparison module; 30, data processing module; 41, processor; 42, memory; 43, computer program. DETAILED DESCRIPTION
[0073] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. However, it should be understood by those skilled in the art that the present application can be implemented without these details. In some cases, in order to avoid unnecessary descriptions that make various aspects of the present application obscure, the well-known methods, processes, systems, components and / or circuits that have been described at a higher level will not be described in detail. It is obvious to those skilled in the art that various changes can be made to the embodiments disclosed in the present application, and the general principles defined in the present application can be applied to other embodiments and application scenarios without departing from the principles and scope of the present application. Therefore, the present application is not limited to the embodiments shown, but conforms to the broadest scope consistent with the scope claimed for protection in the present application.
[0074] An embodiment of the present application discloses an adaptive power driving method, which is applied to an adaptive power driving device. The adaptive power driving device includes a PWM wave output module, a power driving module, a switch module, a load module and a frequency acquisition module. The PWM wave output module is network-connected to the power driving module, the switch module is electrically connected to the load module, and the switch module is network-connected to the power driving module. The power driving module includes an RS485 power driving, and the PWM wave output module includes a PWM controller. The PWM wave output module controls the power driving module through a signal to adjust the opening or closing of the switch module to adjust the power on or off of the load module, thereby adjusting whether the RS485 power driving has a load.
[0075] It should be noted that the adaptive power drive device also includes an electronic device comprising a processor and memory coupled to each other, the memory storing a computer program executable on the processor. A frequency acquisition module is configured to acquire the frequencies of various devices in the environment and transmit the acquired frequencies to the processor, which then processes the received frequencies to control the output of the PWM wave output module. The frequency acquisition module may include, but is not limited to, a handheld spectrum analyzer or a software-defined radio; any module capable of receiving frequencies from surrounding devices is sufficient.
[0076] like Figure 1 As shown, the adaptive power driving method includes the following steps:
[0077] S100, obtaining the peripheral frequency to be measured and the output frequency to be corresponding to the PWM wave output module.
[0078] The measured peripheral frequency represents the frequency emitted by other electromagnetic wave communication devices, while the output frequency represents the frequency output by the PWM controller. The processor receives the measured peripheral frequency obtained by the frequency acquisition module and the output frequency corresponding to the PWM wave output module.
[0079] S200 , comparing the peripheral frequency to be measured with the frequency to be output, and determining whether the peripheral frequency to be measured is similar to the frequency to be output.
[0080] Combine Figure 2 The processor compares the peripheral frequency to be measured with the frequency to be output, and determines whether the peripheral frequency to be measured is similar to the frequency to be output. How to determine whether the peripheral frequency to be measured is similar to the frequency to be output includes the following steps:
[0081] S210 , generating a similar range value according to the frequency to be output, and determining whether the peripheral frequency to be measured falls within the similar range value.
[0082] S220: If the peripheral frequency to be measured falls within the similar range, it is determined that the peripheral frequency to be measured is similar to the frequency to be output.
[0083] S230: If the peripheral frequency to be measured does not fall within the similarity range, it is determined that the peripheral frequency to be measured is not similar to the frequency to be output.
[0084] The similarity range value represents a numerical range for determining whether the frequency to be output is similar to the peripheral frequency to be measured. The similarity range value is specifically a frequency value that affects the peripheral device. The similarity range value is generated based on the frequency to be output, and is specifically a set centered on the frequency to be output.
[0085] Specifically, the processor sets a similarity range value based on the frequency to be output, and determines whether the peripheral frequency to be measured falls within the similarity range value. If the frequency to be output falls within the similarity range value, the peripheral frequency to be measured is determined to be similar to the frequency to be output. If the frequency to be output does not fall within the similarity range value, the peripheral frequency to be measured is determined to be dissimilar to the frequency to be output.
[0086] It should be noted here that the specific method of obtaining the similar range value is set according to the waveform type and waveform frequency output by the PWM wave output module and the waveform output by the peripheral device. For example, the frequency value range of the electromagnetic wave output by the PWM wave output module that can interfere with other electromagnetic waves is obtained, and the frequency value range is used as the similar range value.
[0087] S300 , if the peripheral frequency to be measured is similar to the frequency to be output, generating a first adjustment signal according to the peripheral frequency to be measured, and adjusting the PWM wave output module according to the first adjustment signal.
[0088] The first adjustment signal represents a frequency adjustment signal generated by the processor based on the measured peripheral frequency. The first adjustment signal includes a first adjustment frequency and a first duty cycle. The first adjustment signal adjusts the PWM wave output module to output according to the first adjustment frequency and the first duty cycle, thereby preventing the electromagnetic waves output by the PWM wave output module from affecting other devices. The first adjustment frequency may refer to the actual electromagnetic wave frequency output by the PWM wave output module, and the first duty cycle refers to the actual duty cycle output by the PWM wave output module.
[0089] It should be noted here that the first adjustment frequency is generated based on the peripheral frequency to be measured. As long as the difference between the first adjustment frequency and the peripheral frequency to be measured is greater than the first preset value, the first preset value represents the minimum difference between the PWM wave output module and the device corresponding to the peripheral frequency to be measured so that there is no electromagnetic wave interference.
[0090] S400: If the peripheral frequency to be measured is not similar to the frequency to be output, it is determined whether the peripheral frequency to be measured falls into a difference range set.
[0091] The difference range set includes at least one range value. The range value represents a range in which the measured peripheral frequency and the output frequency are not similar but not significantly different. When the output frequency falls within the similarity range value, the measured peripheral frequency is determined to be similar to the output frequency. If the output frequency does not fall within the similarity range value, it is determined whether the measured peripheral frequency falls within the difference range set. The range values included in the difference range set are generally range values located on both sides of the similarity range value. Therefore, the difference range set includes at least one range value.
[0092] S500 , if the peripheral frequency to be measured falls within the difference range set, generating a second adjustment signal according to the frequency to be output and a second preset value, and adjusting the PWM wave output module according to the second adjustment signal.
[0093] Among them, the second adjustment signal represents the signal generated by the processor to control the PWM wave output module. Unlike the first adjustment signal, the second adjustment signal includes a second adjustment frequency and a second duty cycle. The difference between the second adjustment frequency and the frequency to be output is smaller than the difference between the first adjustment frequency and the frequency to be output. When controlling the actual output frequency of the PWM wave output module, the second adjustment signal will quickly control the PWM wave output module to complete the frequency output. The method for obtaining the second preset value includes the following steps: obtaining the corresponding first difference based on the measured peripheral frequency and the frequency to be output, then subtracting the first difference from the first preset value to obtain a second difference, and taking the absolute value of the second difference to obtain the second preset value. In addition, the second adjustment frequency has only one numerical value, and it is close to the frequency to be output.
[0094] It should be noted that in order to avoid interference between electromagnetic waves, the electromagnetic waves output by the PWM wave output module must have a significantly different frequency from the electromagnetic waves output by the peripheral devices. Therefore, when the peripheral frequency to be measured falls within the difference range set, the electromagnetic waves output by the PWM wave output module must be dissimilar to those output by the peripheral devices, resulting in minimal mutual interference. However, interference may still exist. If the electromagnetic waves of the PWM wave output module are directly adjusted to the first adjustment frequency at this time, the normal operation of the PWM wave output module will be affected. Therefore, a difference range set is set and the corresponding comparison is performed. If the peripheral frequency to be measured does not fall within the difference range set, it is determined that the electromagnetic waves output by the PWM wave output module do not interfere with the device corresponding to the peripheral frequency to be measured.
[0095] For example, assuming that the output frequency corresponding to the PWM wave output module is set to 20, and the measured peripheral frequency corresponding to its peripheral device A is 10, the similar range value of the measured peripheral frequency corresponding to the peripheral device A is [15, 25], the difference range set is [8, 14] and [26, 34], the first preset value is set to 18, and the second preset value is 2, then the second adjustment frequency obtained is 28, and the second adjustment frequency takes a value close to the output frequency.
[0096] As for the method of obtaining the first adjustment frequency value, it can be illustrated as follows. Assume that the output frequency corresponding to the PWM wave output module is set to 50, and the measured peripheral frequency corresponding to its peripheral device B is 45. According to the similar range value of the measured peripheral frequency corresponding to the peripheral device A is [40,60], the first preset value is set to 25, and the obtained first adjustment frequency can be 20 or 70.
[0097] It should be noted here that the various frequency values exemplified above are all illustrative and not actual frequency values. The second adjustment frequency generated by the above can ensure that the output PWM wave is adjusted less, reduce the adjustment time of the output frequency of the PWM wave output module, and improve the regulation efficiency of the RS485 power drive. For the actual output value of the PWM wave output module adjusted according to the first adjustment frequency, the smaller value can also be selected. There is no restriction here, and it depends on the data processing and response efficiency of the processor. As for the second adjustment frequency, since the PWM wave output module and the peripheral equipment themselves have little influence, in order to reduce the influence and enable a quick response, only the smaller value can be set.
[0098] Reference Figure 3 In one embodiment, before comparing the ambient frequency to be measured with the frequency to be output, the method further includes the following steps:
[0099] S110: Obtain a set of frequencies to be measured.
[0100] S120 , obtaining the number of frequencies to be compared according to the set of frequencies to be measured, and determining whether the number of frequencies to be compared exceeds a preset number.
[0101] S130 : If the number to be compared exceeds the preset number, a frequency adjustment value and a signal limit value are obtained according to the set of frequencies to be measured and the frequency to be output.
[0102] S140 , using the frequency adjustment value as the peripheral frequency to be measured, and performing a signal mark on the peripheral frequency to be measured according to the signal limit value to obtain a limit mark.
[0103] The set of measured frequencies includes several groups of measured frequencies. The measured frequencies represent frequencies transmitted by surrounding devices. The set of measured frequencies represents more than one surrounding device. The number to be compared represents the number of measured frequencies in the set of measured frequencies, that is, the number of devices emitting electromagnetic waves in the surrounding area. In this embodiment, the preset number is set to 1. The frequency adjustment value represents the measured frequency value with the minimum frequency difference from the target frequency. The signal limit value represents the measured frequency value with the maximum frequency difference from the target frequency. The limit flag represents the presence of multiple devices in the surrounding area. Based on this limit flag, the actual electromagnetic wave output of the PWM wave output module is controlled to prevent interference with the electromagnetic waves emitted by the surrounding devices.
[0104] Reference Figure 4 In one embodiment, generating a first adjustment signal according to the ambient frequency to be measured includes the following steps:
[0105] S310, determining whether there is a restriction mark on the peripheral frequency to be measured.
[0106] S320: If a restriction mark exists in the peripheral frequency to be measured, generate a first adjustment signal according to the restriction mark.
[0107] S330: If there is no restriction mark for the peripheral frequency to be measured, generate a first adjustment signal according to the peripheral frequency to be measured.
[0108] The processor determines whether a restriction mark exists for the measured peripheral frequency. If a restriction mark exists for the measured peripheral frequency, a first adjustment signal is generated based on the restriction mark, and the first adjustment signal is regenerated based on the signal restriction value corresponding to the restriction mark. The process specifically includes the following steps: determining whether the signal restriction value is greater than the frequency adjustment value; if so, generating the first adjustment signal based on the signal restriction value and a first preset value, where the first adjustment frequency is the sum of the signal restriction value and the first preset value; if not, generating the first adjustment signal based on the signal restriction value and the first preset value, where the first adjustment frequency is the difference between the signal restriction value and the first preset value.
[0109] It should be noted that the signal limit value and the frequency adjustment value are not the same, so they will not be described in detail here.
[0110] It should be noted that to prevent the PWM wave output module from affecting peripheral devices, it is only necessary to adjust the output frequency corresponding to the PWM wave output module to ensure a large difference between the output frequency and the peripheral frequency to be measured. If it is determined that the number to be compared exceeds the preset number, steps S130-S140 are executed. If it is determined that the number to be compared does not exceed the preset number, steps 200-400 are executed.
[0111] It should be noted here that in order to improve the adjustment efficiency of the actual output electromagnetic wave of the PWM wave output module, the peripheral equipment can be synchronously analyzed to obtain the corresponding interference data set based on the frequency to be measured, and the corresponding complement set can be obtained based on several interference data sets, and the intersection of all complement sets can be taken to obtain the corresponding non-interference set, and a value can be selected from the non-interference set as the first adjustment frequency.
[0112] In one embodiment, before obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module, the following steps are also included:
[0113] S600: Acquire a history database, and acquire a number of frequencies to be compared and frequency start times corresponding to the frequencies to be compared based on the history database.
[0114] S700: Generate corresponding estimated adjustment data according to the frequency to be compared.
[0115] S800 , generating a data adjustment signal according to the estimated adjustment data, and time-marking the data adjustment signal based on the frequency start time to obtain a corresponding adjustment mark signal, and storing the adjustment mark signal in a history database.
[0116] The historical database represents historical data on electromagnetic waves emitted by peripheral devices, the frequency to be compared represents the frequency of electromagnetic waves emitted by the surrounding area, and the frequency start time represents the emission time corresponding to the frequency to be compared. This frequency start time may not be a single time period, but may exist in multiple time periods. The estimated adjustment data represents the data that can be output by the PWM wave output module. This estimated adjustment data can be generated according to the method of steps S100-S500 described above. The data adjustment signal represents data generated based on the estimated adjustment data, and the adjustment mark signal represents data with the electromagnetic wave emission time. The adjustment mark signal includes the actual output electromagnetic wave adjusted by the PWM wave output module and the actual start time. The data adjustment signal only includes the actual output electromagnetic wave adjusted by the PWM wave output module.
[0117] In one embodiment, obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module includes the following steps:
[0118] S610: Obtain the peripheral frequency to be measured and the corresponding time to be adjusted.
[0119] S620: Filter the peripheral frequency to be measured and the time to be adjusted in a historical database.
[0120] S630: Determine whether a corresponding frequency to be compared is found in the historical database.
[0121] S640: If the corresponding frequency to be compared is found in the historical database, a corresponding adjustment mark signal is obtained according to the frequency to be compared.
[0122] S650: Adjust the output data corresponding to the PWM wave output module according to the adjustment mark signal.
[0123] Specifically, the processor obtains the peripheral frequency to be measured and the corresponding time to be adjusted, and filters the peripheral frequency to be measured and the time to be adjusted from a historical database. A determination is then made as to whether the corresponding frequency to be compared is found in the historical database. If the corresponding frequency to be compared is found in the historical database, steps S640 through S650 are directly executed without further determination in steps S200 through S500. The corresponding output data of the PWM wave output module is directly controlled using the adjustment flag signal generated in the historical database.
[0124] It should be noted here that the peripheral frequency to be measured and the time to be adjusted are screened in the historical database. The peripheral frequency to be measured and the time to be adjusted need to match each other in order to control the PWM wave output module according to the adjustment mark signal.
[0125] In one embodiment, after determining whether a corresponding frequency to be compared is found in the historical database, the following steps are further included:
[0126] S631, periodically obtain the history database and obtain the reference time of the adjustment mark signal.
[0127] S632: Obtain a reference interval according to the reference time and the current time, and compare the reference interval with a preset interval.
[0128] S633: If the reference interval exceeds the preset interval, a deletion signal is generated, and the history database is updated according to the deletion signal.
[0129] Among them, the reference time is the reference time of obtaining the adjustment mark signal in the historical database, the reference interval represents the interval between the reference time and the current time, and the preset interval represents the minimum time interval that can be eliminated by the peripheral device.
[0130] Specifically, the reference interval is obtained based on the reference time and the current time, and then compared with a preset interval. If the reference interval exceeds the preset interval, a deletion signal is generated, and the historical database is updated based on the deletion signal. The deletion signal is sent to the staff, and upon the staff's confirmation, the peripheral device information in the historical database is deleted, thereby improving the efficiency of subsequent data screening. If the reference interval does not exceed the preset interval, no deletion operation is required.
[0131] It should be noted that, in the above step S631, the periodic acquisition of the historical database can be set to be acquired every hour or every day, and the specific setting is made according to the actual situation.
[0132] In one embodiment, the adaptive power driving device further includes a power driving module, a switch module, and a load module. After adjusting the PWM wave output module according to the first adjustment signal, the device further includes the following steps:
[0133] S340: Control the switch module to open according to the first adjustment signal, and load the load module onto the power driver module.
[0134] S350, determining whether the power supply of the power drive module is stable.
[0135] S360: If the power supply of the power driving module is stable, obtain the adjustment frequency according to the PWM wave output module and determine whether the adjustment frequency is the preset frequency.
[0136] S370: If the adjustment frequency is the preset frequency, a load closing signal is generated, and the switch module is controlled to close according to the load closing signal.
[0137] S380: If the power supply of the power driving module is unstable, a load closing signal is generated, and the switch module is controlled to close according to the load closing signal.
[0138] The adjustment frequency represents the frequency output by the PWM wave output module when it is in the adjustment state, and the preset frequency represents the frequency that the PWM wave output module needs to reach. The preset frequency is the first adjustment frequency or the second adjustment frequency.
[0139] Through the above steps S340 to S380, when adjusting the frequency and duty cycle of the PWM wave output module, the first adjustment signal controls the switch module to open, and a load is applied to the RS485 power supply end. At the same time, the control unit detects whether the RS485 power supply is stable to determine whether the load capacity of the RS485 power supply is normal. When the output frequency and duty cycle of the PWM wave are adjusted, the load is turned off through switch control, thereby ensuring that after the PWM wave is output at the current output frequency and duty cycle, the power output from the back end is sufficient to support the operation of the RS485 device.
[0140] The embodiment of the present application also discloses an adaptive power drive system.
[0141] like Figure 5 As shown, an adaptive power supply drive system, a system for implementing an adaptive power supply drive method disclosed in the above embodiment, includes a frequency acquisition module 10, a frequency comparison module 20, and a data processing module 30. The frequency acquisition module 10 is configured to acquire a peripheral frequency to be measured and a corresponding output frequency of a PWM wave output module. The frequency comparison module 20 is network-connected to the frequency acquisition module 10 to receive the peripheral frequency to be measured and the output frequency to be output, compare the peripheral frequency to be measured with the output frequency, and determine whether the peripheral frequency to be measured and the output frequency are similar. If the peripheral frequency to be measured and the output frequency are similar, the data processing module 30 is configured to generate a first adjustment signal based on the peripheral frequency to be measured and adjust the PWM wave output module based on the first adjustment signal. If the peripheral frequency to be measured and the output frequency are not similar, the frequency comparison module 20 is configured to determine whether the peripheral frequency to be measured falls within a difference range set, the difference range set including at least one range value. If the peripheral frequency to be measured falls within the difference range set, the data processing module 30 is configured to generate a second adjustment signal based on the output frequency and a second preset value and adjust the PWM wave output module based on the second adjustment signal. Other functions performed in the frequency acquisition module 10, the frequency comparison module 20 and the data processing module 30 and the technical details of each function are the same as or similar to the corresponding features in the adaptive power driving method described above, and are therefore not described again here.
[0142] An embodiment of the present application also discloses an electronic device.
[0143] Reference Figure 6 , an electronic device, the electronic device includes a processor 41 and a memory 42 coupled to each other, and the memory 42 stores a computer program 43 that can be run on the processor 41.
[0144] When the computer program 43 is executed by the processor 41 , the adaptive power driving method disclosed in the above embodiment is implemented.
[0145] It should be noted that the processor 41 may be a central processing unit, a general-purpose processor, a data signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof, and is used to execute program codes or process data stored in the memory 42.
[0146] In addition, the memory 42 may be a ROM or other type of static storage device capable of storing static information and instructions, a random access memory or other type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory, a read-only optical disc or other optical disc storage, an optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. In some embodiments, the memory 42 may be an internal storage unit.
[0147] The processor 41 and the memory 42 are connected via a bus. The bus may include a path for transmitting information between the above components. The bus may be a peripheral component interconnect standard bus or an extended industry standard architecture bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0148] Figure 6 Only the electronic device having the memory 42, the processor 41 and the bus is shown. It can be understood by those skilled in the art that Figure 6 The illustrated structure does not limit the electronic device; it may be a bus structure or a star structure. The electronic device may also include more or fewer components than shown, or combine certain components, or deploy components differently. Other existing or future electronic devices may be applicable and should be included within the scope of protection and incorporated herein by reference.
[0149] The implementation principle is:
[0150] First, the processor 41 receives the measured peripheral frequency obtained by the frequency acquisition module 10 and the output frequency corresponding to the PWM wave output module, compares the measured peripheral frequency with the output frequency, and determines whether the measured peripheral frequency is similar to the output frequency, generates a similarity range value based on the output frequency, and determines whether the measured peripheral frequency falls within the similarity range value. If the measured peripheral frequency falls within the similarity range value, it is determined that the measured peripheral frequency is similar to the output frequency. If the measured peripheral frequency does not fall within the similarity range value, it is determined that the measured peripheral frequency is not similar to the output frequency.
[0151] Next, if the measured peripheral frequency is similar to the frequency to be output, the data processing module 30 is used to generate a first adjustment signal based on the measured peripheral frequency and adjust the PWM wave output module based on the first adjustment signal. If the measured peripheral frequency is not similar to the frequency to be output, the frequency comparison module 20 is used to determine whether the measured peripheral frequency falls within the difference range set. If the measured peripheral frequency falls within the difference range set, the data processing module 30 is used to generate a second adjustment signal based on the frequency to be output and a second preset value, and adjust the PWM wave output module based on the second adjustment signal. If the measured peripheral frequency does not fall within the difference range set, it is determined that the electromagnetic wave output by the PWM wave output module does not interfere with the device corresponding to the measured peripheral frequency.
[0152] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps and they may be performed in other orders.
[0153] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.
Claims
1. An adaptive power driving method, applied to an adaptive power driving device, wherein the adaptive power driving device includes a PWM wave output module, characterized in that: The following steps are involved: Obtaining the peripheral frequency to be measured and the output frequency corresponding to the PWM wave output module; Comparing the ambient frequency to be measured with the frequency to be output, and determining whether the ambient frequency to be measured is similar to the frequency to be output; If the peripheral frequency to be measured is similar to the frequency to be output, generating a first adjustment signal according to the peripheral frequency to be measured, and adjusting the PWM wave output module according to the first adjustment signal; If the measured peripheral frequency is not similar to the output frequency, determining whether the measured peripheral frequency falls within a difference range set, the difference range set including at least one range value; If the measured peripheral frequency falls within the difference range set, generating a second adjustment signal according to the frequency to be output and a second preset value, and adjusting the PWM wave output module according to the second adjustment signal; The determining whether the ambient frequency to be measured is similar to the frequency to be output comprises the following steps: generating a similar range value according to the frequency to be output, and determining whether the peripheral frequency to be measured falls within the similar range value; If the peripheral frequency to be measured falls within the similar range value, it is determined that the peripheral frequency to be measured is similar to the frequency to be output; If the peripheral frequency to be measured does not fall within the similarity range, it is determined that the peripheral frequency to be measured is not similar to the frequency to be output; The similarity range value represents the numerical range for determining whether the frequency to be output is similar to the peripheral frequency to be measured. The similarity range value is specifically a frequency value that affects the peripheral equipment. The similarity range value is generated based on the frequency to be output, and is specifically a set centered on the frequency to be output. The specific method for obtaining the similarity range value is set according to the waveform type and waveform frequency output by the PWM wave output module and the output waveform of the peripheral equipment.
2. The adaptive power driving method according to claim 1, characterized in that: Before comparing the ambient frequency to be measured with the frequency to be output, the method further includes the following steps: Acquire a frequency set to be measured, where the frequency set to be measured includes several groups of the frequencies to be measured; Obtaining a number of the frequencies to be compared according to the set of frequencies to be measured, and determining whether the number to be compared exceeds a preset number; If the number to be compared exceeds a preset number, a frequency adjustment value and a signal limit value are obtained based on the set of frequencies to be measured and the frequency to be output, wherein the frequency adjustment value represents the value of the frequency to be measured having a minimum frequency difference from the frequency to be output, and the signal limit value represents the value of the frequency to be measured having a maximum frequency difference from the frequency to be output; The frequency adjustment value is used as the peripheral frequency to be measured, and a signal mark is performed on the peripheral frequency to be measured according to the signal limit value to obtain a limit mark.
3. The adaptive power driving method according to claim 2, wherein: Generating a first adjustment signal according to the ambient frequency to be measured includes the following steps: Determine whether there is a restriction mark on the peripheral frequency to be measured; If a restriction mark exists in the peripheral frequency to be measured, generating the first adjustment signal according to the restriction mark; If there is no restriction mark on the ambient frequency to be measured, the first adjustment signal is generated according to the ambient frequency to be measured.
4. The adaptive power driving method according to claim 1, wherein: Before obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module, the following steps are also included: Acquire a historical database, and acquire a number of frequencies to be compared and frequency start times corresponding to the frequencies to be compared based on the historical database; generating corresponding estimated adjustment data according to the frequency to be compared, wherein the estimated adjustment data represents data that can be output by the PWM wave output module; A data adjustment signal is generated according to the estimated adjustment data, and the data adjustment signal is time-marked based on the frequency start time to obtain a corresponding adjustment mark signal, and the adjustment mark signal is stored in the history database.
5. The adaptive power driving method according to claim 4, characterized in that: The step of obtaining the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module includes the following steps: Obtaining the peripheral frequency to be measured and the corresponding time to be adjusted; Filtering the peripheral frequency to be measured and the time to be adjusted in the historical database; Determine whether the corresponding frequency to be compared is found in the historical database; If the corresponding frequency to be compared is found in the historical database, obtaining a corresponding adjustment mark signal according to the frequency to be compared; The output data corresponding to the PWM wave output module is adjusted according to the adjustment mark signal.
6. The adaptive power driving method according to claim 5, characterized in that: After determining whether the corresponding frequency to be compared is found in the historical database, the following steps are also included: Periodically acquiring the historical database and obtaining the reference time of the adjustment mark signal; Obtaining a reference interval according to the reference time and the current time, and comparing the reference interval with a preset interval; If the reference interval exceeds the preset interval, a deletion signal is generated, and the history database is updated according to the deletion signal.
7. The adaptive power driving method according to claim 1, wherein: The adaptive power driving device further includes a power driving module, a switch module, and a load module. After adjusting the PWM wave output module according to the first adjustment signal, the device further includes the following steps: controlling the switch module to open according to the first regulating signal, and loading the load module onto the power driving module; Determining whether the power supply of the power drive module is stable; If the power supply of the power driving module is stable, the adjustment frequency is obtained according to the PWM wave output module, and it is determined whether the adjustment frequency is a preset frequency; If the adjustment frequency is the preset frequency, a load closing signal is generated, and the switch module is controlled to be closed according to the load closing signal; If the power supply of the power driving module is unstable, a load closing signal is generated, and the switch module is controlled to be closed according to the load closing signal.
8. An adaptive power drive system, characterized in that: A system for executing the adaptive power driving method according to any one of claims 1 to 7, comprising: A frequency acquisition module (10), the frequency acquisition module (10) is used to acquire the peripheral frequency to be measured and the frequency to be output corresponding to the PWM wave output module; a frequency comparison module (20), the frequency comparison module (20) being connected to the frequency acquisition module (10) via a network to receive the peripheral frequency to be measured and the frequency to be output, and comparing the peripheral frequency to be measured with the frequency to be output, and determining whether the peripheral frequency to be measured is similar to the frequency to be output; a data processing module (30), wherein if the peripheral frequency to be measured is similar to the frequency to be output, the data processing module (30) is used to generate a first adjustment signal according to the peripheral frequency to be measured, and adjust the PWM wave output module according to the first adjustment signal; If the peripheral frequency to be measured is not similar to the frequency to be output, the frequency comparison module (20) is used to determine whether the peripheral frequency to be measured falls within a difference range set, wherein the difference range set includes at least one range value; If the peripheral frequency to be measured falls within the difference range set, the data processing module (30) is used to generate a second adjustment signal according to the frequency to be output and a second preset value, and adjust the PWM wave output module according to the second adjustment signal.
9. An electronic device, characterized in that: The electronic device comprises a processor (41) and a memory (42) coupled to each other, wherein the memory (42) stores a computer program (43) that can be run on the processor (41); When the computer program (43) is executed by the processor (41), the adaptive power driving method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Variable frequency modulation method for inverter switching signal and OPWM inverter
CN105529952A
Variable switching frequency PWM control method suitable for single-phase MMC
CN109302090A