CN108234720B - Electronic device, fall detection method and related product - Google Patents

Electronic device, fall detection method and related product Download PDF

Info

Publication number
CN108234720B
CN108234720B CN201810060465.4A CN201810060465A CN108234720B CN 108234720 B CN108234720 B CN 108234720B CN 201810060465 A CN201810060465 A CN 201810060465A CN 108234720 B CN108234720 B CN 108234720B
Authority
CN
China
Prior art keywords
data
electronic device
falling
dividing
processor
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
CN201810060465.4A
Other languages
Chinese (zh)
Other versions
CN108234720A (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 CN201810060465.4A priority Critical patent/CN108234720B/en
Publication of CN108234720A publication Critical patent/CN108234720A/en
Application granted granted Critical
Publication of CN108234720B publication Critical patent/CN108234720B/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/02Constructional features of telephone sets
    • H04M1/18Telephone sets specially adapted for use in ships, mines, or other places exposed to adverse environment
    • 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

Abstract

The embodiment of the application discloses an electronic device, a fall detection method and a related product, comprising the following steps: when the electronic device is detected to be in a falling state, collecting falling data of the electronic device; dividing the fall data into a plurality of data blocks; the plurality of data blocks are distributively processed to generate a fall result for the electronic device. The embodiment of the application is beneficial to improving the real-time performance and efficiency of the falling result generated by the electronic device.

Description

Electronic device, fall detection method and related product
Technical Field
The application relates to the technical field of mobile terminals, in particular to an electronic device, a drop detection method and a related product.
Background
With the widespread application of mobile terminals such as smart phones, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and personalization directions and become indispensable electronic products in user life. When a user uses the smart phone, the smart phone can fall off due to some reasons, so that the smart phone falls off and is damaged.
Disclosure of Invention
The embodiment of the application provides an electronic device, a fall detection method and a related product, aiming at improving the instantaneity and efficiency of the fall result generated by the electronic device.
In a first aspect, embodiments of the present application provide an electronic device, including a processor, a drop sensor, the processor coupled with the drop sensor, wherein,
the falling sensor is used for acquiring falling data of the electronic device when the electronic device falls;
the processor is used for dividing the falling data into a plurality of data blocks; and means for distributively processing the plurality of data blocks to generate a fall result for the electronic device.
In a second aspect, an embodiment of the present application provides a drop detection method, including
When the electronic device is detected to be in a falling state, collecting falling data of the electronic device;
dividing the roll-off data into a plurality of data blocks;
distributively processing the plurality of data blocks to generate a fall result for the electronic device.
In a third aspect, an embodiment of the present application provides a fall detection apparatus, including
An acquisition unit, a dividing unit and a generating unit, wherein,
the collecting unit is used for collecting falling data of the electronic device when the electronic device is detected to be in a falling state;
the dividing unit is used for dividing the falling data into a plurality of data blocks;
the generating unit is used for processing the plurality of data blocks in a distributed mode to generate a dropping result of the electronic device.
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 of any of the methods 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 part or all of the steps described in any one of the methods in the second aspect of the present application.
In a sixth 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 described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a diagram illustrating a scene of a drop collision of an electronic device according to an embodiment of the present application;
fig. 1C is a schematic diagram of an internal structure of an acceleration sensor according to an embodiment of the present disclosure;
fig. 1D is a schematic diagram of an acceleration sensor provided in an embodiment of the present application under the action of gravity;
fig. 2 is a schematic flow chart of a fall detection method disclosed in an embodiment of the present application;
fig. 3 is a schematic flow chart of another fall detection method disclosed in the embodiments of the present application;
fig. 4 is a schematic flow chart of another fall detection 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 of functional units of a fall detection 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.
The electronic device according to the embodiment 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), terminal devices (terminal device), and the like. 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. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, where the electronic device 100 includes: the electronic device comprises a shell 110, a circuit board 120 arranged in the shell 110, and a display screen 130 arranged on the shell 110, wherein a processor 121, a drop sensor 122 and a memory 123 are arranged on the circuit board 120, the processor 121 is coupled with the drop sensor 122, and the processor 121 is connected with the memory 123 and the display screen 130; wherein the content of the first and second substances,
the drop sensor 122 is used for acquiring drop data of the electronic device when the electronic device drops;
the processor 121 is configured to divide the roll-off data into a plurality of data blocks; and means for distributively processing the plurality of data blocks to generate a fall result for the electronic device.
As shown in fig. 1B, the falling state refers to a state in which the electronic device falls downward under the action of gravity. The fall outcome may include any one or more of the following: the falling duration, the falling height, the falling speed, the falling posture, the falling angle, the falling position, the floor material and the like are not limited uniquely.
Wherein the drop sensor may comprise at least one of: the sensor comprises an acceleration sensor, a gyroscope and a geomagnetic sensor, wherein the acceleration sensor can also be called as a gravity sensor, as shown in fig. 1C, the acceleration sensor is made of silicon dioxide, a substrate is mainly provided with a first capacitor C1 and a second capacitor C2, and the magnitude of the acceleration in the sensing direction can be calculated by detecting the capacitance change as the capacitance value of a parallel plate capacitor is in inverse proportion to the distance between the plates; meanwhile, a spring (spring) and a vibration mass (sessmic mass) are arranged on the substrate along the acceleration sensing direction, when acceleration exists, the polar plate of the capacitor can form displacement, and when the acceleration is zero, the polar plate of the capacitor returns to the original position. The wire (wire) and the bonding pad (bond) are connected with the capacitor and used for transmitting the capacitance value change to other devices. Taking a three-axis acceleration sensor as an example, which can detect X, Y, Z acceleration data, as shown in fig. 1D, in a stationary state, the sensor is subjected to gravity in one direction, so there is 1g (i.e., 9.8 m/s of two) of data for one axis. The gyroscope calculates angular velocity by detecting acceleration. The principle is that rotation of a periodically moving object in an orthogonal plane generates coriolis forces in the orthogonal plane perpendicular to the direction of the periodic motion. The mass block in the gyroscope continuously vibrates in the horizontal direction, when the gyroscope rotates, the mass block deflects, a Coriolis force in the vertical direction is generated, acceleration is detected through the working principle of the accelerometer, then the acceleration is obtained through the formula a which is 2 omega V, and the angular velocity can be calculated due to the fact that the velocity V is known. The geomagnetic sensor is also called as a magnetic field sensor, and the geomagnetic sensor is based on the principle that anisotropic magneto-resistance materials can cause self resistance change when sensing weak magnetic field change, so that a mobile phone can accurately indicate the direction only after rotating or shaking. For compasses, map navigation directions, etc.
The processor 121 includes an application processor and a baseband processor, and is a control center of the electronic device, and is connected to various parts of the electronic device through various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the electronic device. The application processor mainly processes an operating system, a user interface, application programs and the like, and the baseband processor mainly processes wireless communication. It will be appreciated that the baseband processor described above may not be integrated into the processor. The memory 123 may be used to store software programs and modules, and the processor executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory. The memory 123 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 123 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In one possible example, the processor 121 is a multi-core processor; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor 121 is specifically configured to: and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in the multi-core processor.
The multi-core processor may be a 2-core processor, a 4-core processor, an 8-core processor, a 16-core processor, and the like, which are not limited herein. The idle state refers to a state in which the processor does not perform data operation currently or the operation amount is lower than a preset threshold.
For example, assuming that the processor 121 is an 8-core processor, and the processor currently in an idle state includes four processors, i.e., processor 5/processor 6/processor 7/processor 8, the roll-off data may be divided into 4 data blocks, where the data amount of each data block may match the computing power of the corresponding allocated processor, and if the computing power of processor 5/processor 6/processor 7/processor 8 is 100, 80, 60, and 40, respectively, the proportional relationship of the data amounts of data block 1/data block 2/data block 3/data block 4 corresponding to processor 5/processor 6/processor 7/processor 8 may be 5:4:3: 2. This is favorable to resource balance, improves data processing efficiency.
Therefore, in this example, the electronic device can reasonably divide the drop data according to the number of processors in idle states in the multi-core processor, so that the to-be-processed data can be more uniformly distributed to the processors in idle states, and the drop data processing efficiency and the resource balance can be improved.
In one possible example, the processor 121 is a multi-core processor; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor 121 is specifically configured to: dividing the falling data into a plurality of data blocks according to the number of processors in the multi-core processor, which are in direct communication connection with the falling sensors, wherein the falling sensors are used for acquiring the falling data.
The multi-core processor may include a master processor and one or more slave processors, the master processor is communicatively connected with the fall sensor, the number of the processors communicatively connected with the fall sensor in the one or more slave processors is not limited, and may be all unconnected, or part or all of the processors are communicatively connected, depending on the production configuration of the electronic device, and is not limited herein.
For example, assuming that a multi-core processor of an electronic device includes 4 cores, where a master processor core 1 and a slave processor core 3 are in communication connection with a fall sensor, the fall data may be divided into 2 data blocks, in a specific implementation, the electronic device may acquire the fall data synchronously through the cores 1 and 3, after the core 1 determines a division policy, block identification information of the fall data is generated, the block identification information is notified to the core 3, and the core 3 may extract a data block allocated to its own processing according to the block identification information, where the block identification information may be information that indicates a timestamp of a sampling period and the like and can indicate a data block position, and is not limited uniquely here. Therefore, the core 1 can be prevented from transmitting the whole data block with large data volume to the core 3, the core 3 for distributing the data block can rapidly extract the corresponding data block and process the data block, and the whole processing efficiency of the falling data is improved.
Therefore, in the example, the electronic device can reasonably divide the drop data according to the number of the processors in the multi-core processor, which are in direct communication connection with the drop sensors, so that the to-be-processed data can be more uniformly distributed to the processors in direct communication, and the drop data processing efficiency and the resource balance can be improved.
In one possible example, the fall data comprises a plurality of categories of data; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor 121 is specifically configured to: and dividing the falling data into a plurality of data blocks according to the category of the multi-category data.
The types of data may be, for example, acceleration data (detected by an acceleration sensor), angular velocity data (detected by a gyroscope), magnetic induction data (detected by a geomagnetic sensor), and the like, and are not limited herein. Because different types of data at least correspond to a part of independent calculation processes, such as a process of calculating falling height according to acceleration data, a process of calculating falling angle according to angular velocity data and the like, if the processes are executed serially by the same processor, obviously, the processing time delay is higher, therefore, the two types of data are separated based on the data type, for example, the acceleration data is distributed to the core 1 for processing, and the angular velocity data is distributed to the core 2 for processing, so that the processing time delay can be reduced in parallel, and the data processing efficiency is improved.
Therefore, in this example, the electronic device can divide the data blocks according to the data types of the acquired fall data and allocate the data blocks to corresponding cores for processing, so that the processing efficiency of the fall data is improved.
In one possible example, the fall data includes multiple sets of data for different acquisition cycles; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor 121 is specifically configured to: dividing the plurality of sets of data into a plurality of data sets; and for dividing the fall data into a plurality of data blocks according to the number of the plurality of data sets.
The falling data of the same type, such as acceleration data, and the data collected in different time periods are different in calculation result, such as initial acceleration data sampling for identifying the falling state, the acceleration data in the falling process and the acceleration data at the moment of collision are combined with time for determining the falling height, and the acceleration data in the collision process are used for determining the material of the collision object.
That is, the division strategy of the multiple data sets may be set division based on a variation trend and a size of the acceleration data, where the variation trend may be determined by multiple sets of continuously sampled data, such as when the electronic device falls to an initial stage, and the z-axis acceleration may be rapidly increased from 0 to the gravitational acceleration.
In this example, the electronic device can divide the data set based on the sampling period, divide the data block based on the data plan, and perform distributed processing on the data block, that is, to achieve synchronous processing on data in different time periods, which is beneficial to improving the processing efficiency of falling data.
In one possible example, in terms of the distributed processing of the plurality of data blocks to generate the fall result of the electronic device, the processor 121 is specifically configured to: establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks; and the processor in the multi-core processor is controlled to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
The correspondence may be determined based on the processing capability of the processor and the data amount of the data block, or may be determined in advance in a data block partitioning policy, which is not limited herein.
Therefore, in this example, the electronic device can configure the corresponding data block for each approval according to the preset corresponding relationship, thereby avoiding confusion of configuration of the data blocks and improving the accuracy of data processing.
In one possible example, the processor 121, after distributively processing the plurality of data blocks to generate the fall result state of the electronic device, is further configured to: obtaining cache data of the electronic device; and a multi-core processor for controlling the electronic device to establish at least one communication link with the cache server; and for uploading the cache data to the cache server over the at least one communication link.
The cache data may be cache data applied by a foreground of the electronic device or cache data applied by a background system, which is not limited herein.
Therefore, in this example, when the electronic device is in a falling state, at least one communication link can be suggested through the multi-core processor and the cache server, so that the cache data can be quickly and timely uploaded to the cache server, the falling damage and the loss or the difficulty in extracting the cache data are avoided, and the data security of the electronic device under the falling condition is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a drop detection method applied to the electronic device shown in fig. 1A according to an embodiment of the present application, where the drop detection method includes:
s201, when the electronic device detects that the electronic device is in a falling state, the electronic device collects falling data of the electronic device.
S202, the electronic device divides the falling data into a plurality of data blocks;
s203, the electronic device distributively processes the data blocks to generate a dropping result of the electronic device.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In one possible example, the dividing the fall data into a plurality of data blocks includes: and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in a multi-core processor of the electronic device.
The multi-core processor may be a 2-core processor, a 4-core processor, an 8-core processor, a 16-core processor, and the like, which are not limited herein. The idle state refers to a state in which the processor does not perform data operation currently or the operation amount is lower than a preset threshold.
Therefore, in this example, the electronic device can reasonably divide the drop data according to the number of processors in idle states in the multi-core processor, so that the to-be-processed data can be more uniformly distributed to the processors in idle states, and the drop data processing efficiency and the resource balance can be improved.
In one possible example, the dividing the fall data into a plurality of data blocks includes: dividing the falling data into a plurality of data blocks according to the number of processors in a multi-core processor of the electronic device, wherein the processors are in direct communication connection with falling sensors, and the falling sensors are used for acquiring the falling data.
Therefore, in the example, the electronic device can reasonably divide the drop data according to the number of the processors in the multi-core processor, which are in direct communication connection with the drop sensors, so that the to-be-processed data can be more uniformly distributed to the processors in direct communication, and the drop data processing efficiency and the resource balance can be improved.
In one possible example, the fall data comprises a plurality of categories of data; the dividing the roll-off data into a plurality of data blocks comprises: and dividing the falling data into a plurality of data blocks according to the category of the multi-category data.
Therefore, in this example, the electronic device can divide the data blocks according to the data types of the acquired fall data and allocate the data blocks to corresponding cores for processing, so that the processing efficiency of the fall data is improved.
In one possible example, the fall data includes multiple sets of data for different acquisition cycles; the dividing the roll-off data into a plurality of data blocks comprises: dividing the plurality of sets of data into a plurality of data sets; and dividing the falling data into a plurality of data blocks according to the number of the plurality of data sets.
In this example, the electronic device can divide the data set based on the sampling period, divide the data block based on the data plan, and perform distributed processing on the data block, that is, to achieve synchronous processing on data in different time periods, which is beneficial to improving the processing efficiency of falling data.
In one possible example, the distributively processing the plurality of data blocks to generate a fall result for the electronic device includes: establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks; and controlling a processor in the multi-core processor to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
Therefore, in this example, the electronic device can configure the corresponding data block for each approval according to the preset corresponding relationship, thereby avoiding confusion of configuration of the data blocks and improving the accuracy of data processing.
In one possible example, after the distributively processing the plurality of data blocks to generate the fall result state of the electronic device, the method further comprises: obtaining cache data of the electronic device; the method comprises the steps that a multi-core processor of the control electronic device and a cache server establish at least one communication link; uploading the cache data to the cache server over the at least one communication link.
Therefore, in this example, when the electronic device is in a falling state, at least one communication link can be suggested through the multi-core processor and the cache server, so that the cache data can be quickly and timely uploaded to the cache server, the falling damage and the loss or the difficulty in extracting the cache data are avoided, and the data security of the electronic device under the falling condition is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a drop detection method provided in an embodiment of the present application, and the drop detection method is applied to the electronic device shown in fig. 1A, where as shown in the figure, the drop detection method includes:
s301, when the electronic device detects that the electronic device is in a falling state, collecting falling data of the electronic device;
s302, the electronic device divides the falling data into a plurality of data blocks according to the number of processors in idle states in a multi-core processor of the electronic device.
S303, the electronic device establishes a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks;
s304, the electronic device controls a processor in the multi-core processor to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
S305, the electronic device acquires cache data of the electronic device;
s306, the electronic device controls a multi-core processor of the electronic device to establish at least one communication link with a cache server;
s307, the electronic device uploads the cache data to the cache server through the at least one communication link.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In addition, the electronic device can reasonably divide the drop data according to the number of processors in idle states in the multi-core processor, so that the to-be-processed data can be more uniformly distributed to the processors in the idle states, and the drop data processing efficiency and the resource balance can be improved.
In addition, the electronic device can accurately configure the corresponding data block for each approval according to the preset corresponding relation, thereby avoiding the disordered configuration of the data blocks and improving the accuracy of data processing.
In addition, when the electronic device is in a falling state, at least one communication link can be suggested through the multi-core processor and the cache server, cache data can be uploaded to the cache server quickly and timely, the falling damage and the loss or the difficulty in extracting the cache data are avoided, and the data safety of the electronic device under the falling condition is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a drop detection method according to an embodiment of the present application, and the drop detection method is applied to the electronic apparatus shown in fig. 1A. As shown in the figure, the drop detection method comprises the following steps:
s401, when the electronic device detects that the electronic device is in a falling state, collecting falling data of the electronic device;
s402, dividing the falling data into a plurality of data blocks by the electronic device according to the number of processors in a multi-core processor of the electronic device, wherein the processors are in direct communication connection with falling sensors, and the falling sensors are used for collecting the falling data.
S403, the electronic device establishes a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks;
s404, the electronic device controls a processor in the multi-core processor to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
S405, the electronic device acquires cache data of the electronic device;
s406, the electronic device controls a multi-core processor of the electronic device to establish at least one communication link with a cache server;
s407, the electronic device uploads the cache data to the cache server through the at least one communication link.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In addition, the electronic device can reasonably divide the falling data according to the number of the processors in the multi-core processor and in direct communication connection with the falling sensors, so that the to-be-processed data can be distributed to the processors in direct communication more uniformly, and the falling data processing efficiency and the falling data resource balance can be improved.
In addition, the electronic device can accurately configure the corresponding data block for each approval according to the preset corresponding relation, thereby avoiding the disordered configuration of the data blocks and improving the accuracy of data processing.
In addition, when the electronic device is in a falling state, at least one communication link can be suggested through the multi-core processor and the cache server, cache data can be uploaded to the cache server quickly and timely, the falling damage and the loss or the difficulty in extracting the cache data are avoided, and the data safety of the electronic device under the falling condition is 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 according to an embodiment of the present application, where the electronic device includes 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 programs include instructions for performing the following steps;
when the electronic device is detected to be in a falling state, collecting falling data of the electronic device;
dividing the roll-off data into a plurality of data blocks;
distributively processing the plurality of data blocks to generate a fall result for the electronic device.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In one possible example, in the aspect of dividing the fall data into a plurality of data blocks, the instructions in the program are specifically configured to: and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in a multi-core processor of the electronic device.
In one possible example, in the aspect of dividing the fall data into a plurality of data blocks, the instructions in the program are specifically configured to: dividing the falling data into a plurality of data blocks according to the number of processors in a multi-core processor of the electronic device, wherein the processors are in direct communication connection with falling sensors, and the falling sensors are used for acquiring the falling data.
In one possible example, the fall data comprises a plurality of categories of data; in the aspect of dividing the fall data into a plurality of data blocks, the instructions in the program are specifically configured to perform the following operations: and dividing the falling data into a plurality of data blocks according to the category of the multi-category data.
In one possible example, the fall data includes multiple sets of data for different acquisition cycles; in the aspect of dividing the fall data into a plurality of data blocks, the instructions in the program are specifically configured to perform the following operations: dividing the plurality of sets of data into a plurality of data sets; and for dividing the fall data into a plurality of data blocks according to the number of the plurality of data sets.
In one possible example, the instructions in the program are specifically configured to, in the distributed processing of the plurality of data blocks to generate a fall outcome for the electronic device, perform the following: establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks; and the processor in the multi-core processor is controlled to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
In one possible example, the program further includes instructions for: after the distributed processing of the data blocks is performed to generate a drop result state of the electronic device, cache data of the electronic device is acquired; and a multi-core processor for controlling the electronic device to establish at least one communication link with the cache server; and for uploading the cache data to the cache server over the at least one communication link.
The above description has introduced the solution of the embodiment of the present application mainly 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.
Fig. 6 is a block diagram of functional units of a fall detection apparatus 600 according to an embodiment of the present application. The falling detection device 600 is applied to an electronic device, and the falling detection device 600 comprises a collecting unit 601, a dividing unit 602 and a generating unit 603, wherein,
the collecting unit 601 is configured to collect falling data of the electronic device when the electronic device is detected to be in a falling state;
the dividing unit 602 is configured to divide the dropping data into a plurality of data blocks;
the generating unit 603 is configured to process the plurality of data blocks in a distributed manner to generate a dropping result of the electronic apparatus.
It can be seen that, in the embodiment of the application, when the electronic device detects that the electronic device is in a falling state, the falling data of the electronic device is firstly collected, then, the falling data is divided into a plurality of data blocks, and finally, the plurality of data blocks are processed in a distributed manner to generate a falling result of the electronic device. Due to the fact that the falling process time is short and the data volume is large, distributed processing is adopted for falling data, time consumption of data processing is reduced, and instantaneity and efficiency of the electronic device for generating falling results are improved.
In one possible example, in terms of the dividing the roll-off data into a plurality of data blocks, the dividing unit 602 is specifically configured to: and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in a multi-core processor of the electronic device.
In one possible example, in terms of the dividing the roll-off data into a plurality of data blocks, the dividing unit 602 is specifically configured to: dividing the falling data into a plurality of data blocks according to the number of processors in a multi-core processor of the electronic device, wherein the processors are in direct communication connection with falling sensors, and the falling sensors are used for acquiring the falling data.
In one possible example, the fall data comprises a plurality of categories of data; in the aspect of dividing the roll-off data into a plurality of data blocks, the dividing unit 602 is specifically configured to: and dividing the falling data into a plurality of data blocks according to the category of the multi-category data.
In one possible example, the fall data includes multiple sets of data for different acquisition cycles; in the aspect of dividing the roll-off data into a plurality of data blocks, the dividing unit 602 is specifically configured to: dividing the plurality of sets of data into a plurality of data sets; and for dividing the fall data into a plurality of data blocks according to the number of the plurality of data sets.
In a possible example, in terms of the distributed processing of the multiple data blocks to generate the fall result of the electronic apparatus, the generating unit 603 is specifically configured to: establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks; and the processor in the multi-core processor is controlled to process the corresponding data block according to the corresponding relation so as to generate a falling result of the electronic device.
In one possible example, the fall detection apparatus further comprises an acquisition unit, a setup unit, and an upload unit, wherein,
the obtaining unit is configured to obtain cache data of the electronic apparatus after the generating unit 603 performs distributed processing on the plurality of data blocks to generate a drop result state of the electronic apparatus; and a multi-core processor for controlling the electronic device to establish at least one communication link with the cache server; and for uploading the cache data to the cache server over the at least one communication link.
The establishing unit is used for controlling a multi-core processor of the electronic device to establish at least one communication link with the cache server;
the uploading unit is configured to upload the cache data to the cache server through the at least one communication link.
Wherein the acquisition unit 601 may be a fall sensor, and the dividing unit 602 and the generating unit 603 may be processors.
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 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 above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. 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 may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. 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 above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 Memory 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 (12)

1. An electronic device comprising a processor, a drop sensor, the processor coupled with the drop sensor, the processor being a multi-core processor, wherein,
the falling sensor is used for acquiring falling data of the electronic device when the electronic device falls;
the processor is used for dividing the falling data into a plurality of data blocks; and processing the plurality of data blocks in a distributed manner to generate a drop result of the electronic device, wherein the drop data comprises a plurality of types of data, and the plurality of types of data comprises acceleration data, angular velocity data and magnetic induction data;
in the aspect of the dividing the roll-off data into a plurality of data blocks, the processor is further configured to: dividing the falling data into a plurality of data blocks according to the category of the multi-category data;
the processor is further configured to: and establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks, and controlling a processor in the multi-core processor to process the corresponding data blocks according to the corresponding relation so as to generate a falling result of the electronic device.
2. The electronic device of claim 1, wherein in the dividing the droop data into a plurality of data blocks, the processor is specifically configured to: and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in the multi-core processor.
3. The electronic device of claim 1, wherein the processor is a multi-core processor; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor is specifically configured to: dividing the falling data into a plurality of data blocks according to the number of processors in the multi-core processor, which are in direct communication connection with the falling sensors, wherein the falling sensors are used for acquiring the falling data.
4. The electronic device of claim 1, wherein the fall data comprises a plurality of sets of data for different acquisition cycles; in the aspect of dividing the roll-off data into a plurality of data blocks, the processor is specifically configured to: dividing the plurality of sets of data into a plurality of data sets; and for dividing the fall data into a plurality of data blocks according to the number of the plurality of data sets.
5. A fall detection method, comprising:
when the electronic device is detected to be in a falling state, collecting falling data of the electronic device;
dividing the fall data into a plurality of data blocks, wherein the fall data includes a plurality of types of data including acceleration data, angular velocity data, and magnetic induction data, the dividing the fall data into a plurality of data blocks includes: dividing the falling data into a plurality of data blocks according to the category of the multi-category data;
distributively processing the plurality of data blocks to generate a fall result for the electronic device, comprising: and establishing a corresponding relation between a multi-core processor of the electronic device and the plurality of data blocks, and controlling a processor in the multi-core processor to process the corresponding data blocks according to the corresponding relation so as to generate a falling result of the electronic device.
6. The method of claim 5, wherein the dividing the fall data into a plurality of data blocks comprises:
and dividing the falling data into a plurality of data blocks according to the number of processors in idle states in a multi-core processor of the electronic device.
7. The method of claim 5, wherein the dividing the fall data into a plurality of data blocks comprises:
dividing the falling data into a plurality of data blocks according to the number of processors in a multi-core processor of the electronic device, wherein the processors are in direct communication connection with falling sensors, and the falling sensors are used for acquiring the falling data.
8. The method of claim 5, wherein the fall data comprises a plurality of sets of data for different acquisition cycles; the dividing the roll-off data into a plurality of data blocks comprises:
dividing the plurality of sets of data into a plurality of data sets;
and dividing the falling data into a plurality of data blocks according to the number of the plurality of data sets.
9. The method of any of claims 5-8, wherein after the distributively processing the plurality of data blocks to generate the fall outcome state for the electronic device, the method further comprises:
obtaining cache data of the electronic device;
the method comprises the steps that a multi-core processor of the control electronic device and a cache server establish at least one communication link;
uploading the cache data to the cache server over the at least one communication link.
10. A falling detection device is characterized by comprising a collecting unit, a dividing unit and a generating unit, wherein,
the collecting unit is used for collecting falling data of the electronic device when the electronic device is detected to be in a falling state;
the dividing unit is configured to divide the fall data into a plurality of data blocks, where the fall data includes multiple types of data, the multiple types of data include acceleration data, angular velocity data, and magnetic induction data, and the dividing unit is further configured to: dividing the falling data into a plurality of data blocks according to the category of the multi-category data;
the generating unit is used for processing the plurality of data blocks in a distributed mode to generate a dropping result of the electronic device;
the generating unit is further configured to establish a corresponding relationship between a multi-core processor of the electronic device and the plurality of data blocks, and control a processor in the multi-core processor to process the corresponding data blocks according to the corresponding relationship, so as to generate a drop result of the electronic device.
11. 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 5-9.
12. 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 5-9.
CN201810060465.4A 2018-01-22 2018-01-22 Electronic device, fall detection method and related product Active CN108234720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810060465.4A CN108234720B (en) 2018-01-22 2018-01-22 Electronic device, fall detection method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810060465.4A CN108234720B (en) 2018-01-22 2018-01-22 Electronic device, fall detection method and related product

Publications (2)

Publication Number Publication Date
CN108234720A CN108234720A (en) 2018-06-29
CN108234720B true CN108234720B (en) 2021-04-02

Family

ID=62668400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810060465.4A Active CN108234720B (en) 2018-01-22 2018-01-22 Electronic device, fall detection method and related product

Country Status (1)

Country Link
CN (1) CN108234720B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639892A (en) * 2018-12-14 2019-04-16 顺丰科技有限公司 A kind of handheld terminal and its fall monitoring method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567746A (en) * 2011-12-30 2012-07-11 浙江大学 Device and method for rotating matrix data based on multi-core processor along bit
CN106646440A (en) * 2016-09-06 2017-05-10 广东欧珀移动通信有限公司 Drop height detection method and drop height detection device
CN106776039A (en) * 2016-12-30 2017-05-31 广东欧珀移动通信有限公司 A kind of data processing method and device
JP6366094B2 (en) * 2014-07-07 2018-08-01 Kddi株式会社 Portable information device, program, and method for detecting careless walking state using only acceleration sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567746A (en) * 2011-12-30 2012-07-11 浙江大学 Device and method for rotating matrix data based on multi-core processor along bit
JP6366094B2 (en) * 2014-07-07 2018-08-01 Kddi株式会社 Portable information device, program, and method for detecting careless walking state using only acceleration sensor
CN106646440A (en) * 2016-09-06 2017-05-10 广东欧珀移动通信有限公司 Drop height detection method and drop height detection device
CN106776039A (en) * 2016-12-30 2017-05-31 广东欧珀移动通信有限公司 A kind of data processing method and device

Also Published As

Publication number Publication date
CN108234720A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108307051B (en) Electronic device, collision data processing method and related product
CN108426573B (en) Pedestrian gait detection method of terminal equipment and terminal equipment
CN103970259B (en) The method and terminal device of screen pattern switching
CN104580403A (en) Data statistic method and system, user terminal and application server
CN110737798B (en) Indoor inspection method and related product
CN108235809A (en) End cloud combination positioning method and device, electronic equipment and computer program product
CN108377293B (en) Electronic device, fall control method and related product
CN110097741B (en) Method, device and equipment for monitoring state of signboard
CN108234720B (en) Electronic device, fall detection method and related product
CN108347528B (en) Electronic device, fall reminding method, device and computer-readable storage medium
CN115766935B (en) Drop detection method and electronic equipment
CN103246431B (en) A kind of regulation screen display direction method, Apparatus and system
CN107376351B (en) The control method and device of object
CN110908784A (en) Image labeling method, device, equipment and storage medium
KR20160023428A (en) Method and apparatus for recognizing motion using a plurality of sensors
CN108259670B (en) Electronic device, drop processing method and related product
EP2842131B1 (en) Calibration system for simultaneous calibration of multiple motion capture elements
CN108307053B (en) Electronic device, fall control method and related product
CN108390999B (en) Electronic equipment, fall control method and related product
CN112329353B (en) Method and device for determining channeling flow, computer equipment and storage medium
US11002755B2 (en) Method for indicating impact of external shocks and electronic device thereof
CN206823164U (en) Intelligent gyro
KR20160050863A (en) Method for processing sensor value to motion recognition and apparatus using the same
CN108255632A (en) Method for computing data and Related product are fallen based on artificial intelligence
CN110782530B (en) Method and device for displaying vehicle information in automatic driving simulation system

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: No.18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant