Frequency switching method and device of charging equipment and computer equipment

By implementing the frequency switching function in the wireless charging device, the compatibility and environmental adaptability problems caused by wireless frequency fixation in the prior art are solved, and the flexibility and stability of the charging device are improved.

CN119995191APending Publication Date: 2025-05-13SHENZHEN ROMOSS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510048578.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The wireless frequency of existing wireless charging devices is fixed and cannot be adjusted as needed, resulting in poor compatibility and environmental adaptability, and the inability to effectively charge all types of devices or maintain charging stability in disturbed environments.

Method used

A frequency switching method for charging devices is provided, through the coordinated work of the master control unit and the slave control unit, it responds to user triggering operations, determines the number of triggers, and switches the wireless charging frequency to ensure that the charging device can adapt to the needs and environmental conditions of different devices.

Benefits of technology

The frequency flexibility of wireless charging equipment is realized, the compatibility and environmental adaptability of the equipment are improved, and the stability and efficiency of the charging process are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995191A_ABST
    Figure CN119995191A_ABST
Patent Text Reader

Abstract

The invention relates to a frequency switching method and device of charging equipment, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: in response to a triggering operation for performing frequency switching on charging equipment, determining a triggering number of times corresponding to the triggering operation; determining a target frequency mode corresponding to the triggering times, and determining a target output frequency in the target frequency mode; detecting a current frequency mode of the slave control unit, and detecting a current output frequency in the current frequency mode; and controlling the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode. By adopting the method, the working frequency of the wireless charging equipment can be flexibly adjusted according to user requirements or environmental conditions, so that the problems of compatibility and environmental adaptability caused by a single fixed frequency are solved. The design not only improves the practicability and flexibility of the equipment, but also improves the overall user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and apparatus for switching the frequency of a charging device, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the development of charging technology, wireless charging devices have gradually come into the public eye. Wireless charging devices are derived from wireless power transmission technology. Wireless charging requires a stable power supply. In order to further facilitate the use of wireless charging, people have combined mobile power supplies with wireless charging technology to form wireless charging mobile power products. The energy stored in the mobile power supply is used to power the wireless charger, achieving the purpose of portable use.

[0003] However, the wireless charging devices currently on the market include wireless charging mobile power supplies or wireless charging power banks, and their wireless frequencies can only be set to a single value. This means that once these devices are manufactured, their wireless charging frequencies are fixed and cannot be adjusted as needed. This limitation leads to the following limitations: The first limitation is the compatibility issue. Different wireless charging receiving devices may be designed to work best at different frequencies. If a wireless charging mobile power supply / wireless charging power bank only supports a fixed wireless frequency, it may not be able to effectively charge all types of devices, or the charging efficiency for certain devices may be low. The second limitation is poor environmental adaptability. In some environments, specific wireless frequencies may be interfered with, such as electromagnetic interference from other electronic devices. If the wireless charging device can switch to another frequency, then it can avoid interference and ensure the stability and efficiency of the charging process. However, single-frequency wireless charging devices cannot do this. Summary of the invention

[0004] Based on this, it is necessary to provide a frequency switching method, device, computer equipment, computer-readable storage medium and computer program product for a charging device that can provide switchable wireless frequencies in response to the above technical problems.

[0005] In a first aspect, the present application provides a frequency switching method for a charging device, wherein the charging device comprises at least a master control unit and a slave control unit, wherein the master control unit and the slave control unit are connected; the method is applied to the master control unit, and the method comprises:

[0006] In response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation;

[0007] Determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode;

[0008] Detecting a current frequency mode of the slave control unit, and detecting a current output frequency under the current frequency mode;

[0009] The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0010] In one embodiment, the slave control unit includes a pin; and controlling the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode includes:

[0011] A signal transmission instruction is generated according to the target output frequency in the target frequency mode; the signal transmission instruction is sent to the slave control unit, and the signal transmission instruction is used to control the current output voltage corresponding to the current output frequency of the pin in the slave control unit, and adjust it to the target output voltage corresponding to the target output frequency.

[0012] In one of the embodiments, the master control unit and the slave control unit transmit signals through a universal transmission channel; the universal transmission channel connects the master control unit and the slave control unit through two universal ports, one of the two universal ports is in the master control unit, and the other is in the slave control unit.

[0013] In one embodiment, sending the signal transmission instruction to the slave control unit includes:

[0014] The universal port in the master control unit is adjusted from input mode to output mode, and the universal port in the slave control unit is adjusted from output mode to input mode; the signal transmission instruction is sent from the universal port in the master control unit to the universal port of the slave control unit through the universal transmission channel.

[0015] In one of the embodiments, the universal port in the master control unit is adjusted from the output mode to the input mode, and the universal port in the slave control unit is adjusted from the input mode to the output mode; based on the universal port of the master control unit, a feedback instruction fed back by the universal transmission channel connected to the universal port in the slave control unit is received, and the feedback instruction is used to feed back the adjustment made by the slave control unit in response to the signal transmission instruction.

