Mobile terminal, control method thereof and program product

By designing energy storage modules, interface modules, input charging modules, output discharge modules, signal switching modules and control modules in mobile terminals, the multifunctionality of one interface is realized, and the existing equipment cannot supply power, charge and communicate at the same time. Problem, improving user experience and device portability.

CN119402584APending Publication Date: 2025-02-07ZTE CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411661951.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

Existing independent wireless network hotspot devices cannot use one interface to enable external power supply, charge local machines, and communicate with external devices, and the user experience is poor and the device is not portable enough.

Method used

A mobile terminal is designed, including an energy storage module, an interface module, an input charging module, an output discharge module, a signal switching module and a control module. Through the coordinated work of the signal switching module and the control module, dynamic switching between the interface module and the input charging module or the output discharge module is realized, and corresponding operations are carried out according to the power role and data communication needs of the external equipment.

Benefits of technology

It realizes the power supply to the outside, charging the local unit and data communication with external devices through one interface, which improves the user experience and reduces the size of the device and is easy to carry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402584A_ABST
    Figure CN119402584A_ABST
Patent Text Reader

Abstract

The invention provides a mobile terminal, a control method thereof and a program product. The mobile terminal and the control method thereof are used for achieving the functions that the mobile terminal supplies power to the outside, charges a local machine and carries out data communication with external equipment through an interface. The mobile terminal comprises a signal switching module which is used for conducting a signal path between an input charging module and a signal end of an interface module under the condition of a first working state, or conducting a signal path between an output discharging module and the signal end of the interface module under the condition of a second working state; the control module is coupled with the input charging module, the output discharging module and the signal switching module; the control module is configured to obtain an electric power role of the external device and a data communication demand identification result; the working state of the signal switching module is controlled based on the power role of the external equipment; and determining whether to perform data communication with the external device based on the data communication demand identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a mobile terminal and a control method and program product thereof. Background Art

[0002] Independent wireless network hotspot devices that support network connection (such as WiFi data products) can directly connect to the network without going through other devices, and can be used as wireless network hotspots for other devices. They are also easy to carry and are deeply loved by users. In addition, such devices with large-capacity batteries can power user devices and increase the battery life of user devices. When independent wireless network hotspot devices that support network connection can provide network connection and power user devices, the user experience of such devices can be improved.

[0003] Conventional independent wireless network hotspot devices provide a USB-A interface for charging user devices, and their own charging is achieved through other interfaces (such as type-C interfaces). Since the USB-A interface itself does not have a CC signal, it cannot support the PD fast charging protocol and cannot fast charge certain types of user devices, resulting in a poor user experience. At the same time, the interface connector of the USB-A interface is relatively thick, which is not conducive to the thinning of independent wireless network hotspot devices. In addition, type-C interface adapters are currently popular. When users want to use conventional independent wireless network hotspot devices, they not only need a CC line to charge the machine, but also an AC line to charge the user device, which is not convenient to use.

[0004] Considering the portability of the device and improving the user experience, how to realize external power supply and charging of the local device through an interface on an independent wireless network hotspot device and realize data communication with external devices through this interface is a problem that needs to be solved. Summary of the invention

[0005] The present disclosure provides a mobile terminal and a control method and a program product thereof, which are used to realize the functions of the mobile terminal supplying power to the outside to charge the mobile terminal and performing data communication with external devices through an interface.

[0006] In order to achieve the above technical objectives, the present disclosure adopts the following technical solutions:

[0007] In a first aspect, an embodiment of the present disclosure provides a mobile terminal, including:

[0008] Energy storage module;

[0009] An interface module, including a power supply terminal and a signal terminal;

[0010] An input charging module is coupled to the power supply end of the energy storage module and the interface module, and the input charging module has the function of charging the energy storage module;

[0011] An output discharge module is coupled to the power supply end of the energy storage module and the interface module, and the output discharge module has the function of charging an external device connected to the interface module;

[0012] A signal switching module is coupled to the signal end 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 end of the interface module in the first working state, or to connect the signal path between the output discharging module and the signal end of the interface module in the second working state;

[0013] 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:

[0014] Obtain the power role and data communication demand identification results of external devices;

[0015] Based on the power role of the external device, the control signal switches the working state of the module;

[0016] Based on the data communication requirement identification result, determine whether to perform data communication with the external device.

[0017] The technical solution provided by the present disclosure brings at least the following beneficial effects: a signal switching module is provided between the interface module of the mobile terminal and the input charging module and the output discharging module; the control module of the mobile terminal controls the working state of the signal switching module so that the signal switching module connects the interface module with the control module, and the interface module connects with the input charging module or the output discharging module; the control module obtains the power role of the external device and the data communication demand identification result, controls the working state of the signal switching module based on the power role of the external device, and determines whether to perform data communication with the external device based on the data communication demand identification result, that is, the control module controls the working state of the signal switching module to power the external device or charge the local device, and the control module realizes data communication with the external device. When the user connects the external device to the mobile terminal, there is no need to distinguish whether the interface of the mobile terminal is used for external power supply or charging the local device, and whether it has data communication capability. As long as the interface module of the mobile terminal can be connected, the user's various needs can be met, which is convenient for user operation and can improve the user's use experience. Furthermore, the interface module based on the mobile terminal can realize external power supply, local charging and data communication capabilities. Therefore, when designing the mobile terminal, only one interface can be retained, which is convenient for reducing the size of the mobile terminal, making it easier for users to carry and facilitating the circulation of the mobile terminal in the market.

[0018] In a second aspect, the present disclosure provides a control method for a mobile terminal, the method comprising:

[0019] Obtaining the power role and data communication demand identification result of the external device connected to the interface module of the mobile terminal;

[0020] 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 in the mobile terminal and the signal end of the interface module in the first working state, or to connect the signal path between the output discharging module in the mobile terminal and the signal end of the interface module in the second working state;

[0021] Based on the data communication requirement identification result, determine whether to perform data communication with the external device.

[0022] In a third aspect, the present disclosure provides a mobile terminal, comprising 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 executes any one of the mobile terminal control methods provided in the second aspect above.

[0023] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon. When the computer instructions are executed on a computer, the computer executes any one of the mobile terminal control methods provided in the second aspect.

[0024] In a fifth aspect, the present disclosure provides a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, any one of the mobile terminal control methods provided in the second aspect is implemented.

