CN108111625B - Data transmission method and related product - Google Patents

Data transmission method and related product Download PDF

Info

Publication number
CN108111625B
CN108111625B CN201810002593.3A CN201810002593A CN108111625B CN 108111625 B CN108111625 B CN 108111625B CN 201810002593 A CN201810002593 A CN 201810002593A CN 108111625 B CN108111625 B CN 108111625B
Authority
CN
China
Prior art keywords
electronic equipment
time period
electronic device
current system
memory
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.)
Expired - Fee Related
Application number
CN201810002593.3A
Other languages
Chinese (zh)
Other versions
CN108111625A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810002593.3A priority Critical patent/CN108111625B/en
Publication of CN108111625A publication Critical patent/CN108111625A/en
Application granted granted Critical
Publication of CN108111625B publication Critical patent/CN108111625B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data transmission method and a related product, wherein the method comprises the following steps: acquiring the current system time of the electronic equipment; detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period; and when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, sending the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment. The embodiment of the application is beneficial to avoiding the loss of user data after the electronic equipment falls down.

Description

Data transmission method and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a data transmission method and a related product.
Background
With the widespread use of a large number of electronic devices such as smart phones, smart phones have more and more applications and more powerful functions, and smart phones are developed towards diversification and personalization directions and become indispensable electronic products in user life.
At present, in order to meet the demands of consumers, manufacturers increasingly emphasize visual impact brought by a human-computer interaction interface, such as making a screen of a smart phone larger, making a touch screen and a display screen attached more and more tightly, making a frame narrower and narrower, making a screen account larger and the like. With the improvement of the performances of the smart phone, the smart phone becomes more fragile and more fragile under the impact force, and the related protection of the smart phone against falling becomes more important.
Disclosure of Invention
The embodiment of the application provides a data transmission method and a related product, so that the loss of user data caused by falling of electronic equipment is avoided.
In a first aspect, an embodiment of the present application provides an electronic device, where the device includes: a memory and a control circuit, wherein,
the memory for storing data, the data comprising at least one reference fall period;
the control circuit is configured to, when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, send the data stored in the memory to a communication device in communication connection with the electronic device:
in a second aspect, an embodiment of the present application provides a data transmission method, including:
acquiring the current system time of the electronic equipment;
detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period;
and when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, sending the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment.
In a third aspect, an embodiment of the present application provides a data transmission method, where the data transmission method is applied to an electronic device including a memory and a control circuit, and the method includes:
the control circuit acquires the current system time of the electronic equipment;
the control circuit detects whether the current system time of the electronic equipment belongs to at least one reference falling time period stored in the memory;
and when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, the control circuit sends the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment.
In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, including:
the acquisition unit is used for acquiring the current system time of the electronic equipment;
the detection unit is used for detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period;
and the transmission unit is used for transmitting the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the second aspect of the embodiment of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the second aspect of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the second aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the data transmission method provided in the embodiment of the present application, the electronic device obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the data stored in the electronic device is sent to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of a data transmission method disclosed in an embodiment of the present application;
fig. 3 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 4 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
fig. 5 is a schematic flow chart of another data transmission method disclosed in the embodiments of the present application;
FIG. 6-1 is a block diagram of a data transmission apparatus according to an embodiment of the present disclosure;
FIG. 6-2 is a block diagram of a data transmission device according to an embodiment of the present disclosure;
6-3 are block diagrams of the components of a transmission unit disclosed in the embodiments of the present application;
6-4 are block diagrams of the components of a transmission unit disclosed in the embodiments of the present application;
fig. 7 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to better understand a data transmission method and a related product disclosed in the embodiments of the present application, the embodiments of the present application are described in detail below.
The electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), electronic devices (terminal), and so on. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, where the electronic device 100 includes: a memory 110 and a control circuit 120, wherein,
the memory 110 is configured to store data, the data including at least one reference fall time period;
the control circuit 120 is configured to send the data stored in the memory 110 to a communication device communicatively connected to the electronic device when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period.
It can be seen that, the electronic device provided in the embodiment of the present application obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, sends the data stored in the electronic device to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
In one embodiment, the electronic device further comprises: a gravity sensor 130;
the gravity sensor 130 is used for detecting the motion state of the electronic equipment;
the control circuit 120 is further configured to obtain a falling time when the motion state of the electronic device is a falling state;
the control circuit 120 is further configured to determine the at least one reference fall time period based on at least one fall time acquired within a preset time period.
In an embodiment, when the control circuit 120 is configured to send the data stored in the memory 110 to a communication device communicatively connected to the electronic device when detecting that the current system time of the electronic device belongs to the at least one reference fall time period, the control circuit is specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment;
and when the use state of the electronic device is that at least one application program is running, transmitting the data stored in the memory 110 to a communication device in communication connection with the electronic device.
In one embodiment, in a communication device configured to send the data stored in the memory 110 to the electronic device, the control circuit 120 is specifically configured to:
transmitting the data associated with the at least one application program stored in the memory 110 to a communication device communicatively coupled to the electronic device.
In one embodiment, the data stored in the memory 110 further includes a preset set of locations;
when the control circuit 120 is configured to send the data stored in the memory 110 to a communication device communicatively connected to the electronic device when detecting that the current system time of the electronic device belongs to the at least one reference fall time period, the control circuit is specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment;
and when the address position where the electronic equipment is located belongs to the preset position set, transmitting the data stored in the memory 110 to a communication device in communication connection with the electronic equipment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application, and as shown in fig. 2, the data transmission method according to the embodiment of the present application includes the following steps:
s201, acquiring the current system time of the electronic equipment.
S202, detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period.
The electronic equipment can record the falling record of the electronic equipment within a preset time period. Specifically, the electronic device detects the motion state of the electronic device through a built-in gravity sensor within a preset time period, when the motion state of the electronic device is a falling state, the current system time of the electronic device is acquired as a falling time, and the electronic device determines the at least one reference falling time period based on at least one falling time acquired within the preset time period. For example, at least one fall time acquired by the electronic device within a preset time period is 17: 35. 17: 45. 17: 50. 17: 37. 17: 42. 17: 35. 17: 30. 8: 20. 8: 25. 8: 27. 8: 24. 8: 26. 8: 45. 8: 30. 8: 32. 8: 37. 8: 23, then the reference fall time period can be determined to be 8: 00-9: 00 and 17: 00-18: 00.
In one embodiment, the electronic device may determine at least one time period in advance, and determine the time period in which the obtained fall time falls most as the reference fall time period.
S203, when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, sending the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment.
When the current system time of the electronic equipment is detected to belong to the at least one reference falling time period, the electronic equipment is indicated to be in an easy falling time period, and at this time, the electronic equipment can send data stored in the electronic equipment to other electronic equipment or service equipment in communication connection with the electronic equipment. In practical applications, when a user walks on a road, the electronic device is prone to fall off when the user uses the electronic device, or when the user changes clothes, the electronic device placed in a pocket of the clothes is prone to fall off, so that the period of easy fall may be a time period on the road after the user of the electronic device leaves work, a time period on the road before the user of the electronic device leaves work in the morning, or a time period during which the user of the electronic device puts on or takes off clothes, and the like, and the embodiment of the present application is not limited.
It can be seen that, in the data transmission method provided in the embodiment of the present application, the electronic device obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the data stored in the electronic device is sent to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
In one embodiment, the electronic device may further perform the following operations:
detecting a motion state of the electronic device; when the motion state of the electronic equipment is a falling state, obtaining falling time; determining the at least one reference fall time period based on at least one fall time acquired within a preset time period.
In one embodiment, when the electronic device detects that the current system time of the electronic device belongs to the at least one reference fall time period, a specific implementation manner of sending the data stored in the electronic device to a communication device in communication connection with the electronic device may be:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment; and when the use state of the electronic equipment is that at least one application program is running, transmitting the data stored in the memory to a communication device in communication connection with the electronic equipment.
Specifically, when the electronic device detects that the current system time of the electronic device belongs to the at least one reference fall time period and at least one application program is running, it indicates that the electronic device is not only in an easy-fall time period but also in a used state, and the probability of falling is high, so at this time, the data stored in the memory can be sent to a communication device in communication connection with the electronic device.
In one embodiment, a specific implementation manner of the electronic device sending the data stored in the memory to a communication device in communication connection with the electronic device may be:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
In one embodiment, when the electronic device detects that the current system time of the electronic device belongs to the at least one reference fall time period, a specific implementation manner of sending the data stored in the electronic device to a communication device in communication connection with the electronic device may be:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment; and when the address position where the electronic equipment is located belongs to a preset position set, sending the data stored in the memory to communication equipment in communication connection with the electronic equipment.
Specifically, when it is detected that the current system time of the electronic device belongs to the at least one reference drop time period, and the address location where the electronic device is located belongs to a preset location set, it is indicated that the electronic device is not only in an easy-to-drop time period, but also in a pre-counted easy-to-drop location (for example, a road between a company and a home, etc., which is not limited in this embodiment of the present application), the data stored in the memory may be sent to a communication device in communication connection with the electronic device.
Referring to fig. 3, fig. 3 is a schematic flow chart of another data transmission method according to an embodiment of the present application, consistent with the embodiment shown in fig. 2. As shown in fig. 3, the data transmission method in the embodiment of the present application includes the following steps:
s301, detecting the motion state of the electronic equipment.
S302, when the motion state of the electronic equipment is a falling state, the falling time is obtained.
S303, determining at least one reference falling time period based on at least one falling time acquired in a preset time period.
S304, acquiring the current system time of the electronic equipment.
S305, detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period.
S306, when the current system time of the electronic equipment is detected to belong to the at least one reference falling time period, determining the use state of the electronic equipment.
S307, when the use state of the electronic equipment is that at least one application program is running, sending the data which is stored in the memory and is associated with the at least one application program to a communication device which is in communication connection with the electronic equipment.
It can be seen that, in the data transmission method provided in the embodiment of the present application, the electronic device obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the data stored in the electronic device is sent to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
Referring to fig. 4, fig. 4 is a schematic flowchart of another data transmission method according to an embodiment of the present application, consistent with the embodiment shown in fig. 2 or fig. 3. As shown in fig. 4, the data transmission method in the embodiment of the present application includes the following steps:
s401, detecting the motion state of the electronic equipment.
S402, when the motion state of the electronic equipment is a falling state, obtaining falling time.
S403, determining at least one reference falling time period based on at least one falling time acquired in a preset time period.
S404, acquiring the current system time of the electronic equipment.
S405, detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period.
S406, when the current system time of the electronic equipment is detected to belong to the at least one reference falling time period, determining the address position of the electronic equipment;
s407, when the address position where the electronic device is located belongs to a preset position set, sending the data stored in the memory to a communication device in communication connection with the electronic device.
It can be seen that, in the data transmission method provided in the embodiment of the present application, the electronic device obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the data stored in the electronic device is sent to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
Referring to fig. 5, fig. 5 is a schematic flow chart of another data transmission method provided in the present embodiment, which is applied to an electronic device including a memory, a control circuit, and a gravity sensor, consistent with the embodiments shown in fig. 2 to 4. As shown in fig. 5, the data transmission method in the embodiment of the present application includes the following steps:
s501, the control circuit acquires the current system time of the electronic equipment.
S502, the control circuit detects whether the current system time of the electronic equipment belongs to at least one reference falling time period stored in the memory.
S503, when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, the control circuit sends the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment.
In one embodiment, the method further comprises:
the gravity sensor detects the motion state of the electronic equipment;
the control circuit acquires falling time when the motion state of the electronic equipment is a falling state;
the control circuit determines the at least one reference fall time period based on at least one fall time acquired within a preset time period.
In one embodiment, when detecting that the current system time of the electronic device belongs to the at least one reference fall time period, a specific implementation manner of the control circuit sending the data stored in the electronic device to a communication device in communication connection with the electronic device may be:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment; and when the use state of the electronic equipment is that at least one application program is running, transmitting the data stored in the memory to a communication device in communication connection with the electronic equipment.
In one embodiment, a specific implementation manner of the control circuit sending the data stored in the memory to the communication device communicatively connected to the electronic device may be:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
In one embodiment, when detecting that the current system time of the electronic device belongs to the at least one reference fall time period, a specific implementation manner of the control circuit sending the data stored in the electronic device to a communication device in communication connection with the electronic device may be:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment; and when the address position where the electronic equipment is located belongs to a preset position set, sending the data stored in the memory to communication equipment in communication connection with the electronic equipment.
It can be seen that, in the data transmission method provided in the embodiment of the present application, the electronic device obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the data stored in the electronic device is sent to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 6-1, fig. 6-1 is a block diagram of a data transmission apparatus according to an embodiment of the present disclosure, as shown in fig. 6-1, the data transmission apparatus may include a detection unit 601, an obtaining unit 602, and a transmission unit 603, where:
an obtaining unit 602, configured to obtain a current system time of an electronic device;
a detecting unit 601, configured to detect whether a current system time of the electronic device belongs to at least one reference fall time period;
a transmitting unit 603, configured to send the data stored in the electronic device to a communication device in communication connection with the electronic device when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period.
Referring to fig. 6-2, fig. 6-2 is a block diagram of a unit composition of another data transmission device disclosed in the embodiment of the present application, and as shown in fig. 6-2, the data transmission device may include a detection unit 601, an acquisition unit 602, and a transmission unit 603 in the embodiment corresponding to fig. 6-1.
In one embodiment of the present invention,
the detection unit 601 is configured to detect a motion state of the electronic device;
the obtaining unit 602 is further configured to obtain a falling time when the motion state of the electronic device is a falling state;
the apparatus may further include: a determination unit 604;
the determining unit 604 is configured to determine the at least one reference fall time period based on at least one fall time obtained within a preset time period.
In one embodiment, as shown in fig. 6-3, the transmission unit 603 includes: a first determination subunit 6031 and a first transmission subunit 6032;
the first determining subunit 6031 is configured to determine, when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, a usage state of the electronic device;
the first transmission sub-unit 6032 is configured to send the data stored in the memory to a communication device in communication with the electronic device when the usage status of the electronic device is that at least one application program is running.
In one embodiment, the first transmission subunit 6032 is specifically configured to:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
In one embodiment, as shown in fig. 6-4, the transmission unit 603 includes: a second determination subunit 6033 and a second transmission subunit 6034;
the second determining subunit 6033, configured to determine, when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, an address location where the electronic device is located;
the second transmission subunit 6034 is configured to send the data stored in the memory to a communication device in communication with the electronic device when the address location where the electronic device is located belongs to a preset location set.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2 to fig. 5, which is not repeated herein.
It should be noted that the data transmission device described in the embodiments of the present application is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
It can be seen that, the data transmission apparatus provided in the embodiment of the present application obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, sends the data stored in the electronic device to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
Referring to fig. 7 in accordance with the embodiments shown in fig. 2 to fig. 5, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 7, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
acquiring the current system time of the electronic equipment;
detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period;
and when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, sending the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment.
In one embodiment, the program further comprises instructions for:
detecting a motion state of the electronic device;
when the motion state of the electronic equipment is a falling state, obtaining falling time;
determining the at least one reference fall time period based on at least one fall time acquired within a preset time period.
In one embodiment, in sending data stored in the electronic device to a communication device in communication connection with the electronic device when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the instructions in the program are specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment;
and when the use state of the electronic equipment is that at least one application program is running, transmitting the data stored in the memory to a communication device in communication connection with the electronic equipment.
In one embodiment, the instructions in the program are specifically configured to, in sending data stored in the memory to a communication device communicatively coupled to the electronic device, perform the following:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
In one embodiment, in sending data stored in the electronic device to a communication device in communication connection with the electronic device when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the instructions in the program are specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment; and when the address position where the electronic equipment is located belongs to a preset position set, sending the data stored in the memory to communication equipment in communication connection with the electronic equipment.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 2 to fig. 5, which is not repeated herein.
It can be seen that, the electronic device provided in the embodiment of the present application obtains the current system time, and when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, sends the data stored in the electronic device to the communication device in communication connection with the electronic device. Therefore, the electronic equipment can judge whether data needs to be backed up or not based on at least one reference falling time period counted in advance and the current system time, and therefore the loss of user data caused by the fact that the data are not stored in time after the electronic equipment falls is avoided.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the data transmission methods as recited in the above method embodiments.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the data transmission methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disks, read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An electronic device, characterized in that the electronic device comprises: a memory, a control circuit, and a gravity sensor, wherein,
the gravity sensor is used for detecting the motion state of the electronic equipment;
the control circuit is used for acquiring the falling time when the motion state of the electronic equipment is the falling state;
the control circuit is further configured to determine the at least one reference fall time period based on at least one fall time acquired within a preset time period; the control circuit is specifically configured to predetermine at least one time period, and determine a time period during which the obtained fall time falls to the maximum as a reference fall time period;
the memory for storing data, the data comprising at least one reference fall period; the control circuit is used for sending the data stored in the memory to a communication device in communication connection with the electronic device when detecting that the current system time of the electronic device belongs to the at least one reference falling time period;
the data stored in the memory further comprises a preset position set;
when the control circuit is configured to send the data stored in the memory to a communication device communicatively connected to the electronic device when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, the control circuit is specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment;
and when the address position where the electronic equipment is located belongs to the preset position set, sending the data stored in the memory to communication equipment in communication connection with the electronic equipment.
2. The electronic device of claim 1, wherein, when configured to send the data stored in the memory to a communication device communicatively connected to the electronic device upon detecting that the current system time of the electronic device belongs to the at least one reference fall time period, the control circuit is specifically configured to:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment;
and when the use state of the electronic equipment is that at least one application program is running, transmitting the data stored in the memory to a communication device in communication connection with the electronic equipment.
3. The electronic device of claim 2, wherein, in being configured to send the data stored in the memory to a communication device communicatively coupled to the electronic device, the control circuit is specifically configured to:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
4. A method of data transmission, comprising:
detecting a motion state of the electronic equipment;
when the motion state of the electronic equipment is a falling state, obtaining falling time;
determining the at least one reference fall time period based on at least one fall time acquired within a preset time period, including:
predetermining at least one time period, and determining the time period within which the obtained falling time falls most as a reference falling time period;
acquiring the current system time of the electronic equipment;
detecting whether the current system time of the electronic equipment belongs to at least one reference falling time period;
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, sending data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment;
when the current system time of the electronic equipment is detected to belong to the at least one reference falling time period, sending the data stored in the electronic equipment to a communication device in communication connection with the electronic equipment, wherein the method comprises the following steps:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment;
and when the address position where the electronic equipment is located belongs to a preset position set, sending the data stored in the memory of the electronic equipment to communication equipment in communication connection with the electronic equipment.
5. The method of claim 4, wherein the sending the data stored by the electronic device to a communication device communicatively connected to the electronic device upon detecting that the current system time of the electronic device belongs to the at least one reference fall period comprises:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the use state of the electronic equipment;
and when the use state of the electronic equipment is that at least one application program is running, transmitting the data stored in the memory to a communication device in communication connection with the electronic equipment.
6. The method of claim 5, wherein sending the data stored in the memory to a communication device communicatively coupled to the electronic device comprises:
transmitting the data associated with the at least one application program stored in the memory to a communication device communicatively coupled to the electronic device.
7. A data transmission method applied to an electronic device including a memory and a control circuit, the method comprising:
the control circuit acquires falling time when the motion state of the electronic equipment is a falling state;
the control circuit determines the at least one reference fall time period based on at least one fall time acquired within a preset time period, including:
predetermining at least one time period, and determining the time period within which the obtained falling time falls most as a reference falling time period;
the control circuit acquires the current system time of the electronic equipment;
the control circuit detects whether the current system time of the electronic equipment belongs to at least one reference falling time period stored in the memory;
the control circuit sends the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period;
when the current system time of the electronic equipment is detected to belong to the at least one reference falling time period, sending the data stored in the electronic equipment to a communication device in communication connection with the electronic equipment, wherein the method comprises the following steps:
when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period, determining the address position of the electronic equipment;
and when the address position where the electronic equipment is located belongs to a preset position set, sending the data stored in the memory to communication equipment in communication connection with the electronic equipment.
8. A data transmission apparatus, comprising:
a detection unit for detecting a motion state of the electronic device;
the electronic equipment comprises an acquisition unit, a control unit and a display unit, wherein the acquisition unit is used for acquiring falling time when the motion state of the electronic equipment is a falling state;
the data transmission apparatus further includes: a determination unit;
the determining unit is used for determining the at least one reference falling time period based on at least one falling time acquired in a preset time period; the determining unit is specifically configured to determine at least one time period in advance, and determine a time period in which the obtained fall time falls most as a reference fall time period;
the acquisition unit is further used for acquiring the current system time of the electronic equipment;
the detection unit is further configured to detect whether the current system time of the electronic device belongs to at least one reference fall time period;
the transmission unit is used for transmitting the data stored in the electronic equipment to communication equipment in communication connection with the electronic equipment when detecting that the current system time of the electronic equipment belongs to the at least one reference falling time period;
the transmission unit includes: a second determining subunit and a second transmitting subunit;
the second determining subunit is configured to determine, when it is detected that the current system time of the electronic device belongs to the at least one reference fall time period, an address location where the electronic device is located;
and the second transmission subunit is used for sending the data stored in the memory of the electronic equipment to communication equipment in communication connection with the electronic equipment when the address position where the electronic equipment is located belongs to a preset position set.
9. An electronic device comprising a processor, a memory, and a communication interface, one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 4-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of the claims 4-6.
CN201810002593.3A 2018-01-02 2018-01-02 Data transmission method and related product Expired - Fee Related CN108111625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002593.3A CN108111625B (en) 2018-01-02 2018-01-02 Data transmission method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002593.3A CN108111625B (en) 2018-01-02 2018-01-02 Data transmission method and related product