[0016] In one embodiment, the charging device further includes a battery unit; before sending the signal transmission instruction to the slave control unit, the method further includes:

[0017] A power-off instruction is sent to the battery unit, wherein the power-off instruction is used to instruct the battery unit to stop supplying power to the slave control unit; a current waiting time is determined, and when the current waiting time reaches the preset waiting time, a power supply instruction is sent to the battery unit, wherein the power supply instruction is used to instruct the battery unit to supply power to the slave control unit.

[0018] In a second aspect, the present application also provides a frequency switching device for a charging device, comprising:

[0019] A first determination module, configured to determine, in response to a trigger operation for performing frequency switching on a charging device, a triggering number corresponding to the trigger operation;

[0020] A second determination module is used to determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode;

[0021] A detection module, used to detect the current frequency mode of the slave control unit and detect the current output frequency under the current frequency mode;

[0022] The switching module is used to control the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0023] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0024] In response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation;

[0025] Determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode;

[0026] Detecting a current frequency mode of the slave control unit, and detecting a current output frequency under the current frequency mode;

[0027] The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0028] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0029] In response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation;

[0030] Determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode;

[0031] Detecting a current frequency mode of the slave control unit, and detecting a current output frequency under the current frequency mode;

[0032] The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0033] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0034] In response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation;

[0035] Determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode;

[0036] Detecting a current frequency mode of the slave control unit, and detecting a current output frequency under the current frequency mode;

[0037] The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0038] The frequency switching method, device, computer device, computer-readable storage medium and computer program product of the above-mentioned charging device, the charging device at least includes a main control unit and a slave control unit, the main control unit and the slave control unit are connected; the method is applied to the main control unit, and the triggering number corresponding to the triggering operation is determined by responding to the triggering operation on the key; the user can instruct the system to switch the frequency through a specific operation mode (such as three consecutive clicks). This allows the user to actively select different wireless charging frequencies according to actual needs, thereby improving the flexibility of the charging device and the user experience.

[0039] The target frequency mode corresponding to the trigger times is determined, and the target output frequency in the target frequency mode is determined; according to the user's trigger times, the specific frequency mode that the user wants to switch to can be identified. This method provides users with a simple and intuitive method to control the frequency of wireless charging, increasing the convenience of using the device.

[0040] Detect the current frequency mode of the slave control unit and detect the current output frequency in the current frequency mode; before switching the frequency, first confirm the current frequency setting. This ensures that the system knows the current state accurately so that the subsequent frequency switching action can be performed correctly. This step is crucial to ensure the reliability and accuracy of the frequency switching process.

[0041] The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode. Based on the previously determined target frequency, the slave control unit (i.e., the microcontroller responsible for the wireless charging part) is controlled to adjust the existing output frequency to the target frequency. This process directly solves the problem of fixed wireless charging frequency in the prior art, so that the wireless charging device can adapt to the needs of different devices and optimize the charging efficiency under different environmental conditions.

[0042] Through the combined effect of the above steps, the wireless charging device can flexibly adjust its operating frequency according to user needs or environmental conditions, thereby overcoming the compatibility and environmental adaptability problems caused by a single fixed frequency. This design not only improves the practicality and flexibility of the device, but also improves the overall user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A diagram showing an application environment of a frequency switching method for a charging device in one embodiment;

[0045] Figure 2 It is a schematic flow chart of a frequency switching method of a charging device in one embodiment;

[0046] Figure 3 It is a flow chart of a frequency switching method of a charging device in another embodiment;

[0047] Figure 4 It is a structural block diagram of a frequency switching device of a charging device in one embodiment;

[0048] Figure 5 It is a structural block diagram of a frequency switching device of a charging device in another embodiment;

[0049] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] The frequency switching method of the charging device provided in the embodiment of the present application can be applied to Figure 1 The application environment shown mainly includes buttons, display unit, main control unit, battery unit, DC-DC module (Direct Current to Direct Current Converter), output port and slave control unit. Among them:

[0052] The button is used to receive the user's operation instructions and transmit them to the main control unit.

[0053] The display unit is used to display the working status of the master control unit and the slave control unit in a visual manner, so that users can understand the system operation status.

[0054] The master control unit, as the core processor of the entire system, is responsible for IIC communication (Inter-Integrated Circuit) with the DC-DC module, controlling the working status of the slave control unit and displaying these statuses through the display unit. In addition, the main MCU is also responsible for receiving and sending signals with other components such as batteries, DC-DC modules and slave control units. In this application, the master control unit controls the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0055] As an energy supplier, the battery unit provides the necessary power support to the main control unit and DC-DC module to ensure that these two key components can operate normally.

[0056] The DC-DC module, as an important converter, will adjust its internal parameters and states after receiving the command from the master control unit, thereby controlling the output port to provide the required power to the slave control unit.

[0057] The output port, as a switch for controlling the power supply, is used to determine whether to supply power to the slave control unit.

[0058] The slave control unit, as an auxiliary processing unit, has the following responsibilities: exchanging signals with the master control unit and adjusting its own working mode according to the instructions issued by the master control unit.

[0059] In an exemplary embodiment, Figure 2As shown, a frequency switching method for a charging device is provided, and the method is applied to Figure 1 The main control unit in FIG. 1 is taken as an example to illustrate, and the following steps 202 to 208 are included. Among them:

[0060] Step 202: In response to a trigger operation for performing frequency switching on a charging device, determine a triggering number corresponding to the trigger operation.

[0061] Among them, the charging device refers to a mobile power supply or power bank that can perform wireless charging. This device combines wireless charging technology and the functions of a mobile power supply, and can provide power for devices that support wireless charging.

[0062] The main control unit is the core control part of the entire charging device, responsible for processing and executing various control logics, including frequency switching, power management, and interaction with users. In this application, the main control unit is composed of the main MCU (Main Microcontroller Unit), which can control the behavior of other components according to preset programs or user input.

[0063] The slave control unit refers to the part that is specifically responsible for the wireless charging function, which may include wireless charging coils, drive circuits, etc., and its work is directed by the master control unit. In the wireless charging switching frequency logic, the slave control unit adjusts the frequency of wireless charging according to the instructions of the master control unit. In this application, the slave control unit is composed of a slave MCU (Slave Microcontroller Unit), which can focus on the specific implementation of the wireless charging function and adjust the operating parameters of the wireless charging according to the instructions from the master MCU.

[0064] The universal transmission channel refers to the data transmission method used for communication between the master control unit and the slave control unit.

[0065] The trigger count refers to the number of times the user triggers the charging device to switch the frequency. Optionally, the trigger count is the number of times the user operates the button, such as one click, two consecutive clicks, or three consecutive clicks. Different trigger counts correspond to different commands, for example, a three-click event will trigger a frequency mode switch.

[0066] Frequency refers to the specific electromagnetic wave frequency used in the wireless charging process. Different frequencies are suitable for different types of devices or scenarios. In this application, frequency is one of the key parameters that control the efficiency and compatibility of wireless charging. For example, a wireless charging device supports at least two frequency modes: 127KHz and 325KHz. Users can switch between these frequency modes by key operations (such as triple tap).

[0067] Specifically, first, when the charging device is connected to the power supply and starts to supply power, the frequency control pin of the main control unit (the frequency control pin is used to control the frequency switching and status indication of wireless charging) is set to a high impedance state to avoid interference with other circuits during the system initialization process.

[0068] The main control unit then continuously listens for key input, waiting for the user to trigger an operation by physical key or touch. Once it detects that a key has been pressed, the main control unit begins to record the state changes of the key. For example, different types of trigger operations such as a single click, double click, or triple click. The main control unit maintains a counter internally to record the number of times a key has been pressed continuously within a specific period of time. For example, when a triple click event is detected, the counter increases. Optionally, the counter can be implemented by setting a time window (such as within a few hundred milliseconds), and consecutive key presses occurring within this window will be considered part of a trigger operation.

[0069] Finally, the result of the counter is used to determine whether the user's trigger operation is a single click, double click, or triple click, etc. For example, if a triple click event occurs, the frequency switching logic will be triggered. Based on the determined number of triggers, the main control unit performs the preset action of switching the wireless frequency accordingly. For example, after the first triple click event (count T1), the wireless charging frequency switches from the default 127KHz to 325KHz; after the second triple click event (count T2), the frequency switches back to 127KHz, and so on.

[0070] Step 204, determining a target frequency mode corresponding to the triggering number, and determining a target output frequency in the target frequency mode.

[0071] Among them, the target frequency mode refers to the wireless charging frequency configuration that the user wants to set after the button trigger operation. For example, the charging device supports two frequency modes, 127KHz and 325KHz. Whenever the user performs a specific button operation (such as triple-click), the main control unit determines the new frequency mode based on the number of button operations. Optionally, if the current frequency mode is 127KHz, then after the first triple-click, the target frequency mode will become 325KHz. If the current frequency mode is 325KHz, then after the second triple-click, the target frequency mode will change back to 127KHz. It can be understood that there can be only two current frequency modes, or there can be more than two, which can be set according to actual needs.

[0072] The target output frequency refers to the specific frequency value corresponding to the target frequency mode. Once the target frequency mode is determined, the corresponding specific frequency value is the target output frequency. For example, if the target frequency mode is 325KHz, the target output frequency is 325KHz; if the target frequency mode is 127KHz, the target output frequency is 127KHz. It can be understood that there can be only one or more target output frequencies in each target frequency mode.

[0073] Specifically, the target frequency mode is first determined according to the number of triggers. For example, if it is the first three consecutive clicks (T1), the target frequency mode will switch to 325KHz. If it is the second three consecutive clicks (T2), the target frequency mode will switch back to 127KHz. Similarly, whenever the number of triggers is an odd number, the target frequency mode is 325KHz; when the number of triggers is an even number, the target frequency mode is 127KHz.

[0074] Then once the target frequency mode is determined, the specific value of the target output frequency can be determined. For example: if the target frequency mode is 325KHz, the target output frequency is 325KHz. If the target frequency mode is 127KHz, the target output frequency is 127KHz.