[0025] For the specific description of the second to fifth aspects and their various implementations in the present disclosure, reference can be made to the detailed description of the first aspect and its various implementations; and for the beneficial effects of the second to fifth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here.

[0026] These and other aspects of the present disclosure will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to provide further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0028] Figure 1 A schematic diagram of the structure of a mobile terminal provided by an embodiment of the present disclosure;

[0029] Figure 2 A schematic diagram of the structure of another mobile terminal provided by an embodiment of the present disclosure;

[0030] Figure 3 A schematic diagram of an application scenario of a control method for a mobile terminal provided by an embodiment of the present disclosure;

[0031] Figure 4 A flowchart of a control method for a mobile terminal provided by an embodiment of the present disclosure;

[0032] Figure 5 A logic diagram of a control method for a mobile terminal provided in an embodiment of the present disclosure Figure 1 ;

[0033] Figure 6 A logic diagram of a control method for a mobile terminal provided in an embodiment of the present disclosure Figure 2 ;

[0034] Figure 7 A logic diagram of a control method for a mobile terminal provided in an embodiment of the present disclosure Figure 3 ;

[0035] Figure 8 A logic diagram of a control method for a mobile terminal provided in an embodiment of the present disclosure Figure 4 ;

[0036] Fig. 9 A schematic diagram of the structure of another mobile terminal provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0038] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and other forms such as the third person singular form "comprises" and the present participle form "comprising" are to be interpreted as open, inclusive, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner.

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

[0040] In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0041] Additionally, the use of “based on” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” one or more stated conditions or values ​​may, in practice, be based on additional conditions or values ​​beyond those stated.

[0042] Independent wireless network hotspot devices that support network connection (such as WiFi data products) can directly connect to the network without going through other devices, and can be used as wireless network hotspots for other devices. They are also easy to carry and are deeply loved by users. In addition, such devices with large-capacity batteries can power user devices and increase the battery life of user devices. When independent wireless network hotspot devices that support network connection can provide network connection and power user devices, the user experience of such devices can be improved.

[0043] Conventional independent wireless network hotspot devices provide a USB-A interface for charging user devices, and their own charging is achieved through other interfaces (such as type-C interfaces). Since the USB-A interface itself does not have a CC signal, it cannot support the PD fast charging protocol and cannot fast charge certain types of user devices, resulting in a poor user experience. At the same time, the interface connector of the USB-A interface is relatively thick, which is not conducive to the thinning of independent wireless network hotspot devices. In addition, type-C interface adapters are currently popular. When users want to use conventional independent wireless network hotspot devices, they not only need a CC line to charge the machine, but also an AC line to charge the user device, which is not convenient to use.

[0044] If two type-C interfaces are set up on an independent wireless network hotspot device to charge the device and supply power to the outside respectively, users cannot clearly distinguish from the appearance whether the two interfaces correspond to external power supply or charging the device. There may be a problem of connecting the wrong interface, which brings a bad user experience.

[0045] Since some users need to connect to the Internet via wired connections, independent wireless network hotspot devices should also have the function of providing Internet access to user devices via wired connections. Common scenarios include: laptops are connected to independent wireless network hotspot devices via CC lines, and then connected to the Internet via independent wireless network hotspot devices; there are also PAD devices without cellular networks, which also need to be connected to independent wireless network hotspot devices via wired connections to connect to the Internet; there are also user devices that are connected to network cards via network cables, and independent wireless network hotspot devices that are connected to network cards via interfaces to provide Internet access to user devices.

[0046] In summary, for the sake of device portability and improving user experience, how to use an interface on an independent wireless network hotspot device to both provide external power for charging the device and achieve data communication with external devices through this interface is a problem that needs to be solved.

[0047] Based on this, the present disclosure provides a mobile terminal, wherein a signal switching module is provided between the interface module and the input charging module and the output discharging module of the mobile terminal, and the control module of the mobile terminal controls the working state of the signal switching module so that the signal switching module connects the interface module with the control module, and the interface module connects with the input charging module or the output discharging module, and the control module obtains the power role of the external device and the data communication demand identification result, controls the working state of the signal switching module based on the power role of the external device, and determines whether to perform data communication with the external device based on the data communication demand identification result, that is, the control module controls the working state of the signal switching module to realize power supply to the external device or charging the local device, and the control module realizes data communication with the external device. When the user connects the external device to the mobile terminal, there is no need to distinguish whether the interface of the mobile terminal is used for external power supply or charging the local device, and whether it has data communication capability. As long as the interface module of the mobile terminal can be connected, various needs of the user can be realized, which is convenient for user operation and can improve the user experience. Furthermore, the interface module based on the mobile terminal can realize external power supply, local charging and data communication capabilities. Therefore, when designing the mobile terminal, only one interface can be retained, which is convenient for reducing the size of the mobile terminal, making it easier for users to carry and facilitating the circulation of the mobile terminal in the market.

[0048] Please refer to Figure 1 , which shows a schematic diagram of the structure of a mobile terminal provided by the present disclosure. Figure 1 As shown, 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 .

[0049] Among them, the input charging module 30 is coupled to the power supply end 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 end of the energy storage module 10 and the interface module 20, and the output discharging module 40 has the function of charging the external device connected to the interface module 20; the signal switching module 50 is coupled to the signal end 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 input charging module 30 and the signal end of the interface module 20 in the first working state, or to connect the signal path between the output discharging module 40 and the signal end of 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.

[0050] In some embodiments, the energy storage module 10 is used to store electric energy when charging the machine and to provide electric energy when supplying power to the outside. In practical applications, the energy storage module 10 is a rechargeable battery, and specifically can be a lithium-ion battery, a lithium polymer battery, a nickel-hydrogen battery, a nickel-cadmium battery, etc. Lithium-ion batteries and lithium polymer batteries are superior in terms of energy density, life, safety, etc., so the energy storage module 10 of the mobile terminal 1 is preferably a lithium-ion battery or a lithium polymer battery.

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

[0052] In some embodiments, Figure 2 As shown, the signal terminal of the interface module 20 includes a configuration signal terminal and a data signal terminal.

[0053] In actual applications, the interface module 20 can specifically be a type-C interface, the configuration signal end of the interface module 20 is the CC1 / CC2 end of the type-C interface, and the data signal end of the interface module 20 is the DP / DM end of the type-C interface.

[0054] When the interface module 20 is a type-C interface, the interface is an interface that complies with the type-C standard, which can be the USB2.0 standard or the USB3.0 standard. The user can connect a charging device such as an adapter to charge the mobile terminal 1 through the type-C interface on the mobile terminal 1, or connect a mobile phone, a phone watch, or other device so that the mobile terminal 1 can power these devices, or connect a computer, a tablet computer, a network card accessory, or other device with data communication requirements for data communication.

[0055] 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 end of the interface module 20, a second end of the first signal switching submodule 501 is coupled to the configuration signal end of the input charging module 30, a third end of the first signal switching submodule 501 is coupled to the configuration signal end of the output discharge module 40, and a control end of the first signal switching submodule 501 is coupled to the control module 60; a second signal switching submodule 502, a first end of the second signal switching submodule 502 is coupled to the data signal end of the interface module 20, a second end of the second signal switching submodule 502 is coupled to the data signal end of the input charging module 30, a third end of the second signal switching submodule 502 is coupled to the data signal end of the output discharge module 40, and a control end of the second signal switching submodule 502 is coupled to the control module 60.

[0056] In some embodiments, in the first working state, the first end of the first signal switching submodule 501 and the second end of the first signal switching submodule 501 are conductive, and the first end of the second signal switching submodule 502 and the second end of the second signal switching submodule 502 are conductive; in the second working state, the first end of the first signal switching submodule 501 and the third end of the first signal switching submodule 501 are conductive, and the first end of the second signal switching submodule 502 and the third end of the second signal switching submodule 502 are conductive.

[0057] In some embodiments, the two submodules of the signal switching module 50 may be hardware switching switches. Generally, the switches of the two submodules of the signal switching module 50 may be connected to the input charging module 30 side by default.

[0058] In some embodiments, the two submodules of the signal switching module 50 may also be directly connected, that is, without actual hardware circuits, and in different working states, they respectively adapt to different working states to release the corresponding bus to a high impedance state to achieve different path conduction.

[0059] 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- signal between the input charging module 30 or the output discharge module 40, and 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 or the output discharge module 40.

[0060] The DP / DM end of the type-C interface is used to implement the QC fast charging protocol and the BC1.2 charging device type detection of the external connection device and USB2.0 data communication. When the external device charges the mobile terminal 1 and the mobile terminal 1 implements functions such as data exchange technology (on-the-go, OTG), USB data communication, etc., 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 implements the function of normal charging for the external device, the control module 60 controls the DP / DM single-pole double-throw switch to connect to the input charging module 30 or the output discharge module 40. When the mobile terminal 1 implements the function of fast charging for the external device, the control module 60 controls the DP / DM single-pole double-throw switch to connect to the output discharge module 40.

[0061] The CC1 / CC2 end of the type-C interface is used to implement type-C plug-in detection, role judgment, and PD fast charging protocol, etc. 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.

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

[0063] In this way, the control module 60 can realize external power supply and local power supply by controlling the working state of the signal switching module 50. At the same time, the control module 60 has the ability to communicate data with external devices. That is to say, the mobile terminal 1 includes the above components, and can realize local power supply, external power supply and data communication with external devices through one interface. Compared with the solution of setting two type-C interfaces on an independent wireless network hotspot device to charge the local device and power the external device respectively, the solution provided by this application does not require users to distinguish whether this interface specifically corresponds to external power supply or local charging. The mobile terminal 1 can realize both, and there is no problem of connecting the wrong interface, and the user experience is better.

[0064] In some embodiments, 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, including: when the power role of the external device is the power supply, controlling the signal switching module 50 to be in the first working state.

[0065] In some embodiments, the input charging module 30 also has the function of charging an external device based on a non-fast charging protocol; 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 also includes: when the power role of the external device is a power user, based on the external device not supporting the fast charging protocol, the control signal switching module 50 is in a first working state.

[0066] In some embodiments, 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, including: when the power role of the external device is a power consumer, controlling the signal switching module 50 to be in the second working state.

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

[0068] In some embodiments, the control module 60 is configured to obtain the power role and data communication requirement identification result of the external device, including: obtaining the power role and data communication requirement identification result of the external device based on the working mode of the external device.

[0069] In some embodiments, the control module 60 is further configured to: receive a selection instruction of the working mode of the external device; and determine the working mode of the external device based on the selection instruction. The working mode of the external device includes at least one of the following: a first working mode, a second working mode, a third working mode, and a fourth working mode; in the first working mode, the power role of the external device is a power supply, and the external device does not have a data communication requirement; in the second working mode, the power role of the external device is a power supply, the external device has a data communication requirement, and the data role is a host; in the third working mode, the power role of the external device is a power user, the external device has a data communication requirement, and the data role is a slave; in the fourth working mode, the power role of the external device is a power user, and the external device does not have a data communication requirement.

[0070] Based on this, the mobile terminal 1 may also include an interaction module, which is used to interact with the user. The control module 60 is coupled to the interaction module, and the control module 60 is also configured to receive a selection instruction of the working mode of the external device sent by the interaction module. For example, the interaction module may be a voice interaction device, which sends a selection instruction of the working mode of the external device to the control module 60 by receiving a voice instruction of the user. For another example, the interaction module may also be a touchpad, a touch screen or a handwriting device, etc., and the user may input a selection instruction of the working mode of the external device to the interaction module by selecting one of the multiple working modes displayed by the interaction module as the working mode of the external device. For another example, the interaction module may also be a button, etc., and the user selects the working mode corresponding to the button by pressing different buttons, and then inputs a selection instruction of the working mode of the external device to the interaction module. The present disclosure does not limit the specific implementation of the interaction module.

[0071] For example, Figure 3As shown, the mobile terminal 1 includes a touch panel, which displays four working modes: "charging mode", "computer mode", "network card mode" and "discharge mode". The user clicks the area corresponding to the "computer mode" on the touch panel, and the control module 60 of the mobile terminal 1 determines the "computer mode" as the working mode of the external device.

[0072] In some embodiments, the control module 60 is further configured to: in response to a shutdown instruction, control the signal switching module 50 to be in the first working state.

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

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

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

[0076] 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: when the power role of the external device is a power user, use the power of the energy storage module 10 to charge the external device.

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

[0078] 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: when the port type of the external device is a data port type, determining that the external device has data communication requirements; or when the port type of the external device is a non-data port type, determining that the external device does not have data communication requirements.

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

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