Publications (2)

Publication Number Publication Date
CN108111625A CN108111625A (en) 2018-06-01
CN108111625B true CN108111625B (en) 2019-12-27

Family

ID=62218604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002593.3A Expired - Fee Related CN108111625B (en) 2018-01-02 2018-01-02 Data transmission method and related product

Country Status (1)

Country Link
CN (1) CN108111625B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344002B (en) * 2018-08-30 2021-01-29 Oppo(重庆)智能科技有限公司 Data loss prevention method and data loss prevention device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428901A (en) * 2012-05-15 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and data protection method thereof
CN103679055A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Information processing method, information processing device and electronic equipment
US9152650B1 (en) * 2010-03-31 2015-10-06 Emc Corporation Mobile device data recovery
CN105279957A (en) * 2015-10-30 2016-01-27 小米科技有限责任公司 Message prompting method and device
CN107239388A (en) * 2017-05-27 2017-10-10 郑州云海信息技术有限公司 A kind of monitoring alarm method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882377B (en) * 2012-09-20 2014-11-05 矽力杰半导体技术(杭州)有限公司 Synchronous rectifying control method and circuit
CN104461771A (en) * 2014-11-03 2015-03-25 北京百度网讯科技有限公司 Data backup processing method and device
CN104767806B (en) * 2015-03-31 2018-09-25 重庆大学 A kind of methods, devices and systems of cloud data center task backup

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152650B1 (en) * 2010-03-31 2015-10-06 Emc Corporation Mobile device data recovery
CN103428901A (en) * 2012-05-15 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and data protection method thereof
CN103679055A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Information processing method, information processing device and electronic equipment
CN105279957A (en) * 2015-10-30 2016-01-27 小米科技有限责任公司 Message prompting method and device
CN107239388A (en) * 2017-05-27 2017-10-10 郑州云海信息技术有限公司 A kind of monitoring alarm method and system