[0075] Step 206 , detecting the current frequency mode of the slave control unit, and detecting the current output frequency under the current frequency mode.

[0076] Among them, the current frequency mode refers to the frequency configuration currently being used by the slave control unit (i.e., the part responsible for the wireless charging function). In this application, the charging device supports at least two frequency modes: 127KHz and 325KHz. The current frequency mode refers to the type of operating frequency set by the slave control unit before the user triggers a new frequency switching operation. For example, if the device is currently operating at 127KHz, the current frequency mode is 127KHz mode; if it is operating at 325KHz, the current frequency mode is 325KHz mode. It can be understood that there can be only two current frequency modes or more than two, which can be set according to actual needs.

[0077] The current output frequency refers to the specific frequency value actually used by the slave control unit. It is directly related to the current frequency mode and is the specific frequency value in the current frequency mode. For example, if the current frequency mode is 127KHz, the current output frequency is 127KHz; if the current frequency mode is 325KHz, the current output frequency is 325KHz. It can be understood that there can be only one or more current output frequencies in each current frequency mode.

[0078] Specifically, first, the master control unit communicates with the slave control unit to query the frequency mode currently being used by the slave control unit. For example, the status register or other relevant configuration information of the slave control unit is read to determine whether the current slave control unit is working in 127KHz or 325KHz mode. After determining the current frequency mode, further confirm the specific frequency value of the actual operation of the slave control unit. For example, there are only two frequency modes (127KHz and 325KHz), so the current output frequency is the frequency value corresponding to the current frequency mode. If the current frequency mode is 127KHz, the current output frequency is 127KHz. If the current frequency mode is 325KHz, the current output frequency is 325KHz. Finally, the master control unit records the current frequency mode and current output frequency of the slave control unit for subsequent comparison and control switching.

[0079] Step 208 , controlling the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0080] Specifically, first, if the current output frequency is different from the target output frequency, the master control unit will prepare to perform a frequency switching operation. In order to switch the frequency safely, the master control unit sends an instruction to the slave control unit to turn off the wireless charging function.

[0081] Then, according to the target frequency mode, the master control unit sets the corresponding level through the frequency control pin to indicate the new frequency. For example: if the target output frequency is 325KHz, the master control unit sets the frequency control pin to a high level. If the target output frequency is 127KHz, the master control unit sets the frequency control pin to a low level. And maintain this level for a period of time (such as 200ms) to ensure that the slave control unit can correctly identify the new frequency setting.

[0082] Next, the master control unit sends a command to the slave control unit again to restart the wireless charging function. After receiving the command, the slave control unit will start working according to the new frequency setting. And when the wireless charging function is restarted, the master control unit restores the frequency control pin to the input state or high impedance state to prevent unnecessary interference.

[0083] After the frequency switching is completed, the indicator light flashes to remind the user of the current frequency status. For example: if the target frequency mode is 325KHz (the number of triggers is an odd number), the 2nd and 4th lights flash 5 times. If the target frequency mode is 127KHz (the number of triggers is an even number), the 1st and 3rd lights flash 5 times. The slave control unit will now run at the new target output frequency, and the entire frequency switching process is completed.

[0084] In one of the embodiments, a signal transmission instruction is generated according to the target output frequency in the target frequency mode; the signal transmission instruction is sent to the slave control unit, and the signal transmission instruction is used to control the current output voltage corresponding to the current output frequency of the pin in the slave control unit to adjust to the target output voltage corresponding to the target output frequency.

[0085] The pin refers to a specific pin on the slave control unit, namely the frequency control pin, and the frequency of wireless charging is controlled by controlling the state of the frequency control pin (high level, low level or high impedance state). In this application, the master control unit indicates different wireless charging frequencies by changing the state of the frequency control pin.

[0086] Signal transmission instructions refer to a set of control signals generated by the master control unit, which are sent to the slave control unit through a common transmission channel (such as an optimized single-wire communication method). Signal transmission instructions contain information on how to change the behavior of the slave control unit, especially instructions on how to adjust the wireless charging frequency.

[0087] The current output voltage refers to the voltage value corresponding to the current output frequency generated by the slave control unit when it is currently working. Wireless charging at different frequencies may require different output voltages to ensure effective energy transmission. For example, when the wireless charging frequency is 127KHz, the slave control unit will have a specific output voltage; when the frequency is 325KHz, there may be a different output voltage.

[0088] The target output voltage refers to the corresponding voltage value that the slave control unit should generate after switching to the new target output frequency. The target output voltage is the voltage that matches the target output frequency in the target frequency mode to ensure that wireless charging can be effectively performed at the new frequency.

[0089] Specifically, first, if the target output frequency is different from the current output frequency, the master control unit generates a corresponding signal transmission instruction according to the target output frequency. It can be understood that these instructions contain information on how to change the behavior of the slave control unit, especially instructions on how to adjust the wireless charging frequency. For example, if the target output frequency is 325KHz, the master control unit will generate an instruction, namely a signal transmission instruction, instructing the slave control unit to set the frequency control pin to a high level. If the target frequency mode is 127KHz, the master control unit will generate an instruction, namely a signal transmission instruction, instructing the slave control unit to set the frequency control pin to a low level.

[0090] Before executing the frequency switch, the master control unit will turn off the wireless charging function by sending a specific signal to ensure safe frequency switching. The master control unit sends the signal transmission instruction to the slave control unit through the universal transmission channel. This signal transmission instruction tells the slave control unit how to adjust the state of its pin to change the frequency of wireless charging.

[0091] Then, after receiving the signal transmission instruction, the slave control unit adjusts the state of the frequency control pin according to the instruction content. For example, if the target frequency mode is 325KHz, the slave control unit sets the frequency control pin to a high level, which is achieved by increasing the current output voltage of the frequency control pin to obtain the target output voltage.

[0092] If the target frequency mode is 127KHz, the slave control unit sets the frequency control pin to a low level, specifically by lowering the current output voltage of the frequency control pin to obtain the target output voltage. This state is maintained for a period of time (such as 200ms) to ensure that the slave control unit can correctly identify the new frequency setting.

[0093] Finally, after the slave control unit completes the frequency control pin state adjustment, the master control unit sends a signal again to restart the wireless charging function. The slave control unit starts working according to the new frequency control pin state and performs wireless charging in the new target frequency mode.

[0094] Since frequency switching is achieved through communication methods such as signal transmission instructions, complex hardware design is avoided. This approach not only reduces the risk of hardware failure, but also improves the reliability and maintainability of the system. The flexibility of software control also makes future upgrades and maintenance more convenient.

[0095] In one embodiment, the universal transmission channel connects the master control unit and the slave control unit through two universal ports to perform signal transmission, one of the two universal ports is in the master control unit, and the other is in the slave control unit.

[0096] Specifically, a general purpose port refers to an input / output (I / O) port used for multiple functions in a master control unit and a slave control unit, also known as a general purpose input and output (GPIO) pin. These ports can be configured in input mode or output mode and can perform different tasks, such as reading sensor data, controlling external devices, etc. A general purpose transmission channel refers to a data transmission path that can realize communication between a master control unit (master MCU) and a slave control unit (slave MCU) through two general purpose ports (GPIO). The "general purpose transmission channel" here refers to a simplified method for data exchange, which uses a single signal line to complete bidirectional data transmission between a master control unit and a slave control unit. Traditionally, bidirectional communication between a master control unit and a slave control unit usually uses an I2C serial bus, which requires two signal lines: one is a bidirectional data line and the other is a clock line. In this application, only one signal line is used, and bidirectional transmission of simple data is realized by controlling the power supply and initializing the master control unit and the slave control unit, thereby saving one (I / O) port. Therefore, in the present application, a communication link of a single signal line is established by using two GPIO pins (one on the master control unit and the other on the slave control unit).

[0097] Since simple bidirectional data transmission is achieved using only one signal line, a valuable IO port is saved compared to the traditional I2C bus communication method (which requires two signal lines SDA and SCL). This is especially important for embedded systems with limited resources because it allows more IO ports to be freed up for other functions, improving the overall efficiency and flexibility of the system. And because the number of required physical connection lines is reduced, the hardware design is simplified and production costs may be reduced. In addition, the simplified communication mechanism also reduces system complexity, which helps to improve reliability and reduce failure rates.

[0098] In one of the embodiments, the universal port in the master control unit is adjusted from input mode to output mode, and the universal port in the slave control unit is adjusted from output mode to input mode; and the signal transmission instruction is sent from the universal port in the master control unit to the universal port of the slave control unit through the universal transmission channel.

[0099] Among them, input mode means when the general port is configured as input mode, it is used to receive signal instructions. Output mode means when the general port is configured as output mode, it is used to send signal instructions.

[0100] Specifically, first, after the main control unit detects the user operation, it adjusts the state of the universal port on one side of the main control unit from the input mode to the output mode. This means that the main control unit is now ready to send a signal to the slave control unit. At the same time, the state of the universal port on the side of the slave control unit is adjusted from the output mode to the input mode, ready to receive the signal from the main control unit. Then the wireless charging frequency that needs to be switched is sent from the universal port on the side of the main control unit to the universal port on the side of the slave control unit through a signal transmission instruction. Finally, after the slave control unit receives the signal, that is, the signal transmission instruction, it adjusts the level state (high level or low level) on the frequency control pin according to the wireless charging frequency that needs to be switched in the signal transmission instruction.

[0101] By dynamically adjusting the working mode (input / output) of the universal port, the data transmission direction can be flexibly changed according to current needs. This enables the system to adapt to more different application scenarios, enhancing the product's scope of application and market competitiveness. And simple bidirectional data transmission can be achieved using only one signal line. This is especially important when universal port resources are limited, because it can free up more universal ports for other functions and improve the overall efficiency and flexibility of the system.