[0081] In some embodiments, the output discharge module 40 is configured to: when the signal switching module 50 is in the second working state, obtain the power role of the external device; when the power role of the external device is a power user, use the power of the energy storage module 10 to charge the external device. The output discharge module detects the power role of the external device, and when it is detected that the power role of the external device is a power user, the output discharge module of the mobile terminal can directly use the power of the energy storage module to charge the external device.

[0082] In some embodiments, the output discharge module 40 is configured to: obtain the data communication demand 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 demand identification result of the external device.

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

[0084] In some embodiments, the input charging module 30 is a DRP charging module circuit with a mature type-C interface for existing mobile phone products, 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 quickly charges the energy storage module 10 and also outputs the battery path management power VPH_PWR to power the control module 60, ensuring that when the adapter is inserted for use, the control module 60 takes power from the adapter first and does not put the battery in a frequent charging and discharging state.

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

[0086] In some embodiments, the control module 60 can be a chip, a modem processor, a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a programmable logic device (PLD), a microprocessor, a microcontroller or any combination thereof, and can also be other devices with processing functions, such as circuits, devices or software modules, and the embodiments of the present disclosure do not impose any restrictions on this.

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

[0088] In some embodiments, the mobile terminal 1 may also include a communication module for establishing a communication connection with a user device used by a user. The user device used by the user is installed with an application corresponding to the mobile terminal 1. When the user needs to select the working mode of the external device, the user device used by the user displays various working modes through the application, and then the user selects the working mode of the external device on the user device. The user device sends an instruction to select the working mode of the external device to the mobile terminal 1 through the user device. The communication module of the mobile terminal 1 receives the instruction to select 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.

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

[0090] In order to realize the needs of data communication with external devices, external discharge and local charging through one interface, the related technology adopts an independent protocol chip to control the charging circuit and the discharging circuit, and the independent protocol chip cooperates with the main control module to realize the data communication between the external devices. Compared with the scheme adopted in the related technology, the mobile terminal provided by the present application reuses the existing input charging module and output discharging module, and adds a signal switching module for switching the use right of the input charging module and the output discharging module to the interface module. The implementation logic is not complicated, and there is no need to add an independent protocol chip to control the charging circuit and the discharging circuit, so the construction cost is low. The existing equipment can be improved to obtain the mobile terminal provided by the present application, which realizes external discharge, local charging and data communication with external devices through one interface.

[0091] The implementation of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0092] The control method of the mobile terminal provided by the embodiment of the present disclosure may be executed by the control module in the above-mentioned mobile terminal.

[0093] like Figure 4 As shown, an embodiment of the present disclosure provides a control method for a mobile terminal, the method comprising the following steps:

[0094] S101, obtaining a power role and data communication requirement identification result of an external device connected to an interface module of a mobile terminal.

[0095] The data communication demand identification result is used to characterize whether the external device has data communication demand.

[0096] This disclosure provides two implementation solutions:

[0097] The first solution provides two connection modes for the signal switching module. In connection mode 1, the signal switching module is connected to the input charging module, and the signal path between the interface module of the mobile terminal and the input charging module is connected. In connection mode 2, the signal switching module is connected to the output discharge module, and the signal path between the interface module of the mobile terminal and the output discharge module is connected. The user selects different connection modes in this solution, and then the control module of the mobile terminal determines the role and requirements of the external device based on different connection modes and automatically performs corresponding operations.

[0098] In actual applications, the first solution can be called a "dip switch mode". For example, an actual hardware switch can be provided on the mobile terminal, and the user can select one of the two connection modes through this actual hardware switch. Alternatively, a software switch is displayed on the touch panel of the mobile terminal, and the user can select one of the two connection modes by touching the software switch. Alternatively, two connection modes are displayed on the touch panel of the mobile terminal, and the user can directly touch the controls corresponding to different connection modes to select one of them. Alternatively, the user selects one of the two connection modes through an application corresponding to the mobile terminal installed on the user device used by the user. For another example, the on state of the dip switch corresponds to the above-mentioned connection mode 1, and the off state corresponds to the above-mentioned connection mode 2. For another example, the user names the connection mode 1 as "normal mode" and the connection mode 2 as "power bank mode". The user selects "normal mode" or "power bank mode" to select the corresponding connection mode. The embodiments of the present disclosure do not limit the specific implementation of the dip switch.

[0099] The second solution provides multiple working modes for the external device. The user can select the corresponding working mode according to the needs, and the mobile terminal works according to the working mode of the external device.

[0100] In actual applications, the second solution can be called "pop-up working mode method". The mobile terminal displays multiple working modes through the interactive device, or the mobile terminal sends a prompt message to the user device used by the user, instructing the application software corresponding to the mobile terminal installed on the user device to pop up a pop-up window for selecting the working mode, so as to prompt the user to select one of them 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.

[0101] Step S101 may be specifically implemented as follows: based on the working mode of the external device, the control module obtains the power role and data communication demand identification result of the external device.

[0102] In the above second scheme, the control module can also receive a selection instruction of the working mode of the external device; the control module determines the working mode of the external device based on the selection instruction. Wherein, the working mode of the external device includes at least one of the following: the first working mode, the second working mode, the third working mode, and the fourth working mode; in the first working mode, the power role of the external device is the power supply, and the external device does not have data communication requirements; in the second working mode, the power role of the external device is the power supply, the external device has data communication requirements and the data role is the host; in the third working mode, the power role of the external device is the power user, the external device has data communication requirements and the data role is the slave; in the fourth working mode, the power role of the external device is the power user, and the external device does not have data communication requirements.

[0103] S102: Control the working state of a signal switching module in the mobile terminal based on the power role of the external device.

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

[0105] In the case of adopting the first solution, step S102 can be specifically implemented as follows: when the power role of the external device is the power supplier, the control module controls the signal switching module to be in the first working state. When the power role of the external device is the power consumer, the control module controls the signal switching module to be in the second working state.

[0106] In some embodiments, step S102 can also be specifically implemented as follows: when the power role of the external device is the power user, based on the fact that the external device does not support the fast charging protocol, the signal switching module is controlled to be in the first working state. That is, when it is detected that the power role of the external device is the power user and the external device does not support the fast charging protocol, if the signal switching module is originally 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 to the input charging module to perform normal charging on the external device.

[0107] In some embodiments, when the power role of the external device is that of the power consumer, the control module controls the signal switching module to be in the second working state, which can be specifically implemented as follows: when the power role of the external device is that of the power consumer, based on the external device supporting the fast charging protocol, the signal switching module is controlled to be in the second working state. That is, when it is detected that the power role of the external device is that of the power consumer, and the external device supports the fast charging protocol, if the signal switching module is already in the second working state, the output discharge module directly fast charges the external device, or, if the signal switching module is in the first working state, the control module controls the signal switching module to switch to the second working state, and the input charging module is converted to the output discharge module to fast charge the external device.

[0108] Table 1 below shows several common devices that can be connected to mobile terminals:

[0109] Table 1

[0110]

[0111]

[0112]

[0113] In the first scheme, if the connection mode of the signal switching module in the mobile terminal is connection mode 1, 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 achievable functions corresponding to the 1st to 6th types of external devices in Table 1. In connection mode 2, the control module switches the DP / DM single-pole double-throw switch and the CC1 / CC2 single-pole double-throw switch to the output discharge module, and the mobile terminal can support the achievable functions corresponding to the 7th to 8th types of external devices in Table 1.

[0114] In some embodiments, when an external device accesses the interface module in a downstream port role (DFP), the input charging module of the mobile terminal obtains the port type of the external device, and determines the data communication demand identification result of the external device based on the port type of the external device, and then the control module can obtain the data communication demand identification result of the external device at the input charging module.

[0115] Among them, when the port type of the external device is a data port type, the input charging module determines that the external device has data communication requirements; or, when the port type of the external device is a non-data port type, the input charging module determines that the external device does not have data communication requirements.

[0116] In actual applications, the data port type is a data port of the SDP / CDP type, and the non-data port type is a data port other than the SDP / CDP type.

[0117] Similarly, the output discharge module of the mobile terminal can also determine the data communication demand identification result of the external device according to the port type of the external device. Specifically, when the port type of the external device is a data port type, the output discharge module determines that the external device has data communication requirements; or, when the port type of the external device is a non-data port type, the output discharge module determines that the external device does not have data communication requirements. The specific process is similar to that of the input charging module and will not be repeated here.

[0118] In some embodiments, when an external device accesses the interface module in the downlink port role (UFP), the input charging module authenticates the identity of the external device and obtains an authentication result of the external device. The input charging module determines the data communication demand identification result of the external device based on the authentication result of the external device, and then the control module can obtain the data communication demand identification result of the external device at the input charging module.

[0119] In which, when the authentication result indicates that the external device has passed the authentication, the input charging module determines that the external device has data communication requirements; or, when the authentication result indicates that the external device has not passed the authentication, the input charging module determines that the external device does not have data communication requirements.

[0120] In the connection mode of the first solution, the signal switching module is in the first working state, such as Figure 5 As shown, if the input charging module detects that a DFP type external device is connected through the CC signal, it starts the BC1.2 charging device type detection while performing a PD protocol handshake with the external device for input fast charging. When it is detected that the external device connected is an SDP or CDP type (for example, the 4th to 5th types of external devices in Table 1), the input charging module notifies the control module to communicate data with the external device in the data role of the slave (Device). Otherwise (for example, the 1st to 3rd types of external devices in Table 1), only the mobile terminal is input charged, and the external device is quickly charged according to the supported fast charging protocol.

[0121] If the input charging module detects that a UFP type external device is connected through the CC signal, the OTG function of the control module is triggered. The input charging module outputs a normal 5V power supply to power the UFP peripheral. At the same time, the control module reads the ID information of the connected external device as the data role of the host. If the ID is authenticated by the mobile terminal (corresponding to the sixth type of external device in Table 1 above), the USB data communication between the control module and the external device is started. Otherwise, it is determined that the mobile terminal is connected to an ordinary UFP type external device (corresponding to the eighth type of external device in Table 1 above), the control module controls the signal switching module to be in the second working state, the interface module is turned on with the output discharge module, and the fast charging of the external device is started. At the same time, the dip switch automatically returns to the second connection mode (power bank mode).

[0122] In particular, when connecting an external device of the 7th DRP type, if the mobile terminal is pre-configured to charging-only mode (Try.Sink DRP), that is, the external device charges the mobile terminal first, the connected 7th type of external device will also charge the mobile terminal, which does not meet the user's expectations. The user is required to manually turn the dip switch to the power bank mode.

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

[0124] like Figure 6As shown, in the connection mode 2 (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, 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 is started, wherein the PD fast charging protocol has a higher priority than the Qualcomm QC private fast charging protocol of the DP / DM signal. In the power bank mode, if the external device of type 7 to 8 in Table 1 above is connected, the mobile terminal charges the external device. If the external device supports fast charging, the external device is quickly charged. In this way, the power bank function expected by the user can be achieved. If the external device of type 1 to 6 in Table 1 is connected, 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 code to the normal mode.

[0125] If the output discharge module detects that the connected external device is not a UFP type, it means that the connection is a strong Source device. At this time, 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.

[0126] 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; in the fourth working mode, the signal switching module is in the first working state.

[0127] S103: Determine whether to perform data communication with an external device based on the data communication demand identification result.

[0128] In some embodiments, the method further includes: in response to the shutdown instruction, the control module controls the signal switching module to be in a first working state. At this time, the first signal switching submodule and the second signal switching submodule are both connected to the input charging module, so that when connected to an external device such as an adapter or a computer, the mobile terminal can be quickly charged.

[0129] In some embodiments, the method further includes: in response to a power-on instruction, the control module obtains the remaining power of the energy storage module; when 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, when 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.

[0130] like Figure 7As shown, first determine whether the mobile terminal is in the shutdown state. If the mobile terminal is in the shutdown state, 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 switch and DP / DM single-pole double-throw switch connect the input charging module). If the mobile terminal is in the power-on state, it detects whether the battery (energy storage module) in the mobile terminal is less than the preset power (for example, the preset power can be 50% of the total power). If it is detected that the power in the energy storage module is less than the preset power, 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 with the interface module (CC1 / CC2 single-pole double-throw switch and DP / DM single-pole double-throw switch are connected to the input charging module). If it is detected that the battery power is greater than or equal to the preset power, the control module detects the state of the dip switch. If the dip switch is in the 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 with the interface module (CC1 / CC2 single-pole double-throw switch and DP / DM single-pole double-throw switch are connected to the input charging module). If the dip switch is in the 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 discharge module with the interface module (CC1 / CC2 single-pole double-throw switch and DP / DM single-pole double-throw switch are connected to the output discharge module). That is to say, when the mobile terminal has little power when it is turned on, the signal switching module automatically enters the first working state. When the power of the mobile terminal is above the preset threshold after it is turned on, the working state of the signal switching module is the same as the working state selected by the user.

[0131] In actual applications, after the control module controls the signal switching module to be in the second working state based on the power of the mobile terminal, if the user manually switches the dial switch, the control module will also control the signal switching module to switch the working state according to the user's selection.

[0132] In some embodiments, when the external device charges the energy storage module, the control module uses the power of the external device to power the control module via the input charging module. In this way, there will be no conflict between the process of storing power in the energy storage module of the mobile terminal and the process of using power in the control module of the mobile terminal, and the control module of the mobile terminal will not consume additional power in the energy storage module during the charging process of the mobile terminal.

[0133] The mobile terminal connects the signal switching module (CC1 / CC2 single-pole double-throw switch and DP / DM single-pole double-throw switch) to the input charging module by default both in the off state and in the on state. After the mobile terminal changes from the off state to the on state, the control module configures the input charging module to the Try.SRC DRP mode, that is, the power role of the mobile terminal is configured as the power supply, so that the mobile terminal prioritizes the power role of the power supply (Source) to negotiate roles with the connected DRP type external device. For example, when the mobile terminal is connected to the three DRP types of external devices in Table 1 above, namely, the third type (C-port power bank), the fifth type (C-port computer), and the seventh type (mobile phone / PAD, etc.), the power role of the mobile terminal will be negotiated to the power supply, and the power role of the external device will be negotiated to the power user (Sink). The pop-up window (displaying multiple working modes) only occurs when the mobile terminal is negotiated as a Souce. No pop-up window will occur when the mobile terminal is negotiated as a Sink. That is, when the mobile terminal acts as the electricity user and the external device charges the mobile terminal, the mobile terminal will not display multiple working modes. When the mobile terminal acts as the electricity 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, and the mobile terminal then works according to the working mode of the external device.

[0134] When the power role of the connected external device is the power supply, the mobile terminal displays the first working mode, the second working mode, the third working mode and the fourth working mode.

[0135] In actual application, the first working mode can be named charging mode (corresponding to the third type of external device in the above Table 1), the second working mode can be named discharging mode (corresponding to the 7th-8th types of external devices in the above Table 1), the third working mode can be named computer mode (corresponding to the 5th type of external device in the above Table 1), and the fourth working mode can be named network card mode (corresponding to the 6th type of external device in the above Table 1).

[0136] For example, in the second solution, Figure 8As shown, the signal switching module is connected to the input charging module, and the mobile terminal is configured as the Try.src DRP mode, that is, in this mode, the mobile terminal is configured as a dual role port (DRP) mode that prioritizes the power role of the power supplier (Source) to negotiate roles with the connected external device. When an external device is connected to the mobile terminal, the control module determines whether the power role of the connected device is the power user. If the power role of the external device is the power supplier, the mobile terminal determines whether the port type of the external device is SDP or CDP. If so, it is determined that the external device such as a computer (the fourth type of external device in Table 1 above) is connected, and the external device charges the mobile terminal. The mobile terminal communicates with the external device via USB in the data role of the slave. If not, it is determined that the external device such as an adapter (the first to second types of external devices in Table 1 above) is connected, and the mobile terminal is charged according to the required voltage and current. If the power role of the external device is the power user, the mobile terminal displays multiple working modes, and the user selects one of the multiple working modes as the working mode of the external device. When the user connects the third type of external device in Table 1 above to this machine, the user selects the charging mode, the mobile terminal resets the input charging module to the UFP mode, and the external device charges the mobile terminal. When the user connects the fifth type of external device in Table 1 above to this machine, the user selects the computer mode, the mobile terminal resets the input charging module to the UFP mode, the external device charges the mobile terminal, and the mobile terminal establishes USB data communication with the external device enumeration in the data role of the slave. When the user connects the sixth type of external device in Table 1 above to this machine, the user selects the network card mode, the mobile terminal provides ordinary power supply to the external device, and the mobile terminal establishes USB data communication with the external device in the data role of the host. When the user connects the seventh or third type of external device in Table 1 above to this machine, the user selects the discharge mode, the signal switching module switches to connect with the output discharge module, and the mobile terminal charges the external device.

[0137] If the user connects a C-port power bank to a mobile terminal and hopes that the power bank can charge the mobile terminal, the user will select the charging mode. At this time, the control module reconfigures the input charging module to UFP mode (that is, the mobile terminal is the power user), and the power bank then charges the mobile terminal.

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

[0139] 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 acts as the data role of the host and establishes a USB data communication connection with the Ethernet accessory.

[0140] If the user connects the 7th and 8th types of external devices 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.

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

[0142] If the type-C interface of this mobile terminal is connected to a strong SOURCE type external device such as the 1st type (adapter), 2nd type (A-port power bank), 4th type (A-port computer) in the above Table 1, when these three types of external devices are connected to the mobile terminal, the mobile terminal will inevitably be negotiated as the power user, and the mobile terminal will be charged by these three external devices. At the same time, the mobile terminal starts BC1.2 type detection. When it is detected that the connected external device is an SDP type, a USB data connection is established with the external device through the DP / DM end in the data role of a slave.

[0143] It should be understood that the above-mentioned names of "normal mode", "power bank mode", "charging mode", "discharging mode", "computer mode" and "network card mode" are for illustration only, and users can rename the above-mentioned working modes according to their own naming habits.

[0144] Figure 4 The technical solution shown 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, so that the mobile terminal can charge or discharge according to different circuit connection conditions, as well as the data communication needs with the external device, thereby meeting the user's charging and discharging needs and data communication needs for the mobile terminal.

[0145] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. It should be easy to realize that the technical goals in this field, combined with the units and algorithm steps of each example described in the embodiment disclosed in this article, can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technical goals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0146] like Fig. 9 As shown, the embodiment of the present disclosure also provides a mobile terminal, which is used 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 also includes: a transmission module 701 and a processing module 702.

