CN111338452A - Method and system for simulating accelerated charging of USB flash disk, storage medium and mobile terminal - Google Patents

Method and system for simulating accelerated charging of USB flash disk, storage medium and mobile terminal Download PDF

Info

Publication number
CN111338452A
CN111338452A CN202010080890.7A CN202010080890A CN111338452A CN 111338452 A CN111338452 A CN 111338452A CN 202010080890 A CN202010080890 A CN 202010080890A CN 111338452 A CN111338452 A CN 111338452A
Authority
CN
China
Prior art keywords
memory
mobile terminal
serial bus
universal serial
charging
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
CN202010080890.7A
Other languages
Chinese (zh)
Other versions
CN111338452B (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.)
Shenzhen Shengkewei Electronics Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010080890.7A priority Critical patent/CN111338452B/en
Publication of CN111338452A publication Critical patent/CN111338452A/en
Application granted granted Critical
Publication of CN111338452B publication Critical patent/CN111338452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/0772Physical layout of the record carrier
    • G06K19/07732Physical layout of the record carrier the record carrier having a housing or construction similar to well-known portable memory devices, such as SD cards, USB or memory sticks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method, a system, a storage medium and a mobile terminal for simulating accelerated charging of a USB flash disk. When the mobile terminal is connected to a computer through the universal serial bus, the position of the memory for configuring the required display content is directly connected to the universal serial bus to realize the simulation of the USB flash disk, and simultaneously, when the mobile terminal is in a screen-off state, all parts of the mobile terminal, except the memory, in a working state are stopped, so that the charging speed is accelerated, the charging efficiency of the mobile terminal is improved, and the user experience is enhanced.

Description

Method and system for simulating accelerated charging of USB flash disk, storage medium and mobile terminal
Technical Field
The application relates to the technical field of mobile communication, in particular to a method, a system, a storage medium and a mobile terminal for simulating accelerated charging of a USB flash disk.
Background
Currently, a Universal Serial Bus (USB) interface is widely used in a mobile terminal, and charging is performed through The USB interface, and an OTG (On-The-Go) technology, etc. USB is an external Bus standard for standardizing connection and communication between a computer and an external device. The USB interface has plug and play and hot plug functions. The USB interface can be connected with 127 kinds of peripheral equipment, such as a mouse, a keyboard and the like. USB was introduced in 1996 by a combination of companies such as Intel and the like at the end of 1994, has successfully replaced serial and parallel ports, and has become a necessary interface for computers and a large number of intelligent devices at present. The USB version has gone through many years of development and has now evolved to version 3.0. In the prior art, mobile terminal manufacturers generally simulate a mobile terminal into a U disk when connecting a computer through a USB, and the U disk generally only opens partial folders, such as a photo folder related to the usual photo taking of the mobile terminal, so that a user can conveniently check photos in the mobile terminal on the computer.
Therefore, the present application provides a method, a system, a storage medium, and a mobile terminal for simulating accelerated charging of a usb disk, so as to solve the above problems.
Disclosure of Invention
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating accelerated charging of a USB flash disk, and solves the problem that the charging speed of the mobile terminal is low when the mobile terminal simulates the mobile terminal into the USB flash disk after the mobile terminal is connected with a computer through a universal serial bus.
According to a first aspect of the present application, an embodiment of the present application provides a method for simulating accelerated charging of a usb disk, which is applied to a mobile terminal, where the mobile terminal includes a memory and a register, and the method for simulating accelerated charging of a usb disk includes: when the mobile terminal is connected to a computer through a universal serial bus, acquiring the capacity of a memory; defining an address range of the memory according to the capacity; configuring the memory according to the address range so that the memory is directly connected to a universal serial bus; judging whether the mobile terminal is in a screen-off state or not; and stopping all components of the mobile terminal in the working state except the memory when the mobile terminal is judged to be in the screen-off state.
Further, the method for simulating accelerated charging of the U disk further comprises: and when the mobile terminal is judged to be in a bright screen state, blocking the direct connection of the memory to the universal serial bus.
Further, before the step of acquiring the capacity of the memory when the mobile terminal is connected to the computer through the universal serial bus, the method further comprises: judging whether the mobile terminal is connected to power supply equipment through a universal serial bus, wherein the power supply equipment comprises an adapter and a computer; and when the mobile terminal is judged to be connected to the power supply equipment through the universal serial bus, judging whether the power supply equipment is a computer.
Further, in the step of configuring the memory according to the address range so that the memory is directly connected to the universal serial bus, the address range of the memory is determined by obtaining the address range value mapped by the register corresponding to the memory, and the memory is further configured to be directly connected to the universal serial bus.
According to a second aspect of the present application, an embodiment of the present application provides a system for simulating accelerated charging of a usb disk, which is applied to a mobile terminal, where the mobile terminal includes a memory and a register, and the system for simulating accelerated charging of a usb disk includes: the acquisition module is used for acquiring the capacity of a memory when the mobile terminal is connected to a computer through a universal serial bus; the defining module is used for defining the address range of the memory according to the capacity; the configuration module is used for configuring the memory according to the address range so that the memory is directly connected to a universal serial bus; the screen-off judging module is used for judging whether the mobile terminal is in a screen-off state or not; and the first control module is used for stopping all components of the mobile terminal in a working state except the memory when judging that the mobile terminal is in a screen-off state.
Further, the system for simulating the accelerated charging of the usb flash disk further includes: and the second control module is used for blocking the direct connection of the memory to the universal serial bus when the mobile terminal is judged to be in a bright screen state.
Further, when the distance between the lighting device of the mobile terminal and the obstacle is smaller than a preset distance, the lighting device is controlled to be turned off.
The system for simulating the accelerated charging of the USB flash disk further comprises a first judgment module, a second judgment module and a control module, wherein the first judgment module is used for judging whether the mobile terminal is connected to power supply equipment through a universal serial bus or not, and the power supply equipment comprises an adapter and a computer; and the second judging module is used for judging whether the power supply equipment is a computer or not when the mobile terminal is judged to be connected to the power supply equipment through the universal serial bus.
According to a third aspect of the present application, an embodiment of the present application provides a storage medium having a plurality of instructions stored therein, where the instructions are adapted to be loaded by a processor to perform the method for simulating accelerated charging of a usb flash disk described above.
According to a fourth 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 to store instructions and data, and the processor is used to execute the steps in the method for simulating the accelerated charging of the usb flash disk.
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating accelerated charging of a USB flash disk, when the mobile terminal is connected to a computer through a universal serial bus, the position of a memory for displaying contents is configured to be directly connected to the universal serial bus so as to simulate the USB flash disk, and simultaneously when the mobile terminal is in a screen-off state, all parts of the mobile terminal, except the memory, in a working state are stopped, so that the charging speed is accelerated, the charging efficiency of the mobile terminal is improved, and the user experience is enhanced.
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 schematic flowchart illustrating steps of a method for simulating accelerated charging of a usb disk according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of step S15 shown in fig. 1.
Fig. 3 is a schematic structural diagram of a system for simulating accelerated charging of a usb disk according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of the configuration module shown in fig. 3.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 6 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.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In particular embodiments, the drawings discussed below and the various embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a mobile terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a method for simulating accelerated charging of a usb disk, where the method for simulating accelerated charging of a usb disk is used for a mobile terminal, and includes the following steps.
And step S11, when the mobile terminal is connected to the computer through the universal serial bus, acquiring the capacity of the memory.
In the embodiment of the present application, the capacity of the memory can be measured by the amount of content (e.g., photos, etc.) stored in the computer.
Step S12, defining an address range of the memory according to the capacity.
In the embodiment of the application, a memory comprises a plurality of memory units, and each memory unit can store one byte (addressing by bytes). Each memory location has a number, i.e., address, typically expressed in hexadecimal. The sum of all the storage cells in a memory that can store data is called its storage capacity.
And step S13, configuring the memory according to the address range so as to enable the memory to be directly connected to the universal serial bus.
In the embodiment of the application, the address range of the memory is determined by acquiring the address range value mapped by the register corresponding to the memory, so as to configure the memory to be directly connected to the universal serial bus. The address range value stored in the register may be used to point to a location in the memory, i.e., address, to configure the memory for direct connection to the universal serial bus, so that the computer may directly access the memory and perform a read operation.
And step S14, judging whether the mobile terminal is in a screen-off state.
And step S15, when the mobile terminal is judged to be in the screen-off state, stopping all components of the mobile terminal except the memory which are in the working state.
In the embodiment of the application, when the mobile terminal is in the screen-off state, the mobile terminal is used for simulating the use of a U disk, and all parts of the mobile terminal, except a memory, which are in the working state, such as a central processing unit and an operating memory, are stopped, so that power consumption in the period is reduced, and the charging speed is accelerated.
And step S16, when the mobile terminal is judged to be in a bright screen state, the direct connection of the memory to the universal serial bus is blocked.
In the embodiment of the application, when the mobile terminal is in a bright screen state, which indicates that a user is using, the value in the register is changed to block the direct connection of the memory to the universal serial bus, so that the use experience of the user is improved.
Referring to fig. 2, step S11 includes steps S21 to S22.
And step S21, judging whether the mobile terminal is connected to a power supply device through a universal serial bus, wherein the power supply device comprises an adapter and a computer.
In the embodiment of the application, when the power supply end of the mobile terminal detects the rising edge, the connection to the power supply equipment is determined.
And step S22, when the mobile terminal is judged to be connected to the power supply equipment through the universal serial bus, judging whether the power supply equipment is a computer.
In the embodiment of the application, whether the data is an adapter or a computer is judged through corresponding data detection, the computer is judged when the data is responded, and the adapter is judged if the data is not responded.
Referring to fig. 3, the present embodiment provides a system for simulating accelerated charging of a usb disk, which is applied to a mobile terminal and includes a first determining module 301, a second determining module 302, an obtaining module 303, a defining module 304, a configuring module 305, a screen-off determining module 306, a first control module 307, and a second control module 308.
The first judging module 301 is configured to judge whether the mobile terminal is connected to a power supply device through a universal serial bus, where the power supply device includes an adapter and a computer.
In the embodiment of the application, when the power supply end of the mobile terminal detects the rising edge, the connection to the power supply equipment is determined.
The second determining module 302 is connected to the first determining module 301. The second determining module 302 is configured to determine whether the power supply device is a computer or not when it is determined that the mobile terminal is connected to the power supply device through the usb
The obtaining module 303 is connected to the second determining module 302. The obtaining module 303 is configured to obtain the capacity of the memory when the mobile terminal is connected to the computer through the universal serial bus.
In the embodiment of the present application, the capacity of the memory can be measured by the amount of content (e.g., photos, etc.) stored in the computer.
The defining module 304 is connected with the acquiring module 303. The defining module 304 is configured to define an address range of the memory according to the capacity.
In the embodiment of the application, a memory comprises a plurality of memory units, and each memory unit can store one byte (addressing by bytes). Each memory location has a number, i.e., address, typically expressed in hexadecimal. The sum of all the storage cells in a memory that can store data is called its storage capacity.
The configuration module 305 is connected to the definition module 304. The configuration module 305 configures the memory according to the address range such that the memory is directly connected to the universal serial bus.
In the embodiment of the application, the address range of the memory is determined by acquiring the address range value mapped by the register corresponding to the memory, so as to configure the memory to be directly connected to the universal serial bus. The address range value stored in the register may be used to point to a location in the memory, i.e., address, to configure the memory for direct connection to the universal serial bus, so that the computer may directly access the memory and perform a read operation.
The screen-off judging module 306 is connected to the configuration module 305. The screen-off judging module 306 is configured to judge whether the mobile terminal is in a screen-off state.
The first control module 307 is connected to the screen-off judging module 306. The first control module 307 is configured to stop all components of the mobile terminal in a working state except the memory when it is determined that the mobile terminal is in a screen-off state.
In the embodiment of the application, when the mobile terminal is in the screen-off state, the mobile terminal is used for simulating the use of a U disk, and all parts of the mobile terminal, except a memory, which are in the working state, such as a central processing unit and an operating memory, are stopped, so that power consumption in the period is reduced, and the charging speed is accelerated.
The second control module 308 is connected to the first control module 307. The second control module 308 is configured to block the direct connection of the memory to the universal serial bus when it is determined that the mobile terminal is in a bright screen state.
In the embodiment of the application, when the mobile terminal is in a bright screen state, which indicates that a user is using, the value in the register is changed to block the direct connection of the memory to the universal serial bus, so that the use experience of the user is improved.
Referring to fig. 4, the configuration module 305 includes an acquisition submodule 401 and a configuration submodule 402.
The fetch submodule 401 is configured to fetch an address range value mapped by a register corresponding to the memory to determine an address range of the memory.
The configuration submodule 402 is connected to the acquisition submodule 401. The configuration submodule 402 is configured to configure the memory direct to a universal serial bus.
In the embodiment of the present application, the address range value stored in the register can be used to point to a certain location of the memory, i.e., addressing, thereby configuring the memory to be directly connected to the universal serial bus, so that the computer can directly access the memory and perform a read operation.
Referring to fig. 5, an embodiment of the present application further provides a mobile terminal 500, where the mobile terminal 500 may be a device such as a mobile phone, a tablet, and a computer. As shown in fig. 5, the mobile terminal 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the mobile terminal 500, connects various parts of the entire mobile terminal 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 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
In this embodiment, the mobile terminal 500 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 501 in the mobile terminal 500 loads instructions corresponding to processes of one or more applications into the memory 502 according to the following steps, and the processor 501 runs the applications stored in the memory 502, so as to implement various functions:
when the mobile terminal is connected to a computer through a universal serial bus, acquiring the capacity of a memory;
defining an address range of the memory according to the capacity;
configuring the memory according to the address range so that the memory is directly connected to a universal serial bus;
judging whether the mobile terminal is in a screen-off state or not; and
and when the mobile terminal is judged to be in the screen-off state, stopping all the components of the mobile terminal except the memory, which are in the working state.
Referring to fig. 6, fig. 6 is a specific structural block diagram of a mobile terminal 600 provided in an embodiment of the present application, where the mobile terminal 600 may be used to implement the method for simulating accelerated charging of a usb disk provided in the foregoing embodiment. The mobile terminal 600 may be a mobile phone or a tablet. The mobile terminal 600 includes the following components.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 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 610 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 Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 620 may be used to store software programs and modules, such as program instructions/modules corresponding to the method for simulating the accelerated charging of the usb flash disk in the foregoing embodiments, and the processor 680 executes various functional applications and data processing by executing the software programs and modules stored in the memory 620, that is, functions of the method for simulating the accelerated charging of the usb flash disk. The memory 620 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 620 can further include memory located remotely from the processor 680, which can be connected to the mobile terminal 600 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 630 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 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means 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 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 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 640 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 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 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in FIG. 6, the touch-sensitive surface 631 and the display panel 641 are implemented as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The mobile terminal 600 may also include at least one sensor 650, 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 641 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 641 and/or the backlight when the mobile terminal 600 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 in the mobile terminal 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 may provide an audio interface between a user and the mobile terminal 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 600.
The mobile terminal 600, which can assist the user in e-mail, web browsing, and streaming media access, etc., provides the user with wireless broadband internet access through the transmission module 670 (e.g., a Wi-Fi module). Although fig. 6 shows the transmission module 670, it is understood that it does not belong to the essential constitution of the mobile terminal 600 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 680 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the mobile phone. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The mobile terminal 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 680 through a power management system that may enable management of charging, discharging, and power consumption. The power supply 690 may also include any component including 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 600 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail 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:
when the mobile terminal is connected to a computer through a universal serial bus, acquiring the capacity of a memory;
defining an address range of the memory according to the capacity;
configuring the memory according to the address range so that the memory is directly connected to a universal serial bus;
judging whether the mobile terminal is in a screen-off state or not; and
and when the mobile terminal is judged to be in the screen-off state, stopping all the components of the mobile terminal except the memory, which are in the working state.
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 application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for simulating the accelerated charging of the usb flash disk 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 may execute the steps in any method for simulating accelerated charging of a usb disk provided in the embodiments of the present application, beneficial effects that can be achieved by any method for simulating accelerated charging of a usb disk provided in the embodiments of the present application may be achieved, for details, see the foregoing embodiments, and are not described herein again. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating accelerated charging of a USB flash disk, when the mobile terminal is connected to a computer through a universal serial bus, the position of a memory for displaying contents is configured to be directly connected to the universal serial bus so as to simulate the USB flash disk, and simultaneously when the mobile terminal is in a screen-off state, all parts of the mobile terminal, except the memory, in a working state are stopped, so that the charging speed is accelerated, the charging efficiency of the mobile terminal is improved, and the user experience is enhanced.
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 method, the system, the storage medium and the mobile terminal for simulating the accelerated charging of the usb flash disk provided by the embodiment of the present application are introduced in detail above, a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the technical scheme 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 method for simulating accelerated charging of a USB flash disk is applied to a mobile terminal, the mobile terminal comprises a memory and a register, and the method for simulating accelerated charging of the USB flash disk comprises the following steps:
when the mobile terminal is connected to a computer through a universal serial bus, acquiring the capacity of a memory;
defining an address range of the memory according to the capacity;
configuring the memory according to the address range so that the memory is directly connected to a universal serial bus;
judging whether the mobile terminal is in a screen-off state or not; and
and when the mobile terminal is judged to be in the screen-off state, stopping all the components of the mobile terminal except the memory, which are in the working state.
2. The method for simulating accelerated charging of a U disk according to claim 1, wherein the method for simulating accelerated charging of a U disk further comprises:
and when the mobile terminal is judged to be in a bright screen state, blocking the direct connection of the memory to the universal serial bus.
3. The method for simulating accelerated charging of a U disk according to claim 1, wherein before the step of obtaining the capacity of the memory when the mobile terminal is connected to the computer through the universal serial bus, the method further comprises:
judging whether the mobile terminal is connected to power supply equipment through a universal serial bus, wherein the power supply equipment comprises an adapter and a computer; and
and when the mobile terminal is judged to be connected to the power supply equipment through the universal serial bus, judging whether the power supply equipment is a computer.
4. The method of claim 2, wherein in the step of configuring the memory to be directly connected to the universal serial bus according to the address range, the memory is configured to be directly connected to the universal serial bus by obtaining an address range value mapped by a register corresponding to the memory to determine the address range of the memory.
5. A system for simulating accelerated charging of a USB flash disk is applied to a mobile terminal, the mobile terminal comprises a memory and a register, and the system for simulating accelerated charging of the USB flash disk comprises:
the acquisition module is used for acquiring the capacity of a memory when the mobile terminal is connected to a computer through a universal serial bus;
the defining module is used for defining the address range of the memory according to the capacity;
the configuration module is used for configuring the memory according to the address range so that the memory is directly connected to a universal serial bus;
the screen-off judging module is used for judging whether the mobile terminal is in a screen-off state or not; and
and the first control module is used for stopping all components of the mobile terminal in a working state except the memory when judging that the mobile terminal is in a screen-off state.
6. The system for simulating accelerated charging of a U disk of claim 5, wherein the system for simulating accelerated charging of a U disk further comprises:
and the second control module is used for blocking the direct connection of the memory to the universal serial bus when the mobile terminal is judged to be in a bright screen state.
7. The system for simulating accelerated charging of a U disk of claim 5, wherein the system for simulating accelerated charging of a U disk further comprises:
the first judging module is used for judging whether the mobile terminal is connected to power supply equipment through a universal serial bus, and the power supply equipment comprises an adapter and a computer; and
and the second judging module is used for judging whether the power supply equipment is a computer or not when the mobile terminal is judged to be connected to the power supply equipment through the universal serial bus.
8. The system for simulating accelerated USB flash disk charging of claim 6, wherein the configuration module comprises:
the acquisition submodule is used for acquiring the address range value mapped by the register corresponding to the memory to determine the address range of the memory; and
and the configuration submodule is used for configuring the direct connection of the memory to the universal serial bus.
9. A storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of simulating accelerated usb disk charging of any one of claims 1 to 4.
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 method for simulating accelerated USB flash drive charging according to any one of claims 1 to 4.
CN202010080890.7A 2020-02-05 2020-02-05 Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk Active CN111338452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010080890.7A CN111338452B (en) 2020-02-05 2020-02-05 Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010080890.7A CN111338452B (en) 2020-02-05 2020-02-05 Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk

Publications (2)

Publication Number Publication Date
CN111338452A true CN111338452A (en) 2020-06-26
CN111338452B CN111338452B (en) 2023-08-18

Family

ID=71181464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010080890.7A Active CN111338452B (en) 2020-02-05 2020-02-05 Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk

Country Status (1)

Country Link
CN (1) CN111338452B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853970A (en) * 2010-06-21 2010-10-06 华为终端有限公司 Method and device for charging through universal serial bus (USB) interface
KR20140077349A (en) * 2012-12-14 2014-06-24 한국산업기술대학교산학협력단 Usb memory for mobile phone
CN106684967A (en) * 2016-11-29 2017-05-17 维沃移动通信有限公司 Charging method for mobile terminal and mobile terminal
CN108092360A (en) * 2017-12-25 2018-05-29 深圳市汉普电子技术开发有限公司 Control mobile terminal charging current method, apparatus and computer readable storage medium
US20180210526A1 (en) * 2017-01-26 2018-07-26 Intel Corporation Selectively controlling power to a connector port
CN108762467A (en) * 2018-05-10 2018-11-06 Oppo广东移动通信有限公司 Application processing method, device, electronic equipment and computer readable storage medium
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853970A (en) * 2010-06-21 2010-10-06 华为终端有限公司 Method and device for charging through universal serial bus (USB) interface
KR20140077349A (en) * 2012-12-14 2014-06-24 한국산업기술대학교산학협력단 Usb memory for mobile phone
CN106684967A (en) * 2016-11-29 2017-05-17 维沃移动通信有限公司 Charging method for mobile terminal and mobile terminal
US20180210526A1 (en) * 2017-01-26 2018-07-26 Intel Corporation Selectively controlling power to a connector port
CN108092360A (en) * 2017-12-25 2018-05-29 深圳市汉普电子技术开发有限公司 Control mobile terminal charging current method, apparatus and computer readable storage medium
CN108762467A (en) * 2018-05-10 2018-11-06 Oppo广东移动通信有限公司 Application processing method, device, electronic equipment and computer readable storage medium
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马文健;: "手持移动终端充电方案" *

Also Published As

Publication number Publication date
CN111338452B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN111277991B (en) Operator name display method and device, mobile terminal and storage medium
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
EP3671451A1 (en) Method of automatically releasing resource occupied by background process of terminal, storage medium and terminal
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
EP3344003B1 (en) Communication method and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN111045737B (en) Equipment identifier acquisition method, device, terminal equipment and storage medium
CN111104186A (en) Bluetooth configuration file loading method and device, storage medium and terminal equipment
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
CN111338452B (en) Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN111262636B (en) Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN112243269B (en) Method and device for downloading data and mobile terminal
CN105988801B (en) Method and device for displaying annotation information
CN112367701B (en) Mobile terminal control method, device, storage medium and mobile terminal
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111277642B (en) Method and device for enhancing information transmission speed, storage medium and mobile terminal
CN112491562B (en) Communication control method and device and mobile terminal
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN111163509B (en) Power saving display method and device, storage medium and mobile terminal
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20230724

Address after: 518000 5th floor, building a, Diaoyutai Industrial Zone, Gaofeng community, Dalang street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen shengkewei Electronics Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Applicant before: TCL mobile communication technology (Ningbo) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant