CN111338452B - Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk - Google Patents

Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk Download PDF

Info

Publication number
CN111338452B
CN111338452B CN202010080890.7A CN202010080890A CN111338452B CN 111338452 B CN111338452 B CN 111338452B CN 202010080890 A CN202010080890 A CN 202010080890A CN 111338452 B CN111338452 B CN 111338452B
Authority
CN
China
Prior art keywords
memory
mobile terminal
serial bus
universal serial
module
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.)
Active
Application number
CN202010080890.7A
Other languages
Chinese (zh)
Other versions
CN111338452A (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
Shenzhen Shengkewei Electronics 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 Shenzhen Shengkewei Electronics Co ltd filed Critical Shenzhen Shengkewei Electronics Co 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

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 acceleration charging of a USB flash disk. When the mobile terminal is connected to the computer through the universal serial bus, the memory position configured with the required display content is directly connected to the universal serial bus to simulate the USB flash disk, and meanwhile, when the mobile terminal is in a screen-off state, all parts of the mobile terminal which are in a working state except the memory are stopped, so that the charging speed is increased, the charging efficiency of the mobile terminal is improved, and the user experience is enhanced.

Description

Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk
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 acceleration charging of a USB flash disk.
Background
Currently, a universal serial bus (Universal Serial Bus, abbreviated as USB) interface is widely used in a mobile terminal, charging is performed through The USB interface, OTG (On-The-Go) technology and The like, and USB is an external bus standard for standardizing connection and communication between a computer and external devices. 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 has been successfully replaced serial ports and parallel ports after being introduced in 1994 by the combination of Intel et al companies in 1996, and has become a necessary interface between computers and a large number of intelligent devices. The USB version has undergone many years of development, and has evolved to 3.0 version today. In the prior art, mobile terminal manufacturers generally simulate the mobile terminal into a USB flash disk when the USB is connected with a computer, and the USB flash disk generally only opens part of folders, such as photo folders related to photographing of the mobile terminal at ordinary times, so that a user can conveniently view photos in the mobile terminal on the computer, but at present, when the mobile terminal is connected with the computer, core components of the mobile terminal, such as a central processing unit, a memory and the like, are in an active state, so that the charging speed is reduced.
Therefore, the application provides a method, a system, a storage medium and a mobile terminal for simulating the acceleration charging of a USB flash disk, so as to solve the problems.
Disclosure of Invention
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating the acceleration charging of a USB flash disk, which solve the problem that the mobile terminal simulates the mobile terminal to be a USB flash disk after being connected with a computer through a universal serial bus, so that the charging speed is low.
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 a working state except the memory when judging that the mobile terminal is in a screen-off state.
Further, the method for simulating acceleration charging of the USB flash disk further comprises the following steps: and when the mobile terminal is judged to be in the bright screen state, blocking the memory from being directly connected with 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 or not.
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 acquiring an address range value mapped by a register corresponding to the memory, thereby configuring the memory 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 the memory when the mobile terminal is connected to the computer through the universal serial bus; a definition module for defining an address range of the memory according to the capacity; a configuration module, configured to configure 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 which are in a working state except the memory when judging that the mobile terminal is in a screen-off state.
Further, the system for simulating acceleration charging of the USB flash disk further comprises: and the second control module is used for blocking the memory from being directly connected to the universal serial bus when the mobile terminal is judged to be in the 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.
Further, the system for simulating the acceleration charging of the USB flash disk further comprises a first judging module, a second judging module and a third judging module, wherein 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 the second judging module is used for judging whether the power supply equipment is a computer or not when judging that the mobile terminal is 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, the instructions being adapted to be loaded by a processor to perform the above-described method of simulating accelerated charging of a usb disk.
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, wherein 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 method for simulating acceleration charging of a usb disk.
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating the acceleration charging of a USB flash disk, wherein when the mobile terminal is connected to a computer through a universal serial bus, a memory position configured with required display content is directly connected to the universal serial bus to simulate the USB flash disk, and meanwhile, when the mobile terminal is in a screen-off state, all components of the mobile terminal in working states except the memory are stopped so as to accelerate the charging speed, improve the charging efficiency of the mobile terminal and enhance the user experience.
Drawings
The technical solution and other advantageous effects of the present application will be made apparent by the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of steps of a method for simulating acceleration charging of a usb disk according to an embodiment of the present application.
Fig. 2 is a schematic flow chart 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 application.
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 diagram of a specific structure 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 accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The terms first, second, third and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the objects so described may be interchanged where appropriate. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
In the detailed description, the drawings and examples set forth below, which illustrate the principles of the present disclosure, are only for the purpose of illustration and are not to be construed as limiting 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. Exemplary embodiments will be described in detail, 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 drawings indicate like elements.
The terminology used in the description of the particular embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The use of expressions in the singular encompasses plural forms of expressions unless the context clearly dictates otherwise. In the present description, it should be understood that terms such as "comprising," "having," "including," and "containing" are intended to specify the presence of the stated features, integers, steps, actions, or combinations thereof disclosed in the present description, but are not intended to preclude the presence or addition of one or more other features, integers, steps, actions, or combinations thereof. Like reference numerals in the drawings refer to like parts.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
The following disclosure provides many different embodiments, or examples, for implementing different features of the application. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present application provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a method for simulating acceleration charging of a usb disk, where the method for simulating acceleration charging of a usb disk is used for a mobile terminal, and the method includes the following steps.
Step S11, when the mobile terminal is connected to a computer through a universal serial bus, the capacity of a memory is acquired.
In embodiments of the present application, the capacity of the memory may be measured by the amount of content (e.g., photos, etc.) stored on the computer.
Step S12, the address range of the memory is defined according to the capacity.
In embodiments of the present application, a memory comprises a plurality of memory cells, each of which can hold one byte (addressed by a byte). Each memory location has a number, i.e., address, typically in hexadecimal form. The sum of all the memory cells in a memory that can hold data is called its memory capacity.
Step S13, the memory is configured according to the address range so 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 that the memory is configured to be directly connected to the universal serial bus. The address range values stored in the registers can be used to point to a location in the memory, i.e., address, to configure the memory to be directly connected to the usb, so that the computer can directly access the memory and perform a read operation.
And S14, judging whether the mobile terminal is in a screen-off state.
And step S15, 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.
In the embodiment of the application, when the mobile terminal is in the off-screen state, the mobile terminal is used for simulating the use of the USB flash disk, and all components of the mobile terminal which are in the working state except the memory, such as the central processing unit and the running memory, are stopped so as to reduce the power consumption during the operation, thereby accelerating the charging speed.
And S16, when the mobile terminal is judged to be in a bright screen state, the memory is blocked from being directly connected to the universal serial bus.
In the embodiment of the application, when the mobile terminal is in a bright screen state, the use of the mobile terminal is indicated, and the value in the register is changed to block the memory from being directly connected to the universal serial bus, so that the use experience of the user is improved.
Referring to fig. 2, step S11 is preceded by steps S21 to S22.
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 power supply end is judged to be connected to the power supply equipment.
Step S22, when judging that the mobile terminal is connected to the power supply equipment through the universal serial bus, judging whether the power supply equipment is a computer or not.
In the embodiment of the application, whether the data is an adapter or a computer is judged through corresponding data detection, the data is judged to be the computer when the data is responded, and otherwise, the data is judged to be the adapter.
Referring to fig. 3, an embodiment of the present application provides a system for simulating acceleration charging of a usb flash 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, an off-screen determining module 306, a first control module 307, and a second control module 308.
The first determining module 301 is configured to determine 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 power supply end is judged to be connected to the power supply equipment.
The second judging module 302 is connected to the first judging module 301. The second judging module 302 is configured to, when judging that the mobile terminal is connected to a power supply device through a universal serial bus, judge whether the power supply device is a computer
The acquisition module 303 is connected to the second judgment 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 embodiments of the present application, the capacity of the memory may be measured by the amount of content (e.g., photos, etc.) stored on the computer.
The definition module 304 is connected with the acquisition module 303. The definition module 304 is configured to define an address range of the memory according to the capacity.
In embodiments of the present application, a memory comprises a plurality of memory cells, each of which can hold one byte (addressed by a byte). Each memory location has a number, i.e., address, typically in hexadecimal form. The sum of all the memory cells in a memory that can hold data is called its memory capacity.
The configuration module 305 is connected with 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 that the memory is configured to be directly connected to the universal serial bus. The address range values stored in the registers can be used to point to a location in the memory, i.e., address, to configure the memory to be directly connected to the usb, so that the computer can directly access the memory and perform a read operation.
The screen-off judging module 306 is connected with 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 off-screen judging module 306. The first control module 307 is configured to stop all components of the mobile terminal that are 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 off-screen state, the mobile terminal is used for simulating the use of the USB flash disk, and all components of the mobile terminal which are in the working state except the memory, such as the central processing unit and the running memory, are stopped so as to reduce the power consumption during the operation, thereby accelerating the charging speed.
The second control module 308 is connected to the first control module 307. The second control module 308 is configured to block the memory from being directly connected to the usb when the mobile terminal is determined to be in the on-screen state.
In the embodiment of the application, when the mobile terminal is in a bright screen state, the use of the mobile terminal is indicated, and the value in the register is changed to block the memory from being directly connected 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 sub-module 401 and a configuration sub-module 402.
The obtaining sub-module 401 is configured to obtain an address range value mapped by a register corresponding to the memory to determine an address range of the memory.
The configuration sub-module 402 is connected with the acquisition sub-module 401. The configuration sub-module 402 is used to configure the memory to be directly connected to the universal serial bus.
In the embodiment of the application, the address range value stored in the register can be used for pointing to a certain position of the memory, namely addressing, so that the memory is configured to be directly connected to the universal serial bus, and a computer can directly access the memory and perform reading 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 mobile phone, a tablet, a computer, or other devices. 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 application programs stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the mobile terminal 500 is provided with a plurality of storage partitions, where the plurality of storage partitions include a system partition and a target partition, the processor 501 in the mobile terminal 500 loads instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 executes the application programs 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 stopping all the components of the mobile terminal which are in a working state except the memory when judging that the mobile terminal is in a screen-off state.
Referring to fig. 6, fig. 6 shows a specific block diagram of a mobile terminal 600 according to an embodiment of the present application, where the mobile terminal 600 may be used to implement the method for simulating acceleration charging of a usb disk according to the foregoing embodiment. The mobile terminal 600 may be a cell phone or tablet. The mobile terminal 600 includes the following components.
The RF circuit 610 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, thereby communicating with a communication network or other devices. RF circuitry 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 the like. The RF circuitry 610 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include 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 communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., american society of electrical and electronic engineers standard IEEE802.11a, IEEE 802.11.11 b, IEEE802.11g, and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those not currently 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 acceleration charging of the usb disk in the above embodiment, and the processor 680 executes the software programs and modules stored in the memory 620, thereby performing various functional applications and data processing, that is, implementing the function of simulating the method for simulating the acceleration charging of the usb disk. 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, memory 620 may further include memory located remotely from processor 680, which may be connected to 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 to 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 and 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 thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 631 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device and converts it into touch point coordinates, which are then sent to the processor 680 and can receive commands from the processor 680 and execute them. In addition, the touch sensitive surface 631 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 631, the input unit 630 may also comprise other input devices 632. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 640 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the mobile terminal 600, which may be composed 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 upon detection of a touch operation thereon or thereabout by the touch sensitive surface 631, the touch sensitive surface is communicated to the processor 680 to determine the type of touch event, and the processor 680 then provides a corresponding visual output on the display panel 641 based on the type of touch event. Although in fig. 6 the touch-sensitive surface 631 and the display panel 641 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 631 may be integrated with the display panel 641 for 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. In particular, 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 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the mobile terminal 600 are not described in detail herein.
Audio circuitry 660, speaker 661, microphone 662 may provide an audio interface between a user and mobile terminal 600. The audio circuit 660 may transmit the received electrical signal converted from audio data to the speaker 661, and the electrical signal is converted into a sound signal by the speaker 661 to be output; on the other hand, microphone 662 converts the collected sound signals into electrical signals, which are received by audio circuit 660 and converted into audio data, which are processed by audio data output processor 680 for transmission to, for example, another terminal via RF circuit 610, or which are output to memory 620 for further processing. Audio circuitry 660 may also include an ear bud jack to provide for communication of a peripheral ear bud with mobile terminal 600.
The mobile terminal 600 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 670 (e.g., wi-Fi module) and provide wireless broadband internet access to the user. Although fig. 6 illustrates the transmission module 670, it is understood that it does not belong to the essential constitution of the mobile terminal 600, and can be omitted entirely as needed within the scope of not changing the essence of the application.
Processor 680 is a control center of mobile terminal 600, and connects various parts of the entire handset using various interfaces and lines, performs various functions of mobile terminal 600 and processes data by running or executing software programs and/or modules stored in memory 620, and invoking data stored in memory 620, thereby performing overall monitoring of the handset. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the 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, the power supply may be logically coupled to the processor 680 through a power management system, thereby performing functions such as managing charging, discharging, and power consumption by the power management system. The power supply 690 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 600 may further include a camera (e.g., front camera, rear camera), a bluetooth module, etc., which will not be described herein. In particular, 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, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including 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 stopping all the components of the mobile terminal which are in a working state except the memory when judging that the mobile terminal is in a screen-off state.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions capable of being loaded by a processor to execute any steps in the method for simulating acceleration charging of a usb disk provided by the embodiment of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the storage medium can execute the steps in any method for simulating the accelerated charging of the usb disk provided by the embodiment of the present application, the beneficial effects that any method for simulating the accelerated charging of the usb disk provided by the embodiment of the present application can be realized, and detailed descriptions of the foregoing embodiments are omitted herein. The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for simulating the acceleration charging of a USB flash disk, wherein when the mobile terminal is connected to a computer through a universal serial bus, a memory position configured with required display content is directly connected to the universal serial bus to simulate the USB flash disk, and meanwhile, when the mobile terminal is in a screen-off state, all components of the mobile terminal in working states except the memory are stopped so as to accelerate the charging speed, improve the charging efficiency of the mobile terminal and enhance the user experience.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The method, the system, the storage medium and the mobile terminal for simulating the acceleration charging of the USB flash disk provided by the embodiment of the application are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the application, and the explanation of the above embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (10)

1. The method for simulating the acceleration charging of the U disk is applied to a mobile terminal, and the mobile terminal comprises a memory and a register, and is characterized by comprising 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 stopping all the components of the mobile terminal which are in a working state except the memory when judging that the mobile terminal is in a screen-off state.
2. The method for simulating accelerated charging of a usb disk according to claim 1, further comprising:
and when the mobile terminal is judged to be in the bright screen state, blocking the memory from being directly connected with the universal serial bus.
3. The method for simulating accelerated charging of a usb disk of claim 1, further comprising, prior to the step of obtaining the capacity of the memory when the mobile terminal is connected to the computer via the universal serial bus:
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 judging that the mobile terminal is connected to the power supply equipment through the universal serial bus, judging whether the power supply equipment is a computer or not.
4. The method of claim 2, wherein 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 acquiring an address range value mapped by a register corresponding to the memory, thereby configuring the memory to be directly connected to the universal serial bus.
5. The system for simulating the acceleration charging of the U disk is applied to a mobile terminal, and the mobile terminal comprises a memory and a register, and is characterized in that the system for simulating the acceleration charging of the U disk comprises:
the acquisition module is used for acquiring the capacity of the memory when the mobile terminal is connected to the computer through the universal serial bus;
a definition module for defining an address range of the memory according to the capacity;
a configuration module, configured to configure 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 which are 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 usb disk of claim 5, further comprising:
and the second control module is used for blocking the memory from being directly connected to the universal serial bus when the mobile terminal is judged to be in the bright screen state.
7. The system for simulating accelerated charging of a usb disk of claim 5, further comprising:
a first judging module for 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; and
and the second judging module is used for judging whether the power supply equipment is a computer or not when judging that the mobile terminal is connected to the power supply equipment through the universal serial bus.
8. The system for simulating accelerated charging of a usb disk of claim 6, wherein the configuration module comprises:
an obtaining sub-module, configured to obtain an address range value mapped by a register corresponding to the memory to determine an address range of the memory; and
and the configuration submodule is used for configuring the memory to be directly connected with the universal serial bus.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of simulating accelerated charging of a usb disk 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 charging of a usb disk 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 CN111338452A (en) 2020-06-26
CN111338452B true 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 (6)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10331187B2 (en) * 2017-01-26 2019-06-25 Intel Corporation Selectively controlling power to a connector port

Patent Citations (6)

* 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
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
马文健 ; .手持移动终端充电方案.通信电源技术.2007,(04),全文. *

Also Published As

Publication number Publication date
CN111338452A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US11138041B2 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN111277991B (en) Operator name display method and device, mobile terminal and storage medium
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN111443803B (en) Mode switching method and device, storage medium 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
CN111338452B (en) Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN112243269B (en) Method and device for downloading data and mobile terminal
CN112486350A (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111163509B (en) Power saving display method and device, storage medium and mobile terminal
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN112491562B (en) Communication control method and device and mobile terminal
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN111459528B (en) Frequency band upgrading method, system, storage medium and mobile terminal
CN111654848B (en) NFC card detection method and device, storage medium and mobile terminal
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111309605B (en) Terminal test method and device, storage medium and terminal equipment
CN114530122B (en) Display device, method for driving the same, and storage medium
CN116737601B (en) Method, device and storage medium for expanding peripheral registers into system RAM
CN114095585B (en) Data transmission method, device, storage medium and electronic 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
TA01 Transfer of patent application right
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.

GR01 Patent grant
GR01 Patent grant