[0147] Among them, the transmission module 701 is used to obtain the power role of the external device of the interface module connected to the mobile terminal and the data communication demand identification result; 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; wherein the signal switching module is used to connect the signal path between the input charging module in the mobile terminal and the signal end of the interface module in the first working state, or to connect the signal path between the output discharge module in the mobile terminal and the signal end of the interface module in the second working state; based on the data communication demand identification result, determine whether to communicate data with the external device.

[0148] In a possible implementation, the processing module 702 is specifically configured to: when the power role of the external device is a power supply, control the signal switching module to be in a first working state.

[0149] In a possible implementation, the processing module 702 is specifically configured to: when the power role of the external device is a power consumer, control the signal switching module to be in the second working state.

[0150] 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 for: when the power role of the external device is the power user, based on the external device not supporting the fast charging protocol, the control signal switching module is in the first working state.

[0151] In one possible implementation, the output discharge module has the function of charging the external device based on a non-fast charging protocol; the processing module 702 is specifically used for: when the power role of the external device is a power user, based on the external device supporting the fast charging protocol, the control signal switching module is in the second working state.

[0152] In a possible implementation, the transmission module 701 is specifically used to obtain the power role and data communication demand identification result of the external device based on the working mode of the external device.

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

[0154] In one possible implementation, the working mode of the external device includes at least one of the following: a first working mode, a second working mode, a third working mode, and a fourth working mode; in the first working mode, the power role of the external device is a power supply, and the external device does not have a data communication requirement; in the second working mode, the power role of the external device is a power supply, the external device has a data communication requirement and the data role is a host; in the third working mode, the power role of the external device is a power user, the external device has a data communication requirement and the data role is a slave; in the fourth working mode, the power role of the external device is a power user, and the external device does not have a data communication requirement.

[0155] In a possible implementation, the processing module 702 is further configured to, in response to a shutdown instruction, control the signal switching module to be in the first working state.

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

[0157] It should be noted that Fig. 9 The division of modules in the example is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules.

[0158] Another embodiment of the present disclosure also 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, the steps of the control method of the mobile terminal shown in the above embodiment are implemented.

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

[0160] Another embodiment of the present disclosure further provides a computer-readable storage medium, on which computer instructions are stored. When the computer instructions are executed on a computer, the steps of the control method of the mobile terminal shown in the above embodiment are implemented.

[0161] In another embodiment of the present disclosure, a computer program product is further provided. The computer program product includes computer program instructions. When the computer program instructions are executed by a processor, the steps of the control method of the mobile terminal shown in the above embodiment are implemented.

[0162] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer execution instructions are loaded and executed on the computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. 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 computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with the medium. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), etc.

[0163] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A mobile terminal, characterized in that: The mobile terminal comprises: Energy storage module; An interface module, including a power supply terminal and a signal terminal; An input charging module, coupled to the energy storage module and the power supply end of the interface module, and the input charging module has the function of charging the energy storage module; An output discharge module, coupled to the energy storage module and the power supply terminal of the interface module, the output discharge module has the function of charging an external device connected to the interface module; a signal switching module coupled to the signal end 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 end of the interface module in a first working state, or to connect the signal path between the output discharging module and the signal end of the interface module in a second working state; A 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: Obtaining the power role and data communication requirement identification result of the external device; Based on the power role of the external device, controlling the working state of the signal switching module; Based on the data communication requirement identification result, determine whether to perform data communication with the external device.

2. The mobile terminal according to claim 1, characterized in that: The signal terminal of the interface module includes a configuration signal terminal and a data signal terminal; The signal switching module comprises: A first signal switching submodule; a first end of the first signal switching submodule is coupled to the configuration signal end of the interface module, a second end of the first signal switching submodule is coupled to the configuration signal end of the input charging module, a third end of the first signal switching submodule is coupled to the configuration signal end of the output discharging module, and a control end of the first signal switching submodule is coupled to the control module; A second signal switching submodule, a first end of the second signal switching submodule is coupled to the data signal end of the interface module, a second end of the second signal switching submodule is coupled to the data signal end of the input charging module, a third end of the second signal switching submodule is coupled to the data signal end of the output discharge module, and a control end of the second signal switching submodule is coupled to the control module.

3. The mobile terminal according to claim 2, characterized in that: In the first working state, the first end of the first signal switching submodule and the second end of the first signal switching submodule are connected, and the first end of the second signal switching submodule and the second end of the second signal switching submodule are connected; In the second working state, the first end of the first signal switching submodule and the third end of the first signal switching submodule are conductively connected, and the first end of the second signal switching submodule and the third end of the second signal switching submodule are conductively connected.

4. The mobile terminal according to claim 1, characterized in that: The control module is configured to control the working state of the signal switching module based on the power role of the external device, including: When the power role of the external device is a power supply, the signal switching module is controlled to be in a first working state.

5. The mobile terminal according to claim 1, characterized in that: 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 working state of the signal switching module based on the power role of the external device, and further includes: In a case where the power role of the external device is a power consumer, based on the fact that the external device does not support the fast charging protocol, the signal switching module is controlled to be in the first working state.

6. The mobile terminal according to claim 1, characterized in that: The control module is configured to control the working state of the signal switching module based on the power role of the external device, including: When the power role of the external device is a power consumer, the signal switching module is controlled to be in a second working state.

7. The mobile terminal according to claim 6, characterized in that: 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 power role of the external device is a power user, control the signal switching module to be in a second working state, including: In the case where the power role of the external device is a power consumer, based on the external device supporting the fast charging protocol, the signal switching module is controlled to be in the second working state.

8. The mobile terminal according to claim 1, characterized in that: The control module is configured to obtain the power role and data communication requirement identification result of the external device, including: Based on the working mode of the external device, the power role and data communication requirement identification result of the external device are obtained.

9. The mobile terminal according to claim 8, characterized in that: The control module is further configured to: Receiving a selection instruction of an operating mode of the external device; Based on the selection instruction, an operating mode of the external device is determined.

10. The mobile terminal according to claim 9, characterized in that: The working mode of the external device includes at least one of the following: a first working mode, a second working mode, a third working mode, and a fourth working mode; In the first working mode, the power role of the external device is a power supply, and the external device has no data communication requirements; In the second working mode, the power role of the external device is a power supplier, the external device has a data communication requirement and the data role is a host; In the third working mode, the power role of the external device is a power user, the external device has a data communication requirement and the data role is a slave; In the fourth working mode, the power role of the external device is a power user, and the external device has no data communication requirements.