[0102] In one of the embodiments, the universal port in the master control unit is adjusted from the output mode to the input mode, and the universal port in the slave control unit is adjusted from the input mode to the output mode; based on the universal port of the master control unit, a feedback instruction fed back by the universal transmission channel connected to the universal port in the slave control unit is received, and the feedback instruction is used to feedback the adjustment made by the slave control unit in response to the signal transmission instruction.

[0103] The feedback instruction refers to a signal sent by the slave control unit to the master control unit to confirm or report the execution of the signal transmission instruction issued by the master control unit. Specifically, the function of this feedback instruction is to inform the master control unit that the slave control unit has successfully received and processed the previous signal transmission instruction and has completed the corresponding operation according to the instruction, such as switching the wireless charging frequency.

[0104] Specifically, first, after the slave control unit receives the signal, i.e., the signal transmission instruction, the state of the universal port on the master control unit side is adjusted from the output mode to the input mode. This means that the master control unit is now ready to receive the signal sent by the slave control unit. At the same time, the state of the universal port on the slave control unit side is adjusted from the input mode to the output mode, and is ready to send a signal to the master control unit. Then, the slave control unit adjusts the level state (high level or low level) on the frequency control pin according to the wireless charging frequency to be switched in the signal transmission instruction, and then generates feedback information corresponding to the signal transmission instruction. Finally, the feedback information corresponding to the signal transmission instruction is sent from the universal port on the slave control unit side to the universal port on the master control unit side through the feedback instruction. After receiving the feedback instruction, the master control unit determines whether the frequency switching is successful according to the feedback information corresponding to the signal transmission instruction carried in the feedback instruction. If successful, the user may be prompted with the current frequency state by flashing an indicator light or the like. For example, if the frequency is 325KHz, the No. 2 and No. 4 indicator lights will flash 5 times. If the frequency is 127KHz, the No. 1 and No. 3 indicator lights will flash 5 times.

[0105] Because a single signal line is used for simple data transmission, data exchange can be completed faster than with complex communication protocols, thereby speeding up the system's response to user operations. And by reducing the number of physical connection lines required, the hardware design is simplified and the wiring complexity is reduced. This simplified hardware design helps reduce production costs, while reducing potential failure points and improving system reliability and stability.

[0106] In one of the embodiments, before sending the signal transmission instruction to the slave control unit, the method also includes: sending a power-off instruction to the battery unit, the power-off instruction is used to instruct the battery unit to stop supplying power to the slave control unit; determining the current waiting time, and when the current waiting time reaches the preset waiting time, sending a power supply instruction to the battery unit, the power supply instruction is used to instruct the battery unit to supply power to the slave control unit.

[0107] The battery unit refers to the part of the wireless power bank / wireless power bank that stores energy and powers the entire system (including the slave control unit). It is composed of rechargeable batteries and can provide the required power for the device.

[0108] The power-off command is a signal or command sent by the master control unit to the battery unit, instructing the battery unit to stop supplying power to the slave control unit. The purpose of this command is to temporarily cut off the power supply before performing certain operations (such as frequency switching) to ensure safety and system stability.

[0109] The current waiting time refers to the actual time from when the power-off command is sent to when the next operation (such as re-powering) is actually performed. It is a variable used to monitor and control the length of this time.

[0110] The preset waiting time is a preset time value, which is used to define how long to wait before re-supplying power to the slave control unit after executing the power-off command. This time value is to ensure that the slave control unit has enough time to enter a stable state or complete the necessary initialization process.

[0111] The power supply instruction is another signal or command sent by the master control unit to the battery unit, instructing the battery unit to resume power supply to the slave control unit. When the current waiting time reaches the preset waiting time, the master control unit will send this instruction to restart the operation of the slave control unit.

[0112] Specifically, first, when the charging device is in normal working state, the main control unit (main MCU) and the slave control unit (slave MCU) are both in an active state, and the battery unit is supplying power to the entire system. The main control unit detects the required operation (such as frequency switching) and prepares to send a signal transmission instruction to the slave control unit. Before sending the signal transmission instruction, the main control unit first sends a power-off instruction to the battery unit. This instruction requires the battery unit to stop supplying power to the slave control unit to ensure that the slave control unit enters a safe state and avoids instability during operation.

[0113] The master control unit then starts timing and continuously monitors the current waiting time until it reaches the preset waiting time. Once the current waiting time reaches the preset waiting time, it indicates that the slave control unit is ready to receive a new signal transmission instruction. The master control unit sends a power supply instruction to the battery unit, instructing the battery unit to resume power supply to the slave control unit. The power supply instruction causes the battery unit to resume supplying power to the slave control unit, thereby activating the slave control unit.

[0114] Finally, after the slave control unit is powered on again and enters normal working state, the master control unit sends the signal transmission instruction to the slave control unit through the universal transmission channel. After receiving the signal transmission instruction, the slave control unit adjusts the wireless charging frequency. The slave control unit confirms whether the operation is successful to the master control unit through feedback instructions. After the operation is completed, the charging device returns to normal working state and waits for the next operation or user input.

