CN112243269B - Method and device for downloading data and mobile terminal - Google Patents
Method and device for downloading data and mobile terminal Download PDFInfo
- Publication number
- CN112243269B CN112243269B CN202011101763.7A CN202011101763A CN112243269B CN 112243269 B CN112243269 B CN 112243269B CN 202011101763 A CN202011101763 A CN 202011101763A CN 112243269 B CN112243269 B CN 112243269B
- Authority
- CN
- China
- Prior art keywords
- temporary
- downloading
- path
- download
- storage
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000001514 detection method Methods 0.000 claims description 8
- 238000013507 mapping Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005192 partition Methods 0.000 description 4
- 230000037361 pathway Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a method and a device for downloading data, and a mobile terminal, which aim to use less temporary storage space when the mobile terminal has a plurality of downloading ways and simultaneously starts the downloading ways to download large-capacity data at the same time so as to improve the downloading efficiency of the mobile terminal, and are particularly suitable for mobile terminals with limited storage space.
Description
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a method and apparatus for downloading data, and a mobile terminal.
Background
With the development of communication technology, mobile terminals have become indispensable electronic devices in people's daily lives. Users are thus commonly using network services such as WIFI/4G/5G on mobile terminals in order to better experience faster download speeds. Therefore, manufacturers of mobile terminals may use different communication chips for different network services when designing the mobile terminals, so as to meet different requirements of users. Some manufacturers of mobile terminals now use the above-mentioned various communication technologies in superposition at the same time, so that large-capacity data can be downloaded at a faster speed. The above-mentioned use case is particularly suitable for a case where there is a need to download more data or a case where a mobile terminal moves slightly when the use environment changes greatly, and a certain communication signal may change sharply.
However, when a plurality of communication technologies are simultaneously used, it is necessary to allocate downloaded temporary storage spaces for the communication technologies, respectively, and splice the data downloaded separately after the completion of the downloading. Thus, it may cause more temporary storage space to be occupied than the currently downloaded data.
In view of this, how to more effectively reduce the temporary storage space and improve the downloading work efficiency of the mobile terminal has become an important subject for related technicians and researchers.
Disclosure of Invention
The embodiment of the application provides a data downloading method, a data downloading device and a mobile terminal, which aim to use less temporary storage space when the mobile terminal has a plurality of downloading ways and simultaneously starts the downloading ways to download large-capacity data so as to improve the downloading efficiency of the mobile terminal, and are particularly suitable for mobile terminals with limited storage space.
According to an aspect of the present application, an embodiment of the present application provides a method for downloading data, which is applicable to a mobile terminal, and the method includes: detecting whether two download paths of the mobile terminal are opened or not, wherein the two download paths comprise a first download path and a second download path; when the first downloading path and the second downloading path of the mobile terminal are judged to be opened, a temporary storage data area is generated and defined and used for simultaneously storing temporary data generated by the first downloading path and the second downloading path; and configuring locations in the temporary storage data area where temporary data generated by the first download path and the second download path are stored.
Based on the technical scheme, the method can be further improved.
In some embodiments of the present application, in the step of detecting whether two download paths of the mobile terminal are opened, a download path opening flag is configured; and acquiring the state of the download path starting identification bit.
In some embodiments of the present application, in the step of generating and defining a temporary storage data area, further comprising dividing the temporary storage area into a first temporary storage data area and a second temporary storage data area by setting a dividing line.
In some embodiments of the present application, when a first distance from the boundary line of the temporary data generated through the first download path is smaller than a preset first distance threshold value, or when a second distance from the boundary line of the temporary data generated through the second download path is smaller than a preset second distance threshold value, the boundary line is adjusted accordingly.
In some embodiments of the present application, in the step of configuring a location in the temporary storage data area where temporary data generated by the first download path and the second download path is stored, further comprising: configuring a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area; and configuring a second initial storage location and a second storage direction of the temporary data generated by the second download path in the temporary data area.
In some embodiments of the present application, when one of the first initial storage position or the second initial storage position is located at a first position defined by the temporary storage data area, the other initial storage position of the first initial storage position or the second initial storage position is located at a second position defined by the temporary storage data area or a preset third position in the temporary storage data area; and mapping the address where the second location or the third location is located to the address where the first location is located.
In some embodiments of the present application, after the step of configuring the locations in the temporary storage data area where the temporary data generated by the first download path and the second download path is stored, further comprising: and releasing the temporary storage data area when judging that the first downloading path and the second downloading path of the mobile terminal are closed.
According to another aspect of the present application, an embodiment of the present application provides an apparatus for downloading data, the apparatus including: a download path detection module, configured to detect whether two download paths of the mobile terminal are both opened, where the two download paths include a first download path and a second download path; the temporary storage data area defining module is used for generating and defining a temporary storage data area when judging that the first downloading path and the second downloading path of the mobile terminal are both opened so as to simultaneously store temporary data generated by the first downloading path and the second downloading path; and a storage location configuration module for configuring the location in the temporary storage data area where the temporary data generated by the first download path and the second download path are stored.
In some embodiments of the application, the storage location configuration module further comprises: a first download path configuration unit, configured to configure a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area; and a second download path configuration unit for configuring a second initial storage location and a second storage direction of the temporary data generated by the second download path in the temporary data area.
According to yet another aspect of the present application, an embodiment of the present application provides a mobile terminal, where the mobile terminal includes a processor and a memory, 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 above-mentioned method for downloading data.
Compared with the prior art, the method for downloading data, the device and the mobile terminal provided by the embodiment of the application have the beneficial effects that whether two downloading paths of the mobile terminal are opened or not is detected, a temporary storage data area is generated and defined, temporary data generated by the first downloading path and the second downloading path are stored simultaneously, and the step of configuring the storage position of the temporary data generated by the first downloading path and the second downloading path in the temporary storage data area is implemented, so that when the mobile terminal has a plurality of downloading paths, and the downloading paths are opened simultaneously, less temporary storage space can be used, the downloading efficiency of the mobile terminal is improved, and the method is particularly suitable for the mobile terminal with limited storage space.
Drawings
The technical solution of the present application and its advantageous effects 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 flowchart illustrating steps of a method for downloading data according to an embodiment of the present application.
Fig. 2A to fig. 2D are schematic diagrams illustrating the effect of the method for downloading data according to the embodiment of the application.
Fig. 3 is a block diagram of a data downloading apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 5 is a schematic diagram of another 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 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.
Fig. 1 is a flowchart illustrating a method for downloading data according to an embodiment of the present application. Referring to fig. 1, in an embodiment of the present application, a method for downloading data is provided, which is applicable to a mobile terminal. The mobile terminal may be a mobile phone, a tablet computer, a personal digital computer, etc., but is not limited thereto.
The method comprises the following steps:
step S110: it is detected whether both download pathways of the mobile terminal are enabled, wherein the two download pathways include a first download pathway and a second download pathway.
Step S120: when the first downloading path and the second downloading path of the mobile terminal are both started, a temporary storage data area is generated and defined for simultaneously storing temporary data generated by the first downloading path and the second downloading path.
Step S130: the locations in the temporary storage data area where temporary data generated by the first download path and the second download path are stored are configured.
Specifically, in step S110, that is, in the step of detecting whether two download paths of the mobile terminal are turned on, a download path on flag is configured; and acquiring the state of the download path starting identification bit.
The download path activation flag may use two digits, for example, a first digit to identify whether the first download path is activated and a second digit to identify whether the second download path is activated. Further, the two numbers may be 0 and 1. Specifically, when the number is 1, this indicates on. When the number is 0, it indicates off. Of course, the identification mode of the download path opening identification bit is not limited to this, and only needs to be predetermined and defined, and whether the download path function is opened or closed can be distinguished.
After configuring the download path activation flag, the mobile terminal may detect whether the first download path or the second download path is activated within a predetermined time through its built-in setting.
With continued reference to fig. 1, in step S120, that is, in the step of generating and defining a temporary storage data area, further includes: the temporary storage area is divided into a first temporary storage data area and a second temporary storage data area by setting a dividing line.
In general, a dividing line is provided in the middle of the temporary storage data area. Of course, the setting position of the dividing line is not limited thereto, and may be adjusted accordingly according to, for example, a first download speed of a preset first download path (the speed of which may be fixed) and a second download speed of a preset second download path (the speed of which may be fixed). When the first download speed is faster than the second download speed, the dividing line may be set away from the first initial storage location. When the first download speed is slower than the second download speed, the dividing line may be set near the first initial storage location. In the above case, the first download speed and the second download speed are fixed. While in other embodiments the first download speed and the second download speed may be varied.
Further, when the first distance between the position of the temporary data generated by the first downloading route and the boundary is smaller than a preset first distance threshold, or when the second distance between the position of the temporary data generated by the second downloading route and the boundary is smaller than a preset second distance threshold, the boundary is adjusted accordingly. The dividing line is dynamically adjusted by comparing the first distance with the first distance threshold or comparing the second distance with the second distance threshold, so that the divided first temporary storage data area and second temporary storage data area can correspondingly meet the storage space occupied by the temporary data generated by the first downloading way and the storage space occupied by the temporary data generated by the second downloading way.
With continued reference to fig. 1, in step S130, that is, in the step of configuring the locations where the temporary data generated by the first download path and the second download path are stored in the temporary storage data area, further includes: configuring a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area; and configuring a second initial storage location and a second storage direction of the temporary data generated by the second download path in the temporary data area.
When one of the first initial storage position or the second initial storage position is positioned at a first position defined by the temporary storage data area, setting the other initial storage position of the first initial storage position or the second initial storage position to be positioned at a second position defined by the temporary storage data area or a preset third position in the temporary storage data area; and mapping the address where the second location or the third location is located to the address where the first location is located.
Specifically, for example, when the first initial storage position is located at a first position (for example, a start position) defined by the temporary storage data area, the second initial storage position is set at a second position (for example, an end position, correspondingly) defined by the temporary storage data area, or is set at a preset third position in the temporary storage data area, where the third position is located between the start position and the end position. Further, the third position is located between the position of the dividing line and the end position.
For another example, when the second initial storage position is located at a first position (e.g., a start position) defined by the temporary storage data area, the first initial storage position is located at a second position (e.g., an end position, respectively) defined by the temporary storage data area.
In some embodiments, the first storage direction and the second storage direction are disposed in the same direction, and refer specifically to fig. 2A and fig. 2B. In some embodiments, the first storage direction and the second storage direction are disposed opposite to each other, as shown in fig. 2C and fig. 2D.
In some embodiments, when the first storage direction and the second storage direction are set in the same direction, and the first initial storage position is located at the first position defined by the temporary storage data area, the position where the second initial storage position is located may be set correspondingly according to the magnitudes of the first download speed and the second download speed. For example, when the first download speed (e.g., using a WIFI signal) is greater than the second download speed (e.g., using a 4G signal), the second starting storage location may be positioned relatively far from the first starting storage location. For example, the first download speed may be less than the second download speed, and the second initial storage location may be located relatively close to the first initial storage location. With particular reference to fig. 2A and 2B.
In some embodiments, when the first storage direction and the second storage direction are opposite, and the first initial storage position is located at the first position defined by the temporary storage data area, the position where the dividing line is located may be set correspondingly according to the magnitudes of the first downloading speed and the second downloading speed. For example, when the first download speed (e.g., using a WIFI signal) is greater than the second download speed (e.g., using a 4G signal), the location of the dividing line may be located relatively far from the first initial storage location. For example, when the first download speed is lower than the second download speed, the boundary line may be located at a position relatively close to the first initial storage position. With particular reference to fig. 2C and 2D.
In addition, in this embodiment, the address where the second location is located is mapped to the address where the first location is located, so that when the first storage direction and the second storage direction are set in opposite directions, it can be ensured that the temporary data generated by the first download path and the temporary data generated by the second download path are both in the same temporary storage data area. Of course, in other embodiments, the address where the third location is located may be mapped to the address where the first location is located, so that when the first storage direction and the second storage direction are set in the same direction, both the temporary data generated by the first downloading way and the temporary data generated by the second downloading way are in the same temporary storage data area.
With continued reference to fig. 1, in step S130, that is, after the step of configuring the locations where the temporary data generated by the first download path and the second download path are stored in the temporary storage data area, step S140 is further included: and releasing the temporary storage data area when judging that the first downloading path and the second downloading path of the mobile terminal are closed. By the operation, the normal use of the storage space of the mobile terminal can be ensured.
Fig. 3 is a block diagram of a data downloading apparatus according to an embodiment of the present application. Referring to fig. 3, in one embodiment of the present application, a data downloading apparatus is provided.
The device comprises: a download path detection module 310, a temporary storage data area definition module 320, a storage location configuration module 330, and a download path release module 340.
The download path detection module 310 is configured to detect whether two download paths of the mobile terminal are both turned on, where the two download paths include a first download path and a second download path.
The temporary storage data area defining module 320 is configured to generate and define a temporary storage data area for simultaneously storing temporary data generated by the first download path and the second download path when it is determined that the first download path and the second download path of the mobile terminal are both turned on.
The storage location configuration module 330 is configured to configure a location in the temporary storage data area where temporary data generated by the first download path and the second download path is stored.
The download path releasing module 340 is configured to release the temporary storage data area when it is determined that the first download path and the second download path of the mobile terminal are both closed.
In some embodiments of the present application, the storage location configuration module 330 further includes: a first download path configuration unit 331 and a second download path configuration unit 332. The first download path configuration unit 331 is configured to configure a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area. The second download path configuration unit 332 is configured to configure a second initial storage location and a second storage direction of temporary data generated by a second download path in the temporary data area.
Referring to fig. 4, an embodiment of the present application further provides a mobile terminal 400, where the mobile terminal 400 includes the data downloading device. The mobile terminal 400 may be a mobile phone, a tablet computer, or the like. As shown in fig. 4, the mobile terminal 400 includes a processor 401, a memory 402. Wherein the processor 401 is connected to a memory 402.
The processor 401 is a control center of the mobile terminal 400, 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 402 and calling data and instructions stored in the memory 402, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the mobile terminal 400 is provided with a plurality of storage partitions, where the plurality of storage partitions include a system partition and a target partition, the processor 401 in the mobile terminal 400 loads instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions:
detecting whether two download paths of the mobile terminal are opened or not, wherein the two download paths comprise a first download path and a second download path;
when the first downloading path and the second downloading path of the mobile terminal are judged to be opened, a temporary storage data area is generated and defined and used for simultaneously storing temporary data generated by the first downloading path and the second downloading path; and
the locations in the temporary storage data area where temporary data generated by the first download path and the second download path are stored are configured.
Fig. 5 shows a specific block diagram of a mobile terminal 500 according to an embodiment of the present application, and the mobile terminal 500 may be used to implement the method for downloading data according to the embodiment. The mobile terminal 800 may be a cell phone or tablet. The mobile terminal further includes the following components.
The RF circuit 510 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 510 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 510 may communicate with various networks such as the internet, intranets, wireless networks or with 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., institute of electrical and electronics engineers standards IEEE 802.11a,IEEE 802.11b,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, as well as any other suitable communication protocols, even including those not currently developed.
The memory 520 may be used to store software programs and modules, such as program instructions/modules corresponding to the data downloading method described in the above embodiments, and the processor 580 executes the software programs and modules stored in the memory 520 to perform various functional applications and data processing, i.e., to implement the functions of the data downloading method. Memory 520 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 520 may further include memory located remotely from processor 580, which may be connected to mobile terminal 500 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 530 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 530 may include a touch-sensitive surface 531 and other input devices 532. The touch-sensitive surface 531, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 531 or thereabout by using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch-sensitive surface 531 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 580, and can receive commands from the processor 580 and execute them. In addition, the touch-sensitive surface 531 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 531, the input unit 530 may also comprise other input devices 532. In particular, other input devices 532 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 540 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 500, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 540 may include a display panel 541, and alternatively, the display panel 541 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 531 may overlay the display panel 541, and when the touch-sensitive surface 531 detects a touch operation thereon or thereabout, it is communicated to the processor 580 to determine the type of touch event, and the processor 880 then provides a corresponding visual output on the display panel 841 based on the type of touch event. Although in fig. 5 the touch-sensitive surface 531 and the display panel 541 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 531 may be integrated with the display panel 541 for input and output functions.
The mobile terminal 500 may also include at least one sensor 550, 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 541 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 541 and/or the backlight when the mobile terminal 500 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 500 are not described in detail herein.
Audio circuitry 560, a speaker 561, and a microphone 562 may provide an audio interface between a user and the mobile terminal 500. The audio circuit 560 may transmit the received electrical signal converted from audio data to the speaker 561, and the electrical signal is converted into a sound signal by the speaker 561 and output; on the other hand, microphone 562 converts the collected sound signal into an electrical signal, which is received by audio circuit 560 and converted into audio data, which is processed by audio data output processor 580 for transmission to, for example, another terminal via RF circuit 510, or which is output to memory 520 for further processing. Audio circuitry 560 may also include an ear bud jack to provide communication of the peripheral ear bud with the mobile terminal 500.
The mobile terminal 500 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 570 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although fig. 5 shows the transmission module 570, it is understood that it does not belong to the essential constitution of the mobile terminal 800, and can be omitted entirely as required within the scope of not changing the essence of the application.
Processor 580 is a control center of mobile terminal 500 that utilizes various interfaces and lines to connect various portions of the overall handset, and performs various functions and processes of mobile terminal 500 by running or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520, thereby performing overall monitoring of the handset. Optionally, processor 580 may include one or more processing cores; in some embodiments, processor 580 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 880.
The mobile terminal 500 also includes a power supply 590 (e.g., a battery) for powering the various components, which in some embodiments may be logically connected to the processor 580 by a power management system so as to perform functions such as managing charging, discharging, and power consumption by the power management system. Power supply 590 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 500 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:
detecting whether two download paths of the mobile terminal are opened or not, wherein the two download paths comprise a first download path and a second download path;
when the first downloading path and the second downloading path of the mobile terminal are judged to be opened, a temporary storage data area is generated and defined and used for simultaneously storing temporary data generated by the first downloading path and the second downloading path; and
the locations in the temporary storage data area where temporary data generated by the first download path and the second download path are stored are configured.
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 in the various methods of the above embodiments may be performed by instructions, or by instruction control related hardware, which may be stored on a storage medium and loaded by a processor to perform any of the steps in the methods of downloading data provided by the embodiments 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.
The instructions stored in the storage medium may perform any step in the method for downloading data provided by the embodiment of the present application, so that any beneficial effect that can be achieved by any method for downloading data provided by the embodiment of the present application can be achieved, which is detailed in the previous embodiment and will not be repeated here. The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The method for downloading data, the device and the mobile terminal provided by the embodiment of the application aim to use less temporary storage space when the mobile terminal has a plurality of downloading ways and simultaneously starts the downloading ways to download large-capacity data so as to improve the downloading efficiency of the mobile terminal, and are particularly suitable for mobile terminals with limited storage space.
The foregoing describes in detail a method for downloading data, a device thereof and a mobile terminal provided by the embodiments of the present application, and specific examples are applied to describe the principles and embodiments of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.
Claims (8)
1. A method of downloading data suitable for use in a mobile terminal, the method comprising:
detecting whether two download paths of the mobile terminal are opened or not, wherein the two download paths comprise a first download path and a second download path;
when the first downloading path and the second downloading path of the mobile terminal are judged to be opened, a temporary storage data area is generated and defined and used for simultaneously storing temporary data generated by the first downloading path and the second downloading path; and
configuring the position of temporary data generated by a first downloading path and a second downloading path in the temporary storage data area;
the step of configuring the location in the temporary storage data area where the temporary data generated by the first download path and the second download path is stored, further includes:
configuring a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area; and
configuring a second initial storage position and a second storage direction of temporary data generated by a second downloading path in the temporary data area;
when one of the first initial storage position or the second initial storage position is positioned at a first position defined by the temporary storage data area, setting the other initial storage position of the first initial storage position or the second initial storage position to be positioned at a second position defined by the temporary storage data area or a preset third position in the temporary storage data area; and
mapping the address of the second position or the third position to the address of the first position.
2. The method for downloading data according to claim 1, wherein a download path opening flag is set in the step of detecting whether two download paths of the mobile terminal are opened; and acquiring the state of the download path starting identification bit.
3. The method of downloading data as set forth in claim 1, wherein in the step of generating and defining a temporary storage data area, further comprising dividing the temporary storage area into a first temporary storage data area and a second temporary storage data area by setting a dividing line.
4. A method of downloading data according to claim 3, wherein the dividing line is adjusted accordingly when the first distance of the location of the temporary data generated by the first downloading route from the dividing line is less than a preset first distance threshold or when the second distance of the location of the temporary data generated by the second downloading route from the dividing line is less than a preset second distance threshold.
5. The method of downloading data according to claim 1, further comprising, after the step of configuring the locations in the temporary storage data area where the temporary data generated by the first download path and the second download path are stored:
and releasing the temporary storage data area when judging that the first downloading path and the second downloading path of the mobile terminal are closed.
6. An apparatus for downloading data, the apparatus comprising:
a download path detection module, configured to detect whether two download paths of the mobile terminal are both opened, where the two download paths include a first download path and a second download path;
the temporary storage data area defining module is used for generating and defining a temporary storage data area when judging that the first downloading path and the second downloading path of the mobile terminal are both opened so as to simultaneously store temporary data generated by the first downloading path and the second downloading path; and
a storage location configuration module, configured to configure a location in the temporary storage data area where temporary data generated by the first download path and the second download path is stored;
the storage position configuration module is further configured to configure a first initial storage position and a first storage direction of temporary data generated by a first download path in the temporary data area; configuring a second initial storage position and a second storage direction of temporary data generated by a second downloading path in the temporary data area; when one of the first initial storage position or the second initial storage position is positioned at a first position defined by the temporary storage data area, setting the other initial storage position of the first initial storage position or the second initial storage position to be positioned at a second position defined by the temporary storage data area or a preset third position in the temporary storage data area; and mapping the address where the second location or the third location is located to the address where the first location is located.
7. The download data device as in claim 6, wherein the storage location configuration module further comprises:
a first download path configuration unit, configured to configure a first initial storage location and a first storage direction of temporary data generated by a first download path in the temporary data area; and
and the second download path configuration unit is used for configuring a second initial storage position and a second storage direction of the temporary data generated by the second download path in the temporary data area.
8. A mobile terminal, characterized in that it comprises a processor and a memory, said processor being electrically connected to said memory, said memory being adapted to store instructions and data, said processor being adapted to perform the steps of the method for downloading data according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011101763.7A CN112243269B (en) | 2020-10-15 | 2020-10-15 | Method and device for downloading data and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011101763.7A CN112243269B (en) | 2020-10-15 | 2020-10-15 | Method and device for downloading data and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112243269A CN112243269A (en) | 2021-01-19 |
CN112243269B true CN112243269B (en) | 2023-09-19 |
Family
ID=74169120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011101763.7A Active CN112243269B (en) | 2020-10-15 | 2020-10-15 | Method and device for downloading data and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112243269B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102460403A (en) * | 2009-06-11 | 2012-05-16 | 飞思卡尔半导体公司 | Processor and method for dynamic and selective alteration of address translation |
CN104917593A (en) * | 2015-04-13 | 2015-09-16 | 惠州Tcl移动通信有限公司 | Network terminal and sending method for data packets of network terminal |
CN106060868A (en) * | 2016-08-22 | 2016-10-26 | 安徽瑞宏信息科技有限公司 | Network traffic monitoring method, device and terminal |
CN106412137A (en) * | 2016-12-20 | 2017-02-15 | 北京并行科技股份有限公司 | File downloading system and file downloading method |
CN106899386A (en) * | 2017-02-09 | 2017-06-27 | 武汉米风通信技术有限公司 | The demodulation method of the fragmentation frame signal based on multichannel communication reception system |
CN109802766A (en) * | 2017-11-16 | 2019-05-24 | 维沃移动通信有限公司 | Soft method for caching and processing, terminal and the network equipment under a kind of dual link |
CN110168501A (en) * | 2017-01-13 | 2019-08-23 | Arm有限公司 | The division of storage system resource or performance monitoring |
WO2020055102A1 (en) * | 2018-09-13 | 2020-03-19 | Samsung Electronics Co., Ltd. | System and method of transmitting and receiving paging and system information |
JP2020042558A (en) * | 2018-09-11 | 2020-03-19 | 株式会社東芝 | Image drawing device |
CN110968532A (en) * | 2018-09-29 | 2020-04-07 | 上海寒武纪信息科技有限公司 | Data transmission method and related product |
CN111143241A (en) * | 2019-12-30 | 2020-05-12 | 深圳Tcl数字技术有限公司 | Memory data migration method and device and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9198004B2 (en) * | 2013-02-27 | 2015-11-24 | Qualcomm Incorporated | User-in-the-loop architecture for indoor positioning |
-
2020
- 2020-10-15 CN CN202011101763.7A patent/CN112243269B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102460403A (en) * | 2009-06-11 | 2012-05-16 | 飞思卡尔半导体公司 | Processor and method for dynamic and selective alteration of address translation |
CN104917593A (en) * | 2015-04-13 | 2015-09-16 | 惠州Tcl移动通信有限公司 | Network terminal and sending method for data packets of network terminal |
CN106060868A (en) * | 2016-08-22 | 2016-10-26 | 安徽瑞宏信息科技有限公司 | Network traffic monitoring method, device and terminal |
CN106412137A (en) * | 2016-12-20 | 2017-02-15 | 北京并行科技股份有限公司 | File downloading system and file downloading method |
CN110168501A (en) * | 2017-01-13 | 2019-08-23 | Arm有限公司 | The division of storage system resource or performance monitoring |
CN106899386A (en) * | 2017-02-09 | 2017-06-27 | 武汉米风通信技术有限公司 | The demodulation method of the fragmentation frame signal based on multichannel communication reception system |
CN109802766A (en) * | 2017-11-16 | 2019-05-24 | 维沃移动通信有限公司 | Soft method for caching and processing, terminal and the network equipment under a kind of dual link |
JP2020042558A (en) * | 2018-09-11 | 2020-03-19 | 株式会社東芝 | Image drawing device |
WO2020055102A1 (en) * | 2018-09-13 | 2020-03-19 | Samsung Electronics Co., Ltd. | System and method of transmitting and receiving paging and system information |
CN110968532A (en) * | 2018-09-29 | 2020-04-07 | 上海寒武纪信息科技有限公司 | Data transmission method and related product |
CN111143241A (en) * | 2019-12-30 | 2020-05-12 | 深圳Tcl数字技术有限公司 | Memory data migration method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112243269A (en) | 2021-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11138041B2 (en) | Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal | |
CN107172671A (en) | A kind of channel switching method, device, storage medium and terminal | |
CN107071147A (en) | A parameter adjustment method and device | |
CN111443803B (en) | Mode switching method and device, storage medium and mobile terminal | |
CN111008090B (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
CN111432387B (en) | Many-to-many switching module, multi-machine wireless communication system and communication method thereof | |
CN111026457B (en) | Hardware configuration method and device, storage medium and terminal equipment | |
CN111045737B (en) | Equipment identifier acquisition method, device, terminal equipment and storage medium | |
CN110489177B (en) | Application control method and device, storage medium and terminal equipment | |
CN110851014B (en) | Touch recognition method and device, storage medium and terminal equipment | |
CN112243269B (en) | Method and device for downloading data and mobile terminal | |
CN112433694B (en) | Light intensity adjusting method and device, storage medium and mobile terminal | |
CN112261634B (en) | Bluetooth transmission control method and device, terminal equipment and storage medium | |
CN110995324B (en) | Bluetooth communication method, device, storage medium and terminal equipment | |
CN110048824B (en) | Communication module control method, control device, and computer-readable storage medium | |
CN111273774A (en) | Terminal device display screen control method and system, storage medium and terminal device | |
CN112367428A (en) | Electric quantity display method and system, storage medium and mobile terminal | |
CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
CN111338452B (en) | Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk | |
CN111163509B (en) | Power saving display method and device, storage medium and mobile terminal | |
CN112486350A (en) | Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal | |
CN112491562B (en) | Communication control method and device and mobile terminal | |
CN111654849A (en) | Quick starting method and system for near field communication, storage medium and terminal equipment | |
CN110972220B (en) | Wireless communication method, device, storage medium and terminal equipment | |
CN112199245B (en) | Mobile terminal screen detection method, system, storage medium and mobile terminal |
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: 20230823 Address after: 266000 8th floor, building a, Qingdao International Innovation Park, 1 Keyuan Weiyi Road, Laoshan District, Qingdao City, Shandong Province Applicant after: QINGDAO ITECHENE TECHNOLOGIES Co.,Ltd. Address before: 6 / F, No. B5, Lane 999, Yangfan Road, Meixu street, Yinzhou District, Ningbo City, Zhejiang Province Applicant before: TCL COMMUNICATION (NINGBO) Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |