WO2018076819A1 - 数据的上传方法、装置、存储介质、电子设备及*** - Google Patents

数据的上传方法、装置、存储介质、电子设备及*** Download PDF

Info

Publication number
WO2018076819A1
WO2018076819A1 PCT/CN2017/093432 CN2017093432W WO2018076819A1 WO 2018076819 A1 WO2018076819 A1 WO 2018076819A1 CN 2017093432 W CN2017093432 W CN 2017093432W WO 2018076819 A1 WO2018076819 A1 WO 2018076819A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
cloud server
target terminal
uploading
terminal data
Prior art date
Application number
PCT/CN2017/093432
Other languages
English (en)
French (fr)
Inventor
马志峰
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018076819A1 publication Critical patent/WO2018076819A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data uploading method, device, storage medium, electronic device and system.
  • Cloud backup is an emerging cloud computing service.
  • Cloud backup service providers bring together massive and heterogeneous storage devices in the network through virtualization, distributed processing and broadband networks to provide data storage backups. service. Users can centrally store and secure large numbers and scattered files or folders on the terminal through mobile Internet and broadband Internet access. However, when the terminal accesses the cloud server, it is easy to encounter a situation in which the server responds slowly and the success rate of data uploading is low.
  • the embodiment of the invention provides a data uploading method, device, storage medium, electronic device and system, which can speed up the response rate of the cloud server and improve the success rate of data uploading.
  • an embodiment of the present invention provides a data uploading method, including:
  • the input operation indicating uploading the target terminal data to the cloud server
  • the embodiment of the present invention further provides a data uploading apparatus, including:
  • a receiving unit configured to receive an input operation, where the input operation indicates that the target terminal data is uploaded to the cloud server;
  • a first determining unit configured to determine a data size of the target terminal data according to the input operation
  • a second determining unit configured to determine whether the cloud server meets a preset processable condition when determining that the data volume size of the target terminal data exceeds a preset threshold
  • a uploading unit configured to upload the target terminal data to the cloud server if it is determined that the cloud server meets the preset processable condition.
  • an embodiment of the present invention further provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, causes the computer to execute a data uploading method as described above.
  • an embodiment of the present invention further provides an electronic device, including a memory and a processor, by using a computer program stored in the memory, to execute a data uploading method as described above.
  • the embodiment of the present invention further provides a data uploading system, including a cloud server and an electronic device, where the electronic device includes the electronic device provided by the fourth aspect, and the cloud server is configured to receive the electronic device. An input operation sent by the device to upload the target terminal data.
  • the embodiment of the invention provides a data uploading method, device, storage medium, electronic device and system, which can speed up the response rate of the cloud server and improve the success rate of data uploading.
  • FIG. 1 is a schematic flowchart diagram of a method for uploading data according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a scenario of a data uploading system according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a method for uploading data according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data uploading apparatus according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a data uploading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the principles of the present invention operate using many other general purpose or special purpose computing, communication environments, or configurations.
  • Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
  • the data uploading device may be integrated into an electronic device, and the electronic device may be a terminal such as a tablet computer or a mobile phone.
  • An embodiment of the present invention provides a data uploading method, including:
  • the input operation indicating uploading the target terminal data to the cloud server
  • the determining whether the cloud server meets preset processable conditions comprises:
  • the determining a range of processable data amount of the cloud server includes:
  • the method further includes: if it is determined that the cloud server does not meet the preset processable condition, generating prompt information indicating that the terminal delays uploading and displaying .
  • the method further includes: if it is determined that the cloud server does not satisfy the preset processable condition, generating a data volume indicating the target terminal data Prompt information for adjustments and display.
  • the method further includes: if it is determined that the cloud server meets the preset processable condition, generating information and prompting the user to upload the information.
  • the input operation carries the target terminal data
  • the determining, according to the input operation, the data size of the target terminal data comprising: performing the reading by the reading the input operation Target terminal data to determine the amount of data of the target terminal data.
  • the input operation carries information indicating a storage location of the target terminal data, and determining the data size of the target terminal data according to the input operation includes:
  • the information indicating the storage location according to the target data carried by the input operation is read to the corresponding target terminal data to determine the data size of the target terminal data.
  • the method further includes: uploading the target terminal data to the cloud server when determining that the data size of the target terminal data does not exceed a preset threshold.
  • FIG. 1 is a schematic flowchart of a method for uploading data according to an embodiment of the present invention. The method includes:
  • step S101 an input operation is received, which indicates that the target terminal data is uploaded to the cloud server.
  • the data uploading device is integrated on the terminal (such as a mobile phone), and the terminal can be preset with an input interface for uploading a backup, such as a terminal application APP (Application) for backup synchronization, or an input control, and the user can click and touch
  • a backup such as a terminal application APP (Application) for backup synchronization, or an input control
  • the sliding interface triggers the input interface to obtain an input operation input by the user.
  • the input operation indicates that the target terminal data that needs to be uploaded and uploaded is uploaded to the cloud server, and the input operation may also carry the target terminal data or the information indicating the storage location of the target terminal data, and the like.
  • the target terminal data may specifically include terminal data such as short message data, chat record data, call record data, image data, and video data, which is not specifically limited herein.
  • step S102 based on the input operation, the data amount size of the target terminal data is determined.
  • the terminal directly reads the carried target terminal data in the input operation input by the user, or reads the corresponding target terminal data according to the information of the stored storage location, and then determines the data size of the target terminal data. .
  • step S103 when it is determined that the data size of the target terminal data exceeds a preset threshold, it is determined whether the cloud server satisfies the preset processable condition.
  • the data size needs to be compared with the preset threshold. If the data size of the target terminal data does not exceed the preset threshold, the target terminal data is not Large, can be directly uploaded to the cloud server.
  • the data size of the target terminal data exceeds the preset threshold, the data of the target terminal is large, and it is necessary to consider whether the cloud server meets the preset processing condition, that is, whether the cloud server currently has sufficient resources to process the part of the data, etc. .
  • the preset threshold may be set according to an empirical value, for example, according to the size of the data volume uploaded, downloaded, and backed up by the user in the past month, half a month, and one week, and is pre-stored in the terminal, so that Call, not specifically limited here.
  • determining whether the cloud server meets the preset processable conditions may specifically include:
  • the range of the amount of data that can be processed by the cloud server is used as a criterion for judging whether the cloud server currently has sufficient resources to process the target terminal data; if the data amount of the target terminal data is combined, if the data amount of the target terminal data is If the size is within the range of data that can be processed, the cloud server satisfies the preset processing condition, and the terminal may be prompted to upload the target terminal data.
  • the cloud server does not satisfy the preset processing condition, and the target terminal data cannot be currently processed.
  • step (1) may specifically include:
  • the terminal actively sends the query information to the cloud server, and the cloud server detects the current range of the processable data amount according to the query information, and feeds back, to the terminal, indication information indicating the current range of the processable data amount, the terminal.
  • the instruction information information of the range of data that can be processed by the cloud server can be read.
  • the information of the current range of the amount of data that can be processed by the cloud server is actively pushed to the terminal, which is not specifically limited in this embodiment.
  • step S104 if it is determined that the cloud server satisfies the preset processable condition, the target terminal data is uploaded to the cloud server.
  • the terminal uploads the corresponding target terminal data to the cloud server.
  • the following steps may also be included:
  • the prompt information indicating that the terminal delays uploading is generated and displayed.
  • the terminal may automatically generate a prompt information and display, so as to prompt the user to delay uploading the target terminal data.
  • the prompt information indicating that the data size of the target terminal data is adjusted is generated and displayed.
  • the terminal may automatically generate a prompt information and display to remind the user that the data size of the target terminal data may be adjusted, such as Reduce the target terminal data so that its data size satisfies the range of data that can be processed, and so on.
  • the data uploading method receives an input operation indicating that the target terminal data is uploaded, and determines the data size of the target terminal data according to the input operation; and determines the data amount of the target terminal data. If the size exceeds the preset threshold, and the cloud server meets the preset processing condition, the target terminal data is uploaded to the cloud server; that is, in this embodiment, before the terminal uploads the data, it is determined whether the cloud server meets the preset processing condition. After the preset processing conditions are met, the terminal data is uploaded to the cloud server, which avoids the server load being too high when accessing the cloud server is large, greatly speeding up the response rate of the cloud server, and improving the data uploading. Success rate.
  • the data uploading system mainly includes a data uploading device and a cloud server, wherein the data uploading device is specifically integrated in a terminal such as a tablet computer or a mobile phone, and the cloud server and the terminal can be wired or The wireless network is connected.
  • FIG. 2 is a schematic diagram of a scenario of a data uploading system provided by the present invention.
  • the data uploading device is specifically integrated in a mobile phone, and is mainly used for receiving an input operation triggered by a user, where the input operation instruction is
  • the target terminal data is uploaded to the cloud server, and the target terminal data may specifically include terminal data such as short message data, chat record data, call record data, and image data.
  • determining the data size of the target terminal data when determining that the data size of the target terminal data exceeds a preset threshold, determining whether the cloud server meets the preset processable condition, for example, determining whether the current
  • the target terminal data of the corresponding data volume is processed. If it is determined that the cloud server meets the preset processing condition, the target terminal data is uploaded to the cloud server, and after the uploading is completed, the data upload result fed back by the cloud server may also be received.
  • the cloud server meets the preset processing condition
  • the data uploading system may further include a cloud server, which is mainly used to receive an input operation sent by the terminal to indicate uploading target terminal data, and the cloud server determines whether the pre-satisfaction is satisfied according to the data size of the target terminal data.
  • the processing condition is set, and the judgment result is fed back to the terminal; if yes, the target terminal data uploaded by the terminal is received, and the data uploading result can be fed back to the terminal, and the like, to complete the uploading and backup of the terminal data.
  • FIG. 3 is another schematic flowchart of a method for uploading data according to an embodiment of the present invention.
  • the method includes:
  • step S201 the terminal receives an input operation triggered by the user.
  • the terminal receives an input operation triggered by a user by clicking, touching, sliding, and the like.
  • the input operation indicates that the target terminal data is uploaded to the cloud server, and the target terminal data may specifically include terminal data such as short message data, chat record data, call record data, image data, and video data, which are not specifically limited herein.
  • step S202 the terminal determines the data amount size of the target terminal data according to the input operation.
  • the terminal directly reads the carried target terminal data in the input operation input by the user, or reads the corresponding target terminal data according to the information of the stored storage location, and then determines the data size of the target terminal data.
  • target terminal data A, 300b (bytes) Such as “target terminal data A, 300b (bytes)", “target terminal data B, 300 Mb (megabytes)", and the like.
  • step S203 when it is determined that the data size of the target terminal data exceeds a preset threshold, the terminal sends the query information to the cloud server.
  • the data size needs to be compared with a preset threshold.
  • the terminal sends the query information to the cloud server to know the current range of data volume that can be processed by the cloud server.
  • the data representing the target terminal is not large, and may be directly uploaded to the cloud server.
  • step S204 the cloud server determines a current range of processable data amount according to the query information.
  • step S205 the cloud server feeds back the indication information to the terminal.
  • the indication information is used to indicate a range of data volume that can be processed by the cloud server.
  • step S203 to step S205 in the embodiment, the terminal actively sends the query information to the cloud server, and the cloud server detects the current range of the processable data according to the query information, and feeds back to the terminal for use.
  • the indication information indicating the current range of the data volume that can be processed the terminal can read the information of the range of the data volume that can be processed by the cloud server according to the indication information.
  • the cloud server may also actively push the information of the current data volume range of the target terminal to the terminal, for example, when the terminal determines that the data volume of the target terminal data exceeds a preset threshold, the cloud is The server feeds back the result, and the cloud server can push the information of the current range of processable data amount to the terminal according to the result.
  • the terminal sends information indicating the amount of data of the target terminal to the cloud server, and the cloud server actively detects whether the data size of the target terminal exceeds a preset threshold, and/or determines a range of data volume that can be processed, and actively pushes the corresponding to the terminal.
  • the embodiment does not specifically limit this.
  • step S206 when the terminal determines that the data size of the target terminal data satisfies the range of the processable data amount, the terminal generates and prompts the information uploaded by the user.
  • step S207 the terminal receives an upload operation input by the user according to the displayed information.
  • step S208 the terminal uploads the target terminal data according to the upload operation.
  • step S206 when it is determined that the data size of the target terminal data satisfies the range of the processable data amount, the target terminal data can be directly uploaded according to the upload operation input by the user.
  • step S209 when the terminal determines that the data size of the target terminal data does not satisfy the range of the processable data amount, the terminal generates a message prompting the user to delay the uploading and display.
  • a prompt information may be automatically generated and displayed to prompt the user to delay uploading the target terminal data.
  • the terminal may automatically generate a prompt information and display to remind the user that the data size of the target terminal data may be adjusted, such as Reduce the target terminal data so that its data size satisfies the range of data that can be processed, and so on.
  • the data uploading method receives an input operation indicating that the target terminal data is uploaded, and determines the data size of the target terminal data according to the input operation; and determines the data amount of the target terminal data. If the size exceeds the preset threshold, and the cloud server meets the preset processing condition, the target terminal data is uploaded to the cloud server; that is, in this embodiment, before the terminal uploads the data, it is determined whether the cloud server meets the preset processing condition. After the preset processing conditions are met, the terminal data is uploaded to the cloud server, which avoids the server load being too high when accessing the cloud server is large, greatly speeding up the response rate of the cloud server, and improving the data uploading. Success rate. That is, by pre-inquiring whether the server has sufficient resources to process the uploading requirement of the terminal before uploading the data, the load of the terminal can be effectively reduced, and the probability of the terminal uploading failure can also be reduced.
  • the embodiment of the present invention further provides an apparatus based on the uploading method of the foregoing data.
  • the meaning of the noun is the same as the method for uploading the terminal data. For specific implementation details, refer to the description in the method embodiment.
  • the embodiment of the invention further provides a data uploading device, including:
  • a receiving unit configured to receive an input operation, where the input operation indicates that the target terminal data is uploaded to the cloud server;
  • a first determining unit configured to determine a data size of the target terminal data according to the input operation
  • a second determining unit configured to determine whether the cloud server meets a preset processable condition when determining that the data volume size of the target terminal data exceeds a preset threshold
  • a uploading unit configured to upload the target terminal data to the cloud server if it is determined that the cloud server meets the preset processable condition.
  • the second determining unit comprises:
  • a first determining subunit configured to determine a range of processable data amount of the cloud server
  • a second determining subunit configured to determine that the cloud server satisfies the preset processable condition if the data size of the target terminal data is determined to satisfy the range of the processable data amount
  • a third determining subunit configured to determine that the cloud server does not satisfy the preset processable condition if it is determined that the data size of the target terminal data does not satisfy the range of the processable data amount.
  • the first determining subunit is for:
  • the apparatus further includes:
  • a first generating unit configured to: if it is determined that the cloud server does not meet the preset processing condition, generate prompt information indicating that the terminal delays uploading and display;
  • a second generating unit configured to: if the cloud server does not satisfy the preset processable condition, generate prompt information indicating that the data size of the target terminal data is adjusted and displayed.
  • the apparatus further includes:
  • the third generating unit is configured to: if it is determined that the cloud server meets the preset processable condition, generate information and prompt the user to upload the information.
  • the input operation carries the target terminal data
  • the first determining unit is configured to determine the target terminal data by reading the target terminal data carried by the input operation. The amount of data.
  • the input operation carries information indicating a storage location of the target terminal data
  • the first determining unit is configured to: read information of the storage location according to the target data carried by the input operation.
  • Corresponding target terminal data is determined to determine the amount of data of the target terminal data.
  • the uploading unit is further configured to upload the target terminal data to the cloud server when determining that the data size of the target terminal data does not exceed a preset threshold.
  • FIG. 4 is a schematic structural diagram of a data uploading apparatus according to an embodiment of the present invention.
  • the data uploading apparatus 300 includes a receiving unit 301, a first determining unit 302, a second determining unit 303, and an uploading unit 304.
  • the receiving unit 301 is configured to receive an input operation, where the input operation indicates that the target terminal data is uploaded to the cloud server.
  • the data uploading device is integrated on a terminal (such as a mobile phone), and the terminal may be preset with an input interface for uploading a backup, such as a terminal application APP for backup synchronization, or an input control, and the user may click, touch, slide, etc.
  • the mode triggers the input interface to obtain an input operation to the user input.
  • the input operation indicates that the target terminal data that needs to be uploaded and uploaded is uploaded to the cloud server, and the input operation may also carry the target terminal data or the information indicating the storage location of the target terminal data, and the like.
  • the target terminal data may specifically include terminal data such as short message data, chat record data, call record data, image data, and video data, which is not specifically limited herein.
  • the first determining unit 302 is configured to determine a data size of the target terminal data according to the input operation.
  • the input operation carries the target terminal data
  • the first determining unit 302 is configured to determine the data of the target terminal data by reading the target terminal data carried by the input operation. Quantity.
  • the input operation carries information indicating a storage location of the target terminal data
  • the first determining unit 302 is configured to: read, according to the target data carried by the input operation, information of the storage location to Corresponding target terminal data to determine the amount of data of the target terminal data.
  • the terminal directly reads the carried target terminal data in the input operation input by the user, or reads the corresponding target terminal data according to the information of the stored storage location, and then determines the data size of the target terminal data. .
  • the second determining unit 303 is configured to determine whether the cloud server meets a preset processable condition when determining that the data size of the target terminal data exceeds a preset threshold.
  • the uploading unit 304 is configured to upload the target terminal data to the cloud server if it is determined that the cloud server satisfies the preset processable condition.
  • the uploading unit 304 is further configured to upload the target terminal data to the cloud server when determining that the data size of the target terminal data does not exceed a preset threshold.
  • the data size needs to be compared with the preset threshold. If the data size of the target terminal data does not exceed the preset threshold, the target terminal data is not Large, can be directly uploaded to the cloud server.
  • the data size of the target terminal data exceeds the preset threshold, the data of the target terminal is large, and it is necessary to consider whether the cloud server meets the preset processing condition, that is, whether the cloud server currently has sufficient resources to process the part of the data, etc. .
  • the preset threshold may be set according to an empirical value, for example, according to the size of the data volume uploaded, downloaded, and backed up by the user in the past month, half a month, and one week, and is pre-stored in the terminal, so that Call, not specifically limited here.
  • FIG. 5 is another schematic structural diagram of a data uploading apparatus according to an embodiment of the present invention.
  • the second determining unit 303 in the data uploading apparatus 400 may specifically include:
  • the first determining subunit 3031 is configured to determine a range of processable data amount of the cloud server.
  • the second determining subunit 3032 is configured to determine that the cloud server satisfies the preset processable condition if the data size of the target terminal data is determined to satisfy the range of the processable data amount.
  • the third determining subunit 3033 is configured to determine that the cloud server does not satisfy the preset processable condition if it is determined that the data size of the target terminal data does not satisfy the range of the processable data amount.
  • the range of the amount of data that can be processed by the cloud server is used as a criterion for judging whether the cloud server currently has sufficient resources to process the target terminal data; if the data amount of the target terminal data is combined, if the data amount of the target terminal data is If the size is within the range of data that can be processed, the cloud server satisfies the preset processing condition, and the terminal may be prompted to upload the target terminal data.
  • the cloud server does not satisfy the preset processing condition, and the target terminal data cannot be currently processed.
  • the first determining sub-unit 3031 determines the range of data volume that can be processed by the cloud server, for example, it can be specifically used for:
  • the terminal actively sends the query information to the cloud server, and the cloud server detects the current range of the processable data amount according to the query information, and feeds back, to the terminal, indication information indicating the current range of the processable data amount, the terminal.
  • the instruction information information of the range of data that can be processed by the cloud server can be read.
  • the cloud server may also actively push the information of the current data volume range of the target terminal to the terminal, for example, when the terminal determines that the data volume of the target terminal data exceeds a preset threshold, the cloud is The server feeds back the result, and the cloud server can push the information of the current range of processable data amount to the terminal according to the result.
  • the terminal sends information indicating the amount of data of the target terminal to the cloud server, and the cloud server actively detects whether the data size of the target terminal exceeds a preset threshold, and/or determines a range of data volume that can be processed, and actively pushes the corresponding to the terminal.
  • the embodiment does not specifically limit this.
  • the data uploading apparatus 400 may further include:
  • the first generating unit 305 is configured to: if it is determined that the cloud server does not meet the preset processable condition, generate prompt information indicating that the terminal delays uploading and display.
  • the terminal may automatically generate a prompt information and display, so as to prompt the user to delay uploading the target terminal data.
  • the second generating unit 306 is configured to generate and display prompt information indicating that the data size of the target terminal data is adjusted, if it is determined that the cloud server does not satisfy the preset processable condition.
  • the terminal may automatically generate a prompt information and display to remind the user that the data size of the target terminal data may be adjusted, such as Reduce the target terminal data so that its data size satisfies the range of data that can be processed, and so on.
  • the third generating unit 307 is configured to: if it is determined that the cloud server meets the preset processable condition, generate information and prompt the user to upload the information.
  • the foregoing units may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing method embodiments and details are not described herein.
  • the data uploading device can be specifically integrated in a terminal such as a tablet computer or a mobile phone.
  • the data uploading apparatus receives an input operation indicating that the target terminal data is uploaded, and determines the data size of the target terminal data according to the input operation; and determines the data amount of the target terminal data. If the size exceeds the preset threshold, and the cloud server meets the preset processing condition, the target terminal data is uploaded to the cloud server; that is, in this embodiment, before the terminal uploads the data, it is determined whether the cloud server meets the preset processing condition. After the preset processing conditions are met, the terminal data is uploaded to the cloud server, which avoids the server load being too high when accessing the cloud server is large, greatly speeding up the response rate of the cloud server, and improving the data uploading. Success rate.
  • the embodiment of the present invention further provides a data uploading system, which can refer to the data uploading system shown in FIG. 2, including a cloud server and an electronic device, where the electronic device can be an electronic device according to an embodiment of the present invention.
  • the electronic device may also include any data uploading device provided by the above embodiments, and the electronic device may be specifically a terminal such as a tablet computer or a mobile phone.
  • the electronic device is specifically described as a terminal in the embodiment of the present invention.
  • the terminal is mainly used to receive an input operation input by a user, where the input operation indicates that the target terminal data is uploaded to the cloud server, and the target terminal data may specifically include Terminal data such as SMS data, chat log data, call log data, and image data.
  • determining the data size of the target terminal data when determining that the data size of the target terminal data exceeds a preset threshold, determining whether the cloud server meets the preset processable condition, for example, determining whether the current Processing the target terminal data of the corresponding data volume, if it is determined that the cloud server meets the preset processing condition, uploading the target terminal data to the cloud server, and after receiving the uploading, receiving the data uploading result fed back by the cloud server, etc. Wait.
  • the terminal may further determine whether the cloud server satisfies a preset processable condition, for example, specifically, determining a range of processable data amount of the cloud server; and determining that the data size of the target terminal data is satisfactory.
  • the data server is processed to determine that the cloud server meets the preset processable condition. If it is determined that the data size of the target terminal data does not satisfy the range of the processable data, it is determined that the cloud server does not satisfy the preset processable condition.
  • the manner in which the terminal determines the range of the data volume that can be processed by the cloud server may include: sending the query information to the cloud server; receiving the indication information fed back by the cloud server according to the query information, where the indication information is used to indicate the processable data of the cloud server.
  • the range of the quantity; according to the indication information, the range of the amount of data that can be processed by the cloud server is determined.
  • the terminal may be further configured to: if it is determined that the cloud server does not meet the preset processable condition, generate prompt information indicating that the terminal delays uploading and display. It can also be used to generate prompt information indicating that the data size of the target terminal data is adjusted and displayed, and the like, if it is determined that the cloud server does not satisfy the preset processing condition.
  • the data uploading system may further include a cloud server, which is mainly used for receiving an input operation sent by the terminal to indicate uploading target terminal data, and the cloud server determines whether the content is satisfied according to the data size of the target terminal data.
  • the preset condition can be processed, and the judgment result is fed back to the terminal; if yes, the target terminal data uploaded by the terminal is received, and the data upload result can be fed back to the terminal, and the like, to complete uploading and backup of the terminal data.
  • An embodiment of the present invention further provides an electronic device including a memory and a processor, and the processor is configured to execute a data uploading method as described above by calling a computer program stored in the memory.
  • the electronic device is a mobile terminal such as a tablet computer or a mobile phone.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 500 can include radio frequency (RF, Radio) Circuit 501, memory 502 including one or more computer readable storage media, input unit 503, display unit 504, sensor 504, audio circuit 506, wireless fidelity (WiFi, Wireless)
  • the Fidelity module 507 includes a processor 508 having one or more processing cores, and a power supply 509 and the like. It will be understood by those skilled in the art that the electronic device structure illustrated in FIG. 6 does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the radio frequency circuit 501 can be used for transmitting and receiving information, or receiving and transmitting signals during a call. Specifically, after receiving the downlink information of the base station, the radio network is processed by one or more processors 508; in addition, the data related to the uplink is sent to the base station. .
  • the radio frequency circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) Card, Transceiver, Coupler, Low Noise Amplifier (LNA, Low Noise) Amplifier), duplexer, etc.
  • SIM Subscriber Identity Module
  • the radio frequency circuit 501 can also communicate with the network and other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to the global mobile communication system (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio) Service), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA, Wideband Code) Division Multiple Access), Long Term Evolution (LTE), e-mail, short message service (SMS, Short) Messaging Service) and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short message service
  • Memory 502 can be used to store applications and data.
  • the application stored in the memory 502 contains executable code. Applications can form various functional modules.
  • the processor 508 executes various functional applications and data processing by running an application stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices (such as audio data, phone books, etc.).
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 may also include a memory controller to provide access to memory 502 by processor 508 and input unit 503.
  • the input unit 503 can be configured to receive input numbers, character information or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 503 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 508 is provided and can receive commands from the processor 508 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 503 can also include other input devices.
  • other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
  • Display unit 504 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 504 can include a display panel.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 508 to determine the type of the touch event, and then the processor 508 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to implement input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the electronic device can also include at least one type of sensor 505, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel when the electronic device moves to the ear, and/or Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the electronic device can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 506 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • the audio circuit 506 can convert the received audio data into an electrical signal, which is transmitted to a speaker, and converted into a sound signal output by the speaker.
  • the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into
  • the audio data is processed by the audio data output processor 508, transmitted via the RF circuit 501 to, for example, another electronic device, or the audio data is output to the memory 502 for further processing.
  • the audio circuit 506 may also include an earbud jack to provide communication of the peripheral earphones with the electronic device.
  • Wireless Fidelity is a short-range wireless transmission technology.
  • the wireless device can help users send and receive e-mail, browse web pages and access streaming media through the wireless fidelity module 507, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the wireless fidelity module 507, it can be understood that it does not belong to the essential configuration of the electronic device, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 508 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, executes the electronic device by running or executing an application stored in the memory 502, and calling data stored in the memory 502.
  • the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 508.
  • the electronic device also includes a power source 509 (such as a battery) that supplies power to the various components.
  • a power source 509 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 508 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 509 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the electronic device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 508 in the electronic device loads the executable code corresponding to the process of one or more applications into the memory 502 according to the following instructions, and is stored and stored by the processor 508.
  • the input operation indicates that the target terminal data is uploaded to the cloud server; determining the data size of the target terminal data according to the input operation; determining the cloud server when determining that the data size of the target terminal data exceeds a preset threshold Whether the preset processing condition is met; if it is determined that the cloud server meets the preset processing condition, the target terminal data is uploaded to the cloud server.
  • the processor 508 is further configured to: determine a range of processable data amount of the cloud server; if it is determined that the data size of the target terminal data meets the range of the processable data amount, determine that the cloud server satisfies Determining a pre-processable condition; if it is determined that the data size of the target terminal data does not satisfy the range of the processable data amount, determining that the cloud server does not satisfy the preset processable condition.
  • the processor 508 sends the query information to the cloud server, and receives the indication information that is sent by the cloud server according to the query information, where the indication information is used to indicate a range of processable data amount of the cloud server; And determining, according to the indication information, a range of processable data amount of the cloud server.
  • the processor 508 is further configured to: if it is determined that the cloud server does not meet the preset processable condition, generate a command to delay the terminal. Uploaded reminder information and display. Further, if it is determined that the cloud server does not satisfy the preset processable condition, the prompt information indicating that the data size of the target terminal data is adjusted is generated and displayed. Further, if it is determined that the cloud server meets a preset processable condition, information that prompts the user to upload is generated and displayed.
  • the input operation carries the target terminal data
  • the processor 508 is further configured to: perform the function of: determining the target terminal data by reading the target terminal data carried by the input operation. The amount of data.
  • the input operation carries information indicating a storage location of the target terminal data
  • the processor 508 is further configured to implement the following functions:
  • the information indicating the storage location according to the target data carried by the input operation is read to the corresponding target terminal data to determine the data size of the target terminal data.
  • processor 508 is further configured to implement the following functions:
  • the target terminal data is uploaded to the cloud server.
  • the data uploading device provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, etc., and the data uploading device belongs to the same concept as the data uploading method in the above embodiment.
  • the data uploading device may be used to run any of the methods provided in the data uploading method embodiment. For details, refer to the data uploading method embodiment, which is not described here.
  • Embodiments of the present invention also provide a storage medium having stored thereon a computer program that, when executed on a computer, causes the computer to perform a data uploading method as described above.
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and can include data as described in the execution process.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种数据的上传方法,包括: 接收输入操作,该输入操作指示将目标终端数据上传至云端服务器;根据该输入操作,确定目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值时,确定云端服务器是否满足预设可处理条件;若确定该云端服务器满足该预设可处理条件,则将目标终端数据上传至云端服务器;此外,本发明还提供相应的数据的上传装置、存储介质、电子设备及***。

Description

数据的上传方法、装置、存储介质、电子设备及***
本申请要求于2016年10月25日提交中国专利局、申请号为2016109490908、发明名称为“一种数据的上传方法、装置及***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种数据的上传方法、装置、存储介质、电子设备及***。
背景技术
云备份是一种新兴的云计算业务,云备份服务提供商通过虚拟化、分布式处理和宽带网络等技术,将网络中海量、异构的存储设备集合起来协同工作,共同对外提供数据存储备份服务。用户可以通过移动互联网和宽带互联网接入,实现对终端上大量和分散的文件或文件夹的集中存储、安全保管。然而,终端在访问云端服务器时,容易遇到服务器响应缓慢以及数据上传的成功率低下的情形。
技术问题
本发明实施例提供一种数据的上传方法、装置、存储介质、电子设备及***,可以加快云端服务器的响应速率,并提升数据上传的成功率。
技术解决方案
本发明实施例提供以下技术方案:
第一方面,本发明实施例提供一种数据的上传方法,包括:
接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
根据所述输入操作,确定所述目标终端数据的数据量大小;
当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
第二方面,本发明实施例还提供一种数据的上传装置,包括:
接收单元,用于接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
第一确定单元,用于根据所述输入操作,确定所述目标终端数据的数据量大小;
第二确定单元,用于当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
上传单元,用于若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
第三方面,本发明实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上所述的数据的上传方法。
第四方面,本发明实施例还提供一种电子设备,包括存储器和处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如上所述的数据的上传方法。
第五方面,本发明实施例还提供一种数据的上传***,包括云端服务器以及电子设备,其中所述电子设备包括如第四方面提供的电子设备;所述云端服务器,用于接收所述电子设备发送的指示上传目标终端数据的输入操作。
有益效果
本发明实施例提供一种数据的上传方法、装置、存储介质、电子设备及***,可以加快云端服务器的响应速率,并提升数据上传的成功率。
附图说明
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。
图1为本发明实施例提供的数据的上传方法的流程示意图。
图2为本发明实施例提供的数据的上传***的场景示意图。
图3为本发明实施例提供的数据的上传方法的另一流程示意图。
图4为本发明实施例提供的数据的上传装置的结构示意图。
图5为本发明实施例提供的数据的上传装置的另一结构示意图。
图6为本发明实施例提供的电子设备的结构示意图。
本发明的最佳实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存***中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实***置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算***、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器***、微电脑为主的***、主架构型计算机、及分布式运算环境,其中包括了任何的上述***或装置。
以下将分别进行详细说明。
在本实施例中,将从数据的上传装置的角度进行描述,该数据的上传装置具体可以集成在电子设备中,该电子设备可以为如平板电脑、手机等终端。
本发明实施例提供一种数据的上传方法,包括:
接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
根据所述输入操作,确定所述目标终端数据的数据量大小;
当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
在一些实施例中,所述确定所述云端服务器是否满足预设可处理条件,包括:
确定所述云端服务器的可处理数据量范围;
若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件;
若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
在一些实施例中,所述确定所述云端服务器的可处理数据量范围,包括:
向所述云端服务器发送查询信息;
接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;
根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
在一些实施例中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。
在一些实施例中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
在一些实施例中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
在一些实施例中,所述输入操作携带有所述目标终端数据,所述根据所述输入操作,确定所述目标终端数据的数据量大小,包括:通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述输入操作携带有指示所述目标终端数据存放位置的信息,所述根据所述输入操作,确定所述目标终端数据的数据量大小,包括:
根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述方法还包括:当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
请参阅图1,图1是本发明实施例提供的数据的上传方法的流程示意图。所述方法包括:
在步骤S101中,接收输入操作,该输入操作指示将目标终端数据上传至云端服务器。
比如,数据的上传装置集成在终端(如手机)上,终端可预先设置有用于上传备份的输入接口,如用于备份同步的终端应用APP(Application),或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以获取到用户输入的输入操作。
可以理解的是,该输入操作指示将需要上传备份的目标终端数据上传至云端服务器,该输入操作中还可以携带有目标终端数据或者指示目标终端数据存放位置的信息,等等。
另外,本实施例中,目标终端数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据、视频数据等终端数据,此处不作具体限定。
在步骤S102中,根据该输入操作,确定目标终端数据的数据量大小。
比如,首先终端在用户输入的输入操作中,直接读取携带的目标终端数据,或者根据携带的指示存放位置的信息读取到相应的目标终端数据,然后确定出该目标终端数据的数据量大小。
在步骤S103中,当判断出目标终端数据的数据量大小超过预设阈值时,确定云端服务器是否满足预设可处理条件。
比如,在终端确定出目标终端数据的数据量大小后,需要将该数据量大小与预设阈值进行比较,如果目标终端数据的数据量大小不超过该预设阈值,则代表该目标终端数据不大,可直接上传至云端服务器。
如果目标终端数据的数据量大小超过该预设阈值,则代表该目标终端数据较大,需要考虑云端服务器是否满足预设可处理条件,即需要判断云端服务器当前是否有足够资源处理该部分数据等。
其中,该预设阈值可以根据经验值进行设定,如根据用户近一个月、半个月、一个星期等上传、下载以及备份的数据量的大小来设定,并预先存储在终端中,以便调用,此处不作具体限定。
可以理解的是,终端确定云端服务器是否满足预设可处理条件的方式有很多,比如,“确定云端服务器是否满足预设可处理条件”可以具体包括:
(1)确定云端服务器的可处理数据量范围。
(2)若确定目标终端数据的数据量大小满足可处理数据量范围,则确定云端服务器满足预设可处理条件。
(3)若确定目标终端数据的数据量大小不满足可处理数据量范围,则确定云端服务器不满足预设可处理条件。
即,该实施方式中,以云端服务器的可处理数据量范围,作为判断云端服务器当前是否有足够资源处理目标终端数据的标准;结合目标终端数据的数据量大小,如果该目标终端数据的数据量大小在可处理数据量范围内,则代表云端服务器满足预设可处理条件,可提示终端上传该目标终端数据。
相反的,如果该目标终端数据的数据量大小不在可处理数据量范围内,则代表云端服务器不满足预设可处理条件,当前不能处理该目标终端数据。
可以理解的是,终端确定云端服务器的可处理数据量范围的方式有很多,比如, “确定云端服务器的可处理数据量范围”(即步骤(1))可以具体包括:
(11)向云端服务器发送查询信息。
(12)接收云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示该云端服务器的可处理数据量范围。
(13)根据指示信息,确定出云端服务器的可处理数据量范围。
在该实施方式中,由终端主动向云端服务器发送查询信息,云端服务器根据该查询信息检测当前的可处理数据量范围,并向终端反馈用于指示当前的可处理数据量范围的指示信息,终端根据该指示信息,即可读取到云端服务器的可处理数据量范围的信息。
此外,在一些实施例中,还可以由云端服务器主动将其当前的可处理数据量范围的信息推送至终端,本实施例对此不作具体限定。
在步骤S104中,若确定该云端服务器满足该预设可处理条件,则将目标终端数据上传至云端服务器。
比如,当确定目标终端数据的数据量大小满足可处理数据量范围时,终端将对应的目标终端数据上传至云端服务器。
在一些实施例中,“确定云端服务器是否满足预设可处理条件”之后,还可以包括如下步骤:
比如,若确定云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。
可具体的,当确定目标终端数据的数据量大小不满足可处理数据量范围时,终端可自动生成一提示信息并展示,以提示用户可以延缓上传该目标终端数据。
又比如,若确定云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
在该实施方式中,当确定目标终端数据的数据量大小不满足可处理数据量范围时,终端可自动生成一提示信息并展示,以提醒用户可以对目标终端数据的数据量大小进行调整,如缩小目标终端数据,以使其数据量大小满足可处理数据量范围,等等。
由上述可知,本实施例提供的数据的上传方法,接收指示将目标终端数据进行上传的输入操作,并根据该输入操作,确定目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值,并且该云端服务器满足该预设可处理条件时,将目标终端数据上传至云端服务器;即本实施例中在终端上传数据前先确定云端服务器是否满足预设可处理条件,在满足预设可处理条件下,才将终端数据上传至云端服务器,避免了访问云端服务器的数据量较大时服务器端负载过高,大大加快了云端服务器的响应速率,并提升了数据上传的成功率。
根据上述实施例所描述的方法,以下将举例作进一步详细说明。
本发明实施例提供的数据的上传***,主要包括数据的上传装置以及云端服务器,其中,该数据的上传装置具体可以集成在如平板电脑,手机等终端中,该云端服务器与终端可通过有线或无线网络进行连接。
比如,请参考图2,图2为本发明提供的数据的上传***的场景示意图,该数据的上传装置具体集成在手机中,主要用于接收用户触发的输入操作,其中,该输入操作指示将目标终端数据上传至云端服务器,该目标终端数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据等终端数据。然后,根据该输入操作,确定出目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值时,再确定云端服务器是否满足预设可处理条件,如判断当前是否可以处理相应数据量大小的目标终端数据,若确定该云端服务器满足该预设可处理条件,则将目标终端数据上传至云端服务器,在上传完成后,还可以接收云端服务器反馈的数据上传结果等,以方便用户查阅与操作。
另外,如图2所示,该数据的上传***还可以包括云端服务器,主要用于接收终端发送的指示上传目标终端数据的输入操作,云端服务器根据目标终端数据的数据量大小判断是否满足该预设可处理条件,并将判断结果反馈至终端;若满足,则接收终端上传的目标终端数据,并可以将数据上传结果反馈至终端,等等,以完成终端数据的上传和备份。
为了方便描述以及介绍方案,图2中示出了用户以及用户与终端间的交互,但是用户并不构成数据的上传***的一部分。
请参阅图3,图3为本发明实施例提供的数据的上传方法的另一流程示意图。所述方法包括:
在步骤S201中,终端接收用户触发的输入操作。
比如,终端接收用户通过点击、触摸、滑动等方式触发的输入操作。
其中,该输入操作指示将目标终端数据上传至云端服务器,该目标终端数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据、视频数据等终端数据,此处不作具体限定。
在步骤S202中,终端根据该输入操作,确定目标终端数据的数据量大小。
比如,终端在用户输入的输入操作中,直接读取携带的目标终端数据,或者根据携带的指示存放位置的信息读取到相应的目标终端数据,然后确定出该目标终端数据的数据量大小,如“目标终端数据A,300b(字节)”、“目标终端数据B,300Mb(兆)”,等等。
在步骤S203中,当判断出目标终端数据的数据量大小超过预设阈值时,终端向云端服务器发送查询信息。
比如,在终端确定出目标终端数据的数据量大小后,需要将该数据量大小与预设阈值进行比较。
如果目标终端数据的数据量大小超过该预设阈值,则代表该目标终端数据较大,需要考虑云端服务器是否满足预设可处理条件,即需要判断云端服务器当前是否有足够资源处理该部分数据等,此时终端向云端服务器发送查询信息,以获知云端服务器当前的可处理数据量范围。
在一些实施例中,如果目标终端数据的数据量大小不超过该预设阈值,则代表该目标终端数据不大,可直接上传至云端服务器。
在步骤S204中,云端服务器根据该查询信息,确定当前的可处理数据量范围。
在步骤S205中,云端服务器向终端反馈指示信息。
其中,该指示信息用于指示该云端服务器的可处理数据量范围。
可以理解的是,由步骤S203至步骤S205可知,该实施例中,是由终端主动向云端服务器发送查询信息,云端服务器根据该查询信息检测当前的可处理数据量范围,并向终端反馈用于指示当前的可处理数据量范围的指示信息,终端根据该指示信息,即可读取到云端服务器的可处理数据量范围的信息。
此外,在一些实施例中,还可以由云端服务器主动将其当前的可处理数据量范围的信息推送至终端,比如,在终端判断出目标终端数据的数据量大小超过预设阈值时,向云端服务器反馈该结果,云端服务器可根据该结果将当前的可处理数据量范围的信息推送至终端。
又比如,终端向云端服务器发送指示目标终端数据量大小的信息,由云端服务器主动检测该目标终端数据量大小是否超过预设阈值,和/或确定可处理数据量范围,并主动向终端推送相应的结果,本实施例对此不作具体限定。
在步骤S206中,终端确定目标终端数据的数据量大小满足可处理数据量范围时,生成提示用户上传的信息并展示。
在步骤S207中,终端接收用户根据该展示的信息输入的上传操作。
在步骤S208中,终端根据该上传操作上传目标终端数据。
由步骤S206至步骤S207可知,当确定目标终端数据的数据量大小满足可处理数据量范围时,可直接根据用户输入的上传操作对目标终端数据进行上传。
在步骤S209中,终端确定目标终端数据的数据量大小不满足可处理数据量范围时,生成提示用户延缓上传的信息并展示。
由该步骤可知,当确定目标终端数据的数据量大小不满足可处理数据量范围时,可自动生成一提示信息并展示,以提示用户可以延缓上传该目标终端数据。
在一些实施例中,当确定目标终端数据的数据量大小不满足可处理数据量范围时,终端可自动生成一提示信息并展示,以提醒用户可以对目标终端数据的数据量大小进行调整,如缩小目标终端数据,以使其数据量大小满足可处理数据量范围,等等。
由上述可知,本实施例提供的数据的上传方法,接收指示将目标终端数据进行上传的输入操作,并根据该输入操作,确定目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值,并且该云端服务器满足该预设可处理条件时,将目标终端数据上传至云端服务器;即本实施例中在终端上传数据前先确定云端服务器是否满足预设可处理条件,在满足预设可处理条件下,才将终端数据上传至云端服务器,避免了访问云端服务器的数据量较大时服务器端负载过高,大大加快了云端服务器的响应速率,并提升了数据上传的成功率。即,通过在上传数据前预先询问服务器是否有足够的资源来处理终端的上传需求,可以有效降低终端的负载,同时还可以降低终端上传失败的几率。
为便于更好的实施本发明实施例提供的数据的上传方法,本发明实施例还提供一种基于上述数据的上传方法的装置。其中名词的含义与上述终端数据的上传的方法中相同,具体实现细节可以参考方法实施例中的说明。
本发明实施例还提供一种数据的上传装置,包括:
接收单元,用于接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
第一确定单元,用于根据所述输入操作,确定所述目标终端数据的数据量大小;
第二确定单元,用于当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
上传单元,用于若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
在一些实施例中,所述第二确定单元包括:
第一确定子单元,用于确定所述云端服务器的可处理数据量范围;
第二确定子单元,用于若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件;
第三确定子单元,用于若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
在一些实施例中,所述第一确定子单元用于:
向所述云端服务器发送查询信息;接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
在一些实施例中,所述装置还包括:
第一生成单元,用于若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示;
第二生成单元,用于若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
在一些实施例中,所述装置还包括:
第三生成单元,用于若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
在一些实施例中,所述输入操作携带有所述目标终端数据,所述第一确定单元,用于通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述输入操作携带有指示所述目标终端数据存放位置的信息,所述第一确定单元,用于根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述上传单元,还用于当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
请参阅图4,图4为本发明实施例提供的数据的上传装置的结构示意图,该数据的上传装置300包括接收单元301、第一确定单元302、第二确定单元303以及上传单元304。
其中接收单元301,用于接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器。
比如,数据的上传装置集成在终端(如手机)上,终端可预先设置有用于上传备份的输入接口,如用于备份同步的终端应用APP,或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以获取到用户输入的输入操作。
可以理解的是,该输入操作指示将需要上传备份的目标终端数据上传至云端服务器,该输入操作中还可以携带有目标终端数据或者指示目标终端数据存放位置的信息,等等。
另外,本实施例中,目标终端数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据、视频数据等终端数据,此处不作具体限定。
第一确定单元302,用于根据所述输入操作,确定所述目标终端数据的数据量大小。
在一些实施例中,所述输入操作携带有所述目标终端数据,第一确定单元302,用于通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述输入操作携带有指示所述目标终端数据存放位置的信息,第一确定单元302,用于根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
比如,首先终端在用户输入的输入操作中,直接读取携带的目标终端数据,或者根据携带的指示存放位置的信息读取到相应的目标终端数据,然后确定出该目标终端数据的数据量大小。
第二确定单元303,用于当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件。
上传单元304,用于若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
在一些实施例中,上传单元304,还用于当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
比如,在终端确定出目标终端数据的数据量大小后,需要将该数据量大小与预设阈值进行比较,如果目标终端数据的数据量大小不超过该预设阈值,则代表该目标终端数据不大,可直接上传至云端服务器。
如果目标终端数据的数据量大小超过该预设阈值,则代表该目标终端数据较大,需要考虑云端服务器是否满足预设可处理条件,即需要判断云端服务器当前是否有足够资源处理该部分数据等。
其中,该预设阈值可以根据经验值进行设定,如根据用户近一个月、半个月、一个星期等上传、下载以及备份的数据量的大小来设定,并预先存储在终端中,以便调用,此处不作具体限定。
请一并参阅图5,图5为本发明实施例提供的数据的上传装置的另一结构示意图,其中该数据的上传装置400中的第二确定单元303可以具体包括:
第一确定子单元3031,用于确定所述云端服务器的可处理数据量范围。
第二确定子单元3032,用于若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件。
第三确定子单元3033,用于若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
在一种实施方式中,以云端服务器的可处理数据量范围,作为判断云端服务器当前是否有足够资源处理目标终端数据的标准;结合目标终端数据的数据量大小,如果该目标终端数据的数据量大小在可处理数据量范围内,则代表云端服务器满足预设可处理条件,可提示终端上传该目标终端数据。
相反的,如果该目标终端数据的数据量大小不在可处理数据量范围内,则代表云端服务器不满足预设可处理条件,当前不能处理该目标终端数据。
可以理解的是,第一确定子单元3031确定云端服务器的可处理数据量范围的方式有很多,比如,可具体用于:
向所述云端服务器发送查询信息;接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
在该实施方式中,由终端主动向云端服务器发送查询信息,云端服务器根据该查询信息检测当前的可处理数据量范围,并向终端反馈用于指示当前的可处理数据量范围的指示信息,终端根据该指示信息,即可读取到云端服务器的可处理数据量范围的信息。
此外,在一些实施例中,还可以由云端服务器主动将其当前的可处理数据量范围的信息推送至终端,比如,在终端判断出目标终端数据的数据量大小超过预设阈值时,向云端服务器反馈该结果,云端服务器可根据该结果将当前的可处理数据量范围的信息推送至终端。
又比如,终端向云端服务器发送指示目标终端数据量大小的信息,由云端服务器主动检测该目标终端数据量大小是否超过预设阈值,和/或确定可处理数据量范围,并主动向终端推送相应的结果,本实施例对此不作具体限定。
如图5所示,所述数据的上传装置400还可以包括:
第一生成单元305,用于若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。
可具体的,当确定目标终端数据的数据量大小不满足可处理数据量范围时,终端可自动生成一提示信息并展示,以提示用户可以延缓上传该目标终端数据。
第二生成单元306,用于若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
在该实施方式中,当确定目标终端数据的数据量大小不满足可处理数据量范围时,终端可自动生成一提示信息并展示,以提醒用户可以对目标终端数据的数据量大小进行调整,如缩小目标终端数据,以使其数据量大小满足可处理数据量范围,等等。
第三生成单元307,用于若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。
该数据的上传装置具体可以集成在如平板电脑、手机等终端中。
由上述可知,本实施例提供的数据的上传装置,接收指示将目标终端数据进行上传的输入操作,并根据该输入操作,确定目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值,并且该云端服务器满足该预设可处理条件时,将目标终端数据上传至云端服务器;即本实施例中在终端上传数据前先确定云端服务器是否满足预设可处理条件,在满足预设可处理条件下,才将终端数据上传至云端服务器,避免了访问云端服务器的数据量较大时服务器端负载过高,大大加快了云端服务器的响应速率,并提升了数据上传的成功率。
另外,本发明实施例还提供一种数据的上传***,可参考如图2所示的数据的上传***,包括云端服务器以及电子设备,其中该电子设备可以为本发明实施例所述的电子设备;该电子设备可以也包括如上实施例所提供的任一数据的上传装置,该电子设备可具体为如平板电脑、手机等终端。
比如,该电子设备在本发明实施例中具体描述为终端,该终端主要用于接收用户输入的输入操作,其中,该输入操作指示将目标终端数据上传至云端服务器,该目标终端数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据等终端数据。然后,根据该输入操作,确定出目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值时,再确定云端服务器是否满足预设可处理条件,如判断当前是否可以处理相应数据量大小的目标终端数据,若确定该云端服务器满足该预设可处理条件,则将目标终端数据上传至云端服务器,在上传完成后,还可以接收云端服务器反馈的数据上传结果,等等。
在一些实施例中,终端还可以基于以下方式确定云端服务器是否满足预设可处理条件,比如,可具体的,确定云端服务器的可处理数据量范围;若确定目标终端数据的数据量大小满足可处理数据量范围,则确定云端服务器满足所述预设可处理条件,若确定目标终端数据的数据量大小不满足可处理数据量范围,则确定云端服务器不满足预设可处理条件。
其中,终端确定所述云端服务器的可处理数据量范围的方式可以包括:向云端服务器发送查询信息;接收云端服务器根据该查询信息反馈的指示信息,该指示信息用于指示云端服务器的可处理数据量范围;根据该指示信息,确定出云端服务器的可处理数据量范围。
在一些实施例中,终端确定云端服务器是否满足预设可处理条件之后,还可以用于:若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。也可以用于,若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示,等等。
另外,如图2所示,该数据的上传***还可以包括云端服务器,主要用于接收终端发送的指示上传目标终端数据的输入操作,该云端服务器根据目标终端数据的数据量大小判断是否满足该预设可处理条件,并将判断结果反馈至终端;若满足,则接收终端上传的目标终端数据,并可以将数据上传结果反馈至终端,等等,以完成终端数据的上传和备份。
可以理解的是,其中该数据的上传装置的结构以及功能实现可以参见上文针对数据的上传装置的详细描述,此处不再赘述。本发明实施例还提供一种电子设备,包括存储器和处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如上所述的数据的上传方法。所述电子设备如平板电脑、手机等移动终端,请参阅图6,图6为本发明实施例提供的电子设备结构示意图。该电子设备500可以包括射频(RF,Radio Frequency)电路501、包括有一个或一个以上计算机可读存储介质的存储器502、输入单元503、显示单元504、传感器504、音频电路506、无线保真(WiFi,Wireless Fidelity)模块507、包括有一个或者一个以上处理核心的处理器508、以及电源509等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
射频电路501可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器508处理;另外,将涉及上行的数据发送给基站。通常,射频电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM, Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,射频电路501还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯*** (GSM,Global System of Mobile communication)、通用分组无线服务(GPRS ,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器508通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器508和输入单元503对存储器502的访问。
输入单元503可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元503可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元503还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、指纹识别模组、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元504可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图6中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
电子设备还可包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路506可通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路506可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经射频电路501以发送给比如另一电子设备,或者将音频数据输出至存储器502以便进一步处理。音频电路506还可能包括耳塞插孔,以提供外设耳机与电子设备的通信。
无线保真(WiFi)属于短距离无线传输技术,电子设备通过无线保真模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了无线保真模块507,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器508是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器508可包括一个或多个处理核心;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。
电子设备还包括给各个部件供电的电源509(比如电池)。优选的,电源可以通过电源管理***与处理器508逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管图6中未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。
具体在本实施例中,电子设备中的处理器508会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器508来运行存储在存储器502中的应用程序,从而实现各种功能:
接收输入操作,该输入操作指示将目标终端数据上传至云端服务器;根据该输入操作,确定目标终端数据的数据量大小;当判断出目标终端数据的数据量大小超过预设阈值时,确定云端服务器是否满足预设可处理条件;若确定该云端服务器满足该预设可处理条件,则将目标终端数据上传至云端服务器。
处理器508还用于实现以下功能:确定所述云端服务器的可处理数据量范围;若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件;若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
在一些实施例中,处理器508向所述云端服务器发送查询信息;接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
在一些实施例中,处理器508在确定所述云端服务器是否满足预设可处理条件之后,还用于实现以下功能:若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。进一步的,若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。进一步的,若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
在一些实施例中,所述输入操作携带有所述目标终端数据,处理器508还用于实现以下功能:通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,所述输入操作携带有指示所述目标终端数据存放位置的信息,处理器508还用于实现以下功能:
根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
在一些实施例中,处理器508还用于实现以下功能:
当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对数据的上传方法的详细描述,此处不再赘述。
本发明实施例提供的所述数据的上传装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述数据的上传装置与上文实施例中的数据的上传方法属于同一构思,在所述数据的上传装置上可以运行所述数据的上传方法实施例中提供的任一方法,其具体实现过程详见所述数据的上传方法实施例,此处不再赘述。
本发明实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上所述的数据的上传方法。
需要说明的是,对本发明所述数据的上传方法而言,本领域普通测试人员可以理解实现本发明实施例所述数据的上传方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述数据的上传方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。
对本发明实施例的所述数据的上传装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本发明实施例所提供的一种数据的上传方法、装置、存储介质、电子设备及***进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种数据的上传方法,其包括:
    接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
    根据所述输入操作,确定所述目标终端数据的数据量大小;
    当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
    若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
  2. 根据权利要求1所述的数据的上传方法,其中,所述确定所述云端服务器是否满足预设可处理条件,包括:
    确定所述云端服务器的可处理数据量范围;
    若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件;
    若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
  3. 根据权利要求2所述的数据的上传方法,其中,所述确定所述云端服务器的可处理数据量范围,包括:
    向所述云端服务器发送查询信息;
    接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;
    根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
  4. 根据权利要求2所述的数据的上传方法,其中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:
    若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示。
  5. 根据权利要求2所述的数据的上传方法,其中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:
    若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
  6. 根据权利要求2所述的数据的上传方法,其中,所述确定所述云端服务器是否满足预设可处理条件之后,还包括:
    若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
  7. 根据权利要求1所述的数据的上传方法,其中,所述输入操作携带有所述目标终端数据,所述根据所述输入操作,确定所述目标终端数据的数据量大小,包括:
    通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
  8. 根据权利要求1所述的数据的上传方法,其中,所述输入操作携带有指示所述目标终端数据存放位置的信息,所述根据所述输入操作,确定所述目标终端数据的数据量大小,包括:
    根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
  9. 根据权利要求1所述的数据的上传方法,其中,所述方法还包括:
    当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
  10. 一种数据的上传装置,其包括:
    接收单元,用于接收输入操作,所述输入操作指示将目标终端数据上传至云端服务器;
    第一确定单元,用于根据所述输入操作,确定所述目标终端数据的数据量大小;
    第二确定单元,用于当判断出目标终端数据的数据量大小超过预设阈值时,确定所述云端服务器是否满足预设可处理条件;
    上传单元,用于若确定所述云端服务器满足所述预设可处理条件,则将所述目标终端数据上传至所述云端服务器。
  11. 根据权利要求10所述的数据的上传装置,其中,所述第二确定单元包括:
    第一确定子单元,用于确定所述云端服务器的可处理数据量范围;
    第二确定子单元,用于若确定所述目标终端数据的数据量大小满足所述可处理数据量范围,则确定所述云端服务器满足所述预设可处理条件;
    第三确定子单元,用于若确定所述目标终端数据的数据量大小不满足所述可处理数据量范围,则确定所述云端服务器不满足所述预设可处理条件。
  12. 根据权利要求11所述的数据的上传装置,其中,所述第一确定子单元用于:
    向所述云端服务器发送查询信息;接收所述云端服务器根据该查询信息反馈的指示信息,所述指示信息用于指示所述云端服务器的可处理数据量范围;根据所述指示信息,确定出所述云端服务器的可处理数据量范围。
  13. 根据权利要求11所述的数据的上传装置,其中,所述装置还包括:
    第一生成单元,用于若确定所述云端服务器不满足预设可处理条件,则生成指示终端延缓上传的提示信息并展示;
    第二生成单元,用于若确定所述云端服务器不满足预设可处理条件,则生成指示对目标终端数据的数据量大小进行调整的提示信息并展示。
  14. 根据权利要求11所述的数据的上传装置,其中,所述装置还包括:
    第三生成单元,用于若确定所述云端服务器满足预设可处理条件,则生成提示用户上传的信息并展示。
  15. 根据权利要求10所述的数据的上传装置,其中,所述输入操作携带有所述目标终端数据,所述第一确定单元,用于通过读取所述输入操作携带的所述目标终端数据,以确定所述目标终端数据的数据量大小。
  16. 根据权利要求10所述的数据的上传装置,其中,所述输入操作携带有指示所述目标终端数据存放位置的信息,所述第一确定单元,用于根据所述输入操作携带的所述目标数据指示存放位置的信息读取到相应的目标终端数据,以确定所述目标终端数据的数据量大小。
  17. 根据权利要求10所述的数据的上传装置,其中,所述上传单元,还用于当判断出目标终端数据的数据量大小不超过预设阈值时,将所述目标终端数据上传至所述云端服务器。
  18. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-9任一项所述的数据的上传方法。
  19. 一种电子设备,包括存储器和处理器,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如权利要求1-9任一项所述的数据的上传方法。
  20. 一种数据的上传***,包括云端服务器以及电子设备,其中,所述电子设备包括如权利要求19所述的电子设备;
    所述云端服务器,用于接收所述电子设备发送的指示上传目标终端数据的输入操作。
PCT/CN2017/093432 2016-10-25 2017-07-18 数据的上传方法、装置、存储介质、电子设备及*** WO2018076819A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610949090.8A CN106412093B (zh) 2016-10-25 2016-10-25 一种数据的上传方法、装置及***
CN201610949090.8 2016-10-25

Publications (1)

Publication Number Publication Date
WO2018076819A1 true WO2018076819A1 (zh) 2018-05-03

Family

ID=58014305

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093432 WO2018076819A1 (zh) 2016-10-25 2017-07-18 数据的上传方法、装置、存储介质、电子设备及***

Country Status (2)

Country Link
CN (1) CN106412093B (zh)
WO (1) WO2018076819A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851304A (zh) * 2019-11-12 2020-02-28 维沃移动通信有限公司 一种备份方法及电子设备
CN111833478A (zh) * 2019-04-15 2020-10-27 丰鸟航空科技有限公司 数据处理方法、装置、终端及存储介质
CN113992717A (zh) * 2021-10-28 2022-01-28 傲拓科技股份有限公司 基于tsn技术的边缘数据采集***及方法
CN114157927A (zh) * 2021-12-06 2022-03-08 三一汽车制造有限公司 录波方法、装置和作业机械

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412093B (zh) * 2016-10-25 2019-07-23 Oppo广东移动通信有限公司 一种数据的上传方法、装置及***
CN109547983B (zh) * 2017-08-11 2024-05-28 浙江绍兴苏泊尔生活电器有限公司 烹饪器具及其控制方法和***、服务器
CN108171079A (zh) * 2017-12-27 2018-06-15 深圳创维-Rgb电子有限公司 一种基于终端的数据采集方法、装置、终端及存储介质
CN109981702B (zh) * 2017-12-27 2022-04-15 深圳市优必选科技有限公司 一种文件存储方法及***
CN109782706B (zh) * 2018-12-18 2021-10-01 清华大学 展厅控制***及方法、云服务器及终端控制设备
CN109714830B (zh) * 2019-01-09 2021-06-01 深圳市道通智能航空技术股份有限公司 一种飞行日志上传方法、装置及移动终端、无人机
CN111294287B (zh) * 2020-02-14 2023-11-21 广州市百果园信息技术有限公司 一种数据上传方法、装置、设备和存储介质
US20220027466A1 (en) * 2020-07-24 2022-01-27 Magnet Forensics Inc. System and method for generating a minimal forensic image of a dataset of interest
CN112948121B (zh) * 2021-03-19 2023-09-01 深圳市泰祺科技有限公司 一种微控制云端数据传输方法及***
CN115696098B (zh) * 2022-12-30 2023-04-07 石家庄科林电气股份有限公司 Bms***数据传输方法及bms***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275546A1 (en) * 2012-04-11 2013-10-17 AppSense, Inc. Systems and methods for the automated migration from enterprise to cloud storage
CN103873494A (zh) * 2012-12-10 2014-06-18 联想(北京)有限公司 终端设备及其信息处理方法
CN104954497A (zh) * 2015-07-03 2015-09-30 浪潮(北京)电子信息产业有限公司 一种云存储***中数据传输方法和***
CN105224257A (zh) * 2015-10-16 2016-01-06 浪潮(北京)电子信息产业有限公司 一种云存储***中大文件的处理方法及***
CN106412093A (zh) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 一种数据的上传方法、装置及***

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4825485B2 (ja) * 2005-10-05 2011-11-30 株式会社東芝 データバックアップシステム
CN104408048B (zh) * 2014-10-27 2017-06-13 清华大学 一种缓冲式云存储数据同步的方法和装置
CN104408091B (zh) * 2014-11-11 2019-03-01 清华大学 分布式文件***的数据存储方法及***
CN105787012B (zh) * 2016-02-23 2019-08-27 深圳市瑞驰信息技术有限公司 一种提高存储***处理小文件的方法以及存储***

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275546A1 (en) * 2012-04-11 2013-10-17 AppSense, Inc. Systems and methods for the automated migration from enterprise to cloud storage
CN103873494A (zh) * 2012-12-10 2014-06-18 联想(北京)有限公司 终端设备及其信息处理方法
CN104954497A (zh) * 2015-07-03 2015-09-30 浪潮(北京)电子信息产业有限公司 一种云存储***中数据传输方法和***
CN105224257A (zh) * 2015-10-16 2016-01-06 浪潮(北京)电子信息产业有限公司 一种云存储***中大文件的处理方法及***
CN106412093A (zh) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 一种数据的上传方法、装置及***

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833478A (zh) * 2019-04-15 2020-10-27 丰鸟航空科技有限公司 数据处理方法、装置、终端及存储介质
CN110851304A (zh) * 2019-11-12 2020-02-28 维沃移动通信有限公司 一种备份方法及电子设备
CN113992717A (zh) * 2021-10-28 2022-01-28 傲拓科技股份有限公司 基于tsn技术的边缘数据采集***及方法
CN114157927A (zh) * 2021-12-06 2022-03-08 三一汽车制造有限公司 录波方法、装置和作业机械

Also Published As

Publication number Publication date
CN106412093B (zh) 2019-07-23
CN106412093A (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及***
WO2018076866A1 (zh) 数据处理方法、装置、存储介质、电子设备及服务器
WO2018076818A1 (zh) 数据的备份方法、装置、电子设备、存储介质及***
WO2018129977A1 (zh) 一种充电控制方法、装置、存储介质和计算机设备
WO2018076864A1 (zh) 一种数据同步方法、装置、存储介质及电子设备
WO2017069595A1 (en) Electronic device and method for executing function using speech recognition thereof
WO2017142373A1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
WO2018076889A1 (zh) 数据备份的方法、装置、***、存储介质及服务器
WO2015180013A1 (zh) 一种终端的触摸操作方法及装置
WO2020246822A1 (en) Electronic device and method for switching electronic device between dual standby mode and single standby mode
WO2018090823A1 (zh) 一种***分区关键数据的保护方法及***、终端
WO2018076812A1 (zh) 数据请求的响应方法、装置、存储介质、服务器及***
WO2018076888A1 (zh) 移动终端数据的同步方法、装置及***、存储介质及移动终端
WO2016029449A1 (zh) 防误触触摸屏的方法和装置
WO2018076867A1 (zh) 数据备份的删除方法、装置、***、存储介质和服务器
WO2018076830A1 (zh) 数据同步周期的调整方法、装置、电子设备、存储介质及***
WO2016188285A1 (zh) 一种终端应用的进程管理方法及装置
WO2017206862A1 (zh) 一种基于亮屏锁的处理方法、装置、存储介质及电子设备
WO2018076842A1 (zh) 一种数据备份方法、装置、***、存储介质及电子设备
WO2017018722A1 (en) Screen operating method and electronic device supporting the same
WO2017071326A1 (zh) 一种终端的控制方法、装置和***
WO2017071324A1 (zh) 传输文件的加密和解密方法及加密和解密装置
WO2018171534A1 (zh) 基于移动终端的双摄像头供电控制方法、***及移动终端
WO2018076829A1 (zh) 终端数据的处理方法、装置、***、存储介质及服务器
WO2018076840A1 (zh) 数据分享方法、装置、存储介质及服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17865266

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17865266

Country of ref document: EP

Kind code of ref document: A1