[0115] By cutting off the power supply and then re-powering it, the slave control unit is ensured to be in a known and stable initial state before receiving new control instructions. This helps to avoid instability or erroneous behavior caused by the state left over from the previous operation. And temporarily cutting off the power can eliminate any residual data or state that may exist, thereby improving the reliability of the execution of new instructions. Ensure that each operation is based on a clean starting point. And in some cases, if certain parameters (such as wireless charging frequency) are suddenly changed while the device is running, it may cause damage to the hardware. By cutting off and re-powering, this risk can be reduced and the hardware can be protected from potential current surges or other electrical problems.

[0116] In one of the embodiments, in response to a trigger operation for a key, the number of valid key triggers is recorded. If the number of key presses is an even number, proceed to the next step; otherwise, return to the previous step and continue to wait for a new key trigger. Determine whether the number of key presses is an even number. If the number of key presses is an even number, proceed to the next step; otherwise, return to the previous step and continue to wait for a new key trigger. Determine whether the frequency control pin of the slave MCU needs to be configured to a high level state. Determine whether the timing time has been reached. If the set time has not been reached, maintain the current state; if it has been reached, continue to execute. The main MCU turns on the slave MCU power supply and starts the power supply of the slave control unit. The slave MCU configures its own general port to receive mode to receive subsequent data.

[0117] The master MCU checks whether the frequency control pin of the slave MCU is in a high level state. If it is high level, it enters the B working mode and outputs the corresponding response signal. If it is not high level, it enters the A working mode and outputs the corresponding response signal. The master MCU configures its general port to receive mode to prepare to receive feedback information from the slave MCU. The master MCU detects whether the response signal is consistent with the setting. If it is in the A working mode, the A working mode prompt information is displayed. If it is not in the A working mode, the B working mode prompt information is displayed. Determine whether 3s has passed. If 3 seconds have passed, the process ends; if not, repeat steps 12 to 14 until the conditions are met. The master MCU obtains the current working status information of the slave MCU. Finally, the working status of the slave MCU is displayed on the display.

[0118] In an exemplary embodiment, Figure 3 As shown, it includes steps 302 to 312. Among them:

[0119] Step 302, in response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation;

[0120] Step 304, determining a target frequency mode corresponding to the triggering number, and determining a target output frequency in the target frequency mode;

[0121] Step 306, detecting the current frequency mode of the slave control unit, and detecting the current output frequency under the current frequency mode;

[0122] Step 308, sending a power-off instruction to the battery unit, the power-off instruction is used to instruct the battery unit to stop supplying power to the slave control unit; determining the current waiting time, and when the current waiting time reaches the preset waiting time, sending a power supply instruction to the battery unit, the power supply instruction is used to instruct the battery unit to supply power to the slave control unit;

[0123] Step 310, generating a signal transmission instruction according to the target output frequency in the target frequency mode; adjusting the universal port in the master control unit from the input mode to the output mode, and adjusting the universal port in the slave control unit from the output mode to the input mode; sending the signal transmission instruction from the universal port in the master control unit to the universal port of the slave control unit through the universal transmission channel; the signal transmission instruction is used to control the current output voltage corresponding to the current output frequency of the pin in the slave control unit to be adjusted to the target output voltage corresponding to the target output frequency;

[0124] Step 312, adjust the universal port in the master control unit from the output mode to the input mode, and adjust the universal port in the slave control unit from the input mode to the output mode; based on the universal port of the master control unit, receive feedback instructions from the universal transmission channel connected to the universal port in the slave control unit, and the feedback instructions are used to feedback the adjustments made by the slave control unit to the signal transmission instructions.

[0125] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0126] Based on the same inventive concept, the embodiment of the present application also provides a frequency switching device for a charging device for implementing the frequency switching method of the charging device involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the frequency switching device for one or more charging devices provided below can refer to the limitations of the frequency switching method for the charging device above, and will not be repeated here.

[0127] In an exemplary embodiment, Figure 4 As shown, a frequency switching device 400 of a charging device is provided, comprising: a first determination module 402, a second determination module 404, a detection module 406 and a switching module 408, wherein:

[0128] A first determining module 402, configured to determine a triggering number corresponding to a triggering operation for switching the frequency of a charging device in response to the triggering operation;

[0129] The second determination module 404 is used to determine a target frequency mode corresponding to the triggering number, and determine a target output frequency in the target frequency mode;

[0130] A detection module 406, used to detect the current frequency mode of the slave control unit and detect the current output frequency in the current frequency mode;

[0131] The switching module 408 is used to control the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

[0132] In one embodiment, the switching module 408 is used to generate a signal transmission instruction according to the target output frequency in the target frequency mode; the signal transmission instruction is sent to the slave control unit, and the signal transmission instruction is used to control the current output voltage corresponding to the current output frequency of the pin in the slave control unit, and adjust it to the target output voltage corresponding to the target output frequency.

[0133] In one embodiment, the switching module 408 is used to adjust the universal port in the master control unit from the input mode to the output mode, and adjust the universal port in the slave control unit from the output mode to the input mode; through the universal transmission channel, the signal transmission instruction is sent from the universal port in the master control unit to the universal port of the slave control unit.

[0134] In one of the embodiments, the frequency switching device of the charging device also includes a feedback module 410, which is used to adjust the universal port in the main control unit from the output mode to the input mode, and adjust the universal port in the slave control unit from the input mode to the output mode; based on the universal port of the main control unit, a feedback instruction fed back by the universal transmission channel connected to the universal port in the slave control unit is received, and the feedback instruction is used to feedback the adjustment made by the slave control unit in response to the signal transmission instruction.

[0135] In one of the embodiments, the frequency switching device of the charging equipment also includes a preparation module 412, which is used to send a power-off instruction to the battery unit, and the power-off instruction is used to instruct the battery unit to stop supplying power to the slave control unit; determine the current waiting time, and when the current waiting time reaches the preset waiting time, send a power supply instruction to the battery unit, and the power supply instruction is used to instruct the battery unit to supply power to the slave control unit.

[0136] In another embodiment, if Figure 5 As shown, Figure 5 The structure block diagram 400 of the frequency switching device of a charging device in another embodiment includes: a first determination module 402, a second determination module 404, a detection module 406 and a switching module 408. The frequency switching device 400 of the charging device further includes a feedback module 410 and a preparation module 412.

[0137] The feedback module 410 is used to adjust the universal port in the master control unit from the output mode to the input mode, and to adjust the universal port in the slave control unit from the input mode to the output mode; based on the universal port of the master control unit, feedback instructions from the universal transmission channel connected to the universal port in the slave control unit are received, and the feedback instructions are used to feedback the adjustments made by the slave control unit to the signal transmission instructions.

[0138] The preparation module 412 is used to send a power-off instruction to the battery unit, which is used to instruct the battery unit to stop supplying power to the slave control unit; determine the current waiting time, and when the current waiting time reaches the preset waiting time, send a power supply instruction to the battery unit, which is used to instruct the battery unit to supply power to the slave control unit.

[0139] Each module in the frequency switching device of the above-mentioned charging device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0140] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to the frequency switching of the charging device. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a frequency switching method of a charging device is implemented.

[0141] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0143] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0144] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0147] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0148] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A frequency switching method for a charging device, characterized in that: The charging device at least includes a master control unit and a slave control unit, and the master control unit is connected to the slave control unit; the method is applied to the master control unit, and the method includes: In response to a trigger operation for performing frequency switching on a charging device, determining a triggering number corresponding to the trigger operation; Determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode; Detecting a current frequency mode of the slave control unit, and detecting a current output frequency under the current frequency mode; The slave control unit is controlled to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

2. The method according to claim 1, characterized in that The slave control unit includes a pin; and controlling the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode includes: generating a signal transmission instruction according to the target output frequency in the target frequency mode; The signal transmission instruction is sent to the slave control unit, and the signal transmission instruction is used to control the current output voltage corresponding to the current output frequency of the pin in the slave control unit to be adjusted to the target output voltage corresponding to the target output frequency.

3. The method according to claim 2, characterized in that The master control unit and the slave control unit perform signal transmission via a universal transmission channel; the universal transmission channel connects the master control unit and the slave control unit via two universal ports, one of the two universal ports is in the master control unit, and the other is in the slave control unit.

4. The method according to claim 3, characterized in that The sending the signal transmission instruction to the slave control unit includes: Adjusting the universal port in the master control unit from the input mode to the output mode, and adjusting the universal port in the slave control unit from the output mode to the input mode; The signal transmission instruction is sent from the universal port in the master control unit to the universal port of the slave control unit through the universal transmission channel.

5. The method according to claim 4, characterized in that The method further comprises: Adjusting the universal port in the master control unit from the output mode to the input mode, and adjusting the universal port in the slave control unit from the input mode to the output mode; Based on the universal port of the master control unit, a feedback instruction fed back by the universal transmission channel connected to the universal port in the slave control unit is received, and the feedback instruction is used to feed back adjustments made by the slave control unit in response to the signal transmission instruction.

6. The method according to any one of claims 2 to 5, characterized in that: The charging device also includes a battery unit; Before sending the signal transmission instruction to the slave control unit, the method further includes: Sending a power-off instruction to the battery unit, wherein the power-off instruction is used to instruct the battery unit to stop supplying power to the slave control unit; A current waiting time is determined, and when the current waiting time reaches the preset waiting time, a power supply instruction is sent to the battery unit, wherein the power supply instruction is used to instruct the battery unit to supply power to the slave control unit.

7. A frequency switching device for a charging device, characterized in that: The device comprises: A first determination module, configured to determine, in response to a trigger operation for performing frequency switching on a charging device, a triggering number corresponding to the trigger operation; A second determination module is used to determine a target frequency mode corresponding to the triggering number, and determine a target output frequency under the target frequency mode; A detection module, used to detect the current frequency mode of the slave control unit and detect the current output frequency under the current frequency mode; The switching module is used to control the slave control unit to switch the current output frequency in the current frequency mode to the target output frequency in the target frequency mode.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.