Also Published As

Publication number Publication date
CN108111625A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN108153503B (en) Display control method and related product
CN104750495B (en) A kind of screenshot method and device
CN109738719B (en) Electrostatic discharge ESD detection method and related product
CN104915306B (en) A kind of data manipulation control method and equipment manager
CN108170356B (en) Application split screen method and related product
CN106575169B (en) Method for eliminating interference of charger on touch screen and mobile terminal
CN103838648A (en) Terminal and data backup method
CN108390734B (en) Network data transmission method and user terminal
CN105549895B (en) Application control method and mobile terminal
CN108415646B (en) Touch function setting method and device
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108377293B (en) Electronic device, fall control method and related product
CN108111625B (en) Data transmission method and related product
CN108924325B (en) Data processing method and related device
CN105813233A (en) Communication strategy configuring method and device
CN108182195A (en) A kind of loading method of data, device, terminal and storage medium
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108777735B (en) Display area adjusting method and related equipment
CN108270921B (en) Falling information detection method and related product
CN103412759A (en) Production data recovery method and terminal
CN108366168B (en) Fall data application method and related product
CN111355505B (en) SIM card seat type identification method, device and computer readable medium
CN108337371B (en) Electronic device, fall protection method, device and computer readable storage medium
CN106294748A (en) The methods of exhibiting of a kind of desktop folder and terminal
CN106060825B (en) Client identification card copying reminding method and server

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191227

CF01 Termination of patent right due to non-payment of annual fee