11. The mobile terminal according to claim 1, characterized in that: The control module is further configured to: In response to a shutdown instruction, the signal switching module is controlled to be in the first working state.

12. The mobile terminal according to claim 1, characterized in that: The control module is further configured to: In response to a power-on instruction, obtaining a remaining amount of power of the energy storage module; When the remaining power is less than a preset power threshold, controlling the signal switching module to be in the first working 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 claim 1, characterized in that: The input charging module is configured as follows: When the signal switching module is in a first working state, obtaining a power role of the external device; In the case where the power role of the external device is a power supply, the power storage module is charged by using the power of the external device.

14. The mobile terminal according to claim 1, characterized in that: The input charging module is further configured to: In the case that the power role of the external device is a power supply, the control module is powered by the electric energy of the external device.

15. The mobile terminal according to claim 1, characterized in that: The input charging module also has the function of charging the external device; The input charging module is further configured to: In the case where the power role of the external device is an electricity user, the electric energy of the energy storage module is used to charge the external device.

16. The mobile terminal according to claim 1, characterized in that: The input charging module is configured as follows: In response to the external device accessing the interface module in an uplink port role, acquiring a port type of the external device; Determining a data communication requirement identification result of the external device based on the port type of the external device; The control module is notified of a result of identifying the data communication requirement of the external device.

17. The mobile terminal according to claim 16, characterized in that: The input charging module is configured to determine a data communication requirement identification result of the external device based on a port type of the external device, including: In the case where the port type of the external device is a data port type, determining that the external device has a data communication requirement; or, In a case where the port type of the external device is a non-data port type, it is determined that the external device has no data communication requirement.

18. The mobile terminal according to claim 1, characterized in that: The input charging module is configured as follows: In response to the external device accessing the interface module in the role of a downstream port, authenticating the identity of the external device to obtain an authentication result of the external device; Determining a data communication requirement identification result of the external device based on the authentication result of the external device; The control module is notified of a result of identifying the data communication requirement of the external device.

19. The mobile terminal according to claim 18, characterized in that: The input charging module is configured to determine a data communication requirement identification result of the external device based on an authentication result of the external device, including: If the authentication result indicates that the external device has passed the authentication, determining that the external device has a data communication requirement; or, When the authentication result indicates that the external device has not passed the authentication, it is determined that the external device has no data communication requirement.

20. The mobile terminal according to claim 1, characterized in that: The output discharge module is configured as follows: When the signal switching module is in the second working state, obtaining the power role of the external device; In the case where the power role of the external device is an electricity user, the electric energy of the energy storage module is used to charge the external device.

21. The mobile terminal according to claim 1, characterized in that: The output discharge module is configured as follows: Based on the port type of the external device, obtaining a data communication demand identification result of the external device; The control module is notified of a result of identifying the data communication requirement of the external device.

22. The mobile terminal according to claim 21, characterized in that: The output discharge module is configured to determine a data communication requirement identification result of the external device based on the port type of the external device, including: In the case where the port type of the external device is a data port type, determining that the external device has a data communication requirement; or, In a case where the port type of the external device is a non-data port type, it is determined that the external device has no data communication requirement.

23. A control method for a mobile terminal, characterized in that: The method comprises: Obtaining a power role and data communication requirement identification result of an external device connected to the interface module of the mobile terminal; Based on the power role of the external device, control the working state of the signal switching module in the mobile terminal; wherein the signal switching module is used to connect the signal path between the input charging module in the mobile terminal and the signal end of the interface module in the first working state, or to connect the signal path between the output discharging module in the mobile terminal and the signal end of the interface module in the second working state; Based on the data communication requirement identification result, determine whether to perform data communication with the external device.

24. The method of claim 23, wherein: The controlling the working state of the signal switching module in the mobile terminal based on the power role of the external device includes: When the power role of the external device is a power supply, the signal switching module is controlled to be in a first working state.

25. The method according to claim 23, characterized in that The controlling the working state of the signal switching module in the mobile terminal based on the power role of the external device includes: When the power role of the external device is a power consumer, the signal switching module is controlled to be in a second working state.

26. The method according to claim 23, characterized in that The input charging module has a function of charging the energy storage module and a function of charging the external device based on a non-fast charging protocol; The controlling the working state of the signal switching module in the mobile terminal based on the power role of the external device includes: In the case where the power role of the external device is an electricity consumer, based on the fact that the external device does not support the fast charging protocol, the signal switching module is controlled to be in the first working state.

27. The method according to claim 25, characterized in that The output discharge module has the function of charging the external device based on a non-fast charging protocol; When the power role of the external device is a power user, controlling the signal switching module to be in the second working state includes: In the case where the power role of the external device is a power consumer, based on the external device supporting the fast charging protocol, the signal switching module is controlled to be in the second working state.

28. The method according to claim 23, characterized in that The obtaining of the power role and data communication requirement identification result of the external device connected to the interface module of the mobile terminal includes: Based on the working mode of the external device, the power role and data communication requirement identification result of the external device are obtained.

29. The method according to claim 28, characterized in that The method further comprises: Receiving a selection instruction of an operating mode of the external device; Based on the selection instruction, an operating mode of the external device is determined.

30. The method according to claim 28, characterized in that The working mode of the external device includes at least one of the following: a first working mode, a second working mode, a third working mode, and a fourth working mode; In the first working mode, the power role of the external device is a power supply, and the external device has no data communication requirements; In the second working mode, the power role of the external device is a power supplier, the external device has a data communication requirement and the data role is a host; In the third working mode, the power role of the external device is a power user, the external device has a data communication requirement and the data role is a slave; In the fourth working mode, the power role of the external device is a power consumer, and the external device has no data communication requirements.

31. The method according to claim 23, characterized in that The method further comprises: In response to a shutdown instruction, the signal switching module is controlled to be in the first working state.

32. The method according to claim 23, characterized in that The method further comprises: In response to a power-on instruction, obtaining a remaining amount of power of the energy storage module; When the remaining power is less than a preset power threshold, controlling the signal switching module to be in the first working 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, characterized in that: It comprises 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 the method described in any one of claims 23-32.

34. A computer program product, characterized in that The computer program product comprises computer program instructions, which implement the method according to any one of claims 23 to 32 when executed by a processor.

Citation Information

Cited By

  • Mobile terminal and control method therefor, and program product

    WO2026108494A1