Mobile terminal and control method therefor, and program product

By incorporating a signal switching module into the mobile terminal, the problem of users having difficulty distinguishing the purpose of the interfaces is solved, enabling multi-functional integration of external power supply, internal charging, and data communication, thereby improving user experience and device portability.

WO2026108494A1PCT designated stage Publication Date: 2026-05-28ZTE CORP
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
ZTE CORP
Filing Date
2025-10-21
Publication Date
2026-05-28

Smart Images

  • Figure CN2025129033_28052026_PF_FP_ABST
    Figure CN2025129033_28052026_PF_FP_ABST
Patent Text Reader

Abstract

A mobile terminal and a control method therefor, and a program product. The mobile terminal comprises: a signal switching module, which is configured to conduct a signal path between an input charging module and a signal end of an interface module in the case of a first operating state, or conduct a signal path between an output discharging module and the signal end of the interface module in the case of a second operating state; and a control module, which is coupled to the input charging module, the output discharging module and the signal switching module, wherein the control module is configured to: acquire a power role of an external device and a data communication requirement identification result, control, on the basis of the power role of the external device, the operating state of the signal switching module, and determine, on the basis of the data communication requirement identification result, whether to perform data communication with the external device.
Need to check novelty before this filing date? Find Prior Art

Description

Mobile terminals and their control methods and software products

[0001] This disclosure claims priority to Chinese patent application No. 202411661951.3, filed on November 19, 2024, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This disclosure relates to the field of communication technology, and in particular to a mobile terminal and its control method and program product. Background Technology

[0003] Standalone Wi-Fi hotspot devices (such as Wi-Fi data products) that support network connectivity can connect directly to the network without the need for other devices and provide Wi-Fi hotspots for other devices. They are also portable and popular with users. Furthermore, these devices, equipped with high-capacity batteries, can power user devices, extending their battery life. When a standalone Wi-Fi hotspot device can both provide network connectivity and power to user devices, it enhances the user experience. Summary of the Invention

[0004] In a first aspect, embodiments of this disclosure provide a mobile terminal, including:

[0005] Energy storage module;

[0006] The interface module includes a power supply terminal and a signal terminal;

[0007] The input charging module is coupled to the power supply terminal of the energy storage module and the interface module, and has the function of charging the energy storage module.

[0008] The output discharge module is coupled to the power supply terminal of the energy storage module and the interface module. The output discharge module has the function of charging external devices connected to the interface module.

[0009] The signal switching module is coupled to the signal terminal of the interface module, the input charging module, and the output discharging module. The signal switching module is used to connect the signal path between the input charging module and the signal terminal of the interface module in the first working state, or to connect the signal path between the output discharging module and the signal terminal of the interface module in the second working state.

[0010] The control module is coupled to the input charging module, the output discharging module, and the signal switching module; the control module is configured as follows:

[0011] Obtain the power role and data communication requirements identification results of external devices;

[0012] The operating status of the control signal switching module is determined based on the power role of external devices.

[0013] Based on the data communication demand identification results, determine whether to conduct data communication with external devices.

[0014] Secondly, this disclosure provides a control method for a mobile terminal, the method comprising:

[0015] Obtain the power role and data communication requirement identification results of the external devices connected to the interface module of the mobile terminal;

[0016] Based on the power role of external devices, the working state of the signal switching module in the mobile terminal is controlled; wherein, the signal switching module is used to connect the signal path between the signal terminals of the input charging module and the interface module in the mobile terminal in the first working state, or to connect the signal path between the signal terminals of the output discharging module and the interface module in the mobile terminal in the second working state.

[0017] Based on the data communication demand identification results, determine whether to conduct data communication with external devices.

[0018] Thirdly, this disclosure provides a mobile terminal, including a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs any of the control methods of the mobile terminal provided in the second aspect above.

[0019] Fourthly, this disclosure provides a computer-readable storage medium, including a non-transitory computer-readable storage medium, on which computer instructions are stored, which, when executed on a computer, cause the computer to perform any of the mobile terminal control methods provided in the second aspect above.

[0020] Fifthly, this disclosure provides a computer program product including computer program instructions that, when executed by a processor, implement any of the mobile terminal control methods provided in the second aspect above.

[0021] These or other aspects of this disclosure will become more readily apparent in the following description. Attached Figure Description

[0022] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.

[0023] Figure 1 is a block diagram of a mobile terminal according to an embodiment.

[0024] Figure 2 is a block diagram of another mobile terminal according to an embodiment.

[0025] Figure 3 is a schematic diagram of an application scenario of a mobile terminal control method according to an embodiment.

[0026] Figure 4 is a flowchart of a control method for a mobile terminal according to an embodiment.

[0027] Figure 5 is a schematic diagram of the logic of a control method for a mobile terminal according to an embodiment.

[0028] Figure 6 is a schematic diagram of the logic of another mobile terminal control method according to an embodiment.

[0029] Figure 7 is a schematic diagram of the logic of another mobile terminal control method according to an embodiment.

[0030] Figure 8 is a schematic diagram of the logic of another mobile terminal control method according to an embodiment.

[0031] Figure 9 is a block diagram of another mobile terminal according to an embodiment. Detailed Implementation

[0032] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this disclosure.

[0033] Unless the context otherwise requires, throughout the specification and claims, the term "comprise" and other forms such as the third-person singular "comprises" and the present participle "comprising" are interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific example," or "some examples" are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this disclosure. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples.

[0034] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0035] In this disclosure, the terms "exemplarily" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplarily" or "for example" in this disclosure should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the use of the terms "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0036] In addition, the use of “based on” implies openness and inclusivity, because processes, steps, calculations or other actions “based on” one or more of the stated conditions or values ​​may in practice be based on additional conditions or values ​​beyond those stated.

[0037] Standalone Wi-Fi hotspot devices (such as WiFi data products) that support network connectivity can connect directly to the network without the need for other devices and provide Wi-Fi hotspots for other devices. They are also portable and popular with users. Furthermore, these devices, equipped with high-capacity batteries, can power user devices, extending their battery life. When a standalone Wi-Fi hotspot device can both provide network connectivity and power to user devices, the user experience is significantly enhanced.

[0038] A typical standalone Wi-Fi hotspot provides a Universal Serial Bus (USB)-A interface for charging user devices, while its own charging is achieved through other interfaces (such as the Universal Serial Bus Type-C interface). Because the USB-A interface itself lacks a configuration channel (CC) signal, it cannot support power delivery (PD) fast charging protocols, making it unsuitable for fast charging certain types of user devices, resulting in a poor user experience. Furthermore, the USB-A connector is relatively thick, hindering the reduction in the thinness of standalone Wi-Fi hotspot devices. In addition, with the current prevalence of Type-C adapters, when users want to use a conventional standalone Wi-Fi hotspot, they need not only a CC (Type-C to Type-C) cable for charging the device itself, but also an AC (USB-A to Type-C) cable for charging the user device, which is inconvenient.

[0039] If a solution is adopted where two Type-C ports are set on a separate wireless network hotspot device for charging the device and powering the external network respectively, users cannot clearly distinguish from the appearance whether the two ports correspond to powering the external network or charging the device. This may lead to the problem of connecting the wrong ports, resulting in a poor user experience.

[0040] Since some users need to connect to the network via wired connections, standalone wireless hotspot devices should also have the function of providing network access to user devices via wired connections. Common scenarios include: laptops connecting to standalone wireless hotspot devices via a CC cable and then connecting to the network through the standalone wireless hotspot device; tablet computers (Tablets or PADs) without cellular connectivity also need to connect to the network via wired connections to standalone wireless hotspot devices; and user devices connecting to network cards via Ethernet cables, with standalone wireless hotspot devices connecting to network cards via an interface to provide network access to user devices.

[0041] In summary, considering device portability and improving user experience, a problem that needs to be solved is how to enable a standalone wireless network hotspot device to both provide power to the device for charging and communicate with external devices via a single interface.

[0042] Based on this, this disclosure provides a mobile terminal. A signal switching module is provided between the mobile terminal's interface module and its input charging module and output discharging module. The mobile terminal's control module controls the working state of the signal switching module, enabling the signal switching module to connect the interface module to the control module, and to connect the interface module to either the input charging module or the output discharging module. The control module obtains the power role and data communication requirement identification results of the external device. Based on the power role of the external device, it controls the working state of the signal switching module; based on the data communication requirement identification results, it determines whether to communicate with the external device. In other words, the control module controls the working state of the signal switching module to power the external device or charge the mobile terminal, and to achieve data communication with the external device. When a user connects an external device to the mobile terminal, there is no need to distinguish whether the mobile terminal's interface is used for power supply or charging, or whether it has data communication capabilities. As long as it can be connected to the mobile terminal's interface module, various user needs can be met, facilitating user operation and improving the user experience. Furthermore, since the interface module of the mobile terminal can provide power to external devices, charge the device itself, and have data communication capabilities, only one interface needs to be retained when designing the mobile terminal. This makes it easier to reduce the size of the mobile terminal, make it more portable for users, and facilitates its circulation in the market.

[0043] Please refer to Figure 1, which shows a block diagram of a mobile terminal. As shown in Figure 1, the mobile terminal 1 includes: an energy storage module 10, an interface module 20 having a power supply terminal and a signal terminal, an input charging module 30, an output discharging module 40, a signal switching module 50, and a control module 60.

[0044] Here, the input charging module 30 is coupled to the power supply terminals of the energy storage module 10 and the interface module 20, and the input charging module 30 has the function of charging the energy storage module; the output discharging module 40 is coupled to the power supply terminals of the energy storage module 10 and the interface module 20, and the output discharging module 40 has the function of charging external devices connected to the interface module 20; the signal switching module 50 is coupled to the signal terminal of the interface module 20, the input charging module 30, and the output discharging module 40; the signal switching module 50 is used to connect the signal path between the signal terminal of the input charging module 30 and the interface module 20 in the first working state, or to connect the signal path between the signal terminal of the output discharging module 40 and the interface module 20 in the second working state; the control module 60 is coupled to the input charging module 30, the output discharging module 40, and the signal switching module 50.

[0045] In some embodiments, the energy storage module 10 is used to store electrical energy when charging the device and to provide electrical energy when supplying power to external devices. In practical applications, the energy storage module 10 is a rechargeable battery, specifically a lithium-ion battery, a lithium polymer battery, a nickel-metal hydride battery, a nickel-cadmium battery, etc. Lithium-ion batteries and lithium polymer batteries are superior in terms of energy density, lifespan, and safety; therefore, the energy storage module 10 of the mobile terminal 1 is preferably a lithium-ion battery or a lithium polymer battery.

[0046] In some embodiments, the energy storage module 10 may be a single cell or a combination of multiple cells connected in series.

[0047] In some embodiments, as shown in FIG2, the signal terminals of the interface module 20 include a configuration signal terminal and a data signal terminal.

[0048] In practical applications, the interface module 20 can be a type-C interface. The configuration signal terminal of the interface module 20 is the CC1 / CC2 terminal of the type-C interface, and the data signal terminal of the interface module 20 is the data positive signal (data plus, DP) / data negative signal (data minus, DM) terminal of the type-C interface.

[0049] When interface module 20 is a Type-C interface, this interface conforms to the Type-C standard and can be either USB 2.0 or USB 3.0. Users can connect adapters or other charging devices to charge mobile terminal 1 through the Type-C interface on mobile terminal 1, or connect devices such as mobile phones and smartwatches to power these devices. Furthermore, users can connect computers, tablets, network card accessories, and other devices with data communication needs for data communication.

[0050] In some embodiments, the signal switching module 50 includes: a first signal switching submodule 501; a first end of the first signal switching submodule 501 is coupled to the configuration signal terminal of the interface module 20, a second end of the first signal switching submodule 501 is coupled to the configuration signal terminal of the input charging module 30, a third end of the first signal switching submodule 501 is coupled to the configuration signal terminal of the output discharging module 40, and a control terminal of the first signal switching submodule 501 is coupled to the control module 60; and a second signal switching submodule 502, a first end of the second signal switching submodule 502 is coupled to the data signal terminal of the interface module 20, a second end of the second signal switching submodule 502 is coupled to the data signal terminal of the input charging module 30, a third end of the second signal switching submodule 502 is coupled to the data signal terminal of the output discharging module 40, and a control terminal of the second signal switching submodule 502 is coupled to the control module 60.

[0051] In some embodiments, in a first operating state, the first terminal and the second terminal of the first signal switching submodule 501 are connected, and the first terminal and the second terminal of the second signal switching submodule 502 are connected; in a second operating state, the first terminal and the third terminal of the first signal switching submodule 501 are connected, and the first terminal and the third terminal of the second signal switching submodule 502 are connected.

[0052] In some embodiments, the two sub-modules of the signal switching module 50 can be hardware switches. Generally, the switches of the two sub-modules of the signal switching module 50 can be connected to the input charging module 30 side by default.

[0053] In some embodiments, the two sub-modules of the signal switching module 50 can also be a direct connection scheme, that is, without actual hardware circuitry. Under different working conditions, they can release the corresponding bus to a high impedance state to adapt to different working conditions and realize different path conduction.

[0054] Taking the two sub-modules of the signal switching module 50 as hardware switching switches as an example, the first signal switching sub-module 501 can be called a DP / DM single-pole double-throw switch, which is used to switch the USB D+ / D- signals between the input charging module 30 and the output discharging module 40. The second signal switching sub-module 502 can be called a CC1 / CC2 single-pole double-throw switch, which is used to switch the CC signal between the input charging module 30 and the output discharging module 40.

[0055] The DP / DM pin of the Type-C interface is used to implement the Quick Charge (QC) protocol, detect the charging device type according to Battery Charging Specification 1.2 (BC1.2), and perform USB 2.0 data communication. When an external device charges the mobile terminal 1, or when the mobile terminal 1 performs on-the-go (OTG) data exchange or USB data communication, the control module 60 controls the DP / DM single-pole double-throw switch to connect to the input charging module 30. When the mobile terminal 1 performs normal charging for an external device, the control module 60 controls the DP / DM single-pole double-throw switch to connect to either the input charging module 30 or the output discharging module 40. When the mobile terminal 1 performs fast charging for an external device, the control module 60 controls the DP / DM single-pole double-throw switch to connect to the output discharging module 40.

