CN112491562A - Communication control method and device and mobile terminal - Google Patents

Communication control method and device and mobile terminal Download PDF

Info

Publication number
CN112491562A
CN112491562A CN202011293285.4A CN202011293285A CN112491562A CN 112491562 A CN112491562 A CN 112491562A CN 202011293285 A CN202011293285 A CN 202011293285A CN 112491562 A CN112491562 A CN 112491562A
Authority
CN
China
Prior art keywords
communication
mobile terminal
rate
state
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011293285.4A
Other languages
Chinese (zh)
Other versions
CN112491562B (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011293285.4A priority Critical patent/CN112491562B/en
Publication of CN112491562A publication Critical patent/CN112491562A/en
Application granted granted Critical
Publication of CN112491562B publication Critical patent/CN112491562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Abstract

The application provides a communication control method, a communication control device and a mobile terminal, wherein the communication control method is used for communication between the mobile terminal and OTG equipment, and the method comprises the following steps: the method comprises the steps of obtaining a communication rate between a mobile terminal and the OTG equipment, judging whether the communication rate is greater than a preset rate threshold, and controlling a switch to be in a disconnection state when the communication rate is judged to be greater than the preset rate threshold so as to stop the mobile terminal from supplying power to the OTG equipment, wherein the switch is respectively connected with the mobile terminal and the OTG equipment. According to the method, when high-speed communication is carried out between the mobile terminal and the OTG equipment, whether the switch needs to be disconnected or not is controlled by judging the communication rate, so that whether the mobile terminal needs to stop supplying power to the OTG equipment or not is determined, the influence of voltage and current fluctuation on the communication process in the charging process is eliminated, and the stability of the high-speed communication process can be further ensured.

Description

Communication control method and device and mobile terminal
Technical Field
The application relates to the technical field of mobile terminals, in particular to a communication control method and device and a mobile terminal.
Background
With the development of science and technology, mobile terminals such as smart phones, tablet computers or other portable products have become the centers of personal information, the mobile terminals are more and more powerful in function, and the OTG function also becomes a basic requirement. OTG is an english abbreviation of On The Go, a technology developed and widely used in recent years. The OTG function is to directly connect the mobile terminal to an external device such as a usb disk, a card reader, or a camera for data exchange without using a computer as a relay.
At present, after the OTG device is connected to the mobile terminal, the mobile terminal can automatically supply power to the OTG device. When the mobile terminal and the OTG device perform critical operations, such as data exchange, a large amount of data may exist on the data line connecting the mobile terminal and the OTG device for high-speed transmission, and therefore it is necessary to keep the current and voltage on the data line stable. However, in the process of supplying power to the OTG device by the mobile terminal, a certain voltage drop may exist in the data line due to the internal resistance of the data line itself. Accordingly, the current on the data line also fluctuates to some extent. Voltage and current fluctuations generated in the charging process may interfere with stability of data transmission between the mobile terminal and the OTG device, that is, affect stability of a communication process between the mobile terminal and the OTG device.
In view of this, how to solve the problem that the current and voltage fluctuation affects the stability of the communication process in the charging process between the existing mobile terminal and the OTG device becomes an important issue for related technicians and researchers.
Disclosure of Invention
The embodiment of the application provides a communication control method, a communication control device and a mobile terminal, and aims to solve the problem that the stability of a communication process is affected by current and voltage fluctuation in the charging process between the mobile terminal and an OTG device.
According to a first aspect of the present application, an embodiment of the present application provides a communication control method, used for communication between a mobile terminal and an OTG device, where the communication control method includes: the method comprises the steps of obtaining a communication rate between a mobile terminal and OTG equipment, and judging whether the communication rate is greater than a preset rate threshold. And when the communication rate is judged to be greater than the preset rate threshold, controlling a switch to be in a disconnected state so as to stop the mobile terminal from supplying power to the OTG equipment. Wherein the switch is respectively connected with the mobile terminal and the OTG equipment. When the mobile terminal and the OTG equipment pass at a high speed, the switch is controlled to be in a disconnected state to stop the mobile terminal from supplying power to the OTG equipment, so that the influence of voltage and current fluctuation on the communication process in charging is eliminated, and the stability of the high-speed communication process can be ensured.
Optionally, the switch includes a control terminal, and the control terminal is connected to a pin of a baseband chip of the mobile terminal. And the connection and disconnection states of the switch are determined according to the potential state of the control end.
Optionally, in the step of determining that the communication rate is greater than the preset rate threshold, the method further includes: the method comprises the steps of obtaining a potential state of a switch control end, and storing the potential state as a first state.
Optionally, after the step of controlling a switch to be in an off state, the communication rate between the mobile terminal and the OTG device is obtained at intervals, and it is determined whether the communication rate is greater than a preset rate threshold. And when the communication speed is judged to be less than or equal to the preset speed threshold, acquiring the first state, and setting the control end of the switch to be in the first state.
Optionally, when it is determined that the communication rate is less than or equal to the preset rate threshold, the electric quantity of the OTG device is obtained, and it is determined whether the electric quantity of the OTG device is greater than a preset electric quantity threshold. And when the electric quantity of the OTG equipment is judged to be larger than the preset electric quantity threshold, controlling the switch to be in a disconnection state.
According to a second aspect of the present application, an embodiment of the present application provides a communication control apparatus, which is used for communication between a mobile terminal and an OTG device. The communication control apparatus includes: the first rate acquisition module is used for acquiring the communication rate between the mobile terminal and the OTG equipment; the first rate judging module is used for judging whether the communication rate is greater than a preset rate threshold or not; the first switch control module is used for controlling a switch to be in a disconnection state when the communication rate is judged to be greater than the preset rate threshold so as to stop the mobile terminal from supplying power to the OTG equipment; wherein the switch is respectively connected with the mobile terminal and the OTG equipment.
Optionally, the first potential acquiring module is configured to acquire a potential state of the control end; and the state storage module is used for storing the potential state as a first state.
Optionally, the second rate obtaining module is configured to obtain the communication rate at intervals after the switch is controlled to be in the off state; the second rate judging module is used for judging whether the communication rate is greater than the preset rate threshold; and the second electric potential acquisition module is used for acquiring the first state when judging that the communication speed is less than or equal to the preset speed threshold.
Optionally, the potential setting module is configured to set the control end to the first state; the electric quantity obtaining module is used for obtaining the electric quantity of the OTG equipment when the communication rate is judged to be less than or equal to the preset rate threshold; the electric quantity judging module is used for judging whether the electric quantity of the OTG equipment is greater than a preset electric quantity threshold or not; and the second switch control module is used for controlling the switch to be in a disconnection state when the electric quantity of the OTG equipment is judged to be larger than the preset electric quantity threshold.
According to a third aspect of the present application, an embodiment of the present application provides a mobile terminal, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the communication control method.
The embodiment of the application provides a communication control method, a communication control device and a mobile terminal. According to the method, when high-speed communication is carried out between the mobile terminal and the OTG equipment, whether the switch needs to be disconnected or not is controlled by judging the communication rate, so that whether the mobile terminal needs to stop supplying power to the OTG equipment or not is determined, the influence of voltage and current fluctuation on the communication process in the charging process is eliminated, and the stability of the high-speed communication process can be further ensured.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a communication control method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a communication control apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that an execution main body of the communication control method in the embodiment of the present application may be a mobile terminal device such as a smart phone and a tablet computer. Currently, many mobile terminals have an OTG function, and the adoption of the OTG technology can enable the device to realize data exchange between the mobile terminal and the OTG device without a host.
Specifically, please refer to fig. 1 to 4, in which: fig. 1 is a schematic flowchart of a communication control method according to an embodiment of the present application; fig. 2 is a schematic structural diagram of a communication control apparatus according to an embodiment of the present application; fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application; fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Referring to fig. 1, as shown in the figure, a communication control method according to an embodiment of the present disclosure may include the following steps:
in step S101, a communication rate between a mobile terminal (not shown in the figure) and an OTG device (not shown in the figure) is acquired. Specifically, the change of the data volume per second in a communication cache between the mobile terminal and the OTG device is detected, and the data volume per second is changed into the communication rate between the mobile terminal and the OTG device.
In step S102, it is determined whether the communication rate is greater than a preset rate threshold. Specifically, the acquired communication rate is compared with a preset rate threshold and a judgment is made. And when the communication rate is judged to be greater than the preset rate threshold, executing step S103.
In step S103, a switch is controlled to be in an off state to stop the mobile terminal from supplying power to the OTG device. Wherein, the switch is connected with the mobile terminal and the OTG equipment respectively. The switch comprises a control end, and the control end is connected to a pin of a baseband chip of the mobile terminal.
In particular, the baseband chip is used to synthesize a baseband signal to be transmitted or decode a received baseband signal. The baseband chip is generally divided into five parts: a CPU (Central Processing Unit) processor, a channel encoder, a digital signal processor, a modem and an interface module. The interface module may include a USB (Universal Serial Bus) interface.
The mobile terminal is connected with a USB plug at one end of the OTG data line through a USB interface of the mobile terminal, and the other end of the OTG data line is connected to the OTG equipment. The USB interface of the mobile terminal and the USB plug of the OTG data line connected thereto generally have 5 pins, which are: v for power supplybusPin and Data for communication-(negative electrode of Data line) pin and Data+A (data line anode) pin, a pin for supporting the OTG function (i.e., an ID pin), and a GND pin for grounding.
In step S103, the control terminal of the switch may be connected to the ID pin of the USB interface of the mobile terminal. The on and off states of the switch can be determined by the potential state of the switch control terminal. For example, when the control terminal is in a low potential state, the switch is in an off state, and the mobile terminal prohibits power supply to the OTG device; when the control end is in a high potential state, the switch is in a connected state, and the mobile terminal supplies power to the OTG equipment.
After step S102, when it is determined that the communication rate is greater than the preset rate threshold, step S104 and step S105 may be executed simultaneously, that is, the potential state of the switch control terminal is acquired and stored as the first state. The two steps aim to record and store the potential state of the switch control end as a first state when the communication speed is judged to be greater than the preset speed threshold.
In step S106, that is, after the switch is turned off due to the high-speed communication, the communication rate between the mobile terminal and the OTG device may be obtained at intervals, and then step S107 is performed, that is, it is determined whether the communication rate is greater than a preset rate threshold. When the communication speed is judged to be greater than a preset speed threshold, maintaining the disconnection state of the switch; when the communication rate is determined to be less than or equal to the preset rate threshold, step S108 is performed.
In step S108, the first state stored in step S105 is acquired, and the control terminal of the switch is set to the first state. Step S108 is performed for the purpose of: and after the high-speed communication between the mobile terminal and the OTG equipment is finished, the switch is restored to the state before the high-speed communication.
Referring to fig. 1, as shown in the figure, the flow of the communication control method according to the embodiment of the present application may further include the following steps:
in step S102, it is determined whether the communication rate is greater than a preset rate threshold. Specifically, the acquired communication rate is compared with a preset rate threshold and a judgment is made. And when the communication rate is judged to be less than or equal to the preset rate threshold, executing the steps S110 to S112.
And after step S107, when it is determined that the communication rate is less than or equal to the preset rate threshold, performing steps S110 to S112.
In step S110, the power of the OTG device is acquired.
In step S111, it is determined whether the electric quantity of the OTG is smaller than a preset electric quantity threshold. And when the electric quantity of the OTG equipment is judged to be smaller than the preset electric quantity threshold, executing step S112, namely controlling the switch to be in a connected state, and at the moment, the mobile terminal can start to supply power to the OTG equipment.
Specifically, the on-state or off-state of the switch is not only related to the communication rate between the mobile terminal and the OTG device, but also controlled by the power of the OTG device. When the mobile terminal and the OTG device do not perform high-speed communication or the high-speed communication is already finished, the on and off of the switch is determined by the electric quantity of the OTG device. For example, when the electric quantity of the OTG device is greater than or equal to the preset electric quantity threshold, the electric potential of the control end of the switch is a low electric potential, the switch is in a disconnected state, and at this time, the mobile terminal does not supply power to the OTG device; when the electric quantity of the OTG equipment is smaller than the preset electric quantity threshold, the electric potential of the switch control end is a high electric potential, the switch is in a connected state, and at the moment, the mobile terminal can supply power to the OTG equipment.
As described above, in the embodiment of the present application, a switch is disposed between the mobile terminal and the OTG device, and when the communication rate is determined to be greater than the preset rate threshold during the high-speed communication between the mobile terminal and the OTG device, the switch is controlled to be in the off state to stop the mobile terminal from supplying power to the OTG device, so that the influence of voltage and current fluctuation on the communication process during the charging process is eliminated, and the stability of the high-speed communication process can be further ensured. Meanwhile, when the mobile terminal and the OTG equipment do not perform high-speed communication or the high-speed communication is finished, the electric quantity of the OTG equipment is obtained and judged, and when the electric quantity of the OTG equipment is judged to be smaller than a preset electric quantity threshold, the switch is switched to a connected state so as to supply power to the OTG equipment through the mobile terminal.
An embodiment of the present application further provides a communication control device based on the communication control method, please refer to fig. 2, which is a schematic structural diagram of the communication control device provided in the embodiment of the present application.
The communication control apparatus 200 may include: the device comprises a first speed acquisition module 201, a first speed judgment module 202, a first switch control module 203, a first potential acquisition module 204 and a state storage module 205.
The first rate obtaining module 201 obtains a communication rate between a mobile terminal (not shown in the figure) and an OTG device (not shown in the figure), the first rate determining module 202 determines whether the communication rate is greater than a preset rate threshold, and when the communication rate is greater than the preset rate threshold, the first switch control module 203 controls a switch arranged between the mobile terminal and the OTG device to be in a disconnection state, so as to stop the mobile terminal from supplying power to the OTG device. Meanwhile, the first potential acquiring module 204 acquires the potential state of the control terminal of the switch before the switch is turned off, and the state storing module 205 stores the potential state as the first state.
Optionally, the communication control apparatus 200 further includes: a second rate acquisition module 206, a second rate judgment module 207, a second potential acquisition module 208, and a potential setting module 209.
After the switch is disconnected due to the high-speed communication between the mobile terminal and the OTG device, the second rate obtaining module 206 obtains the communication rate at intervals, and the second rate determining module 207 determines whether the communication rate is still greater than a preset rate threshold. When the communication rate is judged to be less than or equal to the preset rate threshold, the second potential obtaining module 208 obtains the first state, and sets the potential state of the switch control end to the first state through the potential setting module 209, that is, after the high-speed communication between the mobile terminal and the OTG device is finished, the switch is restored to the state before disconnection.
Optionally, the communication control apparatus 200 further includes: the power control module comprises a power acquisition module 210, a power judgment module 211, and a second switch control module 212.
When the first rate determining module 202 determines that high-speed communication is not performed between the mobile terminal and the OTG device, or when the second rate determining module 207 determines that high-speed communication between the mobile terminal and the OTG device is ended, that is, when it is determined that the communication rate is less than or equal to the preset rate threshold, the electric quantity obtaining module 210 obtains the electric quantity of the OTG device, and the electric quantity determining module 211 determines whether the electric quantity of the OTG device is less than the preset electric quantity threshold. When the electric quantity of the OTG device is judged to be smaller than the preset electric quantity threshold, the second switch control module 212 controls the switch to be in a connected state, and at this time, the mobile terminal may start to supply power to the OTG device.
As described above, in the embodiment of the present application, a switch is disposed between the mobile terminal and the OTG device, and when the first rate determining module 202 determines that the communication rate is greater than the preset rate threshold during high-speed communication between the mobile terminal and the OTG device, the first switch control module 203 controls the switch to be in the off state to stop the mobile terminal from supplying power to the OTG device, so as to eliminate the influence of voltage and current fluctuation during charging on the communication process, and further ensure the stability of the high-speed communication process. Meanwhile, when the mobile terminal and the OTG device do not perform high-speed communication or the high-speed communication is already finished, the electric quantity obtaining module 210 obtains the electric quantity of the OTG device, and when the electric quantity judging module 211 judges that the electric quantity of the OTG device is smaller than the preset electric quantity threshold, the switch is switched to a connected state to supply power to the OTG device through the mobile terminal.
Fig. 3 is a schematic structural diagram of a mobile terminal 300 according to an embodiment of the present application.
As shown, the mobile terminal 300 includes a processor 301 and a memory 302, wherein the processor 301 is electrically connected to the memory 302.
The processor 301 is a control center of the mobile terminal 300, connects various parts of the entire mobile terminal 300 using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the mobile terminal 300 as a whole.
In this embodiment, the mobile terminal 300 is provided with a plurality of memory partitions, where the plurality of memory partitions includes a system partition and a target partition, and the processor 301 in the mobile terminal 300 loads instructions corresponding to processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 runs the application programs stored in the memory 302, so as to implement various functions:
acquiring a communication rate between the mobile terminal 300 and the OTG device;
judging whether the communication rate is greater than a preset rate threshold or not; and
when the communication rate is judged to be greater than the preset rate threshold, controlling a switch to be in a disconnected state so as to stop the mobile terminal 600 from supplying power to the OTG device; wherein the switch is respectively connected with the mobile terminal and the OTG equipment.
Referring to fig. 4, a specific structural diagram of a mobile terminal 400 provided in the embodiment of the present application is shown, where the mobile terminal 400 may be used to implement the communication control method provided in the foregoing embodiment. The mobile terminal 400 may be a mobile phone or a tablet. The mobile terminal 400 includes the following components:
the RF circuit 410 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 410 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 410 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 420 may be used to store software programs and modules, such as program instructions/modules corresponding to the communication control method in the above-described embodiments, and the processor 480 executes various functional applications and data processing, i.e., functions of the communication control method, by executing the software programs and modules stored in the memory 420. The memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 420 may further include memory located remotely from the processor 480, which may be connected to the mobile terminal 400 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 430 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 430 may include a touch-sensitive surface 431 as well as other input devices 432. The touch-sensitive surface 431, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 431 (e.g., operations by a user on or near the touch-sensitive surface 431 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 431 may comprise both a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480. In addition, the touch-sensitive surface 431 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch-sensitive surface 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 440 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 400, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 440 may include a Display panel 441, and optionally, the Display panel 441 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 431 may overlay the display panel 441, and when a touch operation is detected on or near the touch-sensitive surface 431, the touch operation is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although in FIG. 4 the touch sensitive surface 431 and the display panel 441 are two separate components to implement input and output functions, in some embodiments the touch sensitive surface 431 and the display panel 441 may be integrated to implement input and output functions.
The mobile terminal 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 441 and/or a backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 400, detailed descriptions thereof are omitted.
The audio circuit 460, speaker 461, microphone 462 may provide an audio interface between a user and the mobile terminal 400. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electric signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480, and then transmitted to, for example, another terminal via the RF circuit 410, or output to the memory 420 for further processing. The audio circuit 460 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 400.
The mobile terminal 400, which may assist the user in e-mail, web browsing, and streaming media access, etc., through the transmission module 470 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 470, it is understood that it does not belong to the essential constitution of the mobile terminal 400 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 480 is a control center of the mobile terminal 400, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 400 and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the mobile phone. Optionally, processor 480 may include one or more processing cores; in some embodiments, processor 480 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The mobile terminal 400 also includes a power supply 460 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 480 via a power management system that may, in some embodiments, enable management of charging, discharging, and power consumption via the power management system. The power supply 460 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 400 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring the communication rate between the mobile terminal and the OTG equipment;
judging whether the communication rate is greater than a preset rate threshold or not; and
when the communication rate is judged to be greater than the preset rate threshold, controlling a switch to be in a disconnected state so as to stop the mobile terminal from supplying power to the OTG equipment; wherein the switch is connected to the mobile terminal 400 and the OTG device, respectively.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the present embodiment provides a storage medium (not shown in the drawings) having a plurality of instructions stored therein, where the instructions can be loaded by a processor to execute the steps in any one of the communication control methods provided in the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any communication control method provided in the embodiments of the present application, beneficial effects that can be achieved by any communication control method provided in the embodiments of the present application can be achieved, and detailed descriptions thereof are omitted herein for the sake of detail in the foregoing embodiments. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to the communication control method, the communication control device and the mobile terminal, when high-speed communication is carried out between the mobile terminal and the OTG equipment, whether the switch needs to be disconnected or not is controlled by judging the communication rate, so that whether the mobile terminal needs to stop supplying power to the OTG equipment or not is determined, the influence of voltage and current fluctuation on the communication process in the charging process is eliminated, and the stability of the high-speed communication process can be further ensured.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The communication control method, the communication control device, and the mobile terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the embodiments above is only used to help understanding the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A communication control method is used for communication between a mobile terminal and an OTG device, and is characterized in that the method comprises the following steps:
acquiring the communication rate between the mobile terminal and the OTG equipment;
judging whether the communication rate is greater than a preset rate threshold or not; and
when the communication rate is judged to be greater than the preset rate threshold, controlling a switch to be in a disconnected state so as to stop the mobile terminal from supplying power to the OTG equipment; wherein the switch is respectively connected with the mobile terminal and the OTG equipment.
2. The communication control method according to claim 1,
the switch comprises a control end, and the control end is connected with a pin of a baseband chip of the mobile terminal;
the on-off state of the switch is determined according to the potential state of the control end.
3. The communication control method according to claim 2, wherein in the step of determining that the communication rate is greater than the preset rate threshold, the method further comprises:
acquiring the potential state of the control end; and
and storing the potential state of the control end as a first state.
4. The communication control method according to claim 3, wherein after the step of controlling a switch to an off state, the method further comprises:
acquiring the communication rate at intervals;
judging whether the communication rate is greater than the preset rate threshold or not;
when the communication rate is judged to be less than or equal to the preset rate threshold, acquiring the first state; and
and setting the control end to be in the first state.
5. The communication control method according to claim 2 or 4, characterized in that the method further comprises:
when the communication rate is judged to be less than or equal to the preset rate threshold, acquiring the electric quantity of the OTG equipment;
judging whether the electric quantity of the OTG equipment is smaller than a preset electric quantity threshold or not;
and when the electric quantity of the OTG equipment is judged to be smaller than the preset electric quantity threshold, controlling the switch to be in a connected state.
6. A communication control device for communication between a mobile terminal and an OTG (optical transport gateway) device, the device comprising:
a first rate obtaining module, configured to obtain a communication rate between the mobile terminal and the OTG device;
the first rate judging module is used for judging whether the communication rate is greater than a preset rate threshold or not; and
the first switch control module is used for controlling a switch to be in a disconnection state when the communication rate is judged to be greater than the preset rate threshold so as to stop the mobile terminal from supplying power to the OTG equipment; wherein the switch is respectively connected with the mobile terminal and the OTG equipment.
7. The communication control apparatus according to claim 6, characterized in that the apparatus further comprises:
the first potential acquisition module is used for acquiring the potential state of the control end; and
and the state storage module is used for storing the potential state as a first state.
8. The communication control apparatus according to claim 7, characterized in that the apparatus further comprises:
the second rate acquisition module is used for acquiring the communication rate at intervals after the first switch is controlled to be in a disconnection state;
a second rate judgment module, configured to judge whether the communication rate is greater than the preset rate threshold;
the second potential acquisition module is used for acquiring the first state when the communication rate is judged to be less than or equal to the preset rate threshold; and
and the potential setting module is used for setting the control end to be in the first state.
9. The communication control apparatus according to claim 8, characterized in that the apparatus further comprises:
the electric quantity obtaining module is used for obtaining the electric quantity of the OTG equipment when the communication rate is judged to be less than or equal to the preset rate threshold;
the electric quantity judging module is used for judging whether the electric quantity of the OTG equipment is smaller than a preset electric quantity threshold or not; and
and the second switch control module is used for controlling the switch to be in a connected state when the electric quantity of the OTG equipment is judged to be smaller than the preset electric quantity threshold.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the communication control method of any one of claims 1-5.
CN202011293285.4A 2020-11-18 2020-11-18 Communication control method and device and mobile terminal Active CN112491562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011293285.4A CN112491562B (en) 2020-11-18 2020-11-18 Communication control method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011293285.4A CN112491562B (en) 2020-11-18 2020-11-18 Communication control method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN112491562A true CN112491562A (en) 2021-03-12
CN112491562B CN112491562B (en) 2023-05-23

Family

ID=74931705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011293285.4A Active CN112491562B (en) 2020-11-18 2020-11-18 Communication control method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN112491562B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095642A1 (en) * 2004-10-29 2006-05-04 Advanced Micro Devices, Inc. USB on-the-go controller
CN106325463A (en) * 2016-08-16 2017-01-11 Tcl移动通信科技(宁波)有限公司 Power saving control system and power saving control method of USB peripheral
WO2017030387A1 (en) * 2015-08-18 2017-02-23 엘지전자 주식회사 Charging device, method for controlling charging device, and mobile terminal connected to same
CN106786960A (en) * 2017-01-13 2017-05-31 广东欧珀移动通信有限公司 Charge control method, device and terminal
CN106877103A (en) * 2017-01-03 2017-06-20 努比亚技术有限公司 A kind of method and adapter for realizing circuit switching
CN107153456A (en) * 2017-06-20 2017-09-12 深圳市泰衡诺科技有限公司上海分公司 OTG connections control method, OTG connection control devices and electronic equipment
CN107565650A (en) * 2017-09-30 2018-01-09 深圳传音通讯有限公司 Design of Compatibility method and circuit
CN108964789A (en) * 2018-10-16 2018-12-07 Oppo(重庆)智能科技有限公司 Radio frequency interference processing method, device, storage medium and electronic equipment
CN111880635A (en) * 2020-07-24 2020-11-03 青岛海信移动通信技术股份有限公司 Electronic equipment and power supply control method and power supply control system thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095642A1 (en) * 2004-10-29 2006-05-04 Advanced Micro Devices, Inc. USB on-the-go controller
WO2017030387A1 (en) * 2015-08-18 2017-02-23 엘지전자 주식회사 Charging device, method for controlling charging device, and mobile terminal connected to same
CN106325463A (en) * 2016-08-16 2017-01-11 Tcl移动通信科技(宁波)有限公司 Power saving control system and power saving control method of USB peripheral
CN106877103A (en) * 2017-01-03 2017-06-20 努比亚技术有限公司 A kind of method and adapter for realizing circuit switching
CN106786960A (en) * 2017-01-13 2017-05-31 广东欧珀移动通信有限公司 Charge control method, device and terminal
CN107153456A (en) * 2017-06-20 2017-09-12 深圳市泰衡诺科技有限公司上海分公司 OTG connections control method, OTG connection control devices and electronic equipment
CN107565650A (en) * 2017-09-30 2018-01-09 深圳传音通讯有限公司 Design of Compatibility method and circuit
CN108964789A (en) * 2018-10-16 2018-12-07 Oppo(重庆)智能科技有限公司 Radio frequency interference processing method, device, storage medium and electronic equipment
CN111880635A (en) * 2020-07-24 2020-11-03 青岛海信移动通信技术股份有限公司 Electronic equipment and power supply control method and power supply control system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"巨盛高速USB OTG芯片进入量产", 《现代电子技术》 *

Also Published As

Publication number Publication date
CN112491562B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
US11138041B2 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN109687922B (en) Signal monitoring method and device of wireless network, storage medium and mobile terminal
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN110022600B (en) Driving current adjusting method and device, storage medium and mobile terminal
CN111885591A (en) Network connection method, device, storage medium and terminal
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN112367425B (en) Volume adjusting method and device and terminal
CN112491562B (en) Communication control method and device and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN110086508B (en) Voltage adjusting method, system, storage medium and mobile terminal
CN112437421A (en) Bluetooth control method, device, storage medium and mobile terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
US11259222B2 (en) Mobile terminal and method and system for switching and controlling call link of mobile terminal
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN111262636B (en) Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant