CN111781616A - Data processing method, device and system and computer readable storage medium - Google Patents

Data processing method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN111781616A
CN111781616A CN202010550309.3A CN202010550309A CN111781616A CN 111781616 A CN111781616 A CN 111781616A CN 202010550309 A CN202010550309 A CN 202010550309A CN 111781616 A CN111781616 A CN 111781616A
Authority
CN
China
Prior art keywords
processing unit
positioning
positioning information
information
electronic device
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.)
Pending
Application number
CN202010550309.3A
Other languages
Chinese (zh)
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.)
Mobvoi Information Technology Co Ltd
Chumen Wenwen Information Technology Co Ltd
Original Assignee
Mobvoi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mobvoi Information Technology Co Ltd filed Critical Mobvoi Information Technology Co Ltd
Priority to CN202010550309.3A priority Critical patent/CN111781616A/en
Publication of CN111781616A publication Critical patent/CN111781616A/en
Priority to EP21826898.5A priority patent/EP4167053A1/en
Priority to PCT/CN2021/070715 priority patent/WO2021253814A1/en
Priority to US18/082,079 priority patent/US20230122488A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a data processing method, a device, a system and a computer readable storage medium, which are applied to first electronic equipment, wherein the first electronic equipment comprises a first processing unit for operating a first operating system and a second processing unit for operating a second operating system, and the work energy consumption of the first processing unit is less than that of the second processing unit, and the method comprises the following steps: the method comprises the steps that a first processing unit obtains positioning information of a first electronic device from a positioning system which is connected with the first processing unit and used for executing a positioning function, wherein the positioning information comprises position information and timestamp information of the first electronic device in a certain time period; when determining that a first trigger condition for executing positioning information synchronization is met, synchronizing the obtained positioning information to a second processing unit by a first processing unit; the second processing unit performs processing related to positioning based on the obtained positioning information. In this way, it is possible to achieve rapid acquisition of time-dependent positioning information and to perform a time-dependent positioning function.

Description