[0056] The CC1 / CC2 terminals of the Type-C interface are used to implement Type-C plug-in / plug-out detection, role determination, and PD fast charging protocol. When the mobile terminal 1 is only used to charge external devices and does not have data communication requirements, the control module 60 controls the CC1 / CC2 single-pole double-throw switch to connect to the output discharge module 40. In other scenarios, the control module 60 controls the CC1 / CC2 single-pole double-throw switch to connect to the input charging module 30.

[0057] In some embodiments, the control module 60 is configured to: acquire the power role and data communication requirement identification results of the external device; control the working state of the signal switching module based on the power role of the external device; and determine whether to perform data communication with the external device based on the data communication requirement identification results.

[0058] In this way, the control module 60 can switch the working state of the module 50 through control signals to achieve power supply to external devices and power supply to the mobile terminal itself. Simultaneously, the control module 60 has the ability to communicate with external devices. That is to say, the mobile terminal 1, containing the above components, can achieve power supply to the mobile terminal itself, power supply to external devices, and data communication with external devices through a single interface. Compared to the solution of setting two Type-C interfaces on a separate wireless network hotspot device for charging the mobile terminal and powering external devices respectively, the solution provided in this application eliminates the need for users to distinguish whether the interface corresponds to power supply to external devices or charging the mobile terminal itself; the mobile terminal 1 can perform both, avoiding the problem of incorrect interface connection and providing a better user experience.

[0059] In some embodiments, the control module 60 is configured to control the operating state of the signal switching module 50 based on the power role of the external device, including: when the power role of the external device is the power supplier, the control signal switching module 50 is in a first operating state.

[0060] In some embodiments, the input charging module 30 also has the function of charging external devices based on non-fast charging protocols; the control module 60 is configured to control the working state of the signal switching module 50 based on the power role of the external device, and further includes: when the power role of the external device is the power consumer, the control signal switching module 50 is in a first working state based on the fact that the external device does not support fast charging protocols.

[0061] In some embodiments, the control module 60 is configured to control the operating state of the signal switching module 50 based on the power role of the external device, including: when the power role of the external device is the power consumer, the control signal switching module 50 is in a second operating state.

[0062] In some embodiments, the output discharge module 40 has the function of charging external devices based on a non-fast charging protocol; the control module 60 is configured to: when the external device is the power user, the control signal switching module 50 is in a second working state, including: when the external device is the power user, the control signal switching module 50 is in a second working state based on the external device supporting a fast charging protocol.

[0063] In some embodiments, the control module 60 is configured to acquire the power role and data communication requirement identification results of the external device, including: acquiring the power role and data communication requirement identification results of the external device based on the operating mode of the external device.

[0064] In some embodiments, the control module 60 is further configured to: receive a selection instruction for the operating mode of an external device; and determine the operating mode of the external device based on the selection instruction. Here, the operating mode of the external device includes at least one of the following: a first operating mode, a second operating mode, a third operating mode, and a fourth operating mode; in the first operating mode, the external device's power role is that of a power supplier, and the external device does not have data communication requirements; in the second operating mode, the external device's power role is that of a power supplier, the external device has data communication requirements, and its data role is that of a master; in the third operating mode, the external device's power role is that of a power consumer, the external device has data communication requirements, and its data role is that of a slave; in the fourth operating mode, the external device's power role is that of a power consumer, and the external device does not have data communication requirements.

[0065] Based on this, the mobile terminal 1 may further include an interaction module for interacting with the user. The control module 60 is coupled to the interaction module and is also configured to receive selection instructions for the operating mode of an external device sent by the interaction module. For example, the interaction module may be a voice interaction device, which sends selection instructions for the operating mode of an external device to the control module 60 by receiving voice commands from the user. Alternatively, the interaction module may be a touchpad, touchscreen, or handwriting device, allowing the user to input selection instructions for the operating mode of an external device by selecting one from multiple operating modes displayed by the interaction module. Furthermore, the interaction module may be a button, allowing the user to select the corresponding operating mode by pressing different buttons, thereby inputting selection instructions for the operating mode of the external device. This disclosure does not limit the specific implementation of the interaction module.

[0066] For example, as shown in FIG3, the mobile terminal 1 includes a touchpad, which displays four working modes: "charging mode", "computer mode", "network card mode" and "discharge mode". The user clicks on the area corresponding to "computer mode" on the touchpad, and then the control module 60 of the mobile terminal 1 determines "computer mode" as the working mode of the external device.

[0067] In some embodiments, the control module 60 is further configured to: in response to a power-off command, the control signal switching module 50 is in a first operating state.

[0068] In some embodiments, the control module 60 is further configured to: in response to a power-on command, acquire the remaining power of the energy storage module; when the remaining power is less than a preset power threshold, the control signal switching module 50 is in a first operating state; or, when the remaining power is greater than or equal to the preset power threshold, the control signal switching module 50 is in a second operating state.

[0069] In some embodiments, the input charging module 30 is configured to: when the signal switching module 50 is in a first working state, acquire the power role of the external device; and when the power role of the external device is the power supplier, use the power of the external device to charge the energy storage module 10.

[0070] In some embodiments, the input charging module 30 is further configured to: use the power of the external device to power the control module 60 when the external device is the power supplier.

[0071] In some embodiments, the input charging module 30 also has the function of charging an external device; the input charging module 30 is also configured to charge the external device using the power of the energy storage module 10 when the external device is the power consumer.

[0072] In some embodiments, the input charging module 30 is configured to: in response to an external device accessing the interface module 20 via an uplink port role, obtain the port type of the external device; determine the data communication requirement identification result of the external device based on the port type of the external device; and notify the control module 60 of the data communication requirement identification result of the external device.

[0073] In some embodiments, the input charging module 30 is configured to determine the data communication requirement identification result of the external device based on the port type of the external device, including: determining that the external device has a data communication requirement when the port type of the external device is a data port type; or determining that the external device does not have a data communication requirement when the port type of the external device is a non-data port type.

[0074] In some embodiments, the input charging module 30 is configured to: in response to the external device access interface module 20 via the downstream port role, authenticate the identity of the external device and obtain the authentication result of the external device; based on the authentication result of the external device, determine the data communication requirement identification result of the external device; and notify the control module 60 of the data communication requirement identification result of the external device.

[0075] In some embodiments, the input charging module 30 is configured to determine the data communication requirement identification result of the external device based on the authentication result of the external device, including: determining that the external device has a data communication requirement when the authentication result indicates that the external device has passed authentication; or determining that the external device does not have a data communication requirement when the authentication result indicates that the external device has failed authentication.

[0076] In some embodiments, the output discharge module 40 is configured to: acquire the power role of the external device when the signal switching module 50 is in a second operating state; and charge the external device using the power energy of the energy storage module 10 when the external device's power role is that of a power consumer. The output discharge module detects the power role of the external device, and when it detects that the external device's power role is that of a power consumer, the mobile terminal's output discharge module can directly use the power energy of the energy storage module to charge the external device.

[0077] In some embodiments, the output discharge module 40 is configured to: obtain the data communication requirement identification result of the external device based on the port type of the external device; and notify the control module 60 of the data communication requirement identification result of the external device.

[0078] In some embodiments, the output discharge module 40 is configured to determine the data communication requirement identification result of the external device based on the port type of the external device, including: determining that the external device has data communication requirements when the port type of the external device is a data port type; or determining that the external device does not have data communication requirements when the port type of the external device is a non-data port type.

[0079] In some embodiments, the input charging module 30 is a mature dual-role port (DRP) charging module circuit with a Type-C interface for mobile phone products. It supports input fast charging protocols such as PD / QC, supports OTG external 5V normal discharge, and supports BC1.2 device type detection. When used as input charging, it provides fast charging to the energy storage module 10 and also outputs battery path management power VPH_PWR to power the control module 60. This ensures that when the adapter is plugged in, the control module 60 preferentially draws power from the adapter, preventing the battery from frequently being in a charging and discharging state.

[0080] In some embodiments, the output discharge module 40 is a mature module circuit with a Type-C interface that supports PD / QC fast charging protocol for some power bank products.

[0081] In some embodiments, the control module 60 may be a chip, a modem-demodulator processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a programmable logic device (PLD), a microprocessor, a microcontroller, or any combination thereof, or other devices with processing functions, such as circuits, devices, or software modules. This disclosure does not impose any limitations on these embodiments.

[0082] In some embodiments, the mobile terminal 1 further includes a wireless network module for providing wireless network connectivity to external devices.

[0083] In some embodiments, the mobile terminal 1 may further include a communication module for establishing a communication connection with a user device used by the user. The user device used by the user has an application corresponding to the mobile terminal 1 installed. When the user needs to select the working mode of an external device, the user device used by the user displays various working modes through the application. Then, the user selects the working mode of the external device on the user device. The user device sends a selection instruction for the working mode of the external device to the mobile terminal 1. The communication module of the mobile terminal 1 receives the selection instruction for the working mode of the external device and forwards the working mode of the external device indicated by the selection instruction to the control module 60.

[0084] In some embodiments, the mobile terminal 1 may be a portable WIFI device, a mobile communication device (such as a mobile phone, wearable device, etc.), a tablet computer, etc.

[0085] To achieve the goal of communicating with external devices, discharging externally, and charging the device itself through a single interface, related technologies employ independent protocol chips to control the charging and discharging circuits. These independent protocol chips work in conjunction with the main control module to enable data communication with external devices. Compared to these related technologies, the mobile terminal provided in this application reuses existing input charging and output discharging modules and adds a signal switching module to switch the access rights of the input charging and output discharging modules to the interface module. The implementation logic is not complex and does not require an additional independent protocol chip to control the charging and discharging circuits, resulting in lower construction costs. Existing devices can be improved to obtain the mobile terminal provided in this application, enabling external discharging, charging, and data communication with external devices through a single interface.

[0086] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0087] The control method for the mobile terminal provided in this embodiment can be executed by the control module in the mobile terminal.

[0088] As shown in Figure 4, this embodiment of the present disclosure provides a control method for a mobile terminal, which includes the following steps S101-S103:

[0089] In S101, the power role and data communication requirement identification results of the external device of the interface module accessing the mobile terminal are obtained.

[0090] Here, the data communication requirement identification results are used to characterize whether external devices have data communication requirements.

[0091] This disclosure provides two implementation schemes:

[0092] The first scheme provides two connection methods for the signal switching module. In connection method one, the signal switching module is connected to the input charging module, and the signal path between the mobile terminal's interface module and the input charging module is open. In connection method two, the signal switching module is connected to the output discharging module, and the signal path between the mobile terminal's interface module and the output discharging module is open. Users select different connection methods in this scheme, and the mobile terminal's control module determines the role and needs of the external device based on the different connection methods, automatically performing corresponding operations.

[0093] In practical applications, the first approach can be called a "dip switch method." For example, a physical hardware switch can be installed on the mobile terminal, allowing the user to select one of the two connection methods. Alternatively, a software switch can be displayed on the mobile terminal's touch panel, allowing the user to select one of the two connection methods by touching this software switch. Another option is that the mobile terminal's touch panel displays two connection methods, allowing the user to directly touch the controls corresponding to different connection methods to select one. Yet another option is that the user selects one of the two connection methods through an application installed on their user device that corresponds to the mobile terminal. For example, the on state of the dip switch corresponds to connection method one, and the off state corresponds to connection method two. For yet another example, the user names connection method one "Normal Mode" and connection method two "Power Bank Mode," and the user selects "Normal Mode" or "Power Bank Mode" to choose the corresponding connection method. This disclosure does not limit the specific implementation of the dip switch.

[0094] The second option provides multiple working modes for external devices. Users can select the corresponding working mode according to their needs, and the mobile terminal will work according to the working mode of the external device.

[0095] In practical applications, the second approach can be called the "pop-up working mode method." The mobile terminal displays multiple working modes through an interactive device, or the mobile terminal sends a prompt message to the user's device, instructing the application software installed on the user's device corresponding to the mobile terminal to pop up a pop-up window to select a working mode, prompting the user to select one as the working mode of the external device, and the mobile terminal works according to the working mode of the external device selected by the user.

[0096] Step S101 can be specifically implemented as follows: based on the working mode of the external device, the control module obtains the power role and data communication requirement identification results of the external device.

[0097] In the second scheme described above, the control module can also receive a selection command for the operating mode of the external device; based on the selection command, the control module determines the operating mode of the external device. Here, the operating mode of the external device includes at least one of the following: a first operating mode, a second operating mode, a third operating mode, and a fourth operating mode; in the first operating mode, the external device's power role is that of a power supplier, and the external device does not have data communication requirements; in the second operating mode, the external device's power role is that of a power supplier, the external device has data communication requirements, and its data role is that of a master; in the third operating mode, the external device's power role is that of a power consumer, the external device has data communication requirements, and its data role is that of a slave; in the fourth operating mode, the external device's power role is that of a power consumer, and the external device does not have data communication requirements.

[0098] In S102, the working state of the signal switching module in the mobile terminal is controlled based on the power role of the external device.

[0099] Here, the signal switching module operates in two states: a first state and a second state. In the first state, the signal switching module connects the signal path between the input charging module and the interface module in the mobile terminal; in the second state, it connects the signal path between the output discharging module and the interface module in the mobile terminal.

[0100] When using the first scheme described above, step S102 can be specifically implemented as follows: when the external device's power role is that of a power supplier, the control module's control signal switching module is in a first operating state. When the external device's power role is that of a power consumer, the control module's control signal switching module is in a second operating state.

[0101] In some embodiments, step S102 can also be specifically implemented as follows: when the external device's power role is that of a power consumer, and based on the fact that the external device does not support the fast charging protocol, the control signal switching module is in a first working state. That is, when it is detected that the external device's power role is that of a power consumer and the external device does not support the fast charging protocol, if the signal switching module is already in the first working state, the input charging module can directly perform normal charging for the external device; or, if the signal switching module is in the second working state, the control module controls the signal switching module to switch to the first working state, and the output discharge module is converted into the input charging module to perform normal charging for the external device.

