CN108924325B - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
CN108924325B
CN108924325B CN201810395918.9A CN201810395918A CN108924325B CN 108924325 B CN108924325 B CN 108924325B CN 201810395918 A CN201810395918 A CN 201810395918A CN 108924325 B CN108924325 B CN 108924325B
Authority
CN
China
Prior art keywords
electronic device
display screen
damage
touch
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810395918.9A
Other languages
Chinese (zh)
Other versions
CN108924325A (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 CN201810395918.9A priority Critical patent/CN108924325B/en
Publication of CN108924325A publication Critical patent/CN108924325A/en
Application granted granted Critical
Publication of CN108924325B publication Critical patent/CN108924325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • 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/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The application discloses a data processing method and a related device, which are applied to an electronic device, wherein the method comprises the following steps: the electronic device sends a preset signal to the touch display screen after detecting that the electronic device has a drop event, then obtains the damage degree of the touch display screen according to the preset signal, then starts a one-key copy switch OTG function to connect external equipment if the damage degree exceeds a preset threshold value, and finally performs data backup on the electronic device through the external equipment. The method is favorable for improving the convenience and flexibility of data processing.

Description

Data processing method and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data processing method and a related apparatus.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. In actual use, the intelligent terminal usually falls from the hand of the user and falls from the desktop, and the intelligent terminal can collide with a collision object after falling, so that the touch display screen in the intelligent terminal is damaged, and the user cannot normally operate the mobile phone.
Disclosure of Invention
The embodiment of the application provides a data processing method and a related device, which are beneficial to improving the convenience and flexibility of drop detection of an electronic device.
In a first aspect, an embodiment of the present application provides a data processing method applied to an electronic device, where the method includes:
after the drop event of the electronic device is detected to be completed, sending a preset signal to the touch display screen;
acquiring the damage degree of the touch display screen according to the preset signal;
if the damage degree exceeds a preset threshold value, starting an OTG function of a one-key copy switch to connect external equipment;
and carrying out data backup on the electronic device through the external equipment.
In a second aspect, an embodiment of the present application provides a data processing apparatus, which is applied to an electronic apparatus, and includes a sending unit, an obtaining unit, a connecting unit, and a backup unit, where:
the sending unit is used for sending a preset signal to the touch display screen after the falling event of the electronic device is detected to be completed;
the obtaining unit is used for obtaining the damage degree of the touch display screen according to the preset signal;
the connection unit is used for starting a one-key copy switch OTG function to connect external equipment if the damage degree exceeds a preset threshold value;
the backup unit is used for backing up data of the electronic device through the external equipment.
In a third 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 steps in any method of the first aspect of the embodiment of the present application.
In a fourth 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 part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in this embodiment of the application, after detecting that the drop event of the electronic device is completed, the electronic device sends a preset signal to the touch display screen, and then, according to the preset signal, obtains the damage degree of the touch display screen, and then, if the damage degree exceeds a preset threshold, opens the one-key copy switch OTG function to connect the external device, and finally, performs data backup on the electronic device through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1 is a schematic diagram of the structure of an OTG;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of another data processing method disclosed in the embodiments of the present application;
FIG. 4 is a schematic flow chart diagram of another data processing method disclosed in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of an electronic device according to an embodiment of the present disclosure.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, 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 partial embodiments of the present application, but not all 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 following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying 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.
The OTG has two devices: dual-purpose OTG equipment and peripheral type OTG equipment. The dual-purpose OTG device can be used as a USB peripheral or a USB OTG host, and can provide 8mA current for a bus. While peripheral OTG devices do not have host capability, it must communicate after a request to the dual-purpose device (host) is granted. Dual-purpose OTG devices must be capable of operating at full speed, and high speed operation is optional. And peripheral OTG devices may be designed to operate at any one of high speed, full speed, and low speed.
The dual-purpose OTG (dual-role device) has a Mini-AB slot, so that a Mini-A to Mini-B cable can directly connect two dual-purpose OTG devices together, and at the moment, a user cannot know the difference of the two devices and does not know the default master-slave configuration of the two devices. The A-device (host) must provide bus power during the transaction transmission, which is the main difference between the A-device and the B-device, and also illustrates the non-peer relationship of the connection of the two devices. The a-device is responsible for powering the bus so it controls when the communication takes place, the B-device only requests transmission to the "host" via the SRP protocol. Therefore, the dual-purpose device needs to include: limited host capability, capability to act as a full-speed peripheral (optionally high-speed), a list of OTG target devices, driver of target device, SRP enabled, HNP enabled, a Mini-AB jack, current output no less than 8mA on VBUS, and means to communicate with the user.
Peripheral-only OTG devices (Peripheral-only OTG devices) are common USB peripherals. It has an OTG function descriptor that it supports the transaction request protocol SRP and it is not a dual-purpose OTG device. In addition, the peripheral OTG equipment can only be provided with a Mini-B type socket or an auxiliary cable with a Mini-A plug is necessary, and the Mini-AB type socket cannot be used. SRP is a protocol that must be used when a B-device (herein, a peripheral device) requests a transfer transaction from an a-device. It consists of the two aforementioned methods of data line pulsing and VBUS pulsing (B-device generation). The a-device must be able to detect the signal of one of these two methods and start a corresponding transmission transaction. In addition to a slight increase in firmware, the cost of B-device being able to generate both signals at the same time does not increase the cost, and also makes it simpler to implement a-device (only one of the ways of detection need to be provided depending on the actual situation).
Referring to fig. 1, fig. 1 is a schematic structural diagram of an OTG, and the following diagram is used for facilitating understanding of a user. For example, a peripheral OTG device may only need to support SRP and a default current consumption configuration of less than or equal to 8 mA. In fact, it is also simpler to add support for SRP: a drive resistor is connected to VBUS and some simple logic is added to generate the VBUS pulse modulated signal. In addition, both the dual-purpose OTG device and the peripheral OTG device can be connected to a general-purpose licensed device, but the dual-purpose OTG device has a certain host capability (can drive a specific set of OTG devices to work).
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. 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. 2, fig. 2 is a schematic flowchart illustrating a data processing method applied to an electronic device according to an embodiment of the present application, where the data processing method includes:
s201, after detecting that the falling event of the electronic device is completed, the electronic device sends a preset signal to the touch display screen.
The touch display screen comprises a touch screen and a display screen.
The preset signal is a driving signal and is sent by a controller of the electronic device, the touch display screen feeds back a response signal after receiving the driving signal, and whether the touch display screen is damaged or not can be obtained through the response signal.
Optionally, the electronic device obtains fall data of the fall incident through a fall sensor; determining the falling speed and/or the falling angular speed of the mobile terminal according to the falling data; and determining that the falling event is finished when the falling speed and the falling angular speed are detected to be smaller than preset threshold values in a preset time period.
S202, the electronic device obtains the damage degree of the touch display screen according to the preset signal.
The damage degree can be determined by the damaged area and the damaged length of the touch display screen, and is not limited uniquely here.
For example, the damage degree is determined by the damage area, and at this time, the damage degree can be divided into first-level damage, second-level damage, third-level damage and fourth-level damage; the first-level damage is in a non-damage state; the secondary damage is slight damage, and at the moment, the damaged area of the touch display screen of the electronic device accounts for 20-30% of the total area of the touch display screen; the third-level damage is moderate damage, and at the moment, the damaged area of the touch display screen of the electronic device accounts for 30-50% of the total area of the touch display screen; the four-level damage is severe damage, and at the moment, the damaged area of the touch display screen of the electronic device accounts for more than 50% of the total area of the touch display screen.
S203, if the damage degree of the electronic device exceeds a preset threshold value, starting an OTG function of a one-key copy switch to connect external equipment.
The preset threshold may be 20%, 30%, 40%, etc., and is set by the manufacturer when leaving the factory, which is not limited herein.
The external device may include, but is not limited to, a mouse, a keyboard, a usb disk, and the like, and is not limited thereto.
S204, the electronic device performs data backup on the electronic device through the external equipment.
The data backup may be divided into a full data backup and a partial data backup, and is not limited herein.
It can be seen that, in the embodiment of the application, after the electronic device detects that a drop event of the electronic device is completed, a preset signal is sent to the touch display screen, then, according to the preset signal, the damage degree of the touch display screen is obtained, then, if the damage degree exceeds a preset threshold value, the OTG function of the one-key copy switch is turned on to connect the external device, and finally, data backup is performed on the electronic device through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
In one possible example, the external device includes a mouse and/or a keyboard, and the performing data backup on the electronic apparatus through the external device includes: the electronic device detects a data backup instruction input by a user through the external equipment; determining a target data area in the electronic device, wherein the target data area is stored with target data according to the data backup instruction; acquiring the target data from the target data area; and backing up the target data to the cloud.
The target data may be all data or part of data, and is not limited herein.
For example, after the electronic device is dropped, according to a preset signal, it is detected that the damage degree of the current electronic device is 45%, the current electronic device is damaged in three levels and exceeds a preset threshold value of 40%, so that an OTG switch is turned on, a mouse is connected, A, B, C, D four folders of the electronic device are operated through the mouse, and all files in the folder a are uploaded to the cloud for backup.
Therefore, in this example, the electronic device can flexibly back up data according to different data backup instructions, so that the situations of inaccurate file backup and repeated backup caused by too large or too small data are avoided, and the accuracy and the intelligence of the electronic device in data backup are facilitated.
In one possible example, the external device includes a storage device, and the backing up data of the electronic apparatus by the external device includes: the electronic device identifies the storage capacity of the storage equipment to obtain available storage capacity; establishing the priority of target data according to the available storage capacity; and sequentially transmitting the target data to the storage equipment according to the priority.
And the electronic device establishes a data channel according to the OTG function, and the data channel is communicated with the electronic device and the storage equipment.
The priority may be set according to a history of the user using the APP, a keyword, and the like, and is not limited herein.
For example, after the electronic device is dropped, it is detected that the current damage degree of the electronic device is 70%, at this time, an OTG switch in the electronic device is turned on, the usb disk is connected to the electronic device, and when the electronic device recognizes that the current capacity of the usb disk is 128G and the memory of the electronic device is 64G, all data in the electronic device is imported into the usb disk. Or when the electronic device recognizes that the current capacity of the USB flash disk is 8G and the memory of the electronic device is 64G, sequencing all APPs according to the number of times of use in the electronic device, and selecting the data in the two APPs before sequencing to be led into the USB flash disk for data backup.
Therefore, in this example, the electronic device can flexibly identify different storage capacities, and then flexibly establish priorities under different storage capacities, and further back up data through the priorities, so that data loss caused by insufficient memory of the storage device can be effectively avoided, and the most important data for the user can be screened out in a targeted manner for back up, thereby reducing the situation of wrong back-up, and facilitating improvement of accuracy and flexibility of the electronic device during data back-up.
In one possible example, the obtaining the damage level of the touch display screen includes: the electronic device scans the display screen to obtain an abnormal display area; scanning the touch screen to obtain an abnormal touch area; and determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
The abnormal display is the condition that the electronic device cannot normally light up or the lighting is unbalanced.
When the abnormal touch is the screen pressing, normal operation is not performed or the abnormal touch cannot be used.
Optionally, the electronic device scans the display screen to obtain an abnormal display area; scanning a touch screen to obtain an abnormal touch area; and the electronic device determines the damage degree of the touch display screen according to the abnormal display area.
Optionally, the electronic device scans the display screen to obtain no abnormal display area; scanning the touch screen to obtain an abnormal touch area; and determining the damage degree of the touch display screen according to the abnormal touch area.
Therefore, in the example, the electronic device can detect the display screen and the touch screen respectively, the damaged area and the damage degree of the current electronic device can be obtained more accurately, data backup can be performed on various conditions, and the diversity and the accuracy of data processing performed by the electronic device are improved.
In one possible example, the electronic device scans the display screen according to the preset signal to obtain the abnormal display area, and includes: and according to scanning strategies such as row-by-row or column-by-column, sending a driving signal to the pixel unit of the corresponding pixel area, detecting a response signal of the pixel unit, and determining the damage degree of each pixel according to the driving signal and the response signal to obtain the damage degree of the current detection area.
Therefore, in this example, the electronic device can accurately obtain the damage degree of the current detection area according to the response signal of each pixel, which is beneficial to improving the accuracy and comprehensiveness of the electronic device in determining the damaged area.
In one possible example, the determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area includes: the electronic device calculates the percentage of the abnormal display area to the display screen to obtain a first damage ratio; calculating the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio; and if the first damage ratio and/or the second damage ratio exceed a preset damage ratio, determining the first damage ratio and/or the second damage ratio as the damage degree of the touch display screen.
Optionally, if the first damage ratio is greater than the second damage ratio, and the first damage ratio and/or the second damage ratio exceeds a preset damage ratio, it is determined that the first damage ratio is the damage degree of the touch display screen.
Optionally, if the second damage ratio is greater than the first damage ratio, and the first damage ratio and/or the second damage ratio exceeds a preset damage ratio, determining that the second damage ratio is the damage degree of the touch display screen.
For example, when the electronic device is scanned, the first damage ratio is 30%, the second damage ratio is 60%, and the preset damage ratio is 50% according to the comparison, at this time, the current display screen is slightly damaged, the touch screen is severely damaged, that is, the user cannot normally touch the electronic device, and at this time, the damage degree of the touch display screen is severely damaged, so that the OTG switch is turned on to back up data in the electronic device.
Therefore, in the example, the electronic device can accurately obtain the overall damage degree of the electronic device according to the damage degrees of the display screen and the touch screen, the condition that the switch is mistakenly judged or opened due to the damage of different screens is avoided, and the accuracy and the comprehensiveness of data processing of the electronic device are improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data processing method provided in an embodiment of the present application and applied to an electronic device, consistent with the embodiment shown in fig. 2. As shown in the figure, the data processing method includes:
s301, after detecting that the falling event of the electronic device is completed, the electronic device sends a preset signal to the touch display screen.
S302, the electronic device scans the display screen to obtain an abnormal display area and scans the touch screen to obtain an abnormal touch area according to the preset signal.
S303, the electronic device determines the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
S304, if the damage degree of the electronic device exceeds a preset threshold value, starting an OTG function of a one-key copy switch to connect external equipment.
S305, the electronic device detects a data backup instruction input by a user through the external equipment.
S306, the electronic device determines a target data area in the electronic device, wherein the target data area is stored in the electronic device according to the data backup instruction.
S307, the electronic device acquires the target data from the target data area.
S308, the electronic device backs up the target data to a cloud.
It can be seen that, in the embodiment of the application, after the electronic device detects that a drop event of the electronic device is completed, a preset signal is sent to the touch display screen, then, according to the preset signal, the damage degree of the touch display screen is obtained, then, if the damage degree exceeds a preset threshold value, the OTG function of the one-key copy switch is turned on to connect the external device, and finally, data backup is performed on the electronic device through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
In addition, the electronic device can flexibly backup data according to different data backup instructions, so that the situations of inaccurate file backup and repeated backup caused by overlarge or undersize data are avoided, and the accuracy and the intelligence of the electronic device during data backup are facilitated.
In addition, the electronic device can detect the display screen and the touch screen respectively, the damaged area and the damage degree of the current electronic device can be obtained more accurately, data backup can be carried out on various conditions, and the diversity and the accuracy of data processing carried out by the electronic device are improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a data processing method provided in an embodiment of the present application and applied to an electronic device, consistent with the embodiment shown in fig. 2. As shown in the figure, the data processing method includes:
s401, after detecting that the falling event of the electronic device is completed, the electronic device sends a preset signal to the touch display screen.
S402, the electronic device scans the display screen to obtain an abnormal display area and scans the touch screen to obtain an abnormal touch area according to the preset signal.
S403, the electronic device calculates the percentage of the abnormal display area to the display screen to obtain a first damage ratio.
S404, the electronic device calculates the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio.
S405, if the first damage ratio and/or the second damage ratio exceeds a preset damage ratio, the electronic device determines that the first damage ratio and/or the second damage ratio is the damage degree of the touch display screen.
S406, if the damage degree exceeds a preset threshold value, the electronic device starts a one-key copy switch OTG function to connect the storage device.
S407, the electronic device identifies the storage capacity of the storage equipment to obtain the available storage capacity.
S408, the electronic device establishes the priority of the target data according to the available storage capacity.
And S409, the electronic device sequentially transmits the target data to the storage equipment according to the priority.
It can be seen that, according to the embodiment of the application, the electronic device sends the preset signal to the touch display screen after detecting that the electronic device has a drop event, and then obtains the damage degree of the touch display screen according to the preset signal, and then, if the damage degree exceeds the preset threshold, the one-key copy switch OTG function is turned on to connect the external device, and finally, the electronic device is subjected to data backup through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
In addition, the electronic device can flexibly identify different storage capacities, flexibly establish priorities under the conditions of different storage capacities, and further back up data through the priorities, so that data loss caused by insufficient memory of the storage equipment can be effectively avoided, the most important data of a user can be screened out in a targeted manner to back up, the condition of wrong back-up is reduced, and the accuracy and the flexibility of the electronic device in data back-up are improved.
In addition, the electronic device can accurately obtain the overall damage degree of the electronic device according to the damage degrees of the display screen and the touch screen, the condition that the switch is mistakenly judged or mistakenly opened due to the damage of different screens is avoided, and the accuracy and the comprehensiveness of data processing of the electronic device are improved.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device runs one or more application programs and an operating system, and as shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and 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;
after the drop event of the electronic device is detected to be completed, sending a preset signal to the touch display screen;
acquiring the damage degree of the touch display screen according to the preset signal;
if the damage degree exceeds a preset threshold value, starting an OTG function of a one-key copy switch to connect external equipment;
and carrying out data backup on the electronic device through the external equipment.
It can be seen that, in the embodiment of the application, after the electronic device detects that a drop event of the electronic device is completed, a preset signal is sent to the touch display screen, then, according to the preset signal, the damage degree of the touch display screen is obtained, then, if the damage degree exceeds a preset threshold value, the OTG function of the one-key copy switch is turned on to connect the external device, and finally, data backup is performed on the electronic device through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
In one possible example, the external device includes a mouse and/or a keyboard, and in the aspect of performing data backup on the electronic apparatus through the external device, the instructions in the program are specifically configured to perform the following operations:
detecting a data backup instruction input by a user through the external equipment; determining a target data area in the electronic device, wherein the target data area is stored with target data according to the data backup instruction; acquiring the target data from the target data area; and backing up the target data to the cloud.
In one possible example, the external device includes a storage device, and in terms of the backup of data by the external device for the electronic apparatus, the instructions in the program are specifically configured to perform the following operations: identifying the storage capacity of the storage equipment to obtain available storage capacity; establishing the priority of target data according to the available storage capacity; and sequentially transmitting the target data to the storage equipment according to the priority.
In one possible example, in the obtaining the damage level of the touch display screen, the program further includes instructions for: scanning the display screen to obtain an abnormal display area; scanning the touch screen to obtain an abnormal touch area; and determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
In one possible example, in the determining the degree of damage of the touch display screen according to the abnormal display area and the abnormal touch area, the program further includes instructions for:
calculating the percentage of the abnormal display area to the display screen to obtain a first damage ratio; calculating the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio; and if the first damage ratio and/or the second damage ratio exceed a preset damage ratio, determining the first damage ratio and/or the second damage ratio as the damage degree of the touch display screen.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus, and functional units of the data processing apparatus 600 according to the embodiment of the present application constitute a block diagram. The data processing apparatus 600 is applied to an electronic apparatus, which may include a transmitting unit 601, an acquiring unit 602, a connecting unit 603, and a backup unit 604, as shown in fig. 6, wherein:
the sending unit 601 is configured to send a preset signal to the touch display screen after detecting that the drop event of the electronic device is completed;
the obtaining unit 602 is configured to obtain a damage degree of the touch display screen according to the preset signal;
the connection unit 603 is configured to, if the damage degree exceeds a preset threshold, start an OTG function of a one-key copy switch to connect an external device;
the backup unit 604 is configured to perform data backup on the electronic apparatus through the external device.
It can be seen that, in the embodiment of the application, after the electronic device detects that a drop event of the electronic device is completed, a preset signal is sent to the touch display screen, then, according to the preset signal, the damage degree of the touch display screen is obtained, then, if the damage degree exceeds a preset threshold value, the OTG function of the one-key copy switch is turned on to connect the external device, and finally, data backup is performed on the electronic device through the external device. Because the electronic device can detect the damage degree of the touch display screen and open the OTG function according to the damage degree so as to connect the peripheral equipment in time for data backup, the situation that the electronic device cannot perform data backup due to the fact that the touch display screen is damaged and normal operation cannot be performed is avoided, and convenience and flexibility of the electronic device for data backup are improved.
In a possible example, the external device includes a mouse and/or a keyboard, and in the aspect of performing data backup on the electronic apparatus through the external device, the backup unit 604 is specifically configured to:
detecting a data backup instruction input by a user through the external equipment; determining a target data area in the electronic device, wherein the target data area is stored with target data according to the data backup instruction; acquiring the target data from the target data area; and backing up the target data to the cloud.
In a possible example, the external device includes a storage device, and in the aspect of performing data backup on the electronic apparatus through the external device, the backup unit 604 is specifically configured to:
identifying the storage capacity of the storage equipment to obtain available storage capacity; establishing the priority of target data according to the available storage capacity; and sequentially transmitting the target data to the storage equipment according to the priority.
In a possible example, in terms of the obtaining the damage level of the touch display screen, the obtaining unit 602 is specifically configured to:
scanning the display screen to obtain an abnormal display area; scanning the touch screen to obtain an abnormal touch area; and determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
In a possible example, in the aspect of determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area, the obtaining unit 602 is specifically configured to:
calculating the percentage of the abnormal display area to the display screen to obtain a first damage ratio; calculating the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio; and if the first damage ratio and/or the second damage ratio exceed a preset damage ratio, determining the first damage ratio and/or the second damage ratio as the damage degree of the touch display screen.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
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 methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
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 invention 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 invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. 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 embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A data processing method is applied to an electronic device, and the method comprises the following steps:
after the falling event of the electronic device is detected to be completed, sending a preset signal to a touch display screen;
acquiring the damage degree of the touch display screen according to the preset signal; if the damage degree exceeds a preset threshold value, starting an OTG function of a one-key copy switch to connect external equipment;
performing data backup on the electronic device through the external equipment;
wherein, when the external device includes a mouse and/or a keyboard, the performing data backup on the electronic device through the external device includes:
detecting a data backup instruction input by a user through the external equipment;
determining a target data area in the electronic device, wherein the target data area is stored with target data according to the data backup instruction;
acquiring the target data from the target data area;
and backing up the target data to the cloud.
2. The method of claim 1,
when the external device includes a storage device, the performing data backup on the electronic apparatus by the external device includes:
identifying the storage capacity of the storage equipment to obtain available storage capacity;
establishing the priority of target data according to the available storage capacity;
and sequentially transmitting the target data to the storage equipment according to the priority.
3. The method according to any one of claims 1-2, wherein the obtaining the damage level of the touch display screen comprises:
scanning the display screen to obtain an abnormal display area;
scanning the touch screen to obtain an abnormal touch area;
and determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
4. The method of claim 3, wherein determining the degree of damage to the touch display screen based on the abnormal display area and the abnormal touch area comprises:
calculating the percentage of the abnormal display area to the display screen to obtain a first damage ratio;
calculating the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio;
and if the first damage ratio and/or the second damage ratio exceed a preset damage ratio, determining the first damage ratio and/or the second damage ratio as the damage degree of the touch display screen.
5. A data processing apparatus, applied to an electronic apparatus, comprising a transmitting unit, an obtaining unit, a connecting unit, and a backup unit, wherein:
the sending unit is used for sending a preset signal to the touch display screen after the falling event of the electronic device is detected to be completed;
the obtaining unit is used for obtaining the damage degree of the touch display screen according to the preset signal;
the connection unit is used for starting a one-key copy switch OTG function to connect external equipment if the damage degree exceeds a preset threshold value;
the backup unit is used for carrying out data backup on the electronic device through the external equipment;
wherein, when the external device includes a mouse and/or a keyboard, in the aspect of performing data backup on the electronic apparatus through the external device, the backup unit is specifically configured to:
detecting a data backup instruction input by a user through the external equipment;
determining a target data area in the electronic device, wherein the target data area is stored with target data according to the data backup instruction;
acquiring the target data from the target data area;
and backing up the target data to the cloud.
6. The data processing apparatus according to claim 5, wherein when the external device includes a storage device, in the aspect of performing data backup on the electronic apparatus by the external device, the backup unit is specifically configured to:
identifying the storage capacity of the storage equipment to obtain available storage capacity;
establishing the priority of target data according to the available storage capacity;
and sequentially transmitting the target data to the storage equipment according to the priority.
7. The data processing apparatus according to any one of claims 5 to 6, wherein in the obtaining of the damage level of the touch display screen, the obtaining unit is specifically configured to:
scanning the display screen to obtain an abnormal display area;
scanning the touch screen to obtain an abnormal touch area;
and determining the damage degree of the touch display screen according to the abnormal display area and the abnormal touch area.
8. The data processing apparatus according to claim 7, wherein in the determining of the degree of damage of the touch display screen according to the abnormal display area and the abnormal touch area, the obtaining unit is specifically configured to:
calculating the percentage of the abnormal display area to the display screen to obtain a first damage ratio;
calculating the percentage of the abnormal touch area to the touch screen to obtain a second damage ratio;
and if the first damage ratio and/or the second damage ratio exceed a preset damage ratio, determining the first damage ratio and/or the second damage ratio as the damage degree of the touch display screen.
9. An electronic device comprising a processor, a memory, a communication interface, and 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 1-4.
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 one of claims 1-4.
CN201810395918.9A 2018-04-27 2018-04-27 Data processing method and related device Active CN108924325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810395918.9A CN108924325B (en) 2018-04-27 2018-04-27 Data processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810395918.9A CN108924325B (en) 2018-04-27 2018-04-27 Data processing method and related device

Publications (2)

Publication Number Publication Date
CN108924325A CN108924325A (en) 2018-11-30
CN108924325B true CN108924325B (en) 2020-05-08

Family

ID=64403571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810395918.9A Active CN108924325B (en) 2018-04-27 2018-04-27 Data processing method and related device

Country Status (1)

Country Link
CN (1) CN108924325B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138955A (en) * 2019-01-29 2019-08-16 努比亚技术有限公司 A kind of document protection method, terminal and computer readable storage medium
CN110602308A (en) * 2019-07-30 2019-12-20 努比亚技术有限公司 Display screen control method and device
CN111836226B (en) * 2020-07-09 2023-04-04 Oppo广东移动通信有限公司 Data transmission control method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685324A (en) * 2012-04-23 2012-09-19 华为终端有限公司 Automatic data backup method and device
CN104601799A (en) * 2014-12-18 2015-05-06 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106534467A (en) * 2015-09-10 2017-03-22 中兴通讯股份有限公司 Screen abnormity processing method and processing device, and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102317599B1 (en) * 2014-05-26 2021-10-26 삼성전자 주식회사 Electronic device and method for fragmentation analysis thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685324A (en) * 2012-04-23 2012-09-19 华为终端有限公司 Automatic data backup method and device
CN104601799A (en) * 2014-12-18 2015-05-06 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106534467A (en) * 2015-09-10 2017-03-22 中兴通讯股份有限公司 Screen abnormity processing method and processing device, and terminal

Also Published As

Publication number Publication date
CN108924325A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
TWI573368B (en) Portable electronic device and charging method therefor
CN108924325B (en) Data processing method and related device
US10318270B2 (en) Method for upgrading firmware of adapter, apparatus, and system thereof
CN103365388A (en) Power supply method of terminal device and terminal device
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
CN104220958B (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN106575169B (en) Method for eliminating interference of charger on touch screen and mobile terminal
CN104378838A (en) Method and device for building wireless connection
CN104135057A (en) Terminal, charger and charging method
US8234426B2 (en) Switching interface method for a multi-interface storage device
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN104270740A (en) Slot-sharing T card and SIM card detection method
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function
CN107885688B (en) Signal switching method and device
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
US9990027B2 (en) Status switching method
CN106160033A (en) A kind for the treatment of method and apparatus of terminal charger
CN108563594B (en) Data transmission method and device and USB adapter
CN105824732A (en) USB detection method and detection system
CN107222847B (en) Data transmission method, device and terminal
CN113766406B (en) Earphone testing method, system and device
CN108009110B (en) Equipment identification method and device
CN111813634B (en) Identification device for type of USB device interface and terminal device
CN104850512A (en) Method and apparatus for implementing USB OTG function without ID pin

Legal Events

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