Power supply method and device, electronic equipment and computer readable storage medium
By controlling the target switch in the electronic device to switch to the on state before the power supply unit is powered on, and maintaining the on state during the signal transmission path of the signal transmission unit, the overcurrent problem caused by switching of the switch in the communication module is solved, and the above-current problem is improved Power supply safety.
Patent Information
- Application Number
- CN202411237256.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-27
AI Technical Summary
In electronic devices, when switching between the signal transmission unit and the power supply unit of the communication module, it is easy to cause overcurrent in the path, which may lead to short circuit or equipment damage.
The control target switch is switched to the on state before powering on the power supply unit and remains on during the signal transceiver path switching of the signal transmission unit to avoid rapid voltage changes and overcurrent.
It effectively avoids overcurrent situations due to switch switching, and improves the power supply safety and reliability of electronic equipment.
Smart Images

Figure CN119210501A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supply technology, and specifically to a power supply method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of communication technology, current electronic devices can be integrated with communication modules to enable electronic devices to have communication functions. The signal transmission unit (e.g., signal power amplifier, antenna, etc.) in the communication module is usually powered by a power supply unit, and a switch is usually connected in series between the signal transmission unit and the power supply unit to control the power supply.
[0003] In practice, it is found that when the switch switches between the on state and the off state, an overcurrent will be generated in the path between the signal transmission unit and the power supply unit, which may cause a short circuit in the path and even burn out the electronic equipment. Summary of the invention
[0004] The embodiments of the present application disclose a power supply method and device, an electronic device, and a computer-readable storage medium, which can prevent overcurrent from being generated in a communication module in an electronic device.
[0005] In a first aspect, an embodiment of the present application discloses a power supply method, which is applied to an electronic device, wherein the electronic device includes a communication module, the communication module includes a power supply unit, a target switch and a signal transmission unit, the target switch is used to conduct a path between the power supply unit and the signal transmission unit, and the method includes:
[0006] Controlling the target switch to switch to an on state;
[0007] When the target switch is in the on state, the power supply unit is controlled to be powered on so that the power supply unit supplies power to the signal transmission unit through the on path, and the target switch is kept in the on state during the switching of the signal transceiver path of the signal transmission unit.
[0008] A second aspect of an embodiment of the present application discloses a power supply device, which is applied to an electronic device, wherein the electronic device includes a communication module, the communication module includes a power supply unit, a target switch and a signal transmission unit, the target switch is used to conduct a path between the power supply unit and the signal transmission unit, and the device includes:
[0009] A first control unit, used for controlling the target switch to switch to an on state;
[0010] The second control unit is used to control the power supply unit to power on when the target switch is in the on state, so that the power supply unit supplies power to the signal transmission unit through the turned-on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
[0011] A third aspect of the present application discloses an electronic device, including:
[0012] A memory storing executable program code;
[0013] a processor coupled to the memory;
[0014] The processor calls the executable program code stored in the memory to execute the method disclosed in the first aspect of the embodiment of the present application.
[0015] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the method disclosed in the first aspect of the embodiment of the present application.
[0016] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the first aspect of the embodiments of the present application.
[0017] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the first aspect of the embodiment of the present application.
[0018] In an embodiment of the present application, the electronic device can first control the target switch to switch to the on state, and then control the power supply unit to power on when the target switch is in the on state; since the target switch is controlled to switch to the on state before the power supply unit is powered on, that is, there is no voltage on the path between the power supply unit and the signal transmission unit when the target switch is switched, thereby avoiding the situation where the voltage in the path changes rapidly during the switching of the target switch, thereby generating an overcurrent; in addition, after the target switch is switched to the on state, it will remain in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit, thereby further avoiding the overcurrent caused by the switching of the target switch, thereby improving the power supply safety of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments 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 drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a schematic diagram of an application scenario disclosed in an embodiment of the present application;
[0021] Figure 2 It is a flow chart of a power supply method disclosed in an embodiment of the present application;
[0022] Figure 3 It is a flowchart of another power supply method disclosed in an embodiment of the present application;
[0023] Figure 4 It is a schematic diagram of a process disclosed in an embodiment of the present application;
[0024] Figure 5 It is a flowchart of another power supply method disclosed in an embodiment of the present application;
[0025] Figure 6 It is a structural schematic diagram of a signal transmission unit disclosed in an embodiment of the present application;
[0026] Figure 7 It is a structural schematic diagram of a power supply device disclosed in an embodiment of the present application;
[0027] Figure 8 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] The embodiments of the present application disclose a power supply method and device, an electronic device, and a computer-readable storage medium, which can prevent overcurrent from being generated in a communication module in an electronic device.
[0031] The technical solution of the present application will be described in detail below in conjunction with specific embodiments.
[0032] In order to more clearly introduce the power supply method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application, firstly, an application scenario applicable to the method is introduced.
[0033] See also Figure 1 , Figure 1 Optionally, the method can be applied to a target processor 110 included in the electronic device, and the electronic device can also include a communication module 120, and the target processor 110 can be electrically connected to the communication module 120 for performing logic control on the communication module 120.
[0034] Optionally, the target processor 110 may include various devices with logic control capabilities and / or logic operation capabilities, including but not limited to a central processing unit (CPU), a single-chip microcomputer, etc., which are not limited here.
[0035] Optionally, the communication module 120 may include: a power supply unit 1201 , a target switch 1202 , and a signal transmission unit 1203 , which is not limited here.
[0036] The power supply unit 1201 may include a power supply and a modulation circuit. Optionally, the modulation circuit may include a direct current-to-direct current (DC_DC) modulation circuit, a direct current-to-alternating current (DC_AC) modulation circuit, etc., which are not limited here. The modulation circuit may modulate the electric energy output by the power supply to adapt to the power consumption requirements of the load.
[0037] The target switch 1202 may include a single-pole single-throw switch, a single-pole multi-throw switch (e.g., a single-pole double-throw switch), etc., which is not limited here. The target switch is used to open or close the path between the power supply unit 1201 and the signal transmission unit 1203. Optionally, the target switch 1202 may be a VCC Switch switch, which is not limited here.
[0038] The signal transmission unit 1203 may include various units with signal transmission capabilities. Optionally, the signal transmission unit may have signal transceiver capabilities and / or signal power amplification capabilities, etc., which are not limited here.
[0039] In the related art, the power supply unit 1201 usually provides the operating voltage for the signal transmission unit 1203. The related art usually adopts the target power supply control logic of "ASM_COMMON_ON" and "ASM_COMMON_OFF", and the target power supply control logic is: when the power supply unit 1201 is powered on, the target switch 1202 will switch the conduction state as the signal transmission and reception path of the signal transmission unit 1203 is switched.
[0040] Exemplarily: ...the target switch 1202 switches to the on state—the signal transmission unit 1203 receives the signal—the signal transmission unit 1203 sends the signal—the target switch 1202 switches to the off state….
[0041] It is found in practice that when the power supply unit 1201 is in the power-on state, if the target switch 1202 is switched, it will cause a rapid voltage change in the path between the power supply unit 1201 and the signal transmission unit 1203 (for example: a voltage change rate of 0.16us or 0.18us). When the output voltage in the path is high, if the voltage changes rapidly, it will cause overcurrent in the path, which may cause the path to short-circuit or even burn out the electronic equipment.
[0042] In this regard, the embodiment of the present application provides a power supply method to solve the technical defects in the related art. Optionally, the method can be applied to the above-mentioned electronic device, specifically to the target processor of the electronic device, which is not limited here.
[0043] Optionally, the electronic device can first control the target switch to switch to the on state, and then control the power supply unit to power on when the target switch is in the on state; since the target switch is controlled to switch to the on state before the power supply unit is powered on, that is, there is no voltage on the path between the power supply unit and the signal transmission unit when the target switch is switched, thereby avoiding the voltage in the path changing rapidly during the switching of the target switch, thereby avoiding overcurrent; in addition, after the target switch is switched to the on state, it will remain in the on state during the switching of the signal transceiver path of the signal transmission unit, that is, the target switch will no longer switch to the on state as the signal transceiver path of the signal transmission unit switches, thereby further avoiding overcurrent caused by switching of the target switch, thereby improving the power supply safety of the electronic device.
[0044] Based on this, the power supply method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application are introduced below.
[0045] See also Figure 2 , Figure 2 1 is a flow chart of a power supply method disclosed in an embodiment of the present application. Optionally, the method can be applied to the above-mentioned electronic device, and specifically can be applied to a target processor of the electronic device, which is not limited here. Optionally, the method can include the following steps:
[0046] 202. Control the target switch to switch to an on state.
[0047] In the embodiment of the present application, the target switch may include an on state and an off state. When the target switch is in the on state, the path between the power supply unit and the signal transmission unit is conducted. Optionally, when the target switch is switched to the off state, the path between the power supply unit and the signal transmission unit is disconnected.
[0048] As an optional implementation, the electronic device can control the target switch to switch to the on state when the power supply unit is not powered on and ensures that no voltage is applied to the path between the power supply unit and the signal transmission unit, thereby avoiding the voltage in the path changing rapidly during the switching of the target switch, thereby preventing overcurrent.
[0049] Optionally, the electronic device may determine whether the power supply unit is in a powered-on state; if the power supply unit is in a powered-on state, the electronic device may first control the power supply unit to power off, and then control the target switch to switch to an on state.
[0050] By implementing the above method, the electronic device can detect the power-on state of the power supply unit before switching the conduction state of the target switch to ensure that the conduction state of the target switch is switched only when the power supply unit is not powered on, so as to avoid as much as possible the voltage in the path changing rapidly during the switching process of the target switch, thereby generating overcurrent.
[0051] 204. When the target switch is in the on state, control the power supply unit to power on so that the power supply unit supplies power to the signal transmission unit through the on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
[0052] In the embodiment of the present application, the power supply unit may include a power supply and a modulation circuit, which have been introduced in the previous text and will not be repeated here. Optionally, controlling the power supply unit to power on may refer to: controlling the power supply to supply power to the modulation circuit so that the modulation circuit modulates the electric energy provided by the power supply and supplies power to the signal transmission unit through the conductive path.
[0053] In the embodiment of the present application, the signal transmission unit can transmit and receive communication signals. The signal transmission unit's signal transmission and reception path switching period may include: switching from a receiving signal state to a sending signal state; or switching from a sending signal state to a receiving signal state, which is not limited here.
[0054] It should be noted that in the related art, due to the use of the target power supply control logic introduced above, the target switch will switch the on state as the signal transceiver path of the signal transmission unit is switched. Once the target switch switches the on state, it will cause the path to undergo rapid voltage changes, which may cause overcurrent in the path. Optionally, in an embodiment of the present application, during the switching of the signal transceiver path of the signal transmission unit, the electronic device can control the target switch to remain in the on state and not switch the target switch, so as to avoid rapid changes in voltage in the path, thereby preventing overcurrent, and further improving the power supply safety of the electronic device.
[0055] By implementing the methods disclosed in the above embodiments, the electronic device can first control the target switch to switch to the on state, and then control the power supply unit to power on when the target switch is in the on state; since the target switch is controlled to switch to the on state before the power supply unit is powered on, that is, there is no voltage on the path between the power supply unit and the signal transmission unit when the target switch is switched, thereby avoiding the situation where the voltage in the path changes rapidly during the switching of the target switch, thereby generating an overcurrent; in addition, after the target switch is switched to the on state, it will remain in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit, thereby further avoiding the overcurrent caused by the switching of the target switch, thereby improving the power supply safety of the electronic device.
[0056] See also Figure 3 , Figure 3 1 is a flow chart of another power supply method disclosed in an embodiment of the present application. Optionally, the method can be applied to the above-mentioned electronic device, and specifically can be applied to the target processor of the electronic device, which is not limited here. Optionally, the method can include the following steps:
[0057] 302. Control the target switch to switch to an on state.
[0058] 304. When the target switch is in the on state, control the power supply unit to power on so that the power supply unit supplies power to the signal transmission unit through the on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
[0059] 306. Control the power supply unit to be powered off; when the power supply unit is powered off, control the target switch to switch from the on state to the off state.
[0060] In the embodiment of the present application, when the electronic device controls the power supply unit to be powered on so that the power supply unit supplies power to the signal transmission unit through the conductive path, if the target switch is directly controlled to switch from the conductive state to the disconnected state, the path between the power supply unit and the signal transmission unit will be disconnected instantly, which will also cause the voltage in the path to change rapidly, thereby generating an overcurrent situation.
[0061] Optionally, the electronic device can first control the power supply unit to power off, so that no voltage is applied to the path between the power supply unit and the signal transmission unit. Furthermore, when the power supply unit is powered off, the target switch is controlled to switch from the on state to the off state, so as to avoid the voltage in the path changing rapidly and thus generating overcurrent. At the same time, such control logic will not affect the original function of the electronic device, thus ensuring the normal operation of the electronic device.
[0062] Optionally, the electronic device may control the power supply unit to power off when detecting that the signal transmission unit is switched to the off state, and when the power supply unit is powered off, control the target switch to switch from the on state to the off state.
[0063] The closed state may refer to a state in which the signal transmission unit completes all work tasks. Optionally, the closed state may refer to a state in which the signal transmission unit receives a close instruction and stops all work tasks, which is not limited here.
[0064] It is understandable that when the signal transmission unit is switched to the off state, the signal transmission unit no longer needs power. In order to reduce power consumption and better manage the power supply of the power supply unit, the electronic device can control the power supply unit to power off.
[0065] By implementing the above method, the electronic device can control the power supply unit to power off when the signal transmission unit is switched to the off state, so as to reduce power consumption and improve the battery life of the electronic device; in addition, by first controlling the power supply unit to power off and then controlling the target switch to switch from the on state to the off state, it is also possible to avoid rapid changes in voltage in the path and thus avoid overcurrent.
[0066] In another optional implementation, the electronic device may control the power supply unit to power off when a switching instruction to switch the on state of the target switch is detected, and when the power supply unit is powered off, control the target switch to switch from the on state to the off state.
[0067] Optionally, the switching instruction for switching the conduction state of the target switch may include: a switching instruction for instructing the target switch to switch to an off state, or other switching instructions for instructing the target switch to switch to other conduction states.
[0068] It is understandable that executing the switching instruction will cause the target switch to switch to the off state, or switch to the off state briefly, which will cause the voltage in the path to change rapidly, thereby causing an overcurrent condition.
[0069] Optionally, the electronic device can control the power supply unit to power off in advance when a switching instruction to switch the conduction state of the target switch is detected and the target switch has not yet switched according to the switching instruction; then, when the power supply unit is powered off, it can be switched according to the switching instruction.
[0070] By implementing the above method, the electronic device can detect that the target switch may be about to switch to the on state, and control the power supply unit to power off in advance, thereby avoiding the situation where the target switch switches to the on state when the power supply unit is powered on, causing the voltage in the path to change rapidly, thereby generating overcurrent.
[0071] In another optional implementation, the electronic device may control the power supply unit to power off when a shutdown command for the electronic device is detected, and when the power supply unit is powered off, control the target switch to switch from the on state to the off state.
[0072] It is understandable that the shutdown command for the electronic device will cause all modules in the electronic device to switch to the shutdown state, including the communication module described above. In the related art, there is no strict restriction on the shutdown order of each unit in the communication module. It may be to disconnect the target switch first and then control the power supply unit to power off. This control order of powering off the power supply unit later may cause the voltage in the path to change rapidly when the target switch is switched, thereby generating an overcurrent situation.
[0073] By implementing the above method, when the electronic device detects a shutdown command, it can strictly control the power supply unit to power off first, and then control the target switch to switch from the on state to the off state, thereby avoiding rapid changes in voltage in the path and subsequent overcurrent. At the same time, such control logic will not affect the original function of the electronic device, thereby ensuring the normal operation of the electronic device.
[0074] By implementing the methods disclosed in the above embodiments, the electronic device can control the target switch to switch to the on state before the power supply unit is powered on, so as to avoid the voltage in the path changing rapidly when the target switch is switched to the on state, thereby preventing overcurrent from occurring; in addition, during the switching of the signal receiving and transmitting path of the signal transmission unit, the target switch is controlled to remain in the on state, so as to further avoid overcurrent caused by switching of the target switch;
[0075] Furthermore, when the power supply unit is powered off, the target switch can be controlled to switch from the on state to the off state, thereby avoiding the rapid change of voltage in the path and the generation of overcurrent. At the same time, such control logic will not affect the original function of the electronic device, thus ensuring the normal operation of the electronic device;
[0076] Furthermore, when the signal transmission unit is switched to the off state, the power supply unit can be controlled to be powered off, so as to reduce power consumption and improve the battery life of the electronic device; in addition, by first controlling the power supply unit to be powered off and then controlling the target switch to switch from the on state to the off state, it is also possible to avoid the voltage in the path changing rapidly and thus generating overcurrent;
[0077] Furthermore, when it is detected that the target switch is about to switch to the on state, the power supply unit is controlled to be powered off in advance, thereby avoiding the situation where the voltage in the path changes rapidly due to the switching of the on state of the target switch when the power supply unit is powered on, thereby generating overcurrent;
[0078] Also, when a shutdown command is detected, the power supply unit can be strictly controlled to be powered off first, and then the target switch can be controlled to switch from the on state to the off state, thereby avoiding rapid changes in voltage in the path and resulting in overcurrent. At the same time, such control logic will not affect the original function of the electronic equipment, thereby ensuring the normal operation of the electronic equipment.
[0079] In order to more clearly introduce the power supply method disclosed in the embodiment of the present application. Figure 4 See Figure 4 , Figure 4 This is a schematic diagram of a process disclosed in the embodiment of this application.
[0080] The electronic device can first control the target switch to switch to the on state; then the electronic device can control the power supply to be powered on, so that the power supply unit supplies power to the signal transmission unit through the conductive path; then the signal transmission unit can start working, until the signal transmission unit finishes working, the target switch does not switch, and maintains the previous on state.
[0081] Furthermore, when the signal transmission unit finishes working, the electronic device first controls the power supply unit to power off; and further, when the power supply unit is powered off, the control target switch can be switched from the on state to the off state.
[0082] By implementing the above method, the electronic device can control the target switch to switch to the on state before the power supply unit is powered on, so as to avoid the voltage in the path changing rapidly and causing overcurrent when the target switch is switched to the on state; in addition, during the switching of the signal receiving and transmitting path of the signal transmission unit, the target switch is controlled to remain in the on state, which can further avoid the overcurrent caused by the switching of the target switch; and when the power supply unit is powered off, the target switch can be controlled to switch from the on state to the off state, so as to avoid the voltage in the path changing rapidly and causing overcurrent. At the same time, such control logic will not affect the electronic device to realize the original function, thereby ensuring the normal operation of the electronic device.
[0083] See also Figure 5 , Figure 5 1 is a flow chart of another power supply method disclosed in an embodiment of the present application. Optionally, the method can be applied to the above-mentioned electronic device, and specifically can be applied to the target processor of the electronic device, which is not limited here. Optionally, the method can include the following steps:
[0084] 502. Control the target switch to switch to a first conducting state to conduct a path between the first power supply unit and the signal transmission unit.
[0085] In the embodiment of the present application, the electronic device may execute step 506 after executing step 502.
[0086] 504. Control the target switch to switch to a second conducting state to conduct a path between the second power supply unit and the signal transmission unit.
[0087] In the embodiment of the present application, the electronic device may execute step 506 after executing step 504.
[0088] Optionally, the power supply unit may include a first power supply unit and a second power supply unit, and the target switch may include a first conduction state and a second conduction state.
[0089] For example, see Figure 6 , Figure 6 6 is a schematic diagram of a structure of a signal transmission unit disclosed in an embodiment of the present application. Optionally, the power supply unit may include a first power supply unit 610 and a second power supply unit 620, wherein the first power supply unit 610 and the second power supply unit 620 use a "DC-DC" modulation unit as an example only for the convenience of description and should not be construed as limiting the embodiments of the present application.
[0090] Optionally, the target switch 1202 can be a single-pole double-throw switch, wherein the first conduction state can be a path 630 between the first power supply unit 610 and the signal transmission unit 1203 ; the second conduction state can be a path 640 between the second power supply unit 620 and the signal transmission unit 1203 .
[0091] Optionally, if the target switch 1202 is switched to a high impedance state, that is, the target switch 1202 is not connected to any contact, then the target switch 1202 is in an open state.
[0092] Please refer again Figure 6 In an optional embodiment, the signal transmission unit 1203 may include: a first power amplifier 650, the first power amplifier 650 is used to amplify the power of the signal. Optionally, the first power amplifier 650 may include a first port 6501, the first port 6501 corresponds to the signal power amplification of the first frequency band.
[0093] Optionally, the first conducting state may be that a path 630 between the first power supply unit 610 and the first port 6501 of the first power amplifier 650 is conducting;
[0094] The second conducting state may be that the path 640 between the second power supply unit 620 and the first port 6501 of the first power amplifier 650 is conducting.
[0095] By implementing the above method, when the target switch is switched to different conduction states, the signal transmission unit can be powered by different power supply units, thereby improving the diversity and compatibility of power supply methods for the signal transmission unit, thereby meeting the power supply requirements of the signal transmission unit in different usage scenarios.
[0096] In another optional embodiment, the first power amplifier 650 may also include a second port 6502, which amplifies the signal power corresponding to the second frequency band, and the frequency corresponding to the second frequency band may be lower than the frequency corresponding to the first frequency band; the second port 6502 may be electrically connected to the first power supply unit 610.
[0097] Optionally, the first frequency band may be a high band (High Band, HB), and the second frequency band may be a medium band (Medium Band, MB); or the first frequency band may be a high band (High Band, HB), and the second frequency band may be a low band (Low Band, LB), etc. Figure 6 This should not be construed as limiting the embodiments of the present application.
[0098] Among them, since the second port 6502 of the first power amplifier 650 is directly electrically connected to the first power supply unit 610, the first power supply unit 610 can directly supply power to the second port 6502 to achieve signal power amplification in the second frequency band. When the target switch 1202 is switched to the first conduction state, the path 630 between the first power supply unit 610 and the first port 6501 of the first power amplifier 650 is turned on, then the first power supply unit 610 can supply power to the first port 6501 to achieve signal power amplification in the first frequency band.
[0099] In the embodiment of the present application, the first power supply unit 610 only supports supplying power to either the first port 6501 or the second port 6502; in this regard, when the target switch 1202 is switched to the first on state, the first power supply unit 610 can supply power to the first port 6501 or the second port 6502 of the first power amplifier 650, thereby amplifying the signal power of the first frequency band or the signal power of the second frequency band, thereby realizing the "single call mode", which is a mode that supports one call service.
[0100] Optionally, when the target switch 1202 switches to the second conduction state and the path 640 between the second power supply unit 620 and the first port 6501 of the first power amplifier 650 is turned on, the second power supply unit 620 can supply power to the first port 6501 to achieve signal power amplification in the first frequency band; at the same time, the first power supply unit 610 can supply power to the second port 6502 of the first power amplifier 650 to achieve signal power amplification in the second frequency band.
[0101] For this purpose, the signal power amplification of the first frequency band and the signal power amplification of the second frequency band can be realized simultaneously; thus, the "multi-call mode" can be realized, and the "multi-call mode" is a mode that supports at least two call services.
[0102] By implementing the above method, the conduction state of the target switch can be switched to achieve single-band signal transmission or multi-band signal transmission, thereby realizing the "dual-card dual-pass" function, that is, being able to support multiple call services, thereby enriching the communication scenarios of the communication module and improving the communication flexibility of the communication module.
[0103] In other optional embodiments, the signal transmission unit 1203 may also include: a second power amplifier 660, the second power amplifier 660 may be electrically connected to the first power supply unit 610, the first power supply unit 610 may supply power to the second power amplifier 660, and the second power amplifier 660 may be used to achieve signal power amplification in the third frequency band.
[0104] Optionally, the frequency corresponding to the third frequency band is lower than the frequency corresponding to the second frequency band. In an optional embodiment, the first frequency band may be a high band (High Band, HB), the second frequency band may be a medium band (Medium Band, MB), and the third frequency band may be a low band (Low Band, LB), which is not limited here.
[0105] Optionally, when the target switch 1202 is switched to the first conduction state, the first power supply unit 610 can supply power to the first port 6501, the second port 6502 of the first power amplifier 650, or any one of the second power amplifiers 660, thereby achieving signal power amplification in any of the first frequency band, the second frequency band or the third frequency band, and further achieving "single call mode".
[0106] Optionally, when the target switch 1202 is switched to the second conduction state, the second power supply unit 620 can supply power to the first port 6501 to achieve signal power amplification in the first frequency band; at the same time, the first power supply unit 610 can supply power to the second port 6502 of the first power amplifier 650, or the second power amplifier 660, to achieve signal power amplification in the second frequency band or the third frequency band.
[0107] Thereby, the signal power amplification of the first frequency band and the second frequency band can be realized simultaneously, or the signal power amplification of the first frequency band and the third frequency band can be realized simultaneously, thereby realizing a "multi-call mode".
[0108] By implementing the above method and adding a second power amplifier, the signal transmission unit can achieve signal power amplification in more frequency bands, thereby enriching the communication scenarios of the communication module and improving the compatibility and flexibility of the communication module.
[0109] In an optional embodiment, the electronic device can obtain the current target call mode, and then determine the target conduction state corresponding to the target switch according to the target call mode, and then control the target switch to switch to the corresponding conduction state according to the target conduction state.
[0110] Optionally, if the target communication mode is a single-talk mode, the corresponding target conduction state is a first conduction state; if the target communication mode is a multi-talk mode, the corresponding target conduction state is a second conduction state.
[0111] By implementing the above method, the electronic device can control the target switch to the corresponding on state according to the currently required target communication mode, so that the communication module matches the current target communication mode, thereby improving the communication effect.
[0112] Optionally, the communication module 120 may further include a signal transceiver 670, which may be used to transmit and receive communication signals. Optionally, the communication module 120 may be a communication module supporting the DSDA (Dual SIM Dual Active) function, which means that two SIM cards can be inserted into the mobile phone at the same time, and the two cards can be online and talk at the same time.
[0113] It should be noted that the communication module 120 may also include other components not shown in the figure. Figure 6 This is merely an illustration for the convenience of explanation and should not be construed as limiting the embodiments of the present application.
[0114] 506. When the target switch is in the on state, control the power supply unit to power on so that the power supply unit supplies power to the signal transmission unit through the on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
[0115] By implementing the methods disclosed in the above embodiments, the electronic device can control the target switch to switch to the on state before the power supply unit is powered on, so as to avoid the voltage in the path changing rapidly when the target switch is switched to the on state, thereby preventing overcurrent from occurring. In addition, during the switching of the signal receiving and transmitting path of the signal transmission unit, the target switch is controlled to remain in the on state, so as to further avoid overcurrent caused by switching of the target switch. Furthermore, when the target switch is switched to different on states, the signal transmission unit can be powered by different power supply units, thereby improving the diversity and compatibility of the power supply methods for the signal transmission unit, thereby meeting the power supply requirements of the signal transmission unit in different usage scenarios. demand; and, by switching the conduction state of the target switch, single-band signal transmission or multi-band signal transmission can be achieved, thereby realizing the function of "dual-card dual-pass", that is, it can support a variety of call services, thereby enriching the communication scenarios of the communication module and improving the communication flexibility of the communication module; and, adding a second power amplifier, so that the signal transmission unit can achieve signal power amplification of more frequency bands, thereby enriching the communication scenarios of the communication module and improving the compatibility and flexibility of the communication module; and, according to the currently required target communication mode, the corresponding control target switch can be switched to the corresponding conduction state, so that the communication module matches the current target communication mode, thereby improving the communication effect.
[0116] See also Figure 7 , Figure 7 is a schematic diagram of a power supply device disclosed in an embodiment of the present application. Optionally, the device can be applied to the above-mentioned electronic device, and specifically can be applied to a target processor of the electronic device, which is not limited here. Optionally, the device may include a first control unit 702 and a second control unit 704, wherein:
[0117] A first control unit 702, used to control the target switch to switch to a conducting state;
[0118] The second control unit 704 is used to control the power supply unit to power on when the target switch is in the on state, so that the power supply unit supplies power to the signal transmission unit through the on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
[0119] By implementing the above device, the electronic device can first control the target switch to switch to the on state, and then control the power supply unit to power on when the target switch is in the on state; since the target switch is controlled to switch to the on state before the power supply unit is powered on, that is, there is no voltage on the path between the power supply unit and the signal transmission unit when the target switch is switched, thereby avoiding the voltage in the path changing rapidly during the switching of the target switch, thereby avoiding the situation of overcurrent; in addition, after the target switch is switched to the on state, it will still remain in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit, thereby further avoiding the overcurrent caused by the switching of the target switch, thereby improving the power supply safety of the electronic device.
[0120] As an optional implementation, the first control unit 702 is further configured to control the target switch to switch to an on state when the power supply unit is not powered on.
[0121] By implementing the above device, the power-on state of the power supply unit can be detected before switching the conduction state of the target switch to ensure that the conduction state of the target switch is switched only when the power supply unit is not powered on, so as to avoid as much as possible the voltage in the path changing rapidly during the switching process of the target switch, thereby generating overcurrent.
[0122] As an optional implementation, Figure 7 The device shown may also include a third control unit (not shown), wherein:
[0123] The third control unit is used to control the power supply unit to power on, so that the power supply unit supplies power to the signal transmission unit through the conductive path, and then control the power supply unit to power off; when the power supply unit is powered off, control the target switch to switch from the conductive state to the disconnected state.
[0124] By implementing the above device, the power supply unit can be controlled to be powered off first, so that no voltage is applied to the path between the power supply unit and the signal transmission unit. Furthermore, when the power supply unit is powered off, the target switch is controlled to switch from the on state to the off state, so as to avoid the voltage in the path changing rapidly and thus generating overcurrent. At the same time, such control logic will not affect the original function of the electronic device, thus ensuring the normal operation of the electronic device.
[0125] As an optional implementation manner, the third control unit is further configured to control the power supply unit to power off when detecting that the signal transmission unit is switched to the off state; or,
[0126] When a switching instruction to switch the conducting state of the target switch is detected, the power supply unit is controlled to be powered off; or,
[0127] When a shutdown instruction for the electronic device is detected, the power supply unit is controlled to power off.
[0128] By implementing the above-mentioned device, when the signal transmission unit is switched to the off state, the power supply unit can be controlled to be powered off, so as to reduce power consumption and improve the battery life of the electronic device; in addition, by first controlling the power supply unit to be powered off and then controlling the target switch to be switched from the on state to the off state, it is also possible to avoid a rapid change in voltage in the path and thus an overcurrent; and, when it is detected that the target switch may be about to be switched to the on state, the power supply unit can be controlled to be powered off in advance, thereby avoiding a rapid change in voltage in the path due to the switching of the on state of the target switch when the power supply unit is powered on, thereby avoiding an overcurrent; and, when a shutdown command is detected, the power supply unit can be strictly controlled to be powered off first and then the target switch can be controlled to be switched from the on state to the off state, thereby avoiding a rapid change in voltage in the path and thus an overcurrent. At the same time, such control logic will not affect the electronic device to achieve the original function, thereby ensuring the normal operation of the electronic device.
[0129] As an optional implementation, the power supply unit includes a first power supply unit and a second power supply unit, and the target switch includes a first conduction state and a second conduction state; the first control unit 702 is further used to control the target switch to switch to the first conduction state to conduct the path between the first power supply unit and the signal transmission unit; or,
[0130] The target switch is controlled to switch to a second conducting state to conduct a path between the second power supply unit and the signal transmission unit.
[0131] By implementing the above device, when the target switch is switched to different conduction states, the signal transmission unit can be powered by different power supply units, thereby improving the diversity and compatibility of power supply methods for the signal transmission unit, thereby meeting the power supply requirements of the signal transmission unit in different usage scenarios.
[0132] As an optional implementation, the signal transmission unit includes a first power amplifier, the first power amplifier is used to amplify the power of the signal, the first power amplifier includes a first port, and the first port amplifies the power of the signal corresponding to the first frequency band;
[0133] The first conducting state is that a path between the first power supply unit and the first port of the first power amplifier is conducting;
[0134] The second conducting state is that a path between the second power supply unit and the first port of the first power amplifier is conducting.
[0135] By implementing the above device, when the target switch is switched to different conduction states, the signal transmission unit can be powered by different power supply units, thereby improving the diversity and compatibility of power supply methods for the signal transmission unit, thereby meeting the power supply requirements of the signal transmission unit in different usage scenarios.
[0136] As an optional implementation, the first power amplifier also includes a second port, which corresponds to signal power amplification in a second frequency band, and the frequency corresponding to the second frequency band is lower than the frequency corresponding to the first frequency band; the second port is electrically connected to the first power supply unit.
[0137] By implementing the above-mentioned device, single-band signal transmission or multi-band signal transmission can be achieved by switching the conduction state of the target switch, thereby realizing the "dual-card dual-pass" function, that is, being able to support multiple call services, thereby enriching the communication scenarios of the communication module and improving the communication flexibility of the communication module.
[0138] See also Figure 8 , Figure 8 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0139] like Figure 8 As shown, the electronic device may include:
[0140] A memory 801 storing executable program codes;
[0141] a processor 802 coupled to the memory 801;
[0142] The processor 802 calls the executable program code stored in the memory 801 to execute the power supply method disclosed in the above embodiments.
[0143] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the power supply method disclosed in the above embodiments.
[0144] The embodiments of the present application also disclose an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.
[0145] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0146] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0147] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0149] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0150] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0151] The power supply method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A power supply method, characterized in that: Applied to an electronic device, the electronic device includes a communication module, the communication module includes a power supply unit, a target switch and a signal transmission unit, the target switch is used to conduct a path between the power supply unit and the signal transmission unit, the method includes: Controlling the target switch to switch to an on state; When the target switch is in the on state, the power supply unit is controlled to be powered on so that the power supply unit supplies power to the signal transmission unit through the on path, and the target switch is kept in the on state during the switching of the signal transceiver path of the signal transmission unit.
2. The method according to claim 1, characterized in that The controlling the target switch to switch to an on state includes: When the power supply unit is not powered on, the target switch is controlled to switch to an on state.
3. The method according to claim 1 or 2, characterized in that: After controlling the power supply unit to be powered on so that the power supply unit supplies power to the signal transmission unit through the conductive path, the method further includes: Controlling the power supply unit to power off; When the power supply unit is powered off, the target switch is controlled to switch from the on state to the off state.
4. The method according to claim 3, characterized in that The controlling the power supply unit to power off includes: When it is detected that the signal transmission unit is switched to the off state, the power supply unit is controlled to be powered off; or, When a switching instruction to switch the conducting state of the target switch is detected, the power supply unit is controlled to be powered off; or, When a shutdown instruction for the electronic device is detected, the power supply unit is controlled to be powered off.
5. The method according to claim 1 or 2, characterized in that: The power supply unit includes a first power supply unit and a second power supply unit, and the target switch includes a first on state and a second on state; and controlling the target switch to switch to the on state includes: Controlling the target switch to switch to the first conducting state to conduct the path between the first power supply unit and the signal transmission unit; or, The target switch is controlled to switch to the second conducting state to conduct a path between the second power supply unit and the signal transmission unit.
6. The method according to claim 5, characterized in that The signal transmission unit includes a first power amplifier, the first power amplifier is used to amplify the power of the signal, the first power amplifier includes a first port, the first port corresponds to the signal power amplification of the first frequency band; The first conducting state is that a path between the first power supply unit and the first port of the first power amplifier is conducting; The second conducting state is that a path between the second power supply unit and the first port of the first power amplifier is conducting.
7. The method according to claim 6, characterized in that The first power amplifier also includes a second port, the second port corresponds to amplifying signal power in a second frequency band, the frequency corresponding to the second frequency band is lower than the frequency corresponding to the first frequency band; the second port is electrically connected to the first power supply unit.
8. A power supply device, characterized in that: Applied to an electronic device, the electronic device includes a communication module, the communication module includes a power supply unit, a target switch and a signal transmission unit, the target switch is used to conduct a path between the power supply unit and the signal transmission unit, the device includes: A first control unit, used for controlling the target switch to switch to an on state; The second control unit is used to control the power supply unit to power on when the target switch is in the on state, so that the power supply unit supplies power to the signal transmission unit through the turned-on path, and keep the target switch in the on state during the switching of the signal receiving and transmitting path of the signal transmission unit.
9. An electronic device, characterized in that: It comprises a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.