CN109768926B - Data processing method, terminal equipment and computer readable storage medium - Google Patents

Data processing method, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN109768926B
CN109768926B CN201910022923.XA CN201910022923A CN109768926B CN 109768926 B CN109768926 B CN 109768926B CN 201910022923 A CN201910022923 A CN 201910022923A CN 109768926 B CN109768926 B CN 109768926B
Authority
CN
China
Prior art keywords
data
transmitted
space
transmission
transmission path
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
CN201910022923.XA
Other languages
Chinese (zh)
Other versions
CN109768926A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910022923.XA priority Critical patent/CN109768926B/en
Publication of CN109768926A publication Critical patent/CN109768926A/en
Application granted granted Critical
Publication of CN109768926B publication Critical patent/CN109768926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of communication, and provides a data processing method, terminal equipment and a computer readable storage medium, which are used for solving the problem of low data transmission efficiency when the terminal equipment downloads data. The method comprises the following steps: acquiring the attribute of data to be transmitted; determining a transmission path according to the attribute of the data to be transmitted; and respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces are in one-to-one correspondence with the transmission paths. Therefore, the terminal equipment can transmit data through a plurality of paths simultaneously according to the attribute of the data to be transmitted, and the data transmission efficiency can be improved.

Description

Data processing method, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method, a terminal device, and a computer-readable storage medium.
Background
With the development of communication technology, the transmission rate of data is greatly improved, for example, when downloading is performed by using a 5G mobile network, the downloading speed can reach 1.25 GB/s. However, since the terminal device needs to write the downloaded data into the memory card during the downloading process, the writing speed of the downloaded data into the memory card is slow, which limits the actual transmission speed of the data downloading. For example, the transmission speed of data downloading through the mobile network is 1GB/s, but the transmission speed of data writing into the memory is 250MB/s, so that the actual transmission speed of the data is only equivalent to the speed of data writing into the memory, and the efficiency of data transmission is greatly limited.
Therefore, when the terminal equipment downloads data, the problem of low data transmission efficiency exists.
Disclosure of Invention
The embodiment of the invention provides a data processing method, terminal equipment and a computer readable storage medium, which aim to solve the problem of low data transmission efficiency when the terminal equipment downloads data.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring the attribute of data to be transmitted;
determining a transmission path according to the attribute of the data to be transmitted;
and respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces are in one-to-one correspondence with the transmission paths.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the first acquisition module is used for acquiring the attribute of the data to be transmitted;
the determining module is used for determining a transmission path according to the attribute of the data to be transmitted;
and the storage module is used for respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces correspond to the transmission paths one to one.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the data processing method as described above when executing the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the data processing method as described above.
In the embodiment of the invention, the attribute of the data to be transmitted is obtained; determining a transmission path according to the attribute of the data to be transmitted; and respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces are in one-to-one correspondence with the transmission paths. Therefore, when the data are downloaded, the terminal equipment can transmit the data through a plurality of paths according to the attribute of the data to be transmitted, and the data transmission efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of a data processing method provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of data processing provided by an embodiment of the present invention;
FIG. 3 is a second flowchart of a data processing method according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram of data processing according to the embodiment of the present invention;
FIG. 5 is a third schematic diagram of data processing provided by the embodiment of the present invention;
fig. 6 is one of the structural diagrams of the terminal device provided in the embodiment of the present invention;
fig. 7 is a second structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a structural diagram of a memory module in a terminal device according to an embodiment of the present invention;
fig. 9 is a third structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a fourth structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, obtaining the attribute of the data to be transmitted.
The data to be transmitted may be data to be downloaded, and the attribute of the data to be transmitted may include the size, type, access time, and the like of the data to be transmitted.
And step 102, determining a transmission path according to the attribute of the data to be transmitted.
In this step, the terminal device may estimate, according to the attribute, a time required for transmission of the data to be transmitted, so that the transmission path may be determined according to the transmission time. For example, the terminal device estimates the time to be transmitted to be 1h according to the size of the data to be transmitted and the current network condition, and determines a plurality of transmission paths to improve the downloading speed.
The terminal device may also determine a transmission path according to the type of data to be transmitted, the access time, and the like. For example, when the type of data to be transmitted is video and the access time is 12 pm, a transmission path may be determined; if the type of the data to be transmitted is a picture and the access time is 10 points in the day, one or more transmission paths can be determined.
In specific implementation, the path to be transmitted may be determined according to characteristics such as the capacity of each storage space and the transmission speed of each transmission path. For example, when the amount of data to be transmitted is large, the storage space with large capacity can be determined, so that the integrity of data storage is ensured; when the user has a high requirement for the download time, a transmission path with a high transmission speed can be selected. For example, if a video application is running on the interface of the terminal and the video of the application is being downloaded, a transmission path with a faster transmission speed may be selected.
And 103, respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in the target storage space.
The target storage space is at least one storage space in the N storage spaces, and the target storage space corresponds to the transmission paths one to one.
In this step, when the number of the determined transmission paths is 1, all data of the data to be transmitted may be stored in the storage space corresponding to the transmission path according to the transmission path.
If the number of the determined transmission paths is multiple and the storage space is multiple, the data to be transmitted can be separately transmitted according to the multiple transmission paths at the same time and respectively stored in the storage spaces corresponding to the transmission paths. For easy understanding of this transmission manner, 2 transmission paths and 2 storage spaces are taken as examples. If the size of the data to be transmitted is 3GB, the terminal transmits the data through a first transmission path and a second transmission path respectively, the first transmission path is high in transmission speed, 2GB of the data is transmitted through the first transmission path, and the data is stored in a first storage space; the second transmission path has a relatively slow transmission speed, transmits 1GB of data through the second transmission path, and stores the data into the second storage space. Thus, data transmission is simultaneously carried out through a plurality of transmission channels, and the efficiency of data transmission can be improved.
In specific implementation, a plurality of storage paths corresponding to a plurality of storage devices may be implemented according to a memory Card, such as a UFS (UNIX file system) or an EMMC (Embedded multimedia Card), connected to the inside of the terminal device body, and an external expansion Card. The terminal device can select the storage space and the corresponding storage path according to the downloaded data, and the path can be a single path or a plurality of channels. Under the condition of transmission through a plurality of channels, the data can be decomposed and respectively downloaded to the internal memory card and the expansion card, so that the storage speed is increased. As shown in fig. 2, a system AP (Wireless Access Point) of the terminal device is connected to the system memory and the expansion memory at the same time, and stores a part of data into the system memory through the first channel and stores another part of data into the expansion memory through the second channel.
When the capacity of the data to be downloaded is small, any one of the plurality of storage spaces can be selected so as to save power consumption and ensure the integrity of the file; when the capacity of the data to be downloaded is large, a plurality of paths can be selected to transmit simultaneously, and the transmission speed is improved.
In this embodiment of the present invention, the data processing method may be applied to a terminal device, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The data processing method of the embodiment of the invention obtains the attribute of the data to be transmitted; determining a transmission path according to the attribute of the data to be transmitted; and respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces are in one-to-one correspondence with the transmission paths. Therefore, the terminal equipment can transmit data through a plurality of paths simultaneously according to the attribute of the data to be transmitted, and the data transmission efficiency can be improved.
Referring to fig. 3, the main difference between the present embodiment and the above-described embodiments is that the data to be transmitted is stored in a plurality of storage spaces according to the maximum transmission speed of each transmission path.
Fig. 3 is a flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301, obtaining the attribute of the data to be transmitted.
The implementation manner of this step may refer to the related description in the above embodiments, and is not described herein again to avoid repetition.
Optionally, the obtaining the attribute of the data to be transmitted includes:
acquiring the size and the type of the data to be transmitted;
determining a transmission path according to the attribute of the data to be transmitted, including:
and determining a transmission path according to the size of the data to be transmitted under the condition that the type of the data to be transmitted is a preset type.
The type of data to be transmitted may include pictures, videos, documents, audio, and the like. The preset type may be a type preset by the terminal or a type set by the user, for example, a file type that does not need to be transmitted in time is used as the preset type, or a type that needs to be transmitted quickly is set as the preset type.
In this embodiment, when the type of the data to be transmitted is a preset type, the transmission path is determined according to the size of the speed to be transmitted. For example, when the type of the data to be transmitted is a video, one or more transmission paths may be further determined according to the size of the video file, and when the type of the data to be transmitted is another type, the data is transmitted according to a default transmission path. Or, when the type of the data to be transmitted is a picture, since the picture is usually content that needs to be checked in time, one or more transmission paths can be determined according to the size of the picture, so as to improve the downloading speed.
In addition, a user can set a file type needing to improve the downloading speed in a self-defined mode, or a downloading time period is defined, namely, data downloaded in the preset time period are all downloaded by multiple paths, so that the data are transmitted according to multiple transmission paths according to the set requirements of equipment, and the transmission efficiency is improved.
This embodiment can also be applied to the corresponding example of fig. 1 and achieve the same advantageous effects.
Step 302, determining a transmission path according to the attribute of the data to be transmitted.
The implementation manner of this step may refer to the related description in the above embodiments, and is not described herein again to avoid repetition.
Optionally, before determining a transmission path according to the attribute of the data to be transmitted, the method further includes:
acquiring the downloading transmission speed of data and the writing transmission speed of the data;
determining a transmission path according to the attribute of the data to be transmitted, including:
under the condition that the downloading transmission speed is greater than the writing transmission speed, determining at least two transmission paths according to the attribute of the data to be transmitted;
and determining at least one transmission path according to the attribute of the data to be transmitted under the condition that the downloading transmission speed is less than or equal to the writing transmission speed.
In this embodiment, the terminal device may determine a transmission path of data to be transmitted based on the download transmission speed and the write transmission speed. Wherein, the download transmission speed can be the download speed from a Modem; the write transfer speed may be a transfer speed of a write memory card.
Because the actual downloading speed depends on the downloading transmission speed and the writing transmission speed, the writing transmission speed can be increased under the condition that the downloading transmission speed is greater than the writing transmission speed, namely, at least two transmission paths can be determined according to the attribute of the speed to be transmitted, and the data transmission efficiency is improved. And under the condition that the download transmission speed is less than or equal to the write transmission speed, at least one transmission path can be determined according to the attribute of the speed to be transmitted, such as the size and the like, without increasing the write transmission speed, so as to improve the integrity of the data.
This embodiment can also be applied to the corresponding example of fig. 1 and achieve the same advantageous effects.
And step 303, respectively acquiring the maximum data transmission speed of each transmission path in the M transmission paths.
The number of the transmission paths is M, the number of the target storage spaces is M, M is an integer greater than 1, and M is less than or equal to N; the target storage space is at least one storage space in the N storage spaces, and the target storage space corresponds to the transmission paths one to one.
In this step, since the transfer speed of each transfer path includes the download transfer speed and the transfer speed of writing to the memory card, the above-mentioned maximum data transfer speed may be the smaller value of the transfer speed of writing to the memory card and the transfer speed of downloading.
M storage spaces can be selected from N storage spaces of the terminal for storage.
And step 304, respectively storing the data to be transmitted to the M storage spaces according to the maximum data transmission speed.
When the data is transmitted through a plurality of transmission paths, the data to be transmitted can be decomposed into a plurality of small files and transmitted according to the maximum speed of the plurality of transmission paths, so that the downloading speed is improved. In addition, the data can be transmitted according to the proportion of the maximum transmission speed, and the transmission speed to be transmitted can be distributed to each storage space according to the proportion of the transmission speed, so that the data can be stored from the modem to the local at the highest speed.
For example, the size of the data packet is 1GB, the download speed of the internal memory of the terminal device is 250MB/s, and the download speed of the extended memory is 200 MB/s.
Then the download speed ratio S1: S2 of transmission path 1 to transmission path 2 is 250:200 to 5: 4. The data volume ratio of the internal memory to the external memory D1: D2 is 5: 4.
The total transmission speed of the transmission path 1 and the transmission path 2 is 250MB/s +200 MB/s-450 MB/s.
The download amount of each memory is respectively: the internal memory D1 is 1GB × 5/9, and the external memory D2 is 1GB × 4/9. The total data volume D-D1 + D2-1 GB.
If the data packet is downloaded according to the single channel D1, the time consumed is T1-D/S1-1 GB/250 MB/S; as shown in fig. 4, if downloading is performed through two channels, and the downloading is performed through the first channel and the second channel simultaneously, the time required for downloading is T2 ═ D/(S1+ S2) ═ 1GB/450MB/S, and the time is reduced to 5/9, which is about 0.55 times that of downloading through a single channel.
Optionally, the target storage space includes a first space and a second space, where the second space is a space other than the first space in the target storage space;
after the data corresponding to each transmission path in the data to be transmitted is respectively stored in each storage space in the target storage space, the method further includes:
acquiring target data stored to the second space in the data to be transmitted;
transferring the target data from the second space to the first space.
Wherein the second space may be one storage space or a plurality of storage spaces. In this embodiment, after the data to be transmitted is allocated to the first space and the second space, the data allocated to the second space may be transferred to the first space, that is, the target data is transferred from the second space to the first space, so as to ensure the integrity of the data to be transmitted and the convenience of the data in use.
As shown in fig. 5, after downloading from the modem and distributing the data to the system memory and the expansion memory of the terminal device, the terminal device may further transfer the data in the expansion memory back to the system memory at an idle time to ensure the integrity of the file. In specific implementation, a primary storage space and a secondary storage space can be further arranged, and when an interface is idle, data in the secondary storage space is automatically transmitted to the primary storage space.
This embodiment can also be applied to the corresponding example of fig. 1 and achieve the same advantageous effects.
The data processing method of the embodiment of the invention transmits according to the maximum transmission speed of the transmission path, and can improve the data downloading efficiency. By using the data processing method, the internal memory and the external memory are combined for use, and the high-speed downloaded data are intelligently and quickly transmitted to the local mobile terminal through a plurality of paths, so that the large data interaction with the cloud is met. When the network is idle, the data is transmitted in the plurality of memories in an off-line mode, and the integrity of the data is completed. Therefore, the bottleneck problem of the downloading speed under the 5G communication can be relieved.
Referring to fig. 6, fig. 6 is a structural diagram of a terminal device according to an embodiment of the present invention, where the terminal device includes N storage spaces, where N is an integer greater than 1. As shown in fig. 6, the terminal apparatus 600 includes:
a first obtaining module 601, configured to obtain an attribute of data to be transmitted;
a determining module 602, configured to determine a transmission path according to an attribute of the data to be transmitted;
a storage module 603, configured to store data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, where the target storage space is at least one storage space in the N storage spaces, and the target storage spaces correspond to the transmission paths one to one.
Optionally, the target storage space includes a first space and a second space, where the second space is a space other than the first space in the target storage space;
as shown in fig. 7, the terminal device further includes:
a second obtaining module 604, configured to obtain target data stored in the second space in the to-be-transmitted data;
a transfer module 605 configured to transfer the target data from the second space to the first space.
Optionally, the number of the transmission paths is M, the number of the target storage spaces is M, M is an integer greater than 1, and M is not greater than N;
as shown in fig. 8, the storage module 603 includes:
an obtaining sub-module 6031, configured to obtain a maximum data transmission speed of each transmission path in the M transmission paths, respectively;
and a storage submodule 6032, configured to store the data to be transmitted to the M storage spaces respectively according to the maximum data transmission speed.
Optionally, as shown in fig. 9, the terminal device further includes:
a third obtaining module 606, configured to obtain a download transmission speed of the data and a write transmission speed of the data;
the determining module 602 is specifically configured to:
under the condition that the downloading transmission speed is greater than the writing transmission speed, determining at least two transmission paths according to the attribute of the data to be transmitted;
and determining at least one transmission path according to the attribute of the data to be transmitted under the condition that the downloading transmission speed is less than or equal to the writing transmission speed.
Optionally, the first obtaining module 601 is specifically configured to obtain the size and the type of the data to be transmitted;
the determining module 602 is specifically configured to determine a transmission path according to the size of the data to be transmitted when the type of the data to be transmitted is a preset type.
The terminal device 600 can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
According to the terminal device 600 of the embodiment of the invention, the terminal device can transmit data through a plurality of paths simultaneously according to the attribute of the data to be transmitted, so that the data transmission efficiency can be improved.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 10 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
The processor 1010 is configured to obtain an attribute of data to be transmitted; determining a transmission path according to the attribute of the data to be transmitted; and respectively storing the data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces are in one-to-one correspondence with the transmission paths.
Therefore, the terminal equipment can transmit data through a plurality of paths simultaneously according to the attribute of the data to be transmitted, and the data transmission efficiency can be improved.
Optionally, the target storage space includes a first space and a second space, where the second space is a space other than the first space in the target storage space; the processor 1010 is further configured to, after executing the data corresponding to each transmission path in the data to be transmitted and storing the data to each storage space in the target storage space, respectively:
acquiring target data stored to the second space in the data to be transmitted;
transferring the target data from the second space to the first space.
Optionally, the number of the transmission paths is M, the number of the target storage spaces is M, M is an integer greater than 1, and M is not greater than N; the processor 1010 executes the data corresponding to each transmission path in the data to be transmitted, and respectively stores the data to each storage space in the target storage space, including:
respectively acquiring the maximum data transmission speed of each transmission path in the M transmission paths;
and respectively storing the data to be transmitted to the M storage spaces according to the maximum data transmission speed.
Optionally, before the processor 1010 executes the determining of the transmission path according to the attribute of the data to be transmitted, the processor is further configured to:
acquiring the downloading transmission speed of data and the writing transmission speed of the data;
the processor 1010 executes the determining of the transmission path according to the attribute of the data to be transmitted, including:
under the condition that the downloading transmission speed is greater than the writing transmission speed, determining at least two transmission paths according to the attribute of the data to be transmitted;
and determining at least one transmission path according to the attribute of the data to be transmitted under the condition that the downloading transmission speed is less than or equal to the writing transmission speed.
Optionally, the processor 1010 executes the obtaining of the attribute of the data to be transmitted, including:
acquiring the size and the type of the data to be transmitted;
determining a transmission path according to the attribute of the data to be transmitted, including:
and determining a transmission path according to the size of the data to be transmitted under the condition that the type of the data to be transmitted is a preset type.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 1002, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 can also provide audio output related to a specific function performed by the terminal apparatus 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
Terminal device 1000 can also include at least one sensor 1005, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 10061 and/or backlight when the terminal device 1000 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 10, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the terminal device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the terminal device, and the implementation is not limited herein.
The interface unit 1008 is an interface for connecting an external device to the terminal apparatus 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1008 can be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within terminal apparatus 1000 or can be used to transmit data between terminal apparatus 1000 and external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby performing overall monitoring of the terminal device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
Terminal device 1000 can also include a power source 1011 (e.g., a battery) for powering the various components, and preferably, power source 1011 can be logically coupled to processor 1010 through a power management system that provides management of charging, discharging, and power consumption.
In addition, the terminal device 1000 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 1010, a memory 1009, and a computer program stored in the memory 1009 and capable of running on the processor 1010, where the computer program is executed by the processor 1010 to implement each process in the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A data processing method is applied to a terminal device, and is characterized in that the terminal device comprises N storage spaces, N is an integer greater than 1, and the method comprises the following steps:
acquiring attributes of data to be transmitted, including the size, type and access time of the data to be transmitted;
determining a transmission path according to the attribute of the data to be transmitted;
respectively storing data corresponding to each transmission path in the data to be transmitted to each storage space in a target storage space, wherein the target storage space is at least one storage space in the N storage spaces, and the target storage spaces correspond to the transmission paths one to one;
before determining a transmission path according to the attribute of the data to be transmitted, the method further includes:
acquiring the downloading transmission speed of data and the writing transmission speed of the data;
determining a transmission path according to the attribute of the data to be transmitted, including:
under the condition that the downloading transmission speed is greater than the writing transmission speed, determining at least two transmission paths according to the attribute of the data to be transmitted;
and determining at least one transmission path according to the attribute of the data to be transmitted under the condition that the downloading transmission speed is less than or equal to the writing transmission speed.
2. The method of claim 1, wherein the target storage space comprises a first space and a second space, the second space being a space of the target storage space other than the first space;
after the data corresponding to each transmission path in the data to be transmitted is respectively stored in each storage space in the target storage space, the method further includes:
acquiring target data stored to the second space in the data to be transmitted;
transferring the target data from the second space to the first space.
3. The method of claim 1, wherein the number of transmission paths is M, the number of target storage spaces is M, M is an integer greater than 1, and M ≦ N;
the storing the data corresponding to each transmission path in the data to be transmitted to each storage space in the target storage space respectively includes:
respectively acquiring the maximum data transmission speed of each transmission path in the M transmission paths;
and respectively storing the data to be transmitted to the M storage spaces according to the maximum data transmission speed.
4. The method according to claim 1, wherein the obtaining the attribute of the data to be transmitted comprises:
acquiring the size and the type of the data to be transmitted;
determining a transmission path according to the attribute of the data to be transmitted, including:
and determining a transmission path according to the size of the data to be transmitted under the condition that the type of the data to be transmitted is a preset type.
5. A terminal device, wherein the terminal device includes N storage spaces, N is an integer greater than 1, and the terminal device includes:
the first acquisition module is used for acquiring the attributes of the data to be transmitted, including the size, the type and the access time of the data to be transmitted;
the determining module is used for determining a transmission path according to the attribute of the data to be transmitted;
the storage module is configured to store data corresponding to each transmission path in the to-be-transmitted data to each storage space in a target storage space, where the target storage space is at least one storage space in the N storage spaces, and the target storage spaces correspond to the transmission paths one to one;
the terminal device further includes:
the third acquisition module is used for acquiring the downloading transmission speed of the data and the writing transmission speed of the data;
the determining module is specifically configured to:
under the condition that the downloading transmission speed is greater than the writing transmission speed, determining at least two transmission paths according to the attribute of the data to be transmitted;
and determining at least one transmission path according to the attribute of the data to be transmitted under the condition that the downloading transmission speed is less than or equal to the writing transmission speed.
6. The terminal device according to claim 5, wherein the target storage space comprises a first space and a second space, and the second space is a space other than the first space in the target storage space;
the terminal device further includes:
the second acquisition module is used for acquiring target data stored to the second space in the data to be transmitted;
a transfer module to transfer the target data from the second space to the first space.
7. The terminal device according to claim 5, wherein the number of the transmission paths is M, the number of the target storage spaces is M, M is an integer greater than 1, and M is less than or equal to N;
the memory module includes:
the obtaining submodule is used for respectively obtaining the maximum data transmission speed of each transmission path in the M transmission paths;
and the storage submodule is used for respectively storing the data to be transmitted to the M storage spaces according to the maximum data transmission speed.
8. The terminal device according to claim 5, wherein the first obtaining module is specifically configured to obtain a size and a type of the data to be transmitted;
the determining module is specifically configured to determine a transmission path according to the size of the data to be transmitted when the type of the data to be transmitted is a preset type.
9. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps in the data processing method according to any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 4.
CN201910022923.XA 2019-01-10 2019-01-10 Data processing method, terminal equipment and computer readable storage medium Active CN109768926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910022923.XA CN109768926B (en) 2019-01-10 2019-01-10 Data processing method, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910022923.XA CN109768926B (en) 2019-01-10 2019-01-10 Data processing method, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109768926A CN109768926A (en) 2019-05-17
CN109768926B true CN109768926B (en) 2021-07-20

Family

ID=66453898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910022923.XA Active CN109768926B (en) 2019-01-10 2019-01-10 Data processing method, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109768926B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112136104A (en) * 2019-07-29 2020-12-25 深圳市大疆创新科技有限公司 Data packet writing method and device, control terminal and movable platform
CN110597435B (en) * 2019-09-05 2021-01-01 北京蒙奇迪科技发展有限公司 Cross-page checking system and method
CN112929283B (en) 2019-12-06 2024-04-02 中兴通讯股份有限公司 Data processing method, device, equipment and storage medium
CN113452608A (en) * 2020-03-25 2021-09-28 阿里巴巴集团控股有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN112332947B (en) * 2020-07-30 2024-04-02 深圳Tcl新技术有限公司 Data transmission method, mobile terminal and computer storage medium
CN112732175A (en) * 2020-12-25 2021-04-30 华录光存储研究院(大连)有限公司 Data transmission method and system
CN113342269A (en) * 2021-05-31 2021-09-03 上海蓝色帛缔智能工程有限公司 Multi-channel data storage method, device, equipment and medium based on cloud statistics
CN115440269A (en) * 2021-06-01 2022-12-06 长鑫存储技术有限公司 Data transmission circuit, data processing circuit and memory
CN113630808A (en) * 2021-08-05 2021-11-09 神州融安科技(北京)有限公司 Data transmission method, first device and second device
CN113676404A (en) * 2021-08-23 2021-11-19 北京字节跳动网络技术有限公司 Data transmission method, device, apparatus, storage medium, and program
CN115396359B (en) * 2022-08-26 2023-04-25 江苏湛之卢科技有限公司 Detection control system and method for data transmission path based on Internet of things

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004341674A (en) * 2003-05-14 2004-12-02 Hitachi Ltd Information processor
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device
CN105701048A (en) * 2016-01-15 2016-06-22 陈蔡峰 Multichannel data dynamic transmission method
CN105740425A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 File storage method and apparatus
WO2017000094A1 (en) * 2015-06-27 2017-01-05 华为技术有限公司 Data storage method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004341674A (en) * 2003-05-14 2004-12-02 Hitachi Ltd Information processor
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device
WO2017000094A1 (en) * 2015-06-27 2017-01-05 华为技术有限公司 Data storage method, device and system
CN105701048A (en) * 2016-01-15 2016-06-22 陈蔡峰 Multichannel data dynamic transmission method
CN105740425A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 File storage method and apparatus

Also Published As

Publication number Publication date
CN109768926A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN108255378B (en) Display control method and mobile terminal
CN107730261B (en) Resource transfer method and related equipment
CN108279948B (en) Application program starting method and mobile terminal
CN109151367B (en) Video call method and terminal equipment
CN110196667B (en) Notification message processing method and terminal
CN110913066A (en) Display method and electronic equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109710349B (en) Screen capturing method and mobile terminal
JP7053871B2 (en) Cell setting method, terminal and network node
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN111045772A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109739394B (en) SAR value processing method and mobile terminal
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108920040B (en) Application icon sorting method and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN110505660B (en) Network rate adjusting method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN109819458B (en) Network connection method, terminal device and computer readable storage medium
CN111026674A (en) Data storage method and electronic equipment
CN111061404A (en) Control method and first electronic device
CN109117037B (en) Image processing method and terminal equipment

Legal Events

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