[0102] In some embodiments, when the external device acts as a power consumer, the control module controls the signal switching module to be in a second operating state. Specifically, this can be implemented as follows: when the external device acts as a power consumer, based on the external device's support for a fast charging protocol, the control module controls the signal switching module to be in the second operating state. That is, when the external device is detected as a power consumer and supports a fast charging protocol, if the signal switching module is already in the second operating state, the output discharge module directly performs fast charging for the external device. Alternatively, if the signal switching module is in the first operating state, the control module controls the signal switching module to switch to the second operating state, converting the input charging module to the output discharging module to perform fast charging for the external device.

[0103] Table 1 below shows several common devices that can access mobile terminals:

[0104] Table 1

[0105] In the first scheme, if the signal switching module in the mobile terminal is connected in connection mode one, that is, the control module switches the DP / DM single-pole double-throw switch and the CC1 / CC2 single-pole double-throw switch to the input charging module, the mobile terminal can support the functions corresponding to the external devices of types 1-6 in Table 1. In connection mode two, the control module switches the DP / DM single-pole double-throw switch and the CC1 / CC2 single-pole double-throw switch to the output discharging module, and the mobile terminal can support the functions corresponding to the external devices of types 7-8 in Table 1.

[0106] In some embodiments, when an external device is connected to the interface module as a downstream facing port (DFP), the input charging module of the mobile terminal obtains the port type of the external device and determines the data communication requirement identification result of the external device based on the port type of the external device. Only then can the control module obtain the data communication requirement identification result of the external device at the input charging module.

[0107] Here, if the external device's port type is a data port type, the input charging module determines that the external device has data communication requirements; or, if the external device's port type is a non-data port type, the input charging module determines that the external device does not have data communication requirements.

[0108] In practical applications, the data port type is the standard downstream port (SDP) / charging downstream port (CDP) type data port, and the non-data port type is the data port other than the SDP / CDP type.

[0109] Similarly, the mobile terminal's output discharge module can also determine the data communication requirement of the external device based on its port type. For example, if the external device's port type is a data port, the output discharge module determines that the external device has a data communication requirement; or, if the external device's port type is a non-data port, the output discharge module determines that the external device does not have a data communication requirement. The specific process is similar to that of the input charging module and will not be elaborated here.

[0110] In some embodiments, when an external device accesses the interface module via an Uplink Port Role (UFP), the input charging module authenticates the external device's identity and obtains the authentication result. Based on the authentication result of the external device, the input charging module determines the data communication requirement identification result of the external device, and then the control module can obtain the data communication requirement identification result of the external device from the input charging module.

[0111] Here, if the authentication result indicates that the external device has passed authentication, the input charging module determines that the external device has data communication requirements; or, if the authentication result indicates that the external device has failed authentication, the input charging module determines that the external device does not have data communication requirements.

[0112] In the first connection scheme, the signal switching module is in its first working state, as shown in Figure 5. If the input charging module detects a DFP type external device connected via the CC signal, it initiates input fast charging while simultaneously performing a PD protocol handshake with the external device. When an SDP or CDP type external device is detected (e.g., external devices of types 4-5 in Table 1), the input charging module notifies the control module to communicate with the external device as a slave device. Conversely, if the external device is of type 5 (e.g., external devices of types 1-3 in Table 1), input charging is only performed on the mobile terminal, and fast charging is performed on the external device according to the supported fast charging protocol.

[0113] If the input charging module detects a UFP-type external device connected via the CC signal, it triggers the OTG function of the control module. The input charging module outputs a standard 5V power supply to power the UFP peripheral. Simultaneously, the control module, acting as the host, reads the ID information of the connected external device. If the ID has been authenticated by the mobile terminal (corresponding to type 6 of external devices in Table 1 above), USB data communication is initiated between the control module and the external device. Otherwise, it is determined that the mobile terminal is connected to a standard UFP-type external device (corresponding to type 8 of external devices in Table 1 above). The control module switches the control signal to the second operating state, the interface module and the output discharge module are connected, and fast charging of the external device is initiated. At the same time, the DIP switch automatically returns to connection mode two (power bank mode).

[0114] Specifically, when connecting a seventh type of external device (DRP), if the mobile terminal is pre-configured to charging-only mode (Try.Sink DRP), meaning the external device prioritizes charging the mobile terminal, the seventh type of external device will also charge the mobile terminal, which does not meet the user's expectations. In this case, the user needs to manually switch the DIP switch to power bank mode.

[0115] In some embodiments, when the signal switching module is in the second operating state, the control module detects the port role of the external device in response to detecting the external device access interface module; when the port role of the external device is UFP, the control module controls the output discharge module to supply power to the external device.

[0116] As shown in Figure 6, in the second connection method (power bank mode) of the first scheme, the signal switching module is in the second working state, that is, the CC1 / CC2 single-pole double-throw switch and the DP / DM single-pole double-throw switch are connected to the output discharge module. If the output discharge module detects the connection of a UFP type external device through the CC signal, it initiates the PD fast charging protocol handshake charging of the CC signal or the Qualcomm QC fast charging protocol handshake charging of the DP / DM signal. Among them, the PD fast charging protocol has higher priority than the Qualcomm QC proprietary fast charging protocol of the DP / DM signal. In power bank mode, if the external device connected is of type 7 to 8 in Table 1, the mobile terminal charges the external device. If the external device supports fast charging, it charges the external device quickly, so as to achieve the power bank function expected by the user. If the external device connected is of type 1 to 6 in Table 1, the function of the mobile terminal does not meet the user's needs. The user manually switches the signal switching module to the first working state, that is, the user manually dials the switch to the normal mode.

[0117] If the output discharge module detects that the connected external device is not of type UFP, it means that the connection is a high-power supply (Source) device. At this time, the mobile terminal's function does not meet the user's needs, and the user manually switches the signal switching module to the first working state.

[0118] In the second scheme, in the first working mode, the signal switching module is in the first working state; in the second working mode, the signal switching module is in the second working state; in the third working mode, the signal switching module is in the first working state; and in the fourth working mode, the signal switching module is in the first working state.

[0119] In S103, based on the data communication requirement identification result, it is determined whether to conduct data communication with external devices.

[0120] In some embodiments, the method further includes: in response to a power-off command, the control module controls the signal switching module to be in a first operating state. At this time, both the first signal switching submodule and the second signal switching submodule are connected to the input charging module, so that when connected to external devices such as adapters or computers, the mobile terminal can be quickly charged.

[0121] In some embodiments, the method further includes: in response to a power-on command, the control module obtains the remaining power of the energy storage module; if the remaining power is less than a preset power threshold, the control module controls the signal switching module to be in a first working state; or, if the remaining power is greater than or equal to the preset power threshold, the control module controls the signal switching module to be in a second working state.

[0122] As shown in Figure 7, the system first determines whether the mobile terminal is powered off. If the mobile terminal is powered off, the control module controls the signal switching module to be in the first working state, that is, the signal switching module connects the input charging module and the interface module (CC1 / CC2 single-pole double-throw switches and DP / DM single-pole double-throw switches are connected to the input charging module). If the mobile terminal is powered on, the system checks whether the battery (energy storage module) power level is less than a preset power level (e.g., the preset power level can be 50% of the total power). If the power level in the energy storage module is less than the preset power level, the control module controls the signal switching module to be in the first working state, that is, the signal switching module connects the input charging module and the interface module (CC1 / CC2 single-pole double-throw switches and DP / DM single-pole double-throw switches are connected to the input charging module). If the battery power level is greater than or equal to the preset power level, the control module checks the state of the DIP switch. If the DIP switch is in normal mode, the control module controls the signal switching module to be in the first working state, that is, the signal switching module connects the input charging module and the interface module (CC1 / CC2 single-pole double-throw switches and DP / DM single-pole double-throw switches are connected to the input charging module). If the DIP switch is in power bank mode, the control module controls the signal switching module to be in the second working state, that is, the signal switching module connects the output discharging module and the interface module (CC1 / CC2 single-pole double-throw switches and DP / DM single-pole double-throw switches are connected to the output discharging module). In other words, when the mobile terminal has low battery while powered on, the signal switching module automatically enters the first working state. Only when the battery level of the mobile terminal is above a preset threshold after being powered on will the signal switching module enter the same working state as the user-selected state.

[0123] In practical applications, when the control module is in the second working state based on the power control signal switching module of the mobile terminal, if the user manually switches the DIP switch, the control module will also switch the working state according to the user's selection.

[0124] In some embodiments, when an external device charges the energy storage module, the control module supplies power to the control module using the power from the external device by inputting power to the charging module. In this way, the process of the mobile terminal's energy storage module storing electrical energy does not conflict with the power consumption process of the mobile terminal's control module, and the mobile terminal's control module does not consume additional power from the energy storage module during the mobile terminal's charging process.

[0125] By default, the signal switching modules (CC1 / CC2 single-pole double-throw switches and DP / DM single-pole double-throw switches) are connected to the input charging module in both the powered-off and powered-on states. After the mobile terminal transitions from powered-off to powered-on state, the control module configures the input charging module to Try.SRC DRP mode, which sets the mobile terminal's power role as the source, allowing it to prioritize role negotiation with connected DRP-type external devices. For example, when the mobile terminal connects to external devices of the third (C-port power bank), fifth (C-port computer), or seventh (mobile phone / PAD, etc.) DRP types listed in Table 1, the mobile terminal's power role will be negotiated as the source, and the external device's power role will be negotiated as the sink. The pop-up window (showing multiple working modes) only occurs when the mobile terminal is negotiated as a Source. It will not occur when the mobile terminal is negotiated as a Sink. That is, when the mobile terminal is the power consumer and an external device is charging the mobile terminal, the mobile terminal will not display multiple working modes. When the mobile terminal is the power supplier, the mobile terminal displays multiple working modes, and the user selects one of the working modes as the working mode of the external device. The mobile terminal then works according to the working mode of the external device.

[0126] When the external device being connected acts as the power supplier, the mobile terminal displays the first working mode, the second working mode, the third working mode, and the fourth working mode.

[0127] In practical applications, the first working mode can be named charging mode (corresponding to the third type of external device in Table 1 above), the second working mode can be named discharging mode (corresponding to the seventh and eighth types of external devices in Table 1 above), the third working mode can be named computer mode (corresponding to the fifth type of external device in Table 1 above), and the fourth working mode can be named network card mode (corresponding to the sixth type of external device in Table 1 above).

[0128] For example, in the second scheme, as shown in Figure 8, the signal switching module is connected to the input charging module, and the mobile terminal is configured in Try.src DRP mode. That is, in this mode, the mobile terminal is configured to prioritize the power source role in negotiating with the connected external device in a dual-role port (DRP) mode. When an external device connects to the mobile terminal, the control module determines whether the connected device's power source role is that of a power consumer. If the external device's power source role is that of a power source, the mobile terminal determines whether the external device's port type is SDP or CDP. If so, it is determined that the connected external device is a computer or other external device (type 4 of external devices in Table 1 above), and the external device charges the mobile terminal. The mobile terminal communicates with the external device via USB in a slave data role. If not, it is determined that the connected external device is an adapter or other external device (types 1-2 of external devices in Table 1 above), and the mobile terminal is charged according to the required voltage and current. If the external device's power source role is that of a power consumer, the mobile terminal displays multiple operating modes, and the user selects one of these modes as the operating mode for the external device. When a user connects an external device of type 3 in Table 1 to the device and selects a charging mode, the mobile terminal resets the input charging module to UFP mode, and the external device charges the mobile terminal. When a user connects an external device of type 5 in Table 1 to the device and selects a computer mode, the mobile terminal resets the input charging module to UFP mode, the external device charges the mobile terminal, and the mobile terminal establishes USB data communication with the external device as a slave data device. When a user connects an external device of type 6 in Table 1 to the device and selects a network card mode, the mobile terminal provides normal power to the external device, and the mobile terminal establishes USB data communication with the external device as a master data device. When a user connects an external device of type 7 or type 3 in Table 1 to the device and selects a discharge mode, the signal switching module switches to connect to the output discharge module, and the mobile terminal charges the external device.

[0129] If a user connects a USB-C power bank to a mobile device and wants the power bank to charge the mobile device, the user will select a charging mode. At this time, the control module will reconfigure the input charging module to UFP mode (i.e., the mobile device is the power consumer), and then the power bank will charge the mobile device.

[0130] If the user connects a USB-C computer to the mobile terminal, the user will select computer mode. At this time, the control module reconfigures the input charging module to UFP mode, the computer charges the product, and the mobile terminal, as a slave, establishes USB data communication with the computer.

[0131] If the user connects the Ethernet accessory to the mobile terminal, the user will select the network card mode. At this time, the control module controls the input charging module to start the OTG function to power the Ethernet accessory. At the same time, the mobile terminal, as the host, establishes a USB data communication connection with the Ethernet accessory.

[0132] If the user connects the 7th or 8th type of external device to the mobile terminal, the user will select the discharge mode. At this time, the control module controls the CC1 / CC2 single-pole double-throw switch and the DP / DM single-pole double-throw switch to connect to the output discharge module to charge the external device.

[0133] When the power role of the connected external device is that of a power consumer, the mobile terminal determines the type of the external device.

[0134] If the Type-C interface of this mobile terminal is connected to a strong source type external device, such as the first type (adapter), the second type (A-port power bank), or the fourth type (A-port computer) in Table 1 above, the mobile terminal will be negotiated as the power user when these three types of external devices are connected to the mobile terminal. The mobile terminal will be charged by these three types of external devices. At the same time, the mobile terminal will start BC1.2 type detection. When it detects that the connected external device is of type SDP, it will establish a USB data connection with the external device as a slave data device through the DP / DM end.

[0135] It should be understood that the names "Normal Mode", "Power Bank Mode", "Charging Mode", "Discharging Mode", "Computer Mode" and "Network Card Mode" are for illustrative purposes only, and users can rename the above working modes according to their own naming habits.

[0136] The technical solution shown in Figure 4 brings at least the following beneficial effects: After the external device is connected to the mobile terminal, the mobile terminal determines the target working mode and controls the working state of the signal switching module based on the selected target working mode. Under different working states, the signal switching module is connected to the input charging module or the output discharging module. Thus, the mobile terminal can charge or discharge according to different circuit connection conditions, as well as meet the data communication needs of the external device, satisfying the user's charging and discharging needs and data communication needs of the mobile terminal.

[0137] The foregoing primarily describes the solutions provided by the embodiments of this disclosure from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0138] As shown in Figure 9, this embodiment of the present disclosure also provides a mobile terminal for the control method of the mobile terminal shown in the above method embodiment. The mobile terminal 700 includes an energy storage module, an interface module, a signal switching module, an input charging module, and an output discharging module, and further includes a transmission module 701 and a processing module 702.

[0139] Here, the transmission module 701 is used to acquire the power role and data communication requirement identification result of the external device accessing the interface module of the mobile terminal; the processing module 702 is used to control the working state of the signal switching module in the mobile terminal based on the power role of the external device; here, the signal switching module is used to connect the signal path between the input charging module and the signal terminal of the interface module in the mobile terminal in the first working state, or connect the signal path between the output discharging module and the signal terminal of the interface module in the mobile terminal in the second working state; and determine whether to perform data communication with the external device based on the data communication requirement identification result.

[0140] In one possible implementation, the processing module 702 is specifically used to: when the external device is the power supplier, the control signal switching module is in a first working state.

[0141] In one possible implementation, the processing module 702 is specifically used to: when the external device is the power consumer, the control signal switching module is in a second working state.

[0142] In one possible implementation, the input charging module has the function of charging the energy storage module and the function of charging the external device based on a non-fast charging protocol; the processing module 702 is specifically used to: when the external device is the power consumer, and based on the fact that the external device does not support the fast charging protocol, control the signal switching module to be in the first working state.

[0143] In one possible implementation, the output discharge module has the function of charging external devices based on a non-fast charging protocol; the processing module 702 is specifically used to: when the external device is the power user, based on the fact that the external device supports a fast charging protocol, control the signal switching module to be in a second working state.

[0144] In one possible implementation, the transmission module 701 is specifically used to: obtain the power role and data communication requirement identification results of the external device based on the operating mode of the external device.

[0145] In one possible implementation, the transmission module 701 is further configured to receive a selection instruction for the operating mode of the external device; the processing module 702 is further configured to determine the operating mode of the external device based on the selection instruction.

[0146] In one possible implementation, the operating modes of the external device include at least one of the following: a first operating mode, a second operating mode, a third operating mode, and a fourth operating mode; in the first operating mode, the external device acts as a power supplier and does not have data communication requirements; in the second operating mode, the external device acts as a power supplier, has data communication requirements, and acts as a master; in the third operating mode, the external device acts as a power consumer, has data communication requirements, and acts as a slave; in the fourth operating mode, the external device acts as a power consumer and does not have data communication requirements.

[0147] In one possible implementation, the processing module 702 is further configured to control the signal switching module to a first working state in response to a power-off command.

[0148] In one possible implementation, the processing module 702 is further configured to, in response to a power-on command, obtain the remaining power of the energy storage module; if the remaining power is less than a preset power threshold, the control signal switching module is in a first working state; or, if the remaining power is greater than or equal to the preset power threshold, the control signal switching module is in a second working state.

[0149] It should be noted that the module division in Figure 9 is illustrative and represents only one logical functional division. In actual implementation, other division methods are possible. For example, two or more functions can be integrated into a single processing module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0150] Another embodiment of this disclosure provides a mobile terminal, including a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it implements the steps of the control method of the mobile terminal shown in the above embodiments.

[0151] In actual implementation, the receiving module 701 and the processing module 702 can be implemented by the mobile terminal's processor calling computer program code stored in memory. The specific execution process can be found in the description of the mobile terminal's control method section above, and will not be repeated here.

[0152] Another embodiment of this disclosure also provides a computer-readable storage medium, including a non-transitory computer-readable storage medium storing computer instructions that, when executed on a computer, implement the steps of the mobile terminal control method shown in the above embodiments.

[0153] In another embodiment of this disclosure, a computer program product is also provided, which includes computer program instructions that, when executed by a processor, implement the steps of the control method for the mobile terminal shown in the above embodiments.

[0154] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this disclosure is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), etc.

[0155] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A mobile terminal, wherein, The mobile terminal includes: Energy storage module; The interface module includes a power supply terminal and a signal terminal; An input charging module is coupled to the power supply terminal of the energy storage module and the interface module, and the input charging module has the function of charging the energy storage module. An output discharge module is coupled to the power supply terminals of the energy storage module and the interface module, and the output discharge module has the function of charging external devices connected to the interface module; A signal switching module is coupled to the signal terminal of the interface module, the input charging module, and the output discharging module; the signal switching module is used to connect the signal path between the input charging module and the signal terminal of the interface module in a first working state, or to connect the signal path between the output discharging module and the signal terminal of the interface module in a second working state. The control module is coupled to the input charging module, the output discharging module, and the signal switching module; the control module is configured to: Obtain the power role and data communication requirement identification results of the external device; The operating state of the signal switching module is controlled based on the power role of the external device. Based on the data communication requirement identification result, it is determined whether to conduct data communication with the external device.

2. The mobile terminal according to claim 1, wherein, The interface module's signal terminals include a configuration signal terminal and a data signal terminal; The signal switching module includes: First signal switching submodule; the first end of the first signal switching submodule is coupled to the configuration signal end of the interface module, the second end of the first signal switching submodule is coupled to the configuration signal end of the input charging module, the third end of the first signal switching submodule is coupled to the configuration signal end of the output discharging module, and the control end of the first signal switching submodule is coupled to the control module. The second signal switching submodule has a first terminal connected to the data signal terminal of the interface module, a second terminal connected to the data signal terminal of the input charging module, a third terminal connected to the data signal terminal of the output discharging module, and a control terminal connected to the control module.

3. The mobile terminal according to claim 2, wherein, In the first working state, the first terminal of the first signal switching submodule and the second terminal of the first signal switching submodule are connected, and the first terminal of the second signal switching submodule and the second terminal of the second signal switching submodule are connected. In the second operating state, the first terminal of the first signal switching submodule and the third terminal of the first signal switching submodule are connected, and the first terminal of the second signal switching submodule and the third terminal of the second signal switching submodule are connected.

4. The mobile terminal according to any one of claims 1-3, wherein, The control module is configured to control the operating state of the signal switching module based on the power role of the external device, including: When the external device acts as the power supplier, the signal switching module is controlled to operate in the first working state.

5. The mobile terminal according to any one of claims 1-4, wherein, The input charging module also has the function of charging the external device based on a non-fast charging protocol; The control module is configured to control the operating state of the signal switching module based on the power role of the external device, and further includes: When the external device is the power consumer, and since the external device does not support fast charging protocols, the signal switching module is controlled to be in the first working state.

6. The mobile terminal according to any one of claims 1-3, wherein, The control module is configured to control the operating state of the signal switching module based on the power role of the external device, including: When the external device is the power consumer, the signal switching module is controlled to operate in a second state.

7. The mobile terminal according to claim 6, wherein, The output discharge module has the function of charging the external device based on a non-fast charging protocol; The control module is configured to, when the external device is a power consumer, control the signal switching module to enter a second operating state, including: When the external device is the power consumer, and the external device supports fast charging protocols, the signal switching module is controlled to be in a second working state.

8. The mobile terminal according to any one of claims 1-7, wherein, The control module is configured to acquire the power role and data communication requirement identification results of the external device, including: Based on the working mode of the external device, the power role and data communication requirements of the external device are identified.

9. The mobile terminal according to claim 8, wherein, The control module is also configured to: Receive the operating mode selection instruction from the external device; Based on the selection command, the operating mode of the external device is determined.

10. The mobile terminal according to claim 9, wherein, The operating modes of the external device include at least one of the following: a first operating mode, a second operating mode, a third operating mode, and a fourth operating mode; In the first working mode, the external device acts as a power supplier and does not have data communication requirements; In the second working mode, the external device acts as the power supplier and has data communication requirements, acting as the data host. In the third working mode, the external device acts as a power consumer and has data communication requirements, acting as a data slave. In the fourth operating mode, the external device acts as a power consumer and does not have data communication requirements.

11. The mobile terminal according to any one of claims 1-10, wherein, The control module is also configured to: In response to a power-off command, the signal switching module is controlled to be in the first working state.

12. The mobile terminal according to any one of claims 1-10, wherein, The control module is also configured to: In response to the power-on command, the remaining power of the energy storage module is obtained; When the remaining battery power is less than a preset battery power threshold, the signal switching module is controlled to be in the first operating state; or... When the remaining power is greater than or equal to a preset power threshold, the signal switching module is controlled to be in the second working state.

13. The mobile terminal according to any one of claims 1-12, wherein, The input charging module is configured as follows: When the signal switching module is in the first working state, the power role of the external device is obtained; When the external device acts as the power supplier, the energy of the external device is used to charge the energy storage module.

14. The mobile terminal according to any one of claims 1-12, wherein, The input charging module is also configured to: When the external device acts as the power supplier, the power of the external device is used to power the control module.

15. The mobile terminal according to any one of claims 1-12, wherein, The input charging module also has the function of charging the external device; The input charging module is also configured to: When the external device acts as the power consumer, the energy stored in the energy storage module is used to charge the external device.

16. The mobile terminal according to any one of claims 1-12, wherein, The input charging module is configured as follows: In response to the external device accessing the interface module via an uplink port role, the port type of the external device is obtained; Based on the port type of the external device, the data communication requirement identification result of the external device is determined; The control module is notified of the data communication requirement identification result of the external device.

17. The mobile terminal according to claim 16, wherein, The input charging module is configured to determine the data communication requirement identification result of the external device based on the port type of the external device, including: If the port type of the external device is a data port type, it is determined that the external device has data communication requirements; or, If the port type of the external device is a non-data port type, it is determined that the external device does not have a data communication requirement.

18. The mobile terminal according to any one of claims 1-12, wherein, The input charging module is configured as follows: In response to the external device accessing the interface module as a downstream port role, the identity of the external device is authenticated, and the authentication result of the external device is obtained; Based on the authentication result of the external device, the data communication requirement identification result of the external device is determined; The control module is notified of the data communication requirement identification result of the external device.

19. The mobile terminal according to claim 18, wherein, The input charging module is configured to determine the data communication requirement identification result of the external device based on the authentication result of the external device, including: If the authentication result indicates that the external device has passed authentication, it is determined that the external device has data communication requirements; or, If the authentication result indicates that the external device has failed authentication, it is determined that the external device does not have a data communication requirement.

20. The mobile terminal according to any one of claims 1-19, wherein, The output discharge module is configured as follows: When the signal switching module is in the second working state, the power role of the external device is obtained; When the external device acts as the power consumer, the energy stored in the energy storage module is used to charge the external device.

21. The mobile terminal according to any one of claims 1-19, wherein, The output discharge module is configured as follows: Based on the port type of the external device, obtain the data communication requirement identification result of the external device; The control module is notified of the data communication requirement identification result of the external device.

22. The mobile terminal according to claim 21, wherein, The output discharge module is configured to determine the data communication requirement identification result of the external device based on the port type of the external device, including: If the port type of the external device is a data port type, it is determined that the external device has data communication requirements; or, If the port type of the external device is a non-data port type, it is determined that the external device does not have a data communication requirement.

23. A control method for a mobile terminal, wherein, The method includes: Obtain the power role and data communication requirement identification results of the external devices connected to the interface module of the mobile terminal; Based on the power role of the external device, the working state of the signal switching module in the mobile terminal is controlled; wherein, the signal switching module is used to connect the signal path between the input charging module and the signal terminal of the interface module in the first working state, or to connect the signal path between the output discharging module and the signal terminal of the interface module in the second working state. Based on the data communication requirement identification result, it is determined whether to conduct data communication with the external device.

24. The method according to claim 23, wherein, The control of the signal switching module's operating state in the mobile terminal based on the power role of the external device includes: When the external device acts as the power supplier, the signal switching module is controlled to operate in the first working state.

25. The method according to claim 23, wherein, The control of the signal switching module's operating state in the mobile terminal based on the power role of the external device includes: When the external device is the power consumer, the signal switching module is controlled to operate in a second state.

26. The method according to any one of claims 23-25, wherein, The input charging module has the function of charging the energy storage module and the function of charging the external device based on a non-fast charging protocol. The control of the signal switching module's operating state in the mobile terminal based on the power role of the external device includes: When the external device is the power consumer, and since the external device does not support fast charging protocols, the signal switching module is controlled to be in the first working state.

27. The method according to claim 25, wherein, The output discharge module has the function of charging the external device based on a non-fast charging protocol; When the external device is the power consumer, controlling the signal switching module to be in a second operating state includes: When the external device is the power consumer, and the external device supports fast charging protocols, the signal switching module is controlled to be in a second working state.

28. The method according to any one of claims 23-27, wherein, The process of obtaining the power role and data communication requirement identification results of the external device accessing the interface module of the mobile terminal includes: Based on the working mode of the external device, the power role and data communication requirements of the external device are identified.

29. The method according to claim 28, wherein, The method further includes: Receive the operating mode selection instruction from the external device; Based on the selection command, the operating mode of the external device is determined.

30. The method according to claim 28, wherein, The operating modes of the external device include at least one of the following: a first operating mode, a second operating mode, a third operating mode, and a fourth operating mode; In the first working mode, the external device acts as a power supplier and does not have data communication requirements; In the second working mode, the external device acts as the power supplier and has data communication requirements, acting as the data host. In the third working mode, the external device acts as a power consumer and has data communication requirements, acting as a data slave. In the fourth operating mode, the external device acts as a power consumer and does not have data communication requirements.

31. The method according to any one of claims 23-30, wherein, The method further includes: In response to a power-off command, the signal switching module is controlled to be in the first working state.

32. The method according to any one of claims 23-30, wherein, The method further includes: In response to the power-on command, the remaining power of the energy storage module is obtained; When the remaining battery power is less than a preset battery power threshold, the signal switching module is controlled to be in the first operating state; or... When the remaining power is greater than or equal to a preset power threshold, the signal switching module is controlled to be in the second working state.

33. A mobile terminal, wherein, Including memory and processor; The memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs the method as described in any one of claims 23-32.

34. A computer program product, wherein, The computer program product includes computing technology program instructions that, when executed by a processor, implement the method as described in any one of claims 23-32.

Citation Information

Patent Citations

  • CN105449731A

  • CN111049202A

  • CN114678936A

  • CN115085331A

  • CN119402584A