Data processing method, device and system and computer readable storage medium
Technical Field
The present invention relates to the field of wearable device technologies, and in particular, to a data processing method, apparatus, system, and computer-readable storage medium.
Background
Along with wearable equipment such as intelligent wrist-watch, motion bracelet walk into more people's life, people have proposed higher requirement to wearable equipment's low-power consumption and practicality. Not only has more practical functions, but also reduces the power consumption. For example: at present, the user of wearable equipment such as intelligent wrist-watch and motion bracelet has proposed higher requirement to the locate function real-time nature, expects simultaneously that locate function can not produce higher consumption. However, at present, when the positioning function is opened on the intelligent wearable device, power consumption is very high especially in a motion scene, which brings great inconvenience to users and also affects the practicability of the wearable device to a certain extent.
To address the above issues, power consumption is currently conserved by automatically entering a standby or sleep state when the wearable device deactivates some functions. However, after the system CPU is restarted or switched to an operating state to execute the positioning function, the positioning information during the shutdown or sleep of the system CPU cannot be acquired, and thus, the positioning function related to time cannot be quickly executed, for example: the motion trajectory cannot be drawn based on time and maps, etc.
Disclosure of Invention
In order to solve the above problems in the sleep process of the wearable device, embodiments of the present invention creatively provide a data processing method, apparatus, system, and computer-readable storage medium.
According to a first aspect of the present invention, there is provided a data processing method applied to a first electronic device, where the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the energy consumption of the first processing unit is less than the energy consumption of the second processing unit, the method including: the first processing unit obtains positioning information of the first electronic device from a positioning system connected with the first processing unit and used for executing a positioning function, wherein the positioning information comprises position information and timestamp information of the first electronic device in a certain time period; when determining that a first trigger condition for executing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit; the second processing unit executes processing related to positioning according to the obtained positioning information.
According to an embodiment of the present invention, the first trigger condition is at least one of: the second processing unit is started to enter a working state; the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit; and the second processing unit starts the application programs in the first list, wherein the application programs in the first list need to use the positioning information application programs in the running process.
According to an embodiment of the present invention, after the first processing unit synchronizes the obtained positioning information to the second processing unit, the method further includes: when determining that a second trigger condition for stopping positioning information synchronization is met, the first processing unit stops synchronizing the obtained positioning information to the second processing unit; wherein the second trigger condition is at least one of: the second processing unit enters a non-working state; the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit; and the application programs in the first list do not exist in the application programs run by the second processing unit.
According to an embodiment of the invention, the first processing unit supports communication connections with a plurality of respective positioning systems, and the first processing unit selects a positioning system for performing a positioning function by: the first processing unit obtains the signal intensity corresponding to the plurality of positioning systems, and selects the positioning system with the highest signal intensity; and determining the selected positioning system as a corresponding positioning system used by the first processing unit to execute a positioning function, controlling a positioning module corresponding to the selected positioning system in the first processing unit to be in a working state, and controlling a positioning module corresponding to a non-selected positioning system in the first processing unit to be in a non-working state.
According to an embodiment of the present invention, after the selecting the location system with the highest intensity, the method further comprises: comparing the signal strength corresponding to the positioning system with the highest strength with a first threshold value; when the signal intensity corresponding to the positioning system with the highest intensity is greater than or equal to the first threshold value, determining the positioning system with the highest intensity as the selected positioning system; and when the signal intensity corresponding to the positioning system with the highest intensity is smaller than the first threshold, determining the second electronic equipment with the positioning function connected with the first electronic equipment as the selected positioning system.
According to the second aspect of the present invention, there is further provided a data processing apparatus applied to a first electronic device, where the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the operating energy consumption of the first processing unit is smaller than that of the second processing unit, the apparatus including: an information obtaining module, configured to the first processing unit, and configured to obtain, from a positioning system connected to the first processing unit and used for performing a positioning function, positioning information of the first electronic device, where the positioning information includes position information and timestamp information of the first electronic device within a certain time period; the information synchronization module is used for synchronizing the acquired positioning information to the second processing unit when the first trigger condition for executing positioning information synchronization is determined to be met; and the data processing module is configured to the second processing unit and is used for executing processing related to positioning according to the obtained positioning information.
According to an embodiment of the present invention, the first trigger condition is at least one of: the second processing unit is started to enter a working state; the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit; and the second processing unit starts the application programs in the first list, wherein the application programs in the first list need to use the positioning information application programs in the running process.
According to an embodiment of the invention, the apparatus further comprises: a data suspension module, configured to, after the first processing unit synchronizes the obtained positioning information to the second processing unit, when it is determined that a second trigger condition for suspending positioning information synchronization is met, stop synchronizing the obtained positioning information to the second processing unit by the first processing unit; wherein the second trigger condition is at least one of: the second processing unit enters a non-working state; the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit; and the application programs in the first list do not exist in the application programs run by the second processing unit.
According to a third aspect of the present invention, there is further provided a data processing system comprising a processor and a memory, wherein the memory has stored therein computer program instructions for executing the above data processing method when the computer program instructions are executed by the processor.
According to a fourth aspect of the present invention, there is also provided a computer-readable storage medium comprising a set of computer-executable instructions which, when executed, are adapted to perform the above-mentioned data processing method.
According to the data processing method, the data processing device, the data processing system and the computer readable storage medium, when the first trigger condition for executing the positioning information synchronization is determined to be met, the first processing unit synchronizes the obtained positioning information to the second processing unit, so that the second processing unit executes the processing related to positioning according to the obtained positioning information, and the positioning information comprises the position information and the time stamp information of the first electronic equipment in a certain time period. The problem that the second processing unit cannot acquire the positioning information during the closing or dormancy period after being restarted or switched to the working state and executing the positioning function can be effectively avoided. The method and the device realize quick acquisition of time-related positioning information to execute time-related positioning functions.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a schematic diagram illustrating an application scenario of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an implementation of a data processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram showing a configuration of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic diagram illustrating an application scenario of a method for information synchronization according to an embodiment of the present invention. The MCU (Microcontroller Unit) 100 is electrically connected to the positioning information receiver 103 through a serial peripheral interface 102 on a hardware level, and the positioning information receiver 103 may include a GPS (Global positioning system) chip, for example: BCM 4775X of boston. An embedded operating system runs on the MCU 100, for example: the RTOS (Real Time Operating System) includes a positioning information service 1001. The positioning information service 1001 performs the method of information synchronization according to the embodiment of the present invention. The positioning information service 1001 operates the positioning information receiving apparatus 103 through the hardware abstraction layer program 1002, which includes start-up, initialization, reading operation, and the like. Location information service 1001 may receive program call instructions, collect location information, collate the location information, generate system level location information, and return to the calling program. The positioning information service 1001 may provide system positioning information alone, or may provide positioning information to an intelligent operating system (e.g., an Android intelligent operating system) and an application thereof, which are run by a Central Processing Unit (CPU), through a global navigation satellite system hardware abstraction layer definition language interface program 101. The smart os and its application programs may use a standard positioning Provider provided by the smart os, such as the Gps Provider 104(Gps Location Provider) and the Flp Location Provider 105(Flp Location Provider), to obtain the required positioning information. The standard positioning provider provided by the smart os may call the gnss hardware abstraction layer definition language interface program 101 provided by the embodiment of the present invention to obtain the application level positioning information.
Fig. 2 is a schematic diagram illustrating an implementation flow of the method for information synchronization according to the embodiment of the present invention.
Referring to fig. 2, a data processing method according to an embodiment of the present invention is applied to a first electronic device, where the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the work energy consumption of the first processing unit is less than the work energy consumption of the second processing unit, and the method at least includes the following operation flows: in operation 201, a first processing unit obtains positioning information of a first electronic device from a positioning system connected thereto for performing a positioning function, where the positioning information includes location information and timestamp information of the first electronic device within a certain time period; in operation 202, when it is determined that a first trigger condition for performing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit; in operation 203, the second processing unit performs a process related to positioning according to the obtained positioning information.
In operation 201, a first processing unit obtains positioning information of a first electronic device from a positioning system connected thereto for performing a positioning function, the positioning information including position information and timestamp information of the first electronic device within a certain period of time.
In operation 201, a first processing unit obtains positioning information of a first electronic device from a positioning system connected thereto for performing a positioning function, the positioning information including position information and timestamp information of the first electronic device within a certain period of time.
In an embodiment of the present invention, the first electronic device is a wearable electronic device, the first processing unit is a micro control unit MCU, and the second processing unit is a central processing unit CPU.
In an embodiment of the present invention, the first processing unit runs the first operating System as a Real Time Operating System (RTOS), and the second processing unit runs the second operating System as an intelligent operating System, for example: and (4) Android system. The work energy consumption of the MCU for running the RTOS is less than that of the CPU for running the Android.
For example, the first electronic device is a smart watch, and includes an MCU running an RTOS and a CPU running an Android system.
It should be noted that, unless otherwise specified, in the process of illustrating each operation step herein, in order to more intuitively illustrate the scheme of the embodiment of the present invention, the first electronic device is taken as a smart watch, the first processing unit is taken as an MCU running an RTOS, and the second processing unit is taken as a CPU running an Android system, so as to explain the scheme of the embodiment of the present invention. Of course, the first electronic device according to the embodiment of the present invention is not limited to the smart watch, the first processing unit is not limited to the MCU, the second processing unit is not limited to the CPU, the first operating system is not limited to the RTOS, and the second operating system is not limited to the Android.
In an embodiment of the invention, the first processing unit supports only a communication connection with one positioning system, for example: one of BDS (BeiDou Navigation Satellite Navigation System), GPS (global positioning System), GLONASS (GLONASS positioning System), and galileo Satellite Navigation System. The first processing unit may also be capable of only being communicatively connected to a second electronic device having a positioning function, and may use the second electronic device as a positioning system. For example: the intelligent terminal comprises a mobile phone, a tablet computer and the like with a positioning function. The first processing unit may obtain the positioning information directly from the positioning system to which it is connected without having to decide with which positioning system to communicate.
In one embodiment of the present invention, the first processing unit supports a communication connection with a plurality of positioning systems. For example: the first processing unit is capable of communicative connection with two or more of a BDS, a GPS, a GLONASS, a galileo satellite navigation system, or a second electronic device having a positioning function. In this case, it is necessary to first determine the positioning system selected by the first processing unit, communicate with the selected positioning system, and acquire positioning information from the positioning system.
The specific form and content of the positioning information obtained by the first processing unit will be described in detail in operation 202, and will not be described herein again.
In an embodiment of the invention, the first processing unit selects the positioning system for performing the positioning function by: the first processing unit obtains the signal intensity of a plurality of corresponding positioning systems, and selects the positioning system with the highest signal intensity; and determining the selected positioning system as a corresponding positioning system of the first processing unit for executing the positioning function, controlling a positioning module corresponding to the selected positioning system in the first processing unit to be in a working state, and controlling a positioning module corresponding to a non-selected positioning system in the first processing unit to be in a non-working state.
For example, the positioning system may include: BDS, GPS, GLONASS, Galileo satellite navigation system. The MCU obtains signal strengths corresponding to a plurality of positioning systems, and selects a positioning system with the highest signal strength from the signal strengths, for example: and if the BDS in a certain area is the positioning system with the highest signal intensity in the plurality of positioning systems, the MCU determines the corresponding positioning system which executes the positioning function by using the BDS, controls the positioning module corresponding to the BDS in the MCU to be in a working state, and simultaneously controls the positioning modules corresponding to the GPS, the GLONASS and the Galileo satellite navigation system in the MCU to be adjusted to be in a non-working state.
The MCU selects one positioning system from the plurality of positioning systems, and mainly adjusts the positioning modules corresponding to other unselected positioning systems in the MCU into a non-working state, so that energy consumption is saved, and the endurance time of the intelligent watch is prolonged. Can also avoid MCU to switch the connection delay that brings frequently between a plurality of positioning system, because under normal conditions, the positioning module of operation needs the longer time with satellite positioning system set up connection on systems such as intelligent wrist-watch, cell-phone, vehicle navigation system, and this time can be by people's perception directly perceived, for example: for a period of about 1 minute.
In an embodiment of the present invention, the positioning module operating in the first processing unit selects a positioning system with the highest signal strength from the plurality of positioning systems through a satellite finding process in an operating state.
In one embodiment of the present invention, after the positioning system with the highest intensity is selected, the signal intensity corresponding to the positioning system with the highest intensity is further compared with a first threshold; when the signal intensity corresponding to the positioning system with the highest intensity is greater than or equal to a first threshold value, determining the positioning system with the highest intensity as a selected positioning system; and when the signal intensity corresponding to the positioning system with the highest intensity is smaller than a first threshold value, determining the second electronic equipment with the positioning function connected with the first electronic equipment as the selected positioning system.
In an embodiment of the present invention, the second electronic device is an intelligent terminal, for example: mobile phones, tablet computers, and the like.
It should be noted that, unless otherwise specified, in the process of illustrating each operation step in this document, in order to more intuitively illustrate the scheme of the embodiment of the present invention, the scheme of the embodiment of the present invention is explained by taking the second electronic device as an example of the intelligent terminal. Of course, the second electronic device is not limited to the smart terminal.
For example, the first threshold may be a signal strength that is set according to actual requirements and can ensure that the positioning module operating in the MCU can perform faster communication with the positioning system. And the MCU selects a BDS with the highest signal intensity in positioning systems such as the BDS, the GPS, the GLONASS, the Galileo satellite navigation system and the like. And comparing the signal intensity corresponding to the BDS with the first threshold, and if the signal intensity corresponding to the BDS is greater than the first threshold, indicating that the positioning module running in the MCU can effectively communicate with the BDS, so that the positioning module running in the MCU can be ensured to normally acquire positioning information from the positioning system. At this point, the BDS is determined to be the selected positioning system.
If the signal intensity corresponding to the BDS is lower than the first threshold, it is indicated that effective communication cannot be carried out between the operating positioning module in the MCU and the plurality of positioning systems, and it cannot be ensured that the operating positioning module in the MCU normally acquires positioning information from the positioning systems. At this time, the MCU may be selected to communicate with the smart terminal, and synchronize satellite data from the smart terminal. For example: the MCU can communicate with the smart terminal through BLE (Bluetooth Low Energy).
In an embodiment of the present invention, when the signal strength corresponding to the positioning system with the highest strength is smaller than the first threshold, and the signal strength between the second electronic device and the positioning system in communication connection therewith is also smaller than the first threshold, it is described that the first processing unit cannot normally acquire the positioning information of the positioning system through the second electronic device. At this point, the first processing unit may re-execute the selected operation of the positioning system.
For example, the signal strength between the positioning module running in the MCU and the plurality of positioning systems is smaller than the first threshold, and at this time, the MCU attempts to connect to the smart terminal through BLE, and synchronize positioning information from the smart terminal. However, at this time, the acquired signal strength between the smart terminal and the positioning system BDS in communication connection therewith is also smaller than the first threshold, and then the MCU may try to connect with a plurality of positioning systems again. Until one of the positioning systems is successfully connected.
In an embodiment of the present invention, the following specific operations are adopted to implement the determination of the second electronic device with a positioning function connected to the first electronic device as the selected positioning system: and obtaining the signal strength between the second electronic equipment and the positioning system which is in communication connection with the second electronic equipment, and determining the second electronic equipment which is connected with the first electronic equipment and has the positioning function as the selected positioning system of the first processing unit when the signal strength is greater than or equal to a first threshold value.
For example, the positioning system with the highest signal strength among the positioning systems such as the MCU and the BDS, the GPS, the GLONASS, and the galileo satellite positioning system is the BDS. The signal strength between the MCU and the BDS is X, and X is smaller than a first threshold value. And the signal intensity of carrying out communication between MCU and the intelligent terminal is Y, can communicate through BLE between MCU and the intelligent terminal. And if Y is larger than the first threshold value, the MCU can be selected to communicate with the intelligent terminal, and satellite data is synchronized from the intelligent terminal.
In an embodiment of the present invention, after determining the selected positioning system as the corresponding positioning system used by the first processing unit to perform the positioning function, the signal strength of the first processing unit and the corresponding positioning system currently used to perform the positioning function is also obtained, and the obtained signal strength is compared with the second threshold; when the obtained signal intensity is smaller than a second threshold value, the first processing unit is obtained again to obtain the current signal intensity corresponding to each positioning system, and the positioning system with the highest current signal intensity is selected from the current signal intensities; when the corresponding signal strength of the positioning system with the highest current signal strength is greater than or equal to a first threshold value, determining the positioning system with the highest current signal strength as a new selected positioning system; if the new selected positioning system is not the same as the positioning system currently used for executing the positioning function, the positioning system used for executing the positioning function is switched to the new selected system; wherein the second threshold is the same as or different from the first threshold.
For example, the MCU may determine that the positioning system with the highest signal strength among the plurality of positioning systems is the BDS when the selected operation of the positioning system was performed last time. The signal strength between the MCU and the BDS is X, and X is larger than a first threshold value. After the BDS is selected as the corresponding positioning system used by the current first processing unit to execute the positioning function, the MCU may acquire the current signal strength Y of the communication between the selected positioning system BDS and the MCU again to confirm that the current signal strength of the communication between the selected positioning system BDS and the MCU can still ensure the normal communication between the MCU and the BDS. Specifically, the second threshold may be set to a minimum signal strength that ensures normal communication between the positioning module of the first processing unit and the positioning system, and if the positioning module of the first processing unit and the positioning system are in the middle, the first processing unit cannot normally acquire the positioning information from the positioning system.
In one embodiment of the invention, the positioning information comprises position information and time stamp information of the first electronic device within a certain time period.
In an embodiment of the present invention, the first processing unit obtains positioning information of the first electronic device from a positioning system connected thereto for performing a positioning function, and stores the obtained positioning information for a set time, for example: preserving for one year, half a year, one month, ten days, one week, etc. In this way, when the second processing unit synchronizes the positioning information from the first processing unit, the positioning information in a certain time period can be selected for synchronization, and the processing related to positioning can be executed according to the synchronized positioning information.
In operation 202, upon determining that a first trigger condition for performing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit.
In an embodiment of the present invention, the position information and the timestamp information within the certain time period may include position information and timestamp information of the first electronic device within a set time period before and at a time when the second electronic device turns on the positioning function, switches from the sleep state to the operating state, or turns on the power supply. Or the time period information carried in the positioning information synchronization instruction sent by the second processing unit.
For example, the MCU may default to synchronize the positioning information in the set time period before the time when the CPU is turned on or switched from the sleep state to the working state. Or may be started in an application of the CPU, for example: the exercise is healthy, positioning information of the intelligent watch between the first moment and the second moment obtained by the MCU is needed to be used for drawing an exercise route map, and the certain time period is the time period between the first moment and the second moment. The first time is earlier than the second time, and the second time may be a time when the MCU starts the positioning function, switches from the sleep state to the operating state, or starts the power supply of the CPU, or may be a time before the CPU starts the positioning function, switches from the sleep state to the operating state, or starts the power supply of the first electronic device.
In an embodiment of the present invention, the first trigger condition may be at least one of: the second processing unit is started to enter a working state; the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit; the second processing unit starts an application related to the positioning.
For example, since the energy consumption of the intelligent operating system running on the basis of the CPU is high when the intelligent operating system is in a working state, in the embodiment of the present invention, a general application program in the first electronic device may operate on the basis of the RTOS system running on the MCU. And the RTOS system operated based on the MCU and the intelligent operating system operated based on the CPU respectively and independently store the positioning information of the RTOS system and the intelligent operating system. In order to ensure that the intelligent operating system based on the CPU can quickly start or quickly turn on the positioning function, when the CPU enters the operating state from the off state or enters the operating state from the sleep state, for example: pressing a power key, clicking a display device of the smart watch, entering an intelligent operating system from system switching settings of the RTOS system, and the like, wherein the MCU synchronizes positioning information of the first electronic device acquired in the operation 201 to the CPU.
The intelligent operating system based on the CPU operation may also request the slave MCU side to synchronize the positioning information when the positioning function needs to be started, for example: and the keys are opened through the positioning function, and comprise virtual keys and physical keys. Or when an application program needing positioning information in the CPU is started, triggering the MCU to send the stored positioning system information to the CPU. For example: navigation or map applications running in the CPU, etc.
In operation 203, the second processing unit performs a process related to positioning according to the obtained positioning information.
In one embodiment of the present invention, the second processing unit may perform processing related to positioning based on the obtained positioning information, by directly using the positioning information such as display of the positioning information and corresponding time stamp information, or by performing analysis processing of the positioning information and corresponding time stamp information.
For example, the applications such as exercise health and maps in the smart watch can perform functions such as drawing a motion trail graph, calculating exercise kilometers in a set time period, calculating exercise duration in the set time period, and analyzing exercise speed in the set time period according to the position information and the timestamp information synchronized by the CPU from the MCU. And the position information at a certain moment can be determined according to the position information and the timestamp information for viewing.
In an embodiment of the present invention, after the first processing unit synchronizes the obtained positioning information to the second processing unit, and when it is determined that the second trigger condition for suspending the synchronization of the positioning information is met, the first processing unit stops synchronizing the obtained positioning information to the second processing unit. Wherein the second trigger condition is at least one of: the second processing unit enters a non-working state; the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit; no positioning related application is present among the applications run by the second processing unit.
In one embodiment of the present invention, the first processing unit stops synchronizing the obtained positioning information to the second processing unit, which means current position information in the positioning information obtained by the first processing unit.
For example, when the CPU is switched from the sleep state to the operating state, the MCU synchronizes the positioning information acquired by the MCU from the time when the CPU is switched to the operating state to 10 minutes before the time, where the positioning information includes the position information and the timestamp information within the 10 minutes. When the CPU closes the positioning function or closes an application program related to the positioning function, the MCU synchronizes the positioning information acquired by the MCU from the time of switching the CPU state to 10 minutes before the time to the CPU. At this time, the MCU stops synchronizing the positioning information to the CPU, which is the current position information of the smart watch.
For example, because the energy consumption of the CPU-based operating system is high when the operating state is in operation, and the energy consumption of the positioning module operating in the CPU is also high, in order to ensure that the CPU-based operating system can have good user experience, it is necessary to comprehensively consider the battery endurance parameter of the first electronic device, the current power consumption, the demand and the use frequency of the user of the first electronic device for the positioning function, the power consumption of the positioning module in the CPU within the set time, and other factors, and set the optimal timing for turning on and off the positioning module of the CPU. Therefore, both the first trigger condition for the first processing unit to synchronize the obtained positioning information to the second processing unit and the second trigger condition for the first processing unit to stop synchronizing the obtained positioning information to the second processing unit can be set as required.
In an embodiment of the present invention, no matter what the first trigger condition is for triggering the first processing unit to synchronize the obtained positioning information to the second processing unit, the first processing unit stops synchronizing the obtained positioning information to the second processing unit when the second processing unit enters the non-operating state. For example: the CPU is determined to enter a non-working state including an off state and a dormant state through a power off key of the smart watch. The power-off key can be a virtual key or a physical key, and can also be the same key as the power-on key.
In an embodiment of the invention, the first processing unit stops synchronizing the obtained positioning information to the second processing unit as long as one of: the first processing unit is used for processing the first data when the second processing unit enters a non-working state; the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit; no positioning related application is present among the applications run by the second processing unit.
For example, after the MCU synchronizes the positioning information to the CPU, it may be detected within a set time whether the CPU runs an application program related to positioning, and if not, the obtained positioning information is stopped from being synchronized to the second processing unit. For example: the navigation or map application running in the CPU, etc. is closed.
In an embodiment of the present invention, the obtaining, by the first processing unit, the positioning information synchronization stopping instruction sent by the second processing unit includes: the second processing unit detects that an application related to positioning is currently running in the first electronic device in a wrong way in the background, for example: and (4) selecting to close the corresponding application program, clicking an application program closing key and simultaneously sending a positioning information synchronization stopping instruction to the first processing unit.
In an embodiment of the present invention, the second processing unit sends the stop positioning information synchronization command to the first processing unit when the second processing unit establishes a communication connection with the selected positioning system or when the second processing unit determines that the communication connection with the selected positioning system is smooth.
For example, when the MCU synchronizes the acquired positioning information to the CPU, the MCU will repeatedly perform synchronization and send information to the CPU to detect whether the synchronization is successful, until the CPU returns information that the synchronization is successful, stop the synchronization of the positioning information, and the MCU and the CPU respectively control the positioning modules thereof and receive the positioning information sent by the respective selected positioning systems.
It should be noted that the first processing unit may stop the operation of synchronizing the obtained positioning information to the second processing unit, before completing operation 203, or may execute the operation when operation 203 is not processed or partially completed, and as long as it is determined that the second trigger condition for suspending the positioning information synchronization is met, the operation of synchronizing the obtained positioning information to the second processing unit by the first processing unit may be suspended.
In this way, according to the data processing method, apparatus, system, and computer-readable storage medium in embodiments of the present invention, when it is determined that the first trigger condition for performing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit, so that the second processing unit performs processing related to positioning according to the obtained positioning information, where the positioning information includes location information and timestamp information of the first electronic device within a certain time period. The problem that the second processing unit cannot acquire the positioning information during the closing or dormancy period after being restarted or switched to the working state and executing the positioning function can be effectively avoided. The method and the device realize quick acquisition of time-related positioning information to execute time-related positioning functions.
Similarly, based on the above data processing method, an embodiment of the present invention further provides a computer-readable storage medium, where a program is stored, and when the program is executed by a processor, the processor is enabled to perform at least the following operation steps: in operation 201, a first processing unit obtains positioning information of a first electronic device from a positioning system connected thereto for performing a positioning function, where the positioning information includes location information and timestamp information of the first electronic device within a certain time period; in operation 202, when it is determined that a first trigger condition for performing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit; in operation 203, the second processing unit performs a process related to positioning according to the obtained positioning information.
Further, based on the data processing method, an embodiment of the present invention further provides a data processing system, which includes a processor and a memory, where the memory stores computer program instructions, and the computer program instructions are used for executing the data processing method when the computer program instructions are executed by the processor.
Further, based on the above data processing method, an embodiment of the present invention further provides a data processing apparatus, which is applied to a first electronic device, where the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the work energy consumption of the first processing unit is less than the work energy consumption of the second processing unit. Fig. 3 is a schematic diagram illustrating a configuration of a data processing apparatus 30 according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 30 includes: an information obtaining module 301, configured to the first processing unit, and configured to obtain, from a positioning system connected to the first processing unit and used for performing a positioning function, positioning information of the first electronic device, where the positioning information includes position information and timestamp information of the first electronic device within a certain time period; an information synchronization module 302, configured to, when it is determined that a first trigger condition for performing positioning information synchronization is met, synchronize the obtained positioning information to the second processing unit by the first processing unit; a data processing module 303, configured to the second processing unit, and configured to execute processing related to positioning according to the obtained positioning information.
According to an embodiment of the present invention, the first trigger condition is at least one of: the second processing unit is started to enter a working state; the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit; and the second processing unit starts the application programs in the first list, wherein the application programs in the first list need to use the positioning information application programs in the running process.
According to an embodiment of the present invention, the apparatus 30 further comprises: a data suspension module, configured to, after the first processing unit synchronizes the obtained positioning information to the second processing unit, when it is determined that a second trigger condition for suspending positioning information synchronization is met, stop synchronizing the obtained positioning information to the second processing unit by the first processing unit; wherein the second trigger condition is at least one of: the second processing unit enters a non-working state; the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit; and the application programs in the first list do not exist in the application programs run by the second processing unit.
Here, it should be noted that: the above description of the embodiments of the data processing apparatus and system is similar to the description of the method embodiment shown in fig. 1 to 2, and has similar beneficial effects to the method embodiment shown in fig. 1 to 2, and therefore, the description is omitted. For technical details that are not disclosed in the embodiments of the data processing apparatus and system of the present invention, please refer to the description of the method embodiments shown in fig. 1 to 2 for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple 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 coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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; can be located in one place or 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method is applied to a first electronic device, wherein the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the operating energy consumption of the first processing unit is less than that of the second processing unit, and the method includes:
the first processing unit obtains positioning information of the first electronic device from a positioning system connected with the first processing unit and used for executing a positioning function, wherein the positioning information comprises position information and timestamp information of the first electronic device in a certain time period;
when determining that a first trigger condition for executing positioning information synchronization is met, the first processing unit synchronizes the obtained positioning information to the second processing unit;
the second processing unit executes processing related to positioning according to the obtained positioning information.
2. The data processing method of claim 1, wherein the first trigger condition is at least one of:
the second processing unit is started to enter a working state;
the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit;
and the second processing unit starts the application programs in the first list, wherein the application programs in the first list need to use the positioning information application programs in the running process.
3. The data processing method of claim 1, wherein after the first processing unit synchronizes the obtained positioning information to the second processing unit, the method further comprises:
when determining that a second trigger condition for stopping positioning information synchronization is met, the first processing unit stops synchronizing the obtained positioning information to the second processing unit;
wherein the second trigger condition is at least one of:
the second processing unit enters a non-working state;
the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit;
and the application programs in the first list do not exist in the application programs run by the second processing unit.
4. A data processing method as claimed in claim 1, 2 or 3, characterized in that the first processing unit supports a communication connection with a plurality of respective positioning systems, and the first processing unit selects a positioning system for performing a positioning function by:
the first processing unit obtains the signal intensity corresponding to the plurality of positioning systems, and selects the positioning system with the highest signal intensity;
and determining the selected positioning system as a corresponding positioning system used by the first processing unit to execute a positioning function, controlling a positioning module corresponding to the selected positioning system in the first processing unit to be in a working state, and controlling a positioning module corresponding to a non-selected positioning system in the first processing unit to be in a non-working state.
5. A data processing method according to claim 1, 2 or 3, wherein after said selecting the most intense positioning system, the method further comprises:
comparing the signal strength corresponding to the positioning system with the highest strength with a first threshold value;
when the signal intensity corresponding to the positioning system with the highest intensity is greater than or equal to the first threshold value, determining the positioning system with the highest intensity as the selected positioning system;
and when the signal intensity corresponding to the positioning system with the highest intensity is smaller than the first threshold, determining the second electronic equipment with the positioning function connected with the first electronic equipment as the selected positioning system.
6. A data processing device is applied to a first electronic device, wherein the first electronic device includes a first processing unit and a second processing unit, the first processing unit runs a first operating system, the second processing unit runs a second operating system, and the work energy consumption of the first processing unit is less than that of the second processing unit, and the device includes:
an information obtaining module, configured to the first processing unit, and configured to obtain, from a positioning system connected to the first processing unit and used for performing a positioning function, positioning information of the first electronic device, where the positioning information includes position information and timestamp information of the first electronic device within a certain time period;
the information synchronization module is used for synchronizing the acquired positioning information to the second processing unit when the first trigger condition for executing positioning information synchronization is determined to be met;
and the data processing module is configured to the second processing unit and is used for executing processing related to positioning according to the obtained positioning information.
7. The apparatus of claim 6, wherein the first trigger condition is at least one of:
the second processing unit is started to enter a working state;
the first processing unit obtains a positioning information synchronization instruction sent by the second processing unit;
and the second processing unit starts the application programs in the first list, wherein the application programs in the first list need to use the positioning information application programs in the running process.
8. The apparatus of claim 6, further comprising:
a data suspension module, configured to, after the first processing unit synchronizes the obtained positioning information to the second processing unit, when it is determined that a second trigger condition for suspending positioning information synchronization is met, stop synchronizing the obtained positioning information to the second processing unit by the first processing unit;
wherein the second trigger condition is at least one of:
the second processing unit enters a non-working state;
the first processing unit obtains a positioning information synchronization stopping instruction sent by the second processing unit;
and the application programs in the first list do not exist in the application programs run by the second processing unit.
9. A data processing system comprising a processor and a memory, wherein the memory has stored therein computer program instructions for execution by the processor for performing the data processing method of any of claims 1 to 5.
10. A computer-readable storage medium comprising a set of computer-executable instructions that, when executed, perform the data processing method of any of claims 1-5.
CN202010550309.3A 2020-06-16 2020-06-16 Data processing method, device and system and computer readable storage medium Pending CN111781616A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202010550309.3A CN111781616A (en) 2020-06-16 2020-06-16 Data processing method, device and system and computer readable storage medium
EP21826898.5A EP4167053A1 (en) 2020-06-16 2021-01-07 Data processing method, apparatus and system, and computer-readable storage medium
PCT/CN2021/070715 WO2021253814A1 (en) 2020-06-16 2021-01-07 Data processing method, apparatus and system, and computer-readable storage medium
US18/082,079 US20230122488A1 (en) 2020-06-16 2022-12-15 Data processing method, apparatus and system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010550309.3A CN111781616A (en) 2020-06-16 2020-06-16 Data processing method, device and system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111781616A true CN111781616A (en) 2020-10-16

Family

ID=72755933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010550309.3A Pending CN111781616A (en) 2020-06-16 2020-06-16 Data processing method, device and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111781616A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650594A (en) * 2020-12-21 2022-06-21 Oppo广东移动通信有限公司 Device positioning method, mobile terminal and storage medium
CN114647300A (en) * 2020-12-19 2022-06-21 Oppo广东移动通信有限公司 System control method, device, wearable device and storage medium
WO2022127341A1 (en) * 2020-12-18 2022-06-23 Oppo广东移动通信有限公司 System switching method and apparatus, device, and storage medium
WO2023169059A1 (en) * 2022-03-07 2023-09-14 Oppo广东移动通信有限公司 Positioning method and apparatus, and wearable device, storage medium and product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104082918A (en) * 2014-06-24 2014-10-08 吕志雪 Smart bracelet
US20150067366A1 (en) * 2013-09-05 2015-03-05 Lenovo (Beijing) Co., Ltd. Electronic Apparatus And Information Processing Method
CN105549045A (en) * 2015-12-14 2016-05-04 联想(北京)有限公司 Information processing method and electronic devices
CN105891861A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Positioning method and device
WO2017177439A1 (en) * 2016-04-15 2017-10-19 华为技术有限公司 Functional state control method and related device
CN107422355A (en) * 2016-05-24 2017-12-01 曦恩体感科技股份有限公司 Hybrid locating method and electronic installation
CN109640276A (en) * 2018-12-29 2019-04-16 出门问问信息科技有限公司 A kind of low battery processing method and processing device of wearable device
CN110226347A (en) * 2017-01-25 2019-09-10 华为技术有限公司 A kind of method and device reducing powder consumption of electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150067366A1 (en) * 2013-09-05 2015-03-05 Lenovo (Beijing) Co., Ltd. Electronic Apparatus And Information Processing Method
CN104082918A (en) * 2014-06-24 2014-10-08 吕志雪 Smart bracelet
CN105891861A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Positioning method and device
CN105549045A (en) * 2015-12-14 2016-05-04 联想(北京)有限公司 Information processing method and electronic devices
WO2017177439A1 (en) * 2016-04-15 2017-10-19 华为技术有限公司 Functional state control method and related device
CN107422355A (en) * 2016-05-24 2017-12-01 曦恩体感科技股份有限公司 Hybrid locating method and electronic installation
CN110226347A (en) * 2017-01-25 2019-09-10 华为技术有限公司 A kind of method and device reducing powder consumption of electronic equipment
CN109640276A (en) * 2018-12-29 2019-04-16 出门问问信息科技有限公司 A kind of low battery processing method and processing device of wearable device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022127341A1 (en) * 2020-12-18 2022-06-23 Oppo广东移动通信有限公司 System switching method and apparatus, device, and storage medium
CN114647300A (en) * 2020-12-19 2022-06-21 Oppo广东移动通信有限公司 System control method, device, wearable device and storage medium
CN114650594A (en) * 2020-12-21 2022-06-21 Oppo广东移动通信有限公司 Device positioning method, mobile terminal and storage medium
WO2023169059A1 (en) * 2022-03-07 2023-09-14 Oppo广东移动通信有限公司 Positioning method and apparatus, and wearable device, storage medium and product

Similar Documents

Publication Publication Date Title
CN111781616A (en) Data processing method, device and system and computer readable storage medium
CN102821207B (en) Implementation method for alarm clock under shutdown state and mobile terminal
CN107144819B (en) A kind of sound localization method, device and electronic equipment
US9749794B2 (en) Scalability and reliability of hardware geo-fencing with failover support
CN111836187A (en) Data processing method, device and system and computer readable storage medium
WO2016015577A1 (en) Method, apparatus and system for controlling intelligent wearable device
US20060205445A1 (en) Mobile communication terminal and position monitoring method
CN110908496A (en) System interaction method and wearable device
US9609600B2 (en) Wireless communication system with enhanced power management
CN108304151B (en) Method for displaying content and electronic device thereof
KR20170098111A (en) Method for controlling display using sensor data and electronic device thereof
KR20160104935A (en) Method for controlling a sensing devices of rotation member and electronic device thereof
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
CN104092822A (en) Mobile phone state switching method and system based on face detection and eyeball tracking
CN104038632A (en) Method and device for managing intelligent terminal
JP2017528927A (en) Method and apparatus for reminding in shutdown state
KR20180014569A (en) Scan method in wireless local area network and electronic device implementing the same
CN114968375A (en) System switching method and device, electronic equipment and readable storage medium
CN112229032B (en) Environment temperature adjusting method, device and computer readable storage medium
CN111290565A (en) Doze mode control method, device, terminal and storage medium
US9356459B2 (en) Method for charging battery and electronic device thereof
CN107766218B (en) System optimization method and device, storage medium and terminal equipment
CN106484075A (en) Method and device for adjusting application program wake-up time
CN112069843A (en) Radio frequency signal processing method and device and electronic equipment
CN111831098B (en) Method, device and system for synchronizing information and computer readable storage medium

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