WO2022062978A1 - Data processing method and electronic device - Google Patents

Data processing method and electronic device Download PDF

Info

Publication number
WO2022062978A1
WO2022062978A1 PCT/CN2021/118397 CN2021118397W WO2022062978A1 WO 2022062978 A1 WO2022062978 A1 WO 2022062978A1 CN 2021118397 W CN2021118397 W CN 2021118397W WO 2022062978 A1 WO2022062978 A1 WO 2022062978A1
Authority
WO
WIPO (PCT)
Prior art keywords
priority
data
motion data
motion
coefficient
Prior art date
Application number
PCT/CN2021/118397
Other languages
French (fr)
Chinese (zh)
Inventor
余志文
柯波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022062978A1 publication Critical patent/WO2022062978A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a data processing method and electronic device.
  • wearable devices and accessories can be used to measure various sports data, such as measuring speed and heart rate with smart bracelets, measuring running posture with running posture accessories, and so on.
  • Wearable devices and accessories can transmit the measured movement data to terminal devices for processing and display.
  • various devices collect various exercise data, and transmit the exercise data to the terminal device for processing through Bluetooth.
  • the transmission and processing of various motion data will cause delays, and the real-time nature of the data cannot be guaranteed.
  • the present application discloses a data processing method, which ensures the real-time processing of motion data with high processing priority on the premise that all motion data with processing priority are processed.
  • an embodiment of the present application provides a data processing method, wherein the method includes: acquiring first motion data to be processed, and determining a first processing priority of the first motion data; The first weight ratio corresponding to the priority; according to the first weight ratio, the first resource for processing the first motion data is allocated.
  • the data is divided into priorities, and different processing resources are allocated to the data of different priorities, so that the higher priority motion data can get more processing resources, thus ensuring the high processing priority motion data.
  • Real-time processing of data Real-time processing of data.
  • the first motion data to be processed is first motion data to be transmitted
  • the first resource is a transmission resource used for transmitting the first motion data. Therefore, after the priority is divided, corresponding transmission resources can be allocated to the motion data according to the weight ratio corresponding to the priority, thereby ensuring the real-time transmission of the motion data with high processing priority.
  • the method before determining the first processing priority of the first motion data, the method further includes: determining that the data amount of the motion data to be transmitted currently is greater than a first threshold, and the motion data to be transmitted includes the first motion data. motion data; or, it is determined that the stability of the current network state is less than the second threshold. Therefore, the present application can be used as an optional solution. When the amount of data is too large or the network state is unstable, the solution of the present application is adopted, and when the amount of data is small and the network state is stable, the existing solution is adopted, which is beneficial to Reduce resource usage.
  • determining the first processing priority of the first motion data includes: determining a first data type to which the first motion data belongs, where the first data type is used to represent the attribute; determining the first processing priority of the first motion data according to the first data type.
  • the first data type includes one of a motion control data type, a real-time motion data type, a pan-motion data type, or a notification data type.
  • determining the first processing priority of the first motion data according to the first data type includes: if the first data type is a motion control data type, determining that the first processing priority of the first motion data is: The highest priority among M priorities, where M is an integer greater than or equal to 1. In this way, it can be ensured that the priority of the motion control data is high, so the electronic device can process the motion control instructions in time, thereby ensuring the real-time and accuracy of the data.
  • determining the first processing priority of the first motion data according to the first data type includes: if the first data type is not a motion control data type, obtaining a first priority corresponding to the first motion data value; determine the first priority value range where the first priority value is located, the first priority value range is one of M priority value ranges, and each priority value in the M priority value ranges The range corresponds to one of the M priorities; the priority corresponding to the first priority value range is determined as the first processing priority of the first motion data. In this way, the motion data can be clearly prioritized.
  • acquiring the first priority value corresponding to the first motion data includes: acquiring a first priority coefficient corresponding to the first data type, where the first priority coefficient is used to represent data belonging to the first data type The priority level of the real-time processing; according to the first priority coefficient, determine the first priority value corresponding to the first motion data. In this way, the priority can be determined according to the data type of the motion data.
  • determining the first priority value corresponding to the first motion data according to the first priority coefficient includes: if the first priority coefficient is less than or equal to a third threshold, determining the first priority coefficient as the first priority coefficient The first priority value corresponding to the first motion data; if the first priority coefficient is greater than the third threshold, obtain an adjustment coefficient for adjusting the size of the first priority coefficient, where the adjustment coefficient includes the second priority coefficient and /or a third priority factor, wherein the second priority factor is determined according to the type of movement associated with the first movement data, and the third priority factor is determined according to the change of the first movement data within the target period If the rate is determined, the second priority coefficient and the third priority coefficient are both greater than 1; according to the first priority coefficient and the adjustment coefficient, the first priority value corresponding to the first motion data is determined. In this way, the priority of the motion data can be further adjusted according to the motion type and/or the rate of change, so that the division of the priority is more reasonable and practical, thereby ensuring the real-time processing of the motion data with high processing priority
  • the adjustment coefficient includes a second priority coefficient
  • the method further includes: acquiring a first motion type related to the first motion data; and determining the second priority according to the first motion type and the first motion data.
  • the second priority coefficient is used to indicate the priority level of the first motion data being processed in real time in the motion indicated by the first motion type.
  • the adjustment coefficient includes a third priority coefficient
  • the method further includes: acquiring a change rate of the first motion data within a target period; and determining the third priority coefficient according to the change rate.
  • an embodiment of the present application provides an electronic device, wherein the electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, The one or more memories are used to store computer program codes, the computer program codes include computer instructions, and it is characterized in that when the one or more processors execute the computer instructions, the electronic device performs the first aspect and the first A method described in any possible implementation of the aspect.
  • an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes The method described in one aspect and any possible implementation of the first aspect.
  • the present application provides a computer program product containing instructions, when the computer program product is executed on an electronic device, the electronic device is made to execute the first aspect and any possible implementation manner of the first aspect. method.
  • the present application provides a computer-readable storage medium, comprising instructions that, when the above-mentioned instructions are executed on an electronic device, cause the above-mentioned electronic device to execute the first aspect and any possible implementation manner of the first aspect.
  • the electronic device described in the second aspect, the computer device described in the third aspect, the computer program product described in the fourth aspect, and the computer storage medium described in the fifth aspect are all used to execute the first The aspect, or the data processing method provided by any possible implementation manner of the first aspect. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
  • FIG. 1 is a system diagram of a data processing method provided by an embodiment of the present application.
  • FIG. 2A is a schematic flowchart of a data processing method provided by an embodiment of the present application.
  • 2B is a flowchart of a method for determining a priority provided by an embodiment of the present application
  • 3A is a schematic diagram of a motion scene provided by an embodiment of the present application.
  • 3B is a schematic diagram of another motion scene provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a conventional data processing process provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a data processing process provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another data processing process provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a system diagram of a data processing method provided by an embodiment of the present application.
  • this system can include a smart device and a terminal device, the smart device and the terminal device establish a data connection, for example, the smart device and the terminal device can establish a data connection through Bluetooth, or the smart device and the terminal device can also be connected through Wi-Fi establishes a data connection and more.
  • the smart device can measure the motion data, and further transmit the motion data to the terminal device and/or process the motion data.
  • the terminal device can also process the motion data and/or display the motion data, and so on.
  • the terminal device can also transmit the processing result of the motion data to the smart device.
  • smart devices may include but are not limited to wearable devices such as smart watches, smart bracelets, running accessories, or devices such as treadmills and mobile phones, while terminal devices may include but are not limited to mobile phones, tablet computers, PDAs, or other types of electronic equipment, etc.
  • FIG. 2A is a schematic flowchart of a data processing method provided by an embodiment of the present application.
  • a data processing method may include:
  • the electronic device acquires the first motion data to be processed.
  • the electronic device may be a smart device or a terminal device as shown in FIG. 1 .
  • the electronic device may measure and obtain the first motion data to be processed, or the electronic device may receive the first motion data to be processed from other electronic devices.
  • the electronic device includes, but is not limited to, a wearable device, a treadmill, a mobile phone, a tablet computer, a notebook computer or a palmtop computer, and the like.
  • the first motion data may be one or more of a plurality of motion data to be processed.
  • the motion data to be processed may be motion data to be transmitted.
  • the exercise data may include but are not limited to the following data: speed, number of steps, heart rate, distance, heat, message notification, alarm clock reminder, weather warning, etc.
  • the motion data to be transmitted includes the first motion data. motion data; or, it is determined that the stability of the current network state is less than the second threshold.
  • the first threshold and the second threshold may be preset thresholds. That is to say, when the amount of data transmitted by the smart device to the terminal device as shown in FIG. 1 is too large (greater than the first threshold, such as exceeding the bandwidth) or the network state is unstable (less than the second threshold), the data provided by this application can be used.
  • the data processing method is to prioritize the data to be transmitted, and then transmit the data according to the allocated transmission resources; and when the amount of transmitted data is not large and the network state is stable, the data processing method provided in this application may not be used, There is no need to prioritize the data to be transmitted, and the acquired data enters the queue to be transmitted in sequence, and is transmitted in sequence.
  • the first processing priority of the first motion data may be determined according to the first data type to which it belongs.
  • the first data type is used to represent the attribute of the first motion data.
  • determining the first processing priority of the first motion data according to the first data type to which it belongs may include the following steps:
  • the data types can be classified in various ways.
  • the data types to which the motion data belongs are divided into the following four types: motion control data types, real-time motion data types, pan-motion data types, and notification data types.
  • Table 1 lists some of the motion data corresponding to these four data types.
  • the motion control data refers to the control instruction data for the user to change the motion process, including instruction data such as start, pause, resume, and end.
  • the real-time exercise data refers to the data that reflects the real-time exercise of the user, including data such as speed, distance, heart rate, cadence, and running posture.
  • Pan-sport data refers to general data related to the exercise process, including medium and high intensity, step count statistics, calorie statistics and other data.
  • Notification data refers to other data not directly related to the exercise process, including data such as message notifications, alarm clock reminders, and weather warnings.
  • the method of determining the first data type to which the first motion data belongs may include: as shown in Table 2, in the electronic device, a table recording the correspondence between the motion data and the data type is stored, and in the table One column records various sports data, and the other column records the data type to which this sports data belongs.
  • the electronic device acquires a certain motion data, it queries the table to determine the data type to which the motion data belongs.
  • the data type to which the motion data belongs may also be determined in other manners, which is not limited in this application.
  • the first data type to which the first motion data belongs can be obtained from the above step S221, and then it is determined whether the first data type is a motion control data type.
  • step S226 is executed to determine the first processing priority of the first motion data as the highest priority among the M priorities, where M is a positive number greater than or equal to 1.
  • next step S223 is executed, and the first priority coefficient is determined according to the first data type to which the first motion data belongs.
  • the first priority coefficient may be used to determine a first priority value from which a first processing priority of the first motion data may be determined.
  • the motion data may be given a preliminary priority according to the data type, and the first priority coefficient may be determined according to the preliminary priority.
  • the first data type belongs to the sports real-time data type
  • the preliminary priority of the first sports data can be set as high priority, and the first priority coefficient corresponding to the high priority is a 1
  • the first data type belongs to pan-sports.
  • Data type the preliminary priority of the first motion data can be set as a medium priority, and the first priority coefficient corresponding to the medium priority is a 2
  • the first data type belongs to the notification data type
  • the preliminary priority of the first motion data can be Set as a low priority, and the first priority coefficient corresponding to the low priority is a 3 ;
  • a 1 , a 2 , and a 3 are all real numbers greater than 0 and less than 1, and a 1 >a 2 >a 3 .
  • the first priority coefficient corresponding to the first motion data can be obtained from the above step S223, and then it is determined whether the first priority coefficient is greater than the threshold.
  • the third threshold may be a preset threshold.
  • step S226 is executed, the first priority coefficient is determined as the first priority value of the first motion data, and the first processing priority thereof is determined according to the first priority value.
  • step S225 If so, go to the next step S225 to obtain an adjustment coefficient for adjusting the size of the first priority coefficient, and determine the first priority value of the first motion data according to the first priority coefficient and the adjustment coefficient, thereby determining its first processing priority.
  • the third threshold may be N, and a 1 >N>a 2 . Therefore, if the first motion data belongs to the pan-motion data type, the initial priority is medium priority, and its first priority coefficient is a 2 , which is smaller than the third threshold N, so the first priority value is a 2 ; if the first priority is a 2 ; A motion data belongs to the notification data type, the initial priority is low priority, and its first priority coefficient is a 3 , which is smaller than the third threshold N, so the first priority value is a 3 .
  • the initial priority is high priority
  • its first priority coefficient is a 1 , which is greater than the third threshold N, so the adjustment coefficient needs to be obtained.
  • the coefficient determines the first priority value. That is, when the preliminary priority is a high priority, the preliminary priority is adjusted.
  • the adjustment factor includes a second priority factor and/or a third priority factor, wherein the second priority factor is determined according to the first movement type associated with the first movement data, the third priority factor The coefficient is determined according to the rate of change of the first motion data within the target period, and both the second priority coefficient and the third priority coefficient are greater than 1.
  • the following describes the process of determining the second priority coefficient according to the first motion type related to the first motion data.
  • the first motion type is associated with the first motion data.
  • the electronic device may determine, according to the first motion data, a first motion type related to the first motion data.
  • the first exercise type can be determined in a variety of ways. For example, it can be determined in the following way: the user selects a certain exercise type when exercising, and the first exercise data can be obtained correspondingly to obtain the exercise type, then the exercise type can be determined. For the first movement type. This application does not limit this.
  • the sports types may include, but are not limited to, the following types: indoor running, outdoor running, cross-country running, cycling, mountain climbing, swimming, soccer, and the like.
  • the importance of the same motion data may be different in the motions indicated by different motion types. For example, speed is more important when running outdoors, but data such as altitude and climbing speed are more important when mountaineering and trail running. Therefore, the priority of motion data can be adjusted according to the type of motion.
  • Table 3 lists the importance of motion data in different motion types, and the importance actually also reflects the priority level of the motion data being processed in real time in the motion indicated by the motion type.
  • the motion data has different priorities in different types of motion, so the magnitudes of the priority coefficients corresponding to different motion types are different.
  • a second priority factor may be set for the first motion data according to the first motion type.
  • the second priority coefficient is an adjustment coefficient used to adjust the first priority coefficient.
  • the second priority coefficient is set to b 1 ; if the first motion data is of medium priority, the second priority is The level coefficient is b 2 ; if the first motion data is of low priority, the second priority coefficient is b 3 ; b 1 , b 2 , and b 3 are all real numbers greater than 1 and less than 10, and b 1 >b 2 >b 3 .
  • the second priority coefficient is b 1 ; in cross-country running, the running posture is generally important and is medium-priority data, so the second priority The coefficient is b 2 ; when riding, the running posture is less important and is low-priority data, so the second priority coefficient is b 3 .
  • the following describes the process of determining the third priority coefficient according to the rate of change of the first motion data within the target period.
  • the rate of change of the exercise data within the target period reflects the real-time exercise state of the user.
  • a large change rate can indicate that the corresponding motion data changes rapidly, and the accuracy of the data may be affected if it is not processed in time. Therefore, the priority of motion data can be adjusted by the rate of change.
  • a rate of change of the first motion data within 5 seconds ie, a rate of change of 5 s, may be calculated.
  • the 5s rate of change can be defined as:
  • v now represents the current data value
  • v before represents the data value before 5s.
  • the 5s change rate is the ratio of the amount of change in exercise data within 5 seconds to the value of exercise data 5 seconds ago, indicating the speed of change in exercise data within 5 seconds.
  • the third priority factor may be determined according to the 5s rate of change of the first motion data.
  • the first movement data may be a distance L
  • L before represents the total movement distance before 5s
  • the 5s change rate of the distance L is:
  • the third priority coefficient is an adjustment coefficient for adjusting the first priority coefficient. Specifically, the value of the 5s change rate is compared with the set fourth threshold. If the 5s change rate > the fourth threshold, the third priority coefficient is set to c 1 ; if the 5s change rate ⁇ the fourth threshold, the third priority The coefficient is set to c 2 . Both c 1 , c 2 are real numbers greater than 1 and less than 10, and c 1 >c 2 .
  • the adjustment coefficient may include the second priority coefficient and/or the third priority coefficient, and the first priority value of the first motion data may be determined according to the first priority coefficient and the adjustment coefficient. Thereby, the first processing priority of the first motion data is determined.
  • the process of determining the adjustment coefficient and the first priority value may include the following three ways.
  • the adjustment coefficient includes a second priority coefficient, which is determined according to the first motion type related to the first motion data.
  • the first priority value is determined according to the first priority coefficient and the second priority coefficient.
  • the first motion data belongs to motion real-time data
  • the first priority coefficient is a 1
  • the second priority coefficient is b 1 , b 2 or b 3 .
  • y is 1, 2 or 3.
  • the adjustment coefficient includes a third priority coefficient, which is determined according to the rate of change of the first motion data within the target period.
  • the first priority value is determined according to the first priority coefficient and the third priority coefficient.
  • the first motion data belongs to motion real-time data
  • the first priority coefficient is a 1
  • the third priority coefficient is c 1 or c 2 .
  • the adjustment coefficient includes a second priority coefficient and a third priority coefficient, and is determined according to the motion type related to the first motion data and the rate of change of the first motion data within the target period.
  • the first priority value is determined according to the first priority coefficient, the second priority coefficient and the third priority coefficient.
  • the first motion data belongs to motion real-time data
  • the first priority coefficient is a 1
  • the second priority coefficient is b 1 , b 2 or b 3
  • the third priority coefficient is c 1 or c 2
  • y is 1, 2 or 3
  • z is 1 or 2.
  • more priority coefficients may be obtained according to the first motion data, and one of these priority coefficients may be used.
  • the item or items may determine the first priority value.
  • the first priority value may be the product of one or more priority coefficients, or may be the result of weighted product, addition, or other operations, which is not limited in this application.
  • the first processing priority of the first motion data can be determined.
  • the first processing priority is determined to be the highest priority among the M priorities.
  • the first processing priority may be determined according to the first priority value of the first motion data.
  • the first priority value may be determined according to the first priority coefficient and/or adjustment coefficient of the first motion data.
  • the process of determining its first processing priority according to the first priority value specifically includes: determining a first priority value range in which the first priority value is located, where the first priority value range is M One of the priority value ranges, each priority value range in the M priority value ranges corresponds to one priority in the M priority value ranges; the priority corresponding to the first priority value range is determined as the first priority value range.
  • a first processing priority for motion data specifically includes: determining a first priority value range in which the first priority value is located, where the first priority value range is M One of the priority value ranges, each priority value range in the M priority value ranges corresponds to one priority in the M priority value ranges; the priority corresponding to the first priority value range is determined as the first priority value range.
  • M may be 3, then there are correspondingly 3 priority ranges, and the specific process of determining the first processing priority of the first motion data includes:
  • the first processing priority of the first motion data is the lowest priority among the three priorities
  • the first processing priority of the first motion data is the middle priority among the three priorities
  • the first processing priority of the first motion data is the highest priority among the three priorities
  • the corresponding first weight ratio can be obtained according to the first processing priority.
  • the value of the first weight ratio may be preset, which is not limited in this application.
  • the magnitude of the first weight ratio of the first motion data corresponds to the order of the first processing priorities.
  • the higher the first processing priority of the first motion data the higher the corresponding weight ratio.
  • the first weight ratio is the largest weight ratio among the M weight ratios; if the first processing priority of the first motion data level is the lowest priority among the M priorities, and the first weight ratio is the smallest weight ratio among the M weight ratios.
  • the total number of priorities M may be 3, then there are correspondingly 3 weight ratios, and the preset weight ratios may be 0.6, 0.3, and 0.1, respectively.
  • the corresponding first weight ratio may be 0.6; if the first processing priority of the first motion data is a medium priority, the corresponding first weight ratio may be 0.6.
  • a weight ratio may be 0.3; if the first processing priority of the first motion data is a low priority, the corresponding first weight ratio may be 0.1.
  • the allocated first resource may be one of a variety of different types of resources, for example, it may be a transmission resource when the smart device transmits data to the terminal device as shown in FIG. 1 , or, for example, may be the internal Resources for processing data, such as processor resources, storage resources, and so on.
  • the first resource is a transmission resource when the smart device transmits data to the terminal device.
  • the transmission resources can be allocated according to the first weight ratio corresponding to the first processing priority of the first motion data. Specifically, the higher the first processing priority of the first motion data is, the more transmission resources are obtained; the lower the first processing priority of the first motion data is, the fewer transmission resources are obtained. In this way, high-priority data can obtain more transmission resources, which ensures the real-time transmission of high-priority motion data.
  • the total number M of priorities may be 3, then there are corresponding 3 weight ratios, and the preset weight ratios are 0.6, 0.3, and 0.1, respectively.
  • the first resource accounts for 60% of the total available transmission resources; if the first processing priority of the first motion data is a medium priority, the first resource accounts for 60% of the available transmission resources. 30% of the total amount of transmission resources; if the first processing priority of the first motion data is a low priority, the first resource accounts for 10% of the total amount of available transmission resources.
  • the first resource is a processing resource inside the terminal device.
  • processing resources can be allocated according to the first weight ratio corresponding to the first processing priority of the first motion data. Specifically, the higher the first processing priority of the first motion data is, the more processing resources are obtained; the lower the first processing priority of the first motion data is, the less processing resources are obtained. Then the high-priority motion data can get more processing resources, which ensures the real-time processing of the high-priority motion data.
  • the terminal device allocates processing resources for the motion data according to the priority, then, on the user interface of the terminal device, the processing result of the motion data with a higher priority can be displayed preferentially, while the processing result of the motion data with a lower priority can be displayed preferentially.
  • the results are displayed later.
  • the user wears a smart bracelet to measure data, and transmits the data of heart rate and calorie consumption to the mobile client. Because the priority of heart rate is higher than that of calorie consumption, the mobile client gives priority to displaying and drawing. A good heart rate curve, while the results of calorie expenditure are displayed after the heart rate curve.
  • the first resource is preliminarily allocated to the first motion data.
  • available processing resources can be preliminarily allocated for motion data to be processed.
  • the priority of the motion data is determined, and after the resources are initially allocated according to the weight ratio corresponding to the priority, if the actual data amount of the motion data of different priorities does not match the allocated resource amount, specifically, a part of the priority The resources of the motion data of the other part of the priority are insufficient, and the remaining resources can be allocated to the motion data with insufficient resources again.
  • the first possible allocation method is to allocate the remaining resources according to the weight ratio corresponding to the priority.
  • the remaining resources can be allocated according to the weight ratio corresponding to the priority of the motion data. Specifically, motion data with a higher priority is allocated more remaining resources, and motion data with a lower priority is allocated less. remaining resources. If there are remaining resources after the allocation, and the resources of some motion data are still insufficient, you can continue to allocate according to the weight ratio until there are no remaining resources, or although there are remaining resources, all the resource requirements of the motion data have been met.
  • the remaining resources can be allocated in the order of the priority of the motion data with insufficient resources. Specifically, the motion data with the highest priority in the motion data with insufficient resources is allocated the remaining resources first. If this priority is satisfied There are remaining resources after the resource requirements of the first level, and then allocated to the motion data of lower priority, and so on, until there are no remaining resources, or although there are remaining resources, the resource requirements of all motion data have been satisfied.
  • the user In a certain period of time, the user generates 12kb of motion data, of which the total amount of high-priority data is 4kb, the total amount of medium-priority data is 4kb, the total amount of low-priority data is 4kb, and the total amount of current transmission resources is 10kb.
  • the weight ratios corresponding to medium and low priorities are 0.6, 0.3, and 0.1.
  • high-priority data has 6kb of resources, but high-priority data has only 4kb of data, so all 4kb of high-priority data is transmitted, And there are 2kb remaining resources;
  • the medium-priority data has a resource volume of 3kb, but the medium-priority data has a data volume of 4kb, which is not enough, and needs 1kb of resources.
  • high-priority data has remaining resources, so the method of re-allocating the remaining resources in priority order can be used, and the 2kb remaining resources of the high-priority data are allocated to the medium-priority data, and the last 4kb of the medium-priority data are all transmitted. There is still 1kb of remaining resources;
  • the low-priority data has a resource volume of 1kb, but the low-priority data has a data volume of 4kb, and the resources are not enough, and 3kb of resources are needed.
  • the middle-priority data has remaining resources, and the 1kb remaining resources of the middle-priority data are allocated to the low-priority data. At this time, there are no remaining resources, and the resource allocation ends. Finally, 2kb of low-priority data is transmitted.
  • a round-robin scheduling method may be used when allocating resources to motion data, that is, resources are allocated for each priority of motion data, and resources are allocated according to the weight ratio corresponding to the priority of the motion data, so that both It can ensure that data of different priorities can be processed correspondingly within a certain period of time, and it can also make high-priority data get more resources than low-priority data, thus ensuring that all motion data with processing priorities are processed. On the premise of being processed, the real-time processing of motion data with high processing priority is guaranteed.
  • the first motion data to be processed is obtained, and the first processing priority of the first motion data is determined; the first weight ratio corresponding to the first processing priority is obtained; according to The above-mentioned first weight ratio is allocated to the first resource for processing the first motion data.
  • resources are allocated according to the corresponding weight ratios after prioritization. When the total amount of resources available for allocation is insufficient, more resources can be allocated to motion data with higher priorities to ensure that Higher priority motion data is processed as soon as possible, thereby improving data processing efficiency.
  • the smart device obtains sports data through measurement by its own sensor, and then transmits it to the terminal device, and the terminal device processes the sports data after receiving. Both the smart device and the terminal device can use the data processing method provided by the embodiments of the present application.
  • Sports scene 1 As shown in Figure 3A, the user is running outdoors, wearing a watch/bracelet on his hand to measure heart rate, speed and other exercise data, and wearing a running posture accessory on his shoe to measure running posture data.
  • the running posture data can specifically include steps. Frequency, stride, touchdown time, landing method, landing impact, valgus amplitude, swing angle and other motion data, and use the app on the mobile phone to display the analysis results of the motion data. Data is transferred to the mobile phone.
  • smart devices include watches/bands, running accessories, and terminal devices include mobile phones.
  • Exercise scene 2 As shown in Figure 3B, the user can run on an indoor treadmill, wear a watch/band on his hand to measure heart rate, speed and other exercise data, and wear a running posture accessory on his shoe to measure running posture data.
  • the treadmill can Measure running posture and other sports data, and use the app on the mobile phone to display the processing results of sports data.
  • Watches/bands, running posture accessories, and treadmills transmit sports data to mobile phones through Bluetooth.
  • smart devices include watches/bands, running accessories and treadmills
  • terminal devices include mobile phones.
  • the smart device can process and display the motion data obtained by its own measurement, or the terminal device can measure the motion data through its own sensor and display the result after processing, or the terminal device can receive the motion data transmitted by the smart device. And process it, and then send the processing result back and display it on the smart device.
  • the data processing methods provided in the embodiments of the present application can be used without limitation to the scenarios in which the smart devices and terminal devices transmit or process data, which is not limited in the present application.
  • the smart device is a watch
  • the terminal device is a mobile phone.
  • the watch sets the priority for the acquired sports data.
  • the method of setting the priority can refer to the content of steps S221 to S226, and then allocate the transmission resources according to the weight ratio corresponding to the priority,
  • the motion data is transmitted to the mobile APP through Bluetooth, so that the high-priority motion data can get more transmission resources and ensure that the high-priority data can be transmitted as soon as possible.
  • internal processing resources can be allocated according to the priority and weight ratio that have been determined before transmission, so that the high-priority motion data can get more processing resources and ensure that the high-priority data can be processed as soon as possible. Processing is complete.
  • the motion data transmitted to the mobile phone enters different queues to wait for processing according to the priority that has been set before transmission, while the mobile phone adopts the round-robin scheduling method, and the weight ratio corresponding to the priority is:
  • the motion data of the different queues allocate processing resources.
  • the processing priority of the data in queue 1 is high priority, the weight ratio is 0.6, and 60% of the processing resources can be obtained;
  • the processing priority of the data in queue 2 is medium priority, the weight ratio is 0.3, and 30% can be obtained ,
  • the processing priority of the data in queue 3 is low priority, the weight ratio is 0.1, and 10% of the processing resources can be obtained.
  • the actual data amount of the motion data of the medium priority and the low priority is greater than the allocated resource amount, while the actual data amount of the high priority motion data is exactly equal to the allocated resource amount, and there are no remaining resources. Therefore, the processing can be completed in this process; while the motion data of medium and low priority are not processed. However, in this process, all priority data are given certain processing resources, so it can be ensured that motion data of different priorities can be processed within a certain period of time.
  • the mobile APP can display the processing results of exercise data, including but not limited to one or more of the following: measurement/statistical results of exercise data, user exercise status, related charts, personalized analysis or exercise suggestions, etc.
  • the processing results of high-priority motion data can be displayed on the mobile APP first.
  • an electronic device 700 provided by an embodiment of the present application may include:
  • the acquiring unit 701 is configured to acquire the first motion data to be processed.
  • a dividing unit 702 configured to determine a first processing priority of the first motion data.
  • the determining unit 703 is configured to acquire a first weight ratio corresponding to the first processing priority.
  • the allocation processing unit 704 is configured to allocate a first resource for processing the first motion data according to the first weight.
  • the electronic device also includes:
  • the opening unit 705 is used to turn on the function switch when the current data volume of the motion data to be transmitted is greater than the first threshold, and the motion data to be transmitted includes the first motion data; or, when the stability of the current network state is less than the second threshold.
  • the electronic device uses the data processing method provided by the embodiment of the present application, and the electronic device does not use the data processing method provided by the embodiment of the present application before the function switch is turned on.
  • the first motion data to be processed is the first motion data to be transmitted, and the allocation processing unit 704 may be configured to allocate a first resource for transmitting the first motion data.
  • the dividing unit 702 is configured to: determine a first data type to which the first motion data belongs, and the first data type is used to represent an attribute of the first motion data;
  • a first processing priority of the first motion data is determined according to the first data type.
  • the first data type includes one of a motion control data type, a real-time motion data type, a pan-motion data type, or a notification data type.
  • determining the first processing priority of the first motion data according to the first data type includes:
  • the first processing priority of the first motion data is determined to be the highest priority among M priorities, where M is an integer greater than or equal to 1.
  • the first data type is not the motion control data type, obtain the first priority value corresponding to the first motion data
  • the first priority value range is one of M priority value ranges, and each priority value range in the M priority value ranges corresponds to M priority value ranges one of the priority levels;
  • the priority corresponding to the first priority value range is determined as the first processing priority of the first motion data.
  • obtaining the first priority value corresponding to the first motion data includes:
  • the first priority coefficient corresponding to the first data type, and the first priority coefficient is used to represent the real-time processing priority of the data belonging to the first data type;
  • a first priority value corresponding to the first motion data is determined according to the first priority coefficient.
  • the first priority value corresponding to the first motion data is determined, including:
  • the first priority coefficient is less than or equal to the third threshold, determining the first priority coefficient as the first priority value corresponding to the first motion data
  • the adjustment coefficient includes the second priority coefficient and/or the third priority coefficient, wherein the second priority coefficient is determined according to the first motion type related to the first motion data, the third priority coefficient is determined according to the rate of change of the first motion data within the target period, and both the second priority coefficient and the third priority coefficient are greater than 1;
  • a first priority value corresponding to the first motion data is determined according to the first priority coefficient and the adjustment coefficient.
  • the dividing unit 702 is further configured to: determine that the adjustment coefficient includes a second priority coefficient, and the method for determining the second priority coefficient includes:
  • a second priority coefficient is determined, and the second priority coefficient is used to indicate the priority level of the first motion data being processed in real time in the motion indicated by the first motion type.
  • the dividing unit 702 is further configured to: determine that the adjustment coefficient includes a third priority coefficient, and the method for determining the third priority coefficient includes:
  • a third priority factor is determined.
  • the electronic device 700 acquires the first motion data to be processed; determines the first processing priority of the first motion data; acquires the first weight ratio corresponding to the first processing priority; The first weight is allocated to the first resource for processing the first motion data. Due to the priority division of motion data, resources are allocated according to the weight ratio corresponding to the divided priority, so that motion data with higher priority can get more resources, which is beneficial to ensure the real-time processing of motion data with high processing priority. sex.
  • FIG. 8 shows a schematic structural diagram of an electronic device 800 .
  • the electronic device 800 may include a processor 810, an external memory interface 820, an internal memory 821, a universal serial bus (USB) interface 830, a charge management module 840, a power management module 841, a battery 842, an antenna 1, an antenna 2 , mobile communication module 850, wireless communication module 860, audio module 870, speaker 870A, receiver 870B, microphone 870C, headphone jack 870D, sensor module 880, buttons 890, motor 891, indicator 892, camera 893, display screen 894, and Subscriber identification module (subscriber identification module, SIM) card interface 895 and so on.
  • SIM Subscriber identification module
  • the sensor module 880 may include a pressure sensor 880A, a gyroscope sensor 880B, an air pressure sensor 880C, a magnetic sensor 880D, an acceleration sensor 880E, a distance sensor 880F, a proximity light sensor 880G, a fingerprint sensor 880H, a temperature sensor 880J, a touch sensor 880K, and ambient light.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 800 .
  • the electronic device 800 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 810 may include one or more processing units, for example, the processor 810 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 810 for storing instructions and data.
  • the memory in processor 810 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 810 . If the processor 810 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 810 is reduced, thereby increasing the efficiency of the system.
  • processor 810 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 810 may contain multiple sets of I2C buses.
  • the processor 810 can be respectively coupled to the touch sensor 880K, the charger, the flash, the camera 893, etc. through different I2C bus interfaces.
  • the processor 810 can couple the touch sensor 880K through the I2C interface, so that the processor 810 communicates with the touch sensor 880K through the I2C bus interface, so as to realize the touch function of the electronic device 800 .
  • the I2S interface can be used for audio communication.
  • processor 810 may contain multiple sets of I2S buses.
  • the processor 810 may be coupled with the audio module 870 through an I2S bus to implement communication between the processor 810 and the audio module 870 .
  • the audio module 870 can transmit audio signals to the wireless communication module 860 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 870 and the wireless communication module 860 may be coupled through a PCM bus interface.
  • the audio module 870 can also transmit audio signals to the wireless communication module 860 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 810 with the wireless communication module 860 .
  • the processor 810 communicates with the Bluetooth module in the wireless communication module 860 through the UART interface to implement the Bluetooth function.
  • the audio module 870 can transmit audio signals to the wireless communication module 860 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 810 with the display screen 894, the camera 893 and other peripheral devices.
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 810 communicates with the camera 893 through a CSI interface to implement the photographing function of the electronic device 800 .
  • the processor 810 communicates with the display screen 894 through the DSI interface to implement the display function of the electronic device 800 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 810 with the camera 893, the display screen 894, the wireless communication module 860, the audio module 870, the sensor module 880, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 830 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 830 can be used to connect a charger to charge the electronic device 800, and can also be used to transmit data between the electronic device 800 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 800 .
  • the electronic device 800 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 840 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 840 may receive charging input from the wired charger through the USB interface 830 .
  • the charging management module 840 may receive wireless charging input through the wireless charging coil of the electronic device 800 . While the charging management module 840 charges the battery 842, the power management module 841 can also supply power to the electronic device.
  • the power management module 841 is used to connect the battery 842 , the charging management module 840 and the processor 810 .
  • the power management module 841 receives input from the battery 842 and/or the charging management module 840, and supplies power to the processor 810, the internal memory 821, the display screen 894, the camera 893, and the wireless communication module 860.
  • the power management module 841 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 841 may also be provided in the processor 810 .
  • the power management module 841 and the charging management module 840 may also be provided in the same device.
  • the wireless communication function of the electronic device 800 may be implemented by the antenna 1, the antenna 2, the mobile communication module 850, the wireless communication module 860, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 800 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 850 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 800 .
  • the mobile communication module 850 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 850 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 850 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves and radiate it out through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 850 may be provided in the processor 810 .
  • at least part of the functional modules of the mobile communication module 850 may be provided in the same device as at least part of the modules of the processor 810 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to speaker 870A, receiver 870B, etc.), or displays images or videos through display screen 894 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 810, and may be provided in the same device as the mobile communication module 850 or other functional modules.
  • the wireless communication module 860 can provide applications on the electronic device 800 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 860 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 860 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 810 .
  • the wireless communication module 860 can also receive the signal to be sent from the processor 810 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 800 is coupled with the mobile communication module 850, and the antenna 2 is coupled with the wireless communication module 860, so that the electronic device 800 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 800 implements a display function through a GPU, a display screen 894, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 894 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 810 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 894 is used to display images, videos, and the like.
  • Display screen 894 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 800 may include 1 or N display screens 894 , where N is a positive integer greater than 1.
  • the electronic device 800 may implement a shooting function through an ISP, a camera 893, a video codec, a GPU, a display screen 894, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 893. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 893.
  • the camera 893 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 800 may include 1 or N cameras 893 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 800 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 800 may support one or more video codecs.
  • the electronic device 800 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 800 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 820 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 800 .
  • the external memory card communicates with the processor 810 through the external memory interface 820 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 821 may be used to store computer executable program code, which includes instructions.
  • the internal memory 821 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 800 and the like.
  • the internal memory 821 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, universal flash storage (UFS), and the like.
  • the processor 810 executes various functional applications and data processing of the electronic device 800 by executing the instructions stored in the internal memory 821 and/or the instructions stored in the memory provided in the processor.
  • the electronic device 800 may implement audio functions through an audio module 870, a speaker 870A, a receiver 870B, a microphone 870C, an earphone interface 870D, and an application processor. Such as music playback, recording, etc.
  • the audio module 870 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 870 may also be used to encode and decode audio signals. In some embodiments, the audio module 870 may be provided in the processor 810 , or some functional modules of the audio module 870 may be provided in the processor 810 .
  • Speaker 870A also referred to as "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 800 can listen to music through speaker 870A, or listen to hands-free calls.
  • the receiver 870B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 870B close to the human ear.
  • Microphone 870C also known as “microphone”, “microphone”, is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 870C through the human mouth, and input the sound signal into the microphone 870C.
  • the electronic device 800 may be provided with at least one microphone 870C. In other embodiments, the electronic device 800 may be provided with two microphones 870C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 800 may further be provided with three, four or more microphones 870C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headphone jack 870D is used to connect wired headphones.
  • the earphone interface 870D can be a USB interface 830, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 880A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • pressure sensor 880A may be provided on display screen 894 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to pressure sensor 880A, the capacitance between the electrodes changes.
  • the electronic device 800 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 894, the electronic device 800 detects the intensity of the touch operation according to the pressure sensor 880A.
  • the electronic device 800 can also calculate the touched position according to the detection signal of the pressure sensor 880A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 880B can be used to determine the motion attitude of the electronic device 800 .
  • the angular velocity of electronic device 800 about three axes may be determined by gyro sensor 880B.
  • the gyro sensor 880B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 880B detects the shaking angle of the electronic device 800, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shaking of the electronic device 800 through reverse motion to achieve anti-shake.
  • the gyroscope sensor 880B can also be used for navigation and somatosensory game scenarios.
  • Air pressure sensor 880C is used to measure air pressure. In some embodiments, the electronic device 800 calculates the altitude from the air pressure value measured by the air pressure sensor 880C to assist in positioning and navigation.
  • Magnetic sensor 880D includes a Hall sensor.
  • the electronic device 800 can detect the opening and closing of the flip holster using the magnetic sensor 880D.
  • the electronic device 800 can detect the opening and closing of the flip according to the magnetic sensor 880D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 880E can detect the magnitude of the acceleration of the electronic device 800 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 800 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 800 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 800 can use the distance sensor 880F to measure the distance to achieve fast focusing.
  • Proximity light sensor 880G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 800 emits infrared light to the outside through light emitting diodes.
  • Electronic device 800 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 800 . When insufficient reflected light is detected, the electronic device 800 may determine that there is no object near the electronic device 800 .
  • the electronic device 800 can use the proximity light sensor 880G to detect that the user holds the electronic device 800 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 880G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 880L is used to sense ambient light brightness.
  • the electronic device 800 can adaptively adjust the brightness of the display screen 894 according to the perceived ambient light brightness.
  • the ambient light sensor 880L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 880L can also cooperate with the proximity light sensor 880G to detect whether the electronic device 800 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 880H is used to collect fingerprints.
  • the electronic device 800 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 880J is used to detect the temperature.
  • the electronic device 800 utilizes the temperature detected by the temperature sensor 880J to execute a temperature handling strategy. For example, when the temperature reported by the temperature sensor 880J exceeds a threshold value, the electronic device 800 may reduce the performance of the processor located near the temperature sensor 880J in order to reduce power consumption and implement thermal protection.
  • the electronic device 800 heats the battery 842 to avoid abnormal shutdown of the electronic device 800 caused by the low temperature.
  • the electronic device 800 boosts the output voltage of the battery 842 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 880K also called “touch panel”.
  • the touch sensor 880K may be disposed on the display screen 894, and the touch sensor 880K and the display screen 894 form a touch screen, also referred to as a "touch screen”.
  • the touch sensor 880K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 894 .
  • the touch sensor 880K may also be disposed on the surface of the electronic device 800 at a different location than the display screen 894 .
  • the bone conduction sensor 880M can acquire vibration signals.
  • the bone conduction sensor 880M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 880M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 880M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 870 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 880M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 880M, and realize the function of heart rate detection.
  • the keys 890 include a power-on key, a volume key, and the like. Keys 890 may be mechanical keys. It can also be a touch key.
  • the electronic device 800 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 800 .
  • Motor 891 can generate vibration alerts.
  • the motor 891 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 891 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 894 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 892 may be an indicator light, which may be used to indicate the charging status, the change of power, and may also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 895 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 800 by inserting into the SIM card interface 895 or pulling out from the SIM card interface 895 .
  • the electronic device 800 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 895 can support Nano SIM card, Micro SIM card, SIM card and so on.
  • the same SIM card interface 895 can insert multiple cards at the same time.
  • the types of the plurality of cards may be the same or different.
  • the SIM card interface 895 can also be compatible with different types of SIM cards.
  • the SIM card interface 895 is also compatible with external memory cards.
  • the electronic device 800 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 800 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 800 and cannot be separated from the electronic device 800 .
  • the processor 810 invokes the code stored in the internal memory 821 for obtaining the first motion data to be processed; determining the first processing priority of the first motion data; obtaining the code corresponding to the first processing priority The first weight ratio of ; according to the first weight, the first resource for processing the first motion data is allocated.
  • the processor 810 is further configured to: when the data amount of the motion data to be transmitted currently is greater than the first threshold, the motion data to be transmitted includes the first motion data; Alternatively, when the stability of the current network state is less than the second threshold, the program is invoked to cause the electronic device to use the data processing method provided by the embodiment of the present application.
  • Embodiments of the present invention further provide a computer program product, wherein when the computer program product runs on an electronic device, the electronic device executes some or all of the steps of a data processing method described in the above method embodiments.
  • Embodiments of the present invention further provide a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program includes part or all of the steps of a data processing method described in the above method embodiments.
  • the disclosed apparatus may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

Embodiments of the present application provide a data processing method. The method comprises: obtaining first movement data to be processed, and determining first processing priority of first movement data; obtaining a first weight ratio corresponding to the first processing priority; and according to the first weight ratio, allocating a first resource for processing the first movement data. The technical solution of the embodiments of the present application facilitates ensuring real-time processing of movement data having high processing priority.

Description

数据处理方法及电子设备Data processing method and electronic device
本申请要求于2020年09月27日提交中国专利局、申请号为202011035008.3、申请名称为“数据处理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011035008.3 and the application name "Data Processing Method and Electronic Device" filed with the China Patent Office on September 27, 2020, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及电子技术领域,尤其涉及一种数据处理方法及电子设备。The present application relates to the field of electronic technology, and in particular, to a data processing method and electronic device.
背景技术Background technique
随着社会的发展和人们的健康意识的提高,利用智能设备进行运动健康监测的需求与日俱增。因此出现了不同种类的穿戴设备和配件,可以用来测量各种运动数据,比如,利用智能手环测量速度、心率,利用跑姿配件测量跑姿等等。穿戴设备和配件可以将测量的运动数据传输给终端设备进行处理和显示。例如,在运动过程中,多种设备采集各种运动数据,通过蓝牙将运动数据传输给终端设备进行处理。但是各种运动数据在传输以及处理时会产生时延,无法保证数据的实时性。With the development of society and the improvement of people's health awareness, the demand for sports health monitoring using smart devices is increasing day by day. Therefore, different kinds of wearable devices and accessories have appeared, which can be used to measure various sports data, such as measuring speed and heart rate with smart bracelets, measuring running posture with running posture accessories, and so on. Wearable devices and accessories can transmit the measured movement data to terminal devices for processing and display. For example, during exercise, various devices collect various exercise data, and transmit the exercise data to the terminal device for processing through Bluetooth. However, the transmission and processing of various motion data will cause delays, and the real-time nature of the data cannot be guaranteed.
发明内容SUMMARY OF THE INVENTION
本申请公开了一种数据处理方法,在保证所有处理优先级的运动数据都得到处理的前提下,保证对高处理优先级运动数据的处理实时性。The present application discloses a data processing method, which ensures the real-time processing of motion data with high processing priority on the premise that all motion data with processing priority are processed.
第一方面,本申请实施例提供一种数据处理方法,其中,此方法包括:获取待处理的第一运动数据,并确定该第一运动数据的第一处理优先级;获取与该第一处理优先级对应的第一权重比例;根据该第一权重比例,分配用于处理该第一运动数据的第一资源。In a first aspect, an embodiment of the present application provides a data processing method, wherein the method includes: acquiring first motion data to be processed, and determining a first processing priority of the first motion data; The first weight ratio corresponding to the priority; according to the first weight ratio, the first resource for processing the first motion data is allocated.
上述的数据处理方法中,给数据划分优先级,并给不同优先级的数据分配不同的处理资源,使得较高优先级的运动数据能得到较多的处理资源,因而保证对高处理优先级运动数据的处理实时性。In the above data processing method, the data is divided into priorities, and different processing resources are allocated to the data of different priorities, so that the higher priority motion data can get more processing resources, thus ensuring the high processing priority motion data. Real-time processing of data.
在一些可能的实施例中,该待处理的第一运动数据为待传输的第一运动数据,该第一资源为用于传输该第一运动数据的传输资源。因此划分优先级后可以按优先级对应的权重比例给运动数据分配相应的传输资源,从而保证对高处理优先级运动数据的传输实时性。In some possible embodiments, the first motion data to be processed is first motion data to be transmitted, and the first resource is a transmission resource used for transmitting the first motion data. Therefore, after the priority is divided, corresponding transmission resources can be allocated to the motion data according to the weight ratio corresponding to the priority, thereby ensuring the real-time transmission of the motion data with high processing priority.
在一些可能的实施例中,确定该第一运动数据的第一处理优先级之前,还包括:确定当前待传输的运动数据的数据量大于第一阈值,该待传输的运动数据包括该第一运动数据;或者,确定当前网络状态的稳定程度小于第二阈值。因此本申请可以作为一种可选的方案,当数据量太大或者网络状态不稳定时才采用本申请的方案,而在数据量较小且网络状态稳定时则采用现有的方案,有利于减少资源的占用。In some possible embodiments, before determining the first processing priority of the first motion data, the method further includes: determining that the data amount of the motion data to be transmitted currently is greater than a first threshold, and the motion data to be transmitted includes the first motion data. motion data; or, it is determined that the stability of the current network state is less than the second threshold. Therefore, the present application can be used as an optional solution. When the amount of data is too large or the network state is unstable, the solution of the present application is adopted, and when the amount of data is small and the network state is stable, the existing solution is adopted, which is beneficial to Reduce resource usage.
在一些可能的实施例中,确定该第一运动数据的第一处理优先级,包括:确定该第一运动数据所属的第一数据类型,该第一数据类型用于表示该第一运动数据的属性;根据该第一数据类型确定该第一运动数据的第一处理优先级。In some possible embodiments, determining the first processing priority of the first motion data includes: determining a first data type to which the first motion data belongs, where the first data type is used to represent the attribute; determining the first processing priority of the first motion data according to the first data type.
可选的,第一数据类型包括运动控制数据类型、运动实时数据类型、泛运动数据类型或通知数据类型中的一种。Optionally, the first data type includes one of a motion control data type, a real-time motion data type, a pan-motion data type, or a notification data type.
可选的,根据该第一数据类型确定该第一运动数据的第一处理优先级,包括:若该第一数据类型是运动控制数据类型,确定该第一运动数据的第一处理优先级为M个优先级中的最高优先级,该M为大于或等于1的整数。这样,可以保证运动控制数据的优先级较高,因而电子设备能及时处理运动控制指令,进而保证数据的实时性和准确性。Optionally, determining the first processing priority of the first motion data according to the first data type includes: if the first data type is a motion control data type, determining that the first processing priority of the first motion data is: The highest priority among M priorities, where M is an integer greater than or equal to 1. In this way, it can be ensured that the priority of the motion control data is high, so the electronic device can process the motion control instructions in time, thereby ensuring the real-time and accuracy of the data.
可选的,该根据该第一数据类型确定该第一运动数据的第一处理优先级,包括:若该第一数据类型不是运动控制数据类型,获取该第一运动数据对应的第一优先级值;确定该第一优先级值所在的第一优先级值范围,该第一优先级值范围是M个优先级值范围中的一个,该M个优先级值范围中的每个优先级值范围对应M个优先级中的一个优先级;将该第一优先级值范围对应的优先级确定为该第一运动数据的第一处理优先级。这样,可以清楚地给运动数据划分不同的优先级。Optionally, determining the first processing priority of the first motion data according to the first data type includes: if the first data type is not a motion control data type, obtaining a first priority corresponding to the first motion data value; determine the first priority value range where the first priority value is located, the first priority value range is one of M priority value ranges, and each priority value in the M priority value ranges The range corresponds to one of the M priorities; the priority corresponding to the first priority value range is determined as the first processing priority of the first motion data. In this way, the motion data can be clearly prioritized.
其中,获取该第一运动数据对应的第一优先级值,包括:获取与该第一数据类型对应的第一优先级系数,该第一优先级系数用于表示属于该第一数据类型的数据的被实时处理的优先级程度;根据该第一优先级系数,确定该第一运动数据对应的第一优先级值。这样,根据运动数据的数据类型可以确定优先级。Wherein, acquiring the first priority value corresponding to the first motion data includes: acquiring a first priority coefficient corresponding to the first data type, where the first priority coefficient is used to represent data belonging to the first data type The priority level of the real-time processing; according to the first priority coefficient, determine the first priority value corresponding to the first motion data. In this way, the priority can be determined according to the data type of the motion data.
其中,根据该第一优先级系数,确定该第一运动数据对应的第一优先级值,包括:若该第一优先级系数小于或者等于第三阈值,将该第一优先级系数确定为该第一运动数据对应的第一优先级值;若该第一优先级系数大于第三阈值,获取用于调整该第一优先级系数的大小的调整系数,该调整系数包括第二优先级系数和/或第三优先级系数,其中,该第二优先级系数是根据与该第一运动数据相关的运动类型确定的,该第三优先级系数是根据该第一运动数据在目标时段内的变化率确定的,该第二优先级系数和该第三优先级系数均大于1;根据该第一优先级系数和该调整系数,确定该第一运动数据对应的第一优先级值。这样,可以进一步根据运动类型和/或变化率来调整运动数据的优先级,使得优先级的划分更合理、更符合实际,进而保证对高处理优先级运动数据的处理实时性。Wherein, determining the first priority value corresponding to the first motion data according to the first priority coefficient includes: if the first priority coefficient is less than or equal to a third threshold, determining the first priority coefficient as the first priority coefficient The first priority value corresponding to the first motion data; if the first priority coefficient is greater than the third threshold, obtain an adjustment coefficient for adjusting the size of the first priority coefficient, where the adjustment coefficient includes the second priority coefficient and /or a third priority factor, wherein the second priority factor is determined according to the type of movement associated with the first movement data, and the third priority factor is determined according to the change of the first movement data within the target period If the rate is determined, the second priority coefficient and the third priority coefficient are both greater than 1; according to the first priority coefficient and the adjustment coefficient, the first priority value corresponding to the first motion data is determined. In this way, the priority of the motion data can be further adjusted according to the motion type and/or the rate of change, so that the division of the priority is more reasonable and practical, thereby ensuring the real-time processing of the motion data with high processing priority.
可选的,调整系数包括第二优先级系数,该方法还包括:获取与该第一运动数据相关的第一运动类型;根据该第一运动类型和该第一运动数据,确定该第二优先级系数,该第二优先级系数用于表示该第一运动数据在该第一运动类型所指示运动中被实时处理的优先级程度。Optionally, the adjustment coefficient includes a second priority coefficient, and the method further includes: acquiring a first motion type related to the first motion data; and determining the second priority according to the first motion type and the first motion data. The second priority coefficient is used to indicate the priority level of the first motion data being processed in real time in the motion indicated by the first motion type.
可选的,调整系数包括第三优先级系数,该方法还包括:获取该第一运动数据在目标时段内的变化率;根据该变化率,确定该第三优先级系数。Optionally, the adjustment coefficient includes a third priority coefficient, and the method further includes: acquiring a change rate of the first motion data within a target period; and determining the third priority coefficient according to the change rate.
第二方面,本申请实施例提供一种电子设备,其中,该电子设备包括:一个或多个处理器、一个或多个存储器;该一个或多个存储器与该一个或多个处理器耦合,该一个或多个存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,其特征在于,当该一个或多个处理器执行该计算机指令时,该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a second aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, The one or more memories are used to store computer program codes, the computer program codes include computer instructions, and it is characterized in that when the one or more processors execute the computer instructions, the electronic device performs the first aspect and the first A method described in any possible implementation of the aspect.
第三方面,本申请实施例提供一种计算机设备,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes The method described in one aspect and any possible implementation of the first aspect.
第四方面,本申请提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fourth aspect, the present application provides a computer program product containing instructions, when the computer program product is executed on an electronic device, the electronic device is made to execute the first aspect and any possible implementation manner of the first aspect. method.
第五方面,本申请提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。 可以理解地,上述提供的第二方面所述的电子设备、第三方面所述的计算机设备、第四方面所述的计算机程序产品、第五方面所述的计算机存储介质均用于执行第一方面、或第一方面的任一种可能的实施方式所提供的数据处理方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。In a fifth aspect, the present application provides a computer-readable storage medium, comprising instructions that, when the above-mentioned instructions are executed on an electronic device, cause the above-mentioned electronic device to execute the first aspect and any possible implementation manner of the first aspect. method. Understandably, the electronic device described in the second aspect, the computer device described in the third aspect, the computer program product described in the fourth aspect, and the computer storage medium described in the fifth aspect are all used to execute the first The aspect, or the data processing method provided by any possible implementation manner of the first aspect. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
附图说明Description of drawings
下面对本申请实施例用到的附图进行介绍。The accompanying drawings used in the embodiments of the present application will be introduced below.
图1是本申请实施例提供的一种数据处理方法的系统图;1 is a system diagram of a data processing method provided by an embodiment of the present application;
图2A是本申请实施例提供的一种数据处理方法的流程示意图;2A is a schematic flowchart of a data processing method provided by an embodiment of the present application;
图2B是本申请实施例提供的一种确定优先级的方法的流程图;2B is a flowchart of a method for determining a priority provided by an embodiment of the present application;
图3A是本申请实施例提供的一种运动场景的示意图;3A is a schematic diagram of a motion scene provided by an embodiment of the present application;
图3B是本申请实施例提供的另一种运动场景的示意图;3B is a schematic diagram of another motion scene provided by an embodiment of the present application;
图4是本申请实施例提供的一种常规的数据处理过程的示意图;4 is a schematic diagram of a conventional data processing process provided by an embodiment of the present application;
图5是本申请实施例提供的一种数据处理过程的示意图;5 is a schematic diagram of a data processing process provided by an embodiment of the present application;
图6是本申请实施例提供的另一种数据处理过程的示意图;6 is a schematic diagram of another data processing process provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的示意图;7 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
请参见图1,图1为本申请的一个实施例提供的一种数据处理方法的系统图。如图1所示,此系统可以包含智能设备和终端设备,该智能设备和终端设备建立数据连接,例如,智能设备和终端设备可以通过蓝牙建立数据连接,或者该智能设备和终端设备也可以通过Wi-Fi建立数据连接等等。Please refer to FIG. 1. FIG. 1 is a system diagram of a data processing method provided by an embodiment of the present application. As shown in Figure 1, this system can include a smart device and a terminal device, the smart device and the terminal device establish a data connection, for example, the smart device and the terminal device can establish a data connection through Bluetooth, or the smart device and the terminal device can also be connected through Wi-Fi establishes a data connection and more.
智能设备可以测量得到运动数据,进一步可以向终端设备传输运动数据和/或对运动数据进行处理。该终端设备也可以对该运动数据进行处理和/或对该运动数据进行显示等等。终端设备也可以向智能设备传输运动数据的处理结果。其中,智能设备可以包括但不限于智能手表、智能手环、跑姿配件等穿戴设备,或者跑步机、手机等设备,而终端设备可以包括但不限于手机、平板电脑、掌上电脑或其他类型的电子设备等等。The smart device can measure the motion data, and further transmit the motion data to the terminal device and/or process the motion data. The terminal device can also process the motion data and/or display the motion data, and so on. The terminal device can also transmit the processing result of the motion data to the smart device. Among them, smart devices may include but are not limited to wearable devices such as smart watches, smart bracelets, running accessories, or devices such as treadmills and mobile phones, while terminal devices may include but are not limited to mobile phones, tablet computers, PDAs, or other types of electronic equipment, etc.
请参见图2A,图2A为本申请的一个实施例提供的一种数据处理方法的流程示意图。其中,如图2A所示,一种数据处理方法可以包括:Please refer to FIG. 2A , which is a schematic flowchart of a data processing method provided by an embodiment of the present application. Wherein, as shown in Figure 2A, a data processing method may include:
S210、获取待处理的第一运动数据。S210. Acquire first motion data to be processed.
首先,电子设备获取待处理的第一运动数据。此电子设备可以是如图1所示的智能设备或终端设备。相应的,电子设备可以测量得到待处理的第一运动数据,或者,电子设备可以从其他电子设备接收得到待处理的第一运动数据。可选的,该电子设备包括但不限于穿戴设备、跑步机、手机、平板电脑、笔记本电脑或掌上电脑等等。示例性的,第一运动数据可以是待处理的多个运动数据中的一个或多个。待处理的运动数据可以是待传输的运动数据。First, the electronic device acquires the first motion data to be processed. The electronic device may be a smart device or a terminal device as shown in FIG. 1 . Correspondingly, the electronic device may measure and obtain the first motion data to be processed, or the electronic device may receive the first motion data to be processed from other electronic devices. Optionally, the electronic device includes, but is not limited to, a wearable device, a treadmill, a mobile phone, a tablet computer, a notebook computer or a palmtop computer, and the like. Exemplarily, the first motion data may be one or more of a plurality of motion data to be processed. The motion data to be processed may be motion data to be transmitted.
其中,运动数据可以包括但不限于以下几种数据:速度、步数、心率、距离、热量、消 息通知、闹钟提醒、天气预警等等。The exercise data may include but are not limited to the following data: speed, number of steps, heart rate, distance, heat, message notification, alarm clock reminder, weather warning, etc.
S220、确定第一运动数据的第一处理优先级。S220. Determine a first processing priority of the first motion data.
可选的,在一些实施例中,在确定第一运动数据的第一处理优先级之前,先确定当前待传输的运动数据的数据量大于第一阈值,该待传输的运动数据包括该第一运动数据;或者,确定当前网络状态的稳定程度小于第二阈值。第一阈值和第二阈值可以是预设的阈值。也就是说,如图1所示的智能设备向终端设备传输的数据量太大(大于第一阈值,比如超过带宽)或网络状态不稳定(小于第二阈值)时,可以采用本申请提供的数据处理方法,为待传输的数据划分优先级,划分优先级后按分配的传输资源传输数据;而当传输的数据量不大且网络状态稳定时,可以不采用本申请提供的数据处理方法,不需要为待传输数据划分优先级,获取的数据按先后顺序进入待传输的队列,依次进行传输。Optionally, in some embodiments, before determining the first processing priority of the first motion data, it is first determined that the data amount of the motion data currently to be transmitted is greater than a first threshold, and the motion data to be transmitted includes the first motion data. motion data; or, it is determined that the stability of the current network state is less than the second threshold. The first threshold and the second threshold may be preset thresholds. That is to say, when the amount of data transmitted by the smart device to the terminal device as shown in FIG. 1 is too large (greater than the first threshold, such as exceeding the bandwidth) or the network state is unstable (less than the second threshold), the data provided by this application can be used. The data processing method is to prioritize the data to be transmitted, and then transmit the data according to the allocated transmission resources; and when the amount of transmitted data is not large and the network state is stable, the data processing method provided in this application may not be used, There is no need to prioritize the data to be transmitted, and the acquired data enters the queue to be transmitted in sequence, and is transmitted in sequence.
确定运动数据的优先级的方式可以有多种,运动数据的优先级的总数可以包括多个。There may be multiple ways to determine the priority of the motion data, and the total number of priorities of the motion data may include multiple.
在一些实施例中,可以根据第一运动数据所属的第一数据类型来确定其第一处理优先级。其中,第一数据类型用于表示第一运动数据的属性。In some embodiments, the first processing priority of the first motion data may be determined according to the first data type to which it belongs. Wherein, the first data type is used to represent the attribute of the first motion data.
可选的,如图2B所示,根据第一运动数据所属的第一数据类型来确定其第一处理优先级,可以包括以下步骤:Optionally, as shown in FIG. 2B , determining the first processing priority of the first motion data according to the first data type to which it belongs may include the following steps:
S221、确定第一运动数据所属的第一数据类型。S221. Determine the first data type to which the first motion data belongs.
数据类型可以按照多种方式来划分,在本申请实施例中,将运动数据所属的数据类型分为以下四种类型:运动控制数据类型、运动实时数据类型、泛运动数据类型和通知数据类型。表1列出了这四种数据类型对应的部分运动数据。The data types can be classified in various ways. In the embodiment of the present application, the data types to which the motion data belongs are divided into the following four types: motion control data types, real-time motion data types, pan-motion data types, and notification data types. Table 1 lists some of the motion data corresponding to these four data types.
其中,运动控制数据指用户改变运动进程的控制指令数据,包括开始、暂停、继续、结束等指令数据。The motion control data refers to the control instruction data for the user to change the motion process, including instruction data such as start, pause, resume, and end.
运动实时数据指反应用户的实时运动情况的数据,包括速度、距离、心率、步频、跑姿等数据。The real-time exercise data refers to the data that reflects the real-time exercise of the user, including data such as speed, distance, heart rate, cadence, and running posture.
泛运动数据指和运动过程相关的一般数据,包括中高强度,步数统计、热量统计等数据。Pan-sport data refers to general data related to the exercise process, including medium and high intensity, step count statistics, calorie statistics and other data.
通知数据指和运动过程无直接关系的其他数据,包括消息通知、闹钟提醒、天气预警等数据。Notification data refers to other data not directly related to the exercise process, including data such as message notifications, alarm clock reminders, and weather warnings.
表1Table 1
Figure PCTCN2021118397-appb-000001
Figure PCTCN2021118397-appb-000001
在一些实施例中,确定第一运动数据所属的第一数据类型的方式可以包括:如表2所示,在电子设备中,存储了一张记录运动数据和数据类型对应关系的表,表中一列记录了各种运动数据,另一列记录了此运动数据所属的数据类型。当电子设备获取某个运动数据,就查询此表,从而确定此运动数据所属的数据类型。在另一些实施例中,还可以通过其他方式确定运动数据所属的数据类型,本申请对此不做限制。In some embodiments, the method of determining the first data type to which the first motion data belongs may include: as shown in Table 2, in the electronic device, a table recording the correspondence between the motion data and the data type is stored, and in the table One column records various sports data, and the other column records the data type to which this sports data belongs. When the electronic device acquires a certain motion data, it queries the table to determine the data type to which the motion data belongs. In other embodiments, the data type to which the motion data belongs may also be determined in other manners, which is not limited in this application.
表2Table 2
运动数据sports data 数据类型type of data
运动数据1Sports data 1 数据类型1 data type 1
开始Start 运动控制数据motion control data
步数统计Step count 泛运动数据Pan motion data
S222、判断第一数据类型是否为运动控制数据类型。S222. Determine whether the first data type is a motion control data type.
由上述步骤S221可以得到第一运动数据所属的第一数据类型,接下来判断第一数据类型是否为运动控制数据类型。The first data type to which the first motion data belongs can be obtained from the above step S221, and then it is determined whether the first data type is a motion control data type.
若是,执行步骤S226,将第一运动数据的第一处理优先级确定为M个优先级中的最高优先级,其中,M为大于或等于1的正数。If so, step S226 is executed to determine the first processing priority of the first motion data as the highest priority among the M priorities, where M is a positive number greater than or equal to 1.
若否,执行下一个步骤S223,根据第一运动数据所属的第一数据类型,确定第一优先级系数。If not, the next step S223 is executed, and the first priority coefficient is determined according to the first data type to which the first motion data belongs.
S223、根据第一运动数据所属的第一数据类型,确定第一优先级系数。S223. Determine a first priority coefficient according to the first data type to which the first motion data belongs.
第一优先级系数可以用于确定第一优先级值,而根据第一优先级值可以确定第一运动数据的第一处理优先级。The first priority coefficient may be used to determine a first priority value from which a first processing priority of the first motion data may be determined.
在一些实施例中,根据数据类型可以给运动数据划分初步的优先级,而根据初步的优先级可以确定第一优先级系数。示例性的,第一数据类型属于运动实时数据类型,第一运动数据初步的优先级可以定为高优先级,高优先级对应的第一优先级系数为a 1;第一数据类型属于泛运动数据类型,第一运动数据初步的优先级可以定为中优先级,中优先级对应的第一优先级系数为a 2;第一数据类型属于通知数据类型,第一运动数据初步的优先级可以定为低优先级,低优先级对应的第一优先级系数为a 3In some embodiments, the motion data may be given a preliminary priority according to the data type, and the first priority coefficient may be determined according to the preliminary priority. Exemplarily, the first data type belongs to the sports real-time data type, the preliminary priority of the first sports data can be set as high priority, and the first priority coefficient corresponding to the high priority is a 1 ; the first data type belongs to pan-sports. Data type, the preliminary priority of the first motion data can be set as a medium priority, and the first priority coefficient corresponding to the medium priority is a 2 ; the first data type belongs to the notification data type, and the preliminary priority of the first motion data can be Set as a low priority, and the first priority coefficient corresponding to the low priority is a 3 ;
a 1、a 2、a 3均为大于0且小于1的实数,并且,a 1>a 2>a 3a 1 , a 2 , and a 3 are all real numbers greater than 0 and less than 1, and a 1 >a 2 >a 3 .
S224、判断第一优先级系数是否大于第三阈值。S224. Determine whether the first priority coefficient is greater than the third threshold.
由上述步骤S223可以得到第一运动数据对应的第一优先级系数,然后判断第一优先级系数是否大于阈值。此第三阈值可以是预设的阈值。The first priority coefficient corresponding to the first motion data can be obtained from the above step S223, and then it is determined whether the first priority coefficient is greater than the threshold. The third threshold may be a preset threshold.
若否,执行步骤S226,将第一优先级系数确定为第一运动数据的第一优先级值,根据第一优先级值确定其第一处理优先级。If not, step S226 is executed, the first priority coefficient is determined as the first priority value of the first motion data, and the first processing priority thereof is determined according to the first priority value.
若是,执行下一个步骤S225,获取用于调整第一优先级系数的大小的调整系数,根据第一优先级系数和调整系数确定第一运动数据的第一优先级值,从而确定其第一处理优先级。If so, go to the next step S225 to obtain an adjustment coefficient for adjusting the size of the first priority coefficient, and determine the first priority value of the first motion data according to the first priority coefficient and the adjustment coefficient, thereby determining its first processing priority.
示例性的,第三阈值可以为N,且a 1>N>a 2。因此,若第一运动数据属于泛运动数据类型,初步的优先级为中优先级,其第一优先级系数为a 2,小于第三阈值N,所以第一优先级值为a 2;若第一运动数据属于通知数据类型,初步的优先级为低优先级,其第一优先级系数为a 3,小于第三阈值N,所以第一优先级值为a 3Exemplarily, the third threshold may be N, and a 1 >N>a 2 . Therefore, if the first motion data belongs to the pan-motion data type, the initial priority is medium priority, and its first priority coefficient is a 2 , which is smaller than the third threshold N, so the first priority value is a 2 ; if the first priority is a 2 ; A motion data belongs to the notification data type, the initial priority is low priority, and its first priority coefficient is a 3 , which is smaller than the third threshold N, so the first priority value is a 3 .
若第一运动数据属于运动实时数据类型,初步的优先级为高优先级,其第一优先级系数为a 1,大于第三阈值N,所以需要获取调整系数,根据第一优先级系数和调整系数确定第一优先级值。即在初步的优先级为高优先级的情况下,对初步的优先级进行调整。 If the first motion data belongs to the motion real-time data type, the initial priority is high priority, and its first priority coefficient is a 1 , which is greater than the third threshold N, so the adjustment coefficient needs to be obtained. According to the first priority coefficient and the adjustment The coefficient determines the first priority value. That is, when the preliminary priority is a high priority, the preliminary priority is adjusted.
S225、获取用于调整第一优先级系数的大小的调整系数。S225. Obtain an adjustment coefficient for adjusting the size of the first priority coefficient.
在一些实施例中,调整系数包括第二优先级系数和/或第三优先级系数,其中,第二优先级系数是根据与第一运动数据相关的第一运动类型确定的,第三优先级系数是根据第一运动数据在目标时段内的变化率确定的,第二优先级系数和第三优先级系数均大于1。In some embodiments, the adjustment factor includes a second priority factor and/or a third priority factor, wherein the second priority factor is determined according to the first movement type associated with the first movement data, the third priority factor The coefficient is determined according to the rate of change of the first motion data within the target period, and both the second priority coefficient and the third priority coefficient are greater than 1.
下面介绍根据与第一运动数据相关的第一运动类型确定第二优先级系数的过程。The following describes the process of determining the second priority coefficient according to the first motion type related to the first motion data.
第一运动类型和第一运动数据相关。电子设备根据第一运动数据可以确定与此第一运动数据相关的第一运动类型。第一运动类型可以有多种确定方式,例如,可以通过下面这种方式确定:用户运动时选择了某种运动类型,获得第一运动数据能相应获取到此运动类型,那么此运动类型可以确定为第一运动类型。本申请对此不做限制。The first motion type is associated with the first motion data. The electronic device may determine, according to the first motion data, a first motion type related to the first motion data. The first exercise type can be determined in a variety of ways. For example, it can be determined in the following way: the user selects a certain exercise type when exercising, and the first exercise data can be obtained correspondingly to obtain the exercise type, then the exercise type can be determined. For the first movement type. This application does not limit this.
在本申请实施例中,运动类型可以包括但不限于以下几种类型:室内跑步、室外跑步、越野跑、骑行、登山、游泳、踢足球等等。In this embodiment of the present application, the sports types may include, but are not limited to, the following types: indoor running, outdoor running, cross-country running, cycling, mountain climbing, swimming, soccer, and the like.
同一种运动数据在不同运动类型所指示的运动中的重要性可能不一样。比如,在户外跑步时速度比较重要,而在登山、越野跑时海拔、爬升速度等数据更加重要。因此可以根据运动类型对运动数据的优先级进行调整。The importance of the same motion data may be different in the motions indicated by different motion types. For example, speed is more important when running outdoors, but data such as altitude and climbing speed are more important when mountaineering and trail running. Therefore, the priority of motion data can be adjusted according to the type of motion.
表3列出了运动数据在不同运动类型中的重要性,此重要性实际上也体现了运动数据在该运动类型所指示运动中被实时处理的优先级程度。Table 3 lists the importance of motion data in different motion types, and the importance actually also reflects the priority level of the motion data being processed in real time in the motion indicated by the motion type.
对于一个运动数据,在不同类型的运动中该运动数据有不同的优先级,因此不同运动类型对应的优先级系数的大小不同。根据第一运动类型可以给第一运动数据设定第二优先级系数。第二优先级系数是用于调整第一优先级系数的一种调整系数。For a piece of motion data, the motion data has different priorities in different types of motion, so the magnitudes of the priority coefficients corresponding to different motion types are different. A second priority factor may be set for the first motion data according to the first motion type. The second priority coefficient is an adjustment coefficient used to adjust the first priority coefficient.
示例性的,在对应的第一运动类型所指示的运动中,若第一运动数据为高优先级,第二优先级系数设为b 1;若第一运动数据为中优先级,第二优先级系数为b 2;若第一运动数据为低优先级,第二优先级系数为b 3;b 1、b 2、b 3均为大于1且小于10的实数,并且,b 1>b 2>b 3Exemplarily, in the motion indicated by the corresponding first motion type, if the first motion data is of high priority, the second priority coefficient is set to b 1 ; if the first motion data is of medium priority, the second priority is The level coefficient is b 2 ; if the first motion data is of low priority, the second priority coefficient is b 3 ; b 1 , b 2 , and b 3 are all real numbers greater than 1 and less than 10, and b 1 >b 2 >b 3 .
例如,在室内跑步时,跑姿较重要,为高优先级数据,所以第二优先级系数为b 1;在越野跑时,跑姿重要性一般,为中优先级数据,所以第二优先级系数为b 2;在骑行时,跑姿重要性较低,为低优先级数据,所以第二优先级系数为b 3For example, when running indoors, the running posture is more important and is high-priority data, so the second priority coefficient is b 1 ; in cross-country running, the running posture is generally important and is medium-priority data, so the second priority The coefficient is b 2 ; when riding, the running posture is less important and is low-priority data, so the second priority coefficient is b 3 .
表3table 3
   速度speed 爬升速度climb speed 心率heart rate 距离distance 跑姿running posture
户外跑步outdoor running high middle high high high
室内跑步indoor running high middle high high high
越野跑Trail running middle high high high middle
骑行ride high middle high high Low
下面介绍根据第一运动数据在目标时段内的变化率确定第三优先级系数的过程。The following describes the process of determining the third priority coefficient according to the rate of change of the first motion data within the target period.
运动数据在目标时段内的变化率反应了用户的实时运动状态。变化率大可以说明对应的运动数据变化快,如果不及时处理可能影响数据的准确性。因此可以通过变化率来调整运动数据的优先级。在一些实施例中,可以计算第一运动数据的在5秒时间内的变化率,即5s变化率。5s变化率可以定义为:The rate of change of the exercise data within the target period reflects the real-time exercise state of the user. A large change rate can indicate that the corresponding motion data changes rapidly, and the accuracy of the data may be affected if it is not processed in time. Therefore, the priority of motion data can be adjusted by the rate of change. In some embodiments, a rate of change of the first motion data within 5 seconds, ie, a rate of change of 5 s, may be calculated. The 5s rate of change can be defined as:
Figure PCTCN2021118397-appb-000002
Figure PCTCN2021118397-appb-000002
其中,v now表示当前的数据值,v before表示5s之前的数据值。5s变化率为5秒时间内运动数据的变化量和5秒前的运动数据值的比值,表示运动数据在5秒内的变化快慢程度。 Among them, v now represents the current data value, and v before represents the data value before 5s. The 5s change rate is the ratio of the amount of change in exercise data within 5 seconds to the value of exercise data 5 seconds ago, indicating the speed of change in exercise data within 5 seconds.
在一些实施例中,根据第一运动数据的5s变化率,可以确定第三优先级系数。示例性的,第一运动数据可以为距离L,L now表示当前的运动总距离,L before表示5s之前的运动总距离,距离L的5s变化率为:
Figure PCTCN2021118397-appb-000003
第三优先级系数是用于调整第一优先级系数的一种调整系数。具体的,将5s变化率的值与设定的第四阈值比较,若5s变化率>第四阈值,第三优先级系数设为c 1;若5s变化率≤第四阈值,第三优先级系数设为c 2。c 1,c 2均为大于1且小于10的实数,并且c 1>c 2
In some embodiments, the third priority factor may be determined according to the 5s rate of change of the first motion data. Exemplarily, the first movement data may be a distance L, L now represents the current total movement distance, L before represents the total movement distance before 5s, and the 5s change rate of the distance L is:
Figure PCTCN2021118397-appb-000003
The third priority coefficient is an adjustment coefficient for adjusting the first priority coefficient. Specifically, the value of the 5s change rate is compared with the set fourth threshold. If the 5s change rate > the fourth threshold, the third priority coefficient is set to c 1 ; if the 5s change rate ≤ the fourth threshold, the third priority The coefficient is set to c 2 . Both c 1 , c 2 are real numbers greater than 1 and less than 10, and c 1 >c 2 .
结合上述内容可知,调整系数可以包括第二优先级系数和/或第三优先级系数,而根据第一优先级系数和调整系数可以确定第一运动数据的第一优先级值。从而确定第一运动数据的第一处理优先级。In combination with the above content, the adjustment coefficient may include the second priority coefficient and/or the third priority coefficient, and the first priority value of the first motion data may be determined according to the first priority coefficient and the adjustment coefficient. Thereby, the first processing priority of the first motion data is determined.
因此,确定调整系数和第一优先级值的过程可以包括以下三种方式。Therefore, the process of determining the adjustment coefficient and the first priority value may include the following three ways.
(1)第一种方式,调整系数包括第二优先级系数,根据与第一运动数据相关的第一运动类型确定。相应的,第一优先级值根据第一优先级系数和第二优先级系数确定。示例性的,第一运动数据属于运动实时数据,第一优先级系数为a 1,第二优先级系数为b 1、b 2或b 3。第一优先值K可以为第一优先级系数和第二优先级系数的乘积,即:K=a 1*b y,y为1、2或3。 (1) In the first manner, the adjustment coefficient includes a second priority coefficient, which is determined according to the first motion type related to the first motion data. Correspondingly, the first priority value is determined according to the first priority coefficient and the second priority coefficient. Exemplarily, the first motion data belongs to motion real-time data, the first priority coefficient is a 1 , and the second priority coefficient is b 1 , b 2 or b 3 . The first priority value K may be the product of the first priority coefficient and the second priority coefficient, ie: K=a 1 *by , and y is 1, 2 or 3.
(2)第二种方式,调整系数包括第三优先级系数,根据第一运动数据在目标时段内的变化率确定。相应的,第一优先级值根据第一优先级系数和第三优先级系数确定。示例性的,第一运动数据属于运动实时数据,第一优先级系数为a 1,第三优先级系数为c 1或c 2。第一优先值K可以为第一优先级系数和第三优先级系数的乘积,即:K=a 1*c z,z为1或2。 (2) In the second manner, the adjustment coefficient includes a third priority coefficient, which is determined according to the rate of change of the first motion data within the target period. Correspondingly, the first priority value is determined according to the first priority coefficient and the third priority coefficient. Exemplarily, the first motion data belongs to motion real-time data, the first priority coefficient is a 1 , and the third priority coefficient is c 1 or c 2 . The first priority value K may be the product of the first priority coefficient and the third priority coefficient, ie: K=a 1 *c z , where z is 1 or 2.
(3)第三种方式,调整系数包括第二优先级系数和第三优先级系数,根据与第一运动数据相关的运动类型,以及第一运动数据在目标时段内的变化率确定。相应的,第一优先级值根据第一优先级系数、第二优先级系数和第三优先级系数确定。示例性的,第一运动数据属于运动实时数据,第一优先级系数为a 1,第二优先级系数为b 1、b 2或b 3,第三优先级系数为c 1或c 2。第一优先值K可以为第一优先级系数、第二优先级系数和第三优先级系数的乘积,即:K=a 1*b y*c z,y为1、2或3,z为1或2。 (3) In a third manner, the adjustment coefficient includes a second priority coefficient and a third priority coefficient, and is determined according to the motion type related to the first motion data and the rate of change of the first motion data within the target period. Correspondingly, the first priority value is determined according to the first priority coefficient, the second priority coefficient and the third priority coefficient. Exemplarily, the first motion data belongs to motion real-time data, the first priority coefficient is a 1 , the second priority coefficient is b 1 , b 2 or b 3 , and the third priority coefficient is c 1 or c 2 . The first priority value K may be the product of the first priority coefficient, the second priority coefficient and the third priority coefficient, namely: K=a 1 *by *c z , y is 1, 2 or 3, and z is 1 or 2.
可选的,在另一些实施例中,不限于本申请实施例中提到的三种优先级系数,根据第一运动数据还可以得到更多的优先级系数,利用这些优先级系数中的一项或多项可以确定第一优先级值。而第一优先级值可以是一项或多项优先级系数的乘积结果,也可以是加权乘积、相加或其他运算的结果,本申请对此不做限制。Optionally, in other embodiments, not limited to the three priority coefficients mentioned in the embodiments of the present application, more priority coefficients may be obtained according to the first motion data, and one of these priority coefficients may be used. The item or items may determine the first priority value. The first priority value may be the product of one or more priority coefficients, or may be the result of weighted product, addition, or other operations, which is not limited in this application.
S226、确定第一运动数据的第一处理优先级。S226. Determine the first processing priority of the first motion data.
根据上述步骤,可以确定第一运动数据的第一处理优先级。According to the above steps, the first processing priority of the first motion data can be determined.
具体的,若第一运动数据的数据类型是运动控制数据类型,确定其第一处理优先级为M个优先级中的最高优先级。Specifically, if the data type of the first motion data is a motion control data type, the first processing priority is determined to be the highest priority among the M priorities.
若第一运动数据的数据类型不是运动控制数据类型,可以根据第一运动数据的第一优先级值来确定第一处理优先级。其中,第一优先级值可以根据第一运动数据的第一优先级系数和/或调整系数确定。If the data type of the first motion data is not the motion control data type, the first processing priority may be determined according to the first priority value of the first motion data. The first priority value may be determined according to the first priority coefficient and/or adjustment coefficient of the first motion data.
确定第一优先级值的具体过程可以参照上述步骤S223~S225。For the specific process of determining the first priority value, reference may be made to the above steps S223-S225.
在一些实施例中,根据第一优先级值确定其第一处理优先级的过程具体包括:确定该第一优先级值所在的第一优先级值范围,该第一优先级值范围是M个优先级值范围中的一个,该M个优先级值范围中的每个优先级值范围对应M个优先级中的一个优先级;将该第一优先级值范围对应的优先级确定为该第一运动数据的第一处理优先级。In some embodiments, the process of determining its first processing priority according to the first priority value specifically includes: determining a first priority value range in which the first priority value is located, where the first priority value range is M One of the priority value ranges, each priority value range in the M priority value ranges corresponds to one priority in the M priority value ranges; the priority corresponding to the first priority value range is determined as the first priority value range. A first processing priority for motion data.
示例性的,M可以为3,那么相应的有3个优先级范围,确定第一运动数据的第一处理优先级的具体过程包括:Exemplarily, M may be 3, then there are correspondingly 3 priority ranges, and the specific process of determining the first processing priority of the first motion data includes:
若0<K<A1,第一运动数据的第一处理优先级为3个优先级中的最低优先级;If 0<K<A1, the first processing priority of the first motion data is the lowest priority among the three priorities;
若A1≤K<A2,第一运动数据的第一处理优先级为3个优先级中的中间优先级;If A1≤K<A2, the first processing priority of the first motion data is the middle priority among the three priorities;
若K≥A2,第一运动数据的第一处理优先级为3个优先级中的最高优先级;If K≥A2, the first processing priority of the first motion data is the highest priority among the three priorities;
其中,A1<A2。根据上述方式,可以比较清楚地确定第一运动数据的第一处理优先级。Among them, A1<A2. According to the above manner, the first processing priority of the first motion data can be determined relatively clearly.
S230、获取与第一处理优先级对应的第一权重比例。S230. Obtain a first weight ratio corresponding to the first processing priority.
确定了第一运动数据的第一处理优先级后,可以根据第一处理优先级获取相应的第一权重比例。其中,第一权重比例的数值可以是预先设定的,本申请不对此做限制。After the first processing priority of the first motion data is determined, the corresponding first weight ratio can be obtained according to the first processing priority. The value of the first weight ratio may be preset, which is not limited in this application.
在一些实施例中,第一运动数据的第一权重比例的大小和第一处理优先级的顺序对应。第一运动数据的第一处理优先级越高,对应的权重比例越大。具体的,若第一运动数据的第一处理优先级是M个优先级中的最高优先级,第一权重比例是M个权重比例中的最大权重比例;若第一运动数据的第一处理优先级是M个优先级中的最低优先级,第一权重比例是M个权重比例中的最小权重比例。In some embodiments, the magnitude of the first weight ratio of the first motion data corresponds to the order of the first processing priorities. The higher the first processing priority of the first motion data, the higher the corresponding weight ratio. Specifically, if the first processing priority of the first motion data is the highest priority among the M priorities, the first weight ratio is the largest weight ratio among the M weight ratios; if the first processing priority of the first motion data level is the lowest priority among the M priorities, and the first weight ratio is the smallest weight ratio among the M weight ratios.
示例性的,优先级总数M可以为3,那么对应有3个权重比例,预设的权重比例可以分别为0.6、0.3和0.1。具体地,若第一运动数据的第一处理优先级为高优先级,其对应的第一权重比例可以为0.6;若第一运动数据的第一处理优先级为中优先级,其对应的第一权重比例可以为0.3;若第一运动数据的第一处理优先级为低优先级,其对应的第一权重比例可以为0.1。Exemplarily, the total number of priorities M may be 3, then there are correspondingly 3 weight ratios, and the preset weight ratios may be 0.6, 0.3, and 0.1, respectively. Specifically, if the first processing priority of the first motion data is a high priority, the corresponding first weight ratio may be 0.6; if the first processing priority of the first motion data is a medium priority, the corresponding first weight ratio may be 0.6. A weight ratio may be 0.3; if the first processing priority of the first motion data is a low priority, the corresponding first weight ratio may be 0.1.
S240、根据第一权重比例,分配用于处理第一运动数据的第一资源。S240. Allocate a first resource for processing the first motion data according to the first weight ratio.
其中,分配的第一资源可以是多种不同类型的资源中的一种,例如,可以是如图1所示的智能设备向终端设备传输数据时的传输资源,又例如,可以是终端设备内部处理数据的资源,比如处理器资源,存储资源等等。The allocated first resource may be one of a variety of different types of resources, for example, it may be a transmission resource when the smart device transmits data to the terminal device as shown in FIG. 1 , or, for example, may be the internal Resources for processing data, such as processor resources, storage resources, and so on.
在一些实施例中,第一资源是智能设备向终端设备传输数据时的传输资源。在这种情况下,利用本申请实施例所提供的数据处理方法,可以根据第一运动数据的第一处理优先级对应的第一权重比例来分配传输资源。具体的,第一运动数据的第一处理优先级越高,得到的传输资源越多;第一运动数据的第一处理优先级越低,得到的传输资源越少。这样,高优先级的数据可以得到更多的传输资源,保证了对高处理优先级运动数据的传输实时性。示例性的,优先级总数M可以为3,那么对应的有3个权重比例,预设的权重比例分别为0.6、0.3和0.1。若第一运动数据的第一处理优先级为高优先级,第一资源占可用传输资源总量的60%;若第一运动数据的第一处理优先级为中优先级,第一资源占可用传输资源总量的30%;若第一运动数据的第一处理优先级为低优先级,第一资源占可用传输资源总量的10%。In some embodiments, the first resource is a transmission resource when the smart device transmits data to the terminal device. In this case, by using the data processing method provided by the embodiment of the present application, the transmission resources can be allocated according to the first weight ratio corresponding to the first processing priority of the first motion data. Specifically, the higher the first processing priority of the first motion data is, the more transmission resources are obtained; the lower the first processing priority of the first motion data is, the fewer transmission resources are obtained. In this way, high-priority data can obtain more transmission resources, which ensures the real-time transmission of high-priority motion data. Exemplarily, the total number M of priorities may be 3, then there are corresponding 3 weight ratios, and the preset weight ratios are 0.6, 0.3, and 0.1, respectively. If the first processing priority of the first motion data is a high priority, the first resource accounts for 60% of the total available transmission resources; if the first processing priority of the first motion data is a medium priority, the first resource accounts for 60% of the available transmission resources. 30% of the total amount of transmission resources; if the first processing priority of the first motion data is a low priority, the first resource accounts for 10% of the total amount of available transmission resources.
在另一些实施例中,第一资源是终端设备内部的处理资源。在这种情况下,利用本申请实施例所提供的数据处理方法,可以根据第一运动数据的第一处理优先级对应的第一权重比例来分配处理资源。具体的,第一运动数据的第一处理优先级越高,得到的处理资源越多;第一运动数据的第一处理优先级越低,得到的处理资源越少。那么高优先级的运动数据能得到更多的处理资源,保证了对高处理优先级运动数据的处理实时性。In other embodiments, the first resource is a processing resource inside the terminal device. In this case, using the data processing method provided by the embodiment of the present application, processing resources can be allocated according to the first weight ratio corresponding to the first processing priority of the first motion data. Specifically, the higher the first processing priority of the first motion data is, the more processing resources are obtained; the lower the first processing priority of the first motion data is, the less processing resources are obtained. Then the high-priority motion data can get more processing resources, which ensures the real-time processing of the high-priority motion data.
示例性的,终端设备根据优先级为运动数据分配处理资源,那么,在终端设备的用户界面上,可以优先显示较高优先级的运动数据的处理结果,而较低优先级的运动数据的处理结果在之后显示。例如,在户外跑步场景中,用户佩戴智能手环测量数据,将心率和热量消耗的数据传输至手机客户端中,因为心率的优先级高于热量消耗的优先级,所以手机客户端优先显示绘制好的心率曲线,而热量消耗的结果在心率曲线之后显示。Exemplarily, the terminal device allocates processing resources for the motion data according to the priority, then, on the user interface of the terminal device, the processing result of the motion data with a higher priority can be displayed preferentially, while the processing result of the motion data with a lower priority can be displayed preferentially. The results are displayed later. For example, in an outdoor running scenario, the user wears a smart bracelet to measure data, and transmits the data of heart rate and calorie consumption to the mobile client. Because the priority of heart rate is higher than that of calorie consumption, the mobile client gives priority to displaying and drawing. A good heart rate curve, while the results of calorie expenditure are displayed after the heart rate curve.
按照上述步骤,为第一运动数据初步分配了第一资源。通过这样的方法,可以为待处理 的运动数据初步分配可用的处理资源。According to the above steps, the first resource is preliminarily allocated to the first motion data. In this way, available processing resources can be preliminarily allocated for motion data to be processed.
在一些实施例中,确定运动数据的优先级,按照优先级对应的权重比例初次分配资源后,若不同优先级的运动数据的实际数据量和分配的资源量不匹配,具体的,一部分优先级的运动数据的资源有剩余,而另一部分优先级的运动数据的资源不足,那么可以将剩余资源再次分给资源不足的运动数据。In some embodiments, the priority of the motion data is determined, and after the resources are initially allocated according to the weight ratio corresponding to the priority, if the actual data amount of the motion data of different priorities does not match the allocated resource amount, specifically, a part of the priority The resources of the motion data of the other part of the priority are insufficient, and the remaining resources can be allocated to the motion data with insufficient resources again.
再次分配剩余资源有不同的方式。下面介绍两种可能的分配方式:There are different ways of redistributing the remaining resources. Two possible assignments are described below:
(1)第一种可能的分配方式,按照优先级对应的权重比例来分配剩余资源。(1) The first possible allocation method is to allocate the remaining resources according to the weight ratio corresponding to the priority.
针对资源不足的运动数据,可以按照运动数据的优先级对应的权重比例来分配剩余资源,具体的,较高优先级的运动数据分配较多的剩余资源,较低优先级的运动数据分配较少的剩余资源。如果分配后还有剩余资源,而且某些运动数据的资源仍不足,可以继续按照权重比例分配,直到没有剩余资源,或者虽然有剩余资源但是所有运动数据的资源需求都已满足为止。For motion data with insufficient resources, the remaining resources can be allocated according to the weight ratio corresponding to the priority of the motion data. Specifically, motion data with a higher priority is allocated more remaining resources, and motion data with a lower priority is allocated less. remaining resources. If there are remaining resources after the allocation, and the resources of some motion data are still insufficient, you can continue to allocate according to the weight ratio until there are no remaining resources, or although there are remaining resources, all the resource requirements of the motion data have been met.
(2)第二种可能的分配方式,按照优先级的高低顺序来分配剩余资源。(2) In the second possible allocation method, the remaining resources are allocated according to the order of priority.
针对资源不足的运动数据,可以按照资源不足的运动数据的优先级的高低顺序来分配剩余资源,具体的,资源不足的运动数据中的最高优先级的运动数据先分配剩余资源,如果满足此优先级的资源需求后还有剩余资源,再分配给较低优先级的运动数据,以此类推,直到没有剩余资源,或者虽然有剩余资源但是所有运动数据的资源需求都已满足为止。For the motion data with insufficient resources, the remaining resources can be allocated in the order of the priority of the motion data with insufficient resources. Specifically, the motion data with the highest priority in the motion data with insufficient resources is allocated the remaining resources first. If this priority is satisfied There are remaining resources after the resource requirements of the first level, and then allocated to the motion data of lower priority, and so on, until there are no remaining resources, or although there are remaining resources, the resource requirements of all motion data have been satisfied.
下面可以用一个具体的例子来说明分配资源的过程。某时间段,用户产生了12kb的运动数据,其中高优先级数据总量为4kb,中优先级数据总量为4kb,低优先级数据总量为4kb,当前传输资源总量为10kb,高、中、低优先级对应的权重比例为0.6、0.3、0.1。那么,根据本申请实施例提供的数据处理方法,各个优先级的数据集的资源分配和数据传输情况如下:A specific example can be used below to illustrate the process of allocating resources. In a certain period of time, the user generates 12kb of motion data, of which the total amount of high-priority data is 4kb, the total amount of medium-priority data is 4kb, the total amount of low-priority data is 4kb, and the total amount of current transmission resources is 10kb. The weight ratios corresponding to medium and low priorities are 0.6, 0.3, and 0.1. Then, according to the data processing method provided by the embodiment of the present application, the resource allocation and data transmission of each priority data set are as follows:
(1)对于高优先级数据来说,根据60%的配比,高优先级数据有6kb的资源量,但是高优先级数据只有4kb的数据量,所以4kb的高优先级数据全部得到传输,并且有2kb的剩余资源;(1) For high-priority data, according to the 60% ratio, high-priority data has 6kb of resources, but high-priority data has only 4kb of data, so all 4kb of high-priority data is transmitted, And there are 2kb remaining resources;
(2)对于中优先级数据来说,根据30%的配比,中优先级数据有3kb的资源量,但是中优先级数据有4kb的数据量,资源不够,还需要1kb的资源。而高优先级数据有剩余资源,因此可以采用按优先级顺序再次分配剩余资源的方式,将高优先级数据的2kb剩余资源分配给中优先级数据,最后4kb的中优先级数据全部得到传输,还有1kb的剩余资源;(2) For the medium-priority data, according to the 30% ratio, the medium-priority data has a resource volume of 3kb, but the medium-priority data has a data volume of 4kb, which is not enough, and needs 1kb of resources. However, high-priority data has remaining resources, so the method of re-allocating the remaining resources in priority order can be used, and the 2kb remaining resources of the high-priority data are allocated to the medium-priority data, and the last 4kb of the medium-priority data are all transmitted. There is still 1kb of remaining resources;
(3)对于低优先级数据来说,根据10%的配比,低优先级数据有1kb的资源量,但是低优先级数据有4kb的数据量,资源不够,还需要3kb的资源。而中优先级数据有剩余资源,将中优先级数据的1kb剩余资源分配给低优先级数据,此时没有剩余资源,资源分配结束。最后有2kb的低优先级数据得到传输。(3) For low-priority data, according to the 10% ratio, the low-priority data has a resource volume of 1kb, but the low-priority data has a data volume of 4kb, and the resources are not enough, and 3kb of resources are needed. The middle-priority data has remaining resources, and the 1kb remaining resources of the middle-priority data are allocated to the low-priority data. At this time, there are no remaining resources, and the resource allocation ends. Finally, 2kb of low-priority data is transmitted.
在一些实施例中,给运动数据分配资源时可以采用轮询调度的方法,即针对每种优先级的运动数据都分配资源,并且按照运动数据的优先级对应的权重比例来分配资源,这样既可以保证不同优先级的数据在一定时间内都能都得到相应的处理,又能使高优先级的数据比低优先级的数据得到更多的资源,因而在保证所有处理优先级的运动数据都得到处理的前提下,保证了对高处理优先级运动数据的处理实时性。In some embodiments, a round-robin scheduling method may be used when allocating resources to motion data, that is, resources are allocated for each priority of motion data, and resources are allocated according to the weight ratio corresponding to the priority of the motion data, so that both It can ensure that data of different priorities can be processed correspondingly within a certain period of time, and it can also make high-priority data get more resources than low-priority data, thus ensuring that all motion data with processing priorities are processed. On the premise of being processed, the real-time processing of motion data with high processing priority is guaranteed.
由上可见,本实施例的方案中,获取待处理的第一运动数据,并确定上述第一运动数据的第一处理优先级;获取与上述第一处理优先级对应的第一权重比例;根据上述第一权重比例,分配用于处理第一运动数据的第一资源。通过对运动数据进行优先级划分,按照划分优先级后对应的权重比例来分配资源,当可用于分配的资源总量不足时,可以尽量为较高优先 级的运动数据分配较多的资源,保证较高优先级的运动数据尽快得到处理,进而提高数据处理效率。As can be seen from the above, in the solution of this embodiment, the first motion data to be processed is obtained, and the first processing priority of the first motion data is determined; the first weight ratio corresponding to the first processing priority is obtained; according to The above-mentioned first weight ratio is allocated to the first resource for processing the first motion data. By prioritizing motion data, resources are allocated according to the corresponding weight ratios after prioritization. When the total amount of resources available for allocation is insufficient, more resources can be allocated to motion data with higher priorities to ensure that Higher priority motion data is processed as soon as possible, thereby improving data processing efficiency.
下面介绍两个具体的运动场景,在这些运动场景中,智能设备通过自带的传感器测量获取运动数据,然后传输给终端设备,终端设备接收后对这些运动数据进行处理。智能设备和终端设备都可以利用本申请实施例提供的数据处理方法。Two specific sports scenarios are described below. In these sports scenarios, the smart device obtains sports data through measurement by its own sensor, and then transmits it to the terminal device, and the terminal device processes the sports data after receiving. Both the smart device and the terminal device can use the data processing method provided by the embodiments of the present application.
运动场景一:如图3A所示,用户在户外跑步,手上佩戴手表/手环来测量心率、速度等运动数据,鞋上佩戴跑姿配件来测量跑姿数据,跑姿数据可以具体包括步频、步幅、触地时间、着地方式、着地冲击、外翻幅度、摆动角度等运动数据,并且利用手机上的app显示运动数据的分析结果,手表/手环、跑姿配件通过蓝牙将运动数据传输至手机。在此场景中,智能设备包括手表/手环、跑姿配件,终端设备包括手机。Sports scene 1: As shown in Figure 3A, the user is running outdoors, wearing a watch/bracelet on his hand to measure heart rate, speed and other exercise data, and wearing a running posture accessory on his shoe to measure running posture data. The running posture data can specifically include steps. Frequency, stride, touchdown time, landing method, landing impact, valgus amplitude, swing angle and other motion data, and use the app on the mobile phone to display the analysis results of the motion data. Data is transferred to the mobile phone. In this scenario, smart devices include watches/bands, running accessories, and terminal devices include mobile phones.
运动场景二:如图3B所示,用户可以在室内的跑步机上跑步,手上佩戴手表/手环来测量心率、速度等运动数据,鞋上佩戴跑姿配件来测量跑姿数据,跑步机可以测量跑姿以及其他运动数据,并且利用手机上的app显示运动数据的处理结果,手表/手环、跑姿配件、跑步机通过蓝牙将运动数据传输至手机。在此场景中,智能设备包括手表/手环、跑姿配件和跑步机,终端设备包括手机。Exercise scene 2: As shown in Figure 3B, the user can run on an indoor treadmill, wear a watch/band on his hand to measure heart rate, speed and other exercise data, and wear a running posture accessory on his shoe to measure running posture data. The treadmill can Measure running posture and other sports data, and use the app on the mobile phone to display the processing results of sports data. Watches/bands, running posture accessories, and treadmills transmit sports data to mobile phones through Bluetooth. In this scenario, smart devices include watches/bands, running accessories and treadmills, and terminal devices include mobile phones.
可选的,智能设备可以对自身测量获取的运动数据进行处理并显示,或者,终端设备可以通过自带的传感器测量运动数据并处理后显示结果,或者,终端设备可以接收智能设备传输的运动数据并进行处理,然后将处理结果回传并显示在智能设备上。不限于这些智能设备和终端设备传输或处理数据的场景,都可以采用本申请实施例提供的数据处理方法,本申请对此不作限制。Optionally, the smart device can process and display the motion data obtained by its own measurement, or the terminal device can measure the motion data through its own sensor and display the result after processing, or the terminal device can receive the motion data transmitted by the smart device. And process it, and then send the processing result back and display it on the smart device. The data processing methods provided in the embodiments of the present application can be used without limitation to the scenarios in which the smart devices and terminal devices transmit or process data, which is not limited in the present application.
下面分别介绍在如图3B所示的运动场景下,不利用本申请实施例提供的数据处理方法和利用本申请实施例提供的数据处理方法的过程。示例性的,智能设备为手表,终端设备为手机。In the motion scene shown in FIG. 3B , the process of not using the data processing method provided by the embodiment of the present application and the process of using the data processing method provided by the embodiment of the present application are respectively described below. Exemplarily, the smart device is a watch, and the terminal device is a mobile phone.
当智能设备和终端设备都不利用本申请实施例提供的数据处理方法时,即按照现有的方法传输和处理数据,如果数据量太大或者网络状态不稳定,可能会出现数据堵塞的情况,产生较大的时延。When neither the smart device nor the terminal device utilizes the data processing method provided by the embodiment of the present application, that is, data is transmitted and processed according to the existing method, if the amount of data is too large or the network state is unstable, data congestion may occur, produce a large delay.
具体的,如图4所示,一方面,手表获取各种类型(包括运动控制数据、运动实时数据、通知数据等)的运动数据后,不按优先级区分运动数据,运动数据按先后顺序进入队列等待传输。如果重要的运动数据(如运动控制数据)排在队列较后位置,那么此运动数据可能需要较长时间才能传输完成;另一方面,手机接收运动数据后,数据进入同一个队列中等待手机依次处理。如果重要的数据排在队列较后位置,那么此运动数据可能要等待较长时间,才能被手机处理。综上所述,在传输和处理过程中均可能产生较大的时延,影响数据的实时性和准确性。Specifically, as shown in Figure 4, on the one hand, after the watch acquires various types of motion data (including motion control data, motion real-time data, notification data, etc.) Queue waiting for transmission. If important motion data (such as motion control data) is at the back of the queue, it may take a long time for the motion data to be transmitted; on the other hand, after the mobile phone receives the motion data, the data enters the same queue and waits for the mobile phone in turn deal with. If important data is at the bottom of the queue, it may take a long time for the motion data to be processed by the phone. To sum up, a large delay may occur during transmission and processing, which affects the real-time and accuracy of data.
而利用本申请实施例提供的数据处理方法,则解决了对高优先级的实时运动数据处理不及时的问题,保证了对高处理优先级运动数据的处理实时性。However, by using the data processing method provided by the embodiments of the present application, the problem of untimely processing of high-priority real-time motion data is solved, and the real-time processing of high-priority motion data is ensured.
具体的,如图5所示,一方面,手表为获取到的运动数据设置优先级,设置优先级的方式可以参照步骤S221~S226的内容,然后根据优先级对应的权重比例分配传输资源,将运动数据通过蓝牙传输至手机APP,这样高优先级的运动数据可以得到更多的传输资源,保证高优先级数据能尽快传输完成。另一方面,手机接收运动数据后,根据传输前已经确定的优先级和权重比例,可以分配内部处理资源,这样高优先级的运动数据可以得到更多的处理资源, 保证高优先级数据能尽快处理完成。Specifically, as shown in FIG. 5 , on the one hand, the watch sets the priority for the acquired sports data. The method of setting the priority can refer to the content of steps S221 to S226, and then allocate the transmission resources according to the weight ratio corresponding to the priority, The motion data is transmitted to the mobile APP through Bluetooth, so that the high-priority motion data can get more transmission resources and ensure that the high-priority data can be transmitted as soon as possible. On the other hand, after the mobile phone receives the motion data, internal processing resources can be allocated according to the priority and weight ratio that have been determined before transmission, so that the high-priority motion data can get more processing resources and ensure that the high-priority data can be processed as soon as possible. Processing is complete.
下面可以通过一个具体的例子,介绍手机接收运动数据并处理的过程。示例性的,如图6所示,传输至手机的运动数据按照传输前已经设置好的优先级,进入不同的队列等待处理,而手机采用轮询调度的方式,按照优先级对应的权重比例为不同队列的运动数据分配处理资源。队列1中的数据的处理优先级为高优先级,权重比例为0.6,可以获取60%的处理资源,队列2中的数据的处理优先级为中优先级,权重比例为0.3,可以获取30%的处理资源,队列3中的数据的处理优先级为低优先级,权重比例为0.1,可以获取10%的处理资源。通过图6可知,实际上中优先级和低优先级的运动数据的实际数据量都大于分配的资源量,而高优先级的运动数据的实际数据量恰好等于分配的资源量,没有剩余资源,因此能在此次过程中处理完成;而中优先级和低优先级的运动数据都未处理完。但是在这个过程中,所有优先级的数据都得到了一定的处理资源,因此能够保证不同优先级的运动数据在一定时间内都能得到处理。经过处理后,手机APP能够显示运动数据的处理结果,包括但不限于以下一项或多项:运动数据的测量/统计结果、用户运动状态、相关图表、个性化分析或运动建议等。高优先级的运动数据的处理结果可以优先显示在手机APP上。A specific example can be used below to introduce the process of receiving and processing motion data by a mobile phone. Exemplarily, as shown in Figure 6, the motion data transmitted to the mobile phone enters different queues to wait for processing according to the priority that has been set before transmission, while the mobile phone adopts the round-robin scheduling method, and the weight ratio corresponding to the priority is: The motion data of the different queues allocate processing resources. The processing priority of the data in queue 1 is high priority, the weight ratio is 0.6, and 60% of the processing resources can be obtained; the processing priority of the data in queue 2 is medium priority, the weight ratio is 0.3, and 30% can be obtained , the processing priority of the data in queue 3 is low priority, the weight ratio is 0.1, and 10% of the processing resources can be obtained. As can be seen from Figure 6, in fact, the actual data amount of the motion data of the medium priority and the low priority is greater than the allocated resource amount, while the actual data amount of the high priority motion data is exactly equal to the allocated resource amount, and there are no remaining resources. Therefore, the processing can be completed in this process; while the motion data of medium and low priority are not processed. However, in this process, all priority data are given certain processing resources, so it can be ensured that motion data of different priorities can be processed within a certain period of time. After processing, the mobile APP can display the processing results of exercise data, including but not limited to one or more of the following: measurement/statistical results of exercise data, user exercise status, related charts, personalized analysis or exercise suggestions, etc. The processing results of high-priority motion data can be displayed on the mobile APP first.
参见图7,本申请实施例提供的一种电子设备700,可包括:Referring to FIG. 7 , an electronic device 700 provided by an embodiment of the present application may include:
获取单元701,用于获取待处理的第一运动数据。The acquiring unit 701 is configured to acquire the first motion data to be processed.
划分单元702,用于确定第一运动数据的第一处理优先级。A dividing unit 702, configured to determine a first processing priority of the first motion data.
确定单元703,用于获取与第一处理优先级对应的第一权重比例。The determining unit 703 is configured to acquire a first weight ratio corresponding to the first processing priority.
分配处理单元704,用于根据第一权重,分配用于处理第一运动数据的第一资源。The allocation processing unit 704 is configured to allocate a first resource for processing the first motion data according to the first weight.
所述电子设备还包括:The electronic device also includes:
开启单元705,用于在当前待传输的运动数据的数据量大于第一阈值,待传输的运动数据包括第一运动数据;或者,当前网络状态的稳定程度小于第二阈值时,开启功能开关使得电子设备使用本申请实施例提供的数据处理方法,此功能开关未开启前电子设备不使用本申请实施例提供的数据处理方法。The opening unit 705 is used to turn on the function switch when the current data volume of the motion data to be transmitted is greater than the first threshold, and the motion data to be transmitted includes the first motion data; or, when the stability of the current network state is less than the second threshold The electronic device uses the data processing method provided by the embodiment of the present application, and the electronic device does not use the data processing method provided by the embodiment of the present application before the function switch is turned on.
可选的,在本申请的一些可能的实施方式中,待处理的第一运动数据是待传输的第一运动数据,分配处理单元704可以用于分配传输第一运动数据的第一资源。Optionally, in some possible implementation manners of the present application, the first motion data to be processed is the first motion data to be transmitted, and the allocation processing unit 704 may be configured to allocate a first resource for transmitting the first motion data.
可选的,在本申请的一些可能的实施方式中,划分单元702用于:确定第一运动数据所属的第一数据类型,第一数据类型用于表示第一运动数据的属性;Optionally, in some possible implementation manners of the present application, the dividing unit 702 is configured to: determine a first data type to which the first motion data belongs, and the first data type is used to represent an attribute of the first motion data;
根据第一数据类型确定第一运动数据的第一处理优先级。A first processing priority of the first motion data is determined according to the first data type.
其中,第一数据类型包括运动控制数据类型、运动实时数据类型、泛运动数据类型或通知数据类型中的一种。The first data type includes one of a motion control data type, a real-time motion data type, a pan-motion data type, or a notification data type.
其中,根据第一数据类型确定第一运动数据的第一处理优先级,包括:Wherein, determining the first processing priority of the first motion data according to the first data type includes:
若第一数据类型是运动控制数据类型,确定第一运动数据的第一处理优先级为M个优先级中的最高优先级,M为大于或等于1的整数。If the first data type is a motion control data type, the first processing priority of the first motion data is determined to be the highest priority among M priorities, where M is an integer greater than or equal to 1.
若第一数据类型不是运动控制数据类型,获取第一运动数据对应的第一优先级值;If the first data type is not the motion control data type, obtain the first priority value corresponding to the first motion data;
确定第一优先级值所在的第一优先级值范围,第一优先级值范围是M个优先级值范围中的一个,M个优先级值范围中的每个优先级值范围对应M个优先级中的一个优先级;Determine the first priority value range where the first priority value is located, the first priority value range is one of M priority value ranges, and each priority value range in the M priority value ranges corresponds to M priority value ranges one of the priority levels;
将第一优先级值范围对应的优先级确定为第一运动数据的第一处理优先级。The priority corresponding to the first priority value range is determined as the first processing priority of the first motion data.
其中,获取第一运动数据对应的第一优先级值,包括:Wherein, obtaining the first priority value corresponding to the first motion data includes:
获取与第一数据类型对应的第一优先级系数,第一优先级系数用于表示属于第一数据类 型的数据的被实时处理的优先级程度;Obtain the first priority coefficient corresponding to the first data type, and the first priority coefficient is used to represent the real-time processing priority of the data belonging to the first data type;
根据第一优先级系数,确定第一运动数据对应的第一优先级值。A first priority value corresponding to the first motion data is determined according to the first priority coefficient.
其中,根据第一优先级系数,确定第一运动数据对应的第一优先级值,包括:Wherein, according to the first priority coefficient, the first priority value corresponding to the first motion data is determined, including:
若第一优先级系数小于或者等于第三阈值,将第一优先级系数确定为第一运动数据对应的第一优先级值;If the first priority coefficient is less than or equal to the third threshold, determining the first priority coefficient as the first priority value corresponding to the first motion data;
若第一优先级系数大于第三阈值,获取用于调整第一优先级系数的大小的调整系数,调整系数包括第二优先级系数和/或第三优先级系数,其中,第二优先级系数是根据与第一运动数据相关的第一运动类型确定的,第三优先级系数是根据第一运动数据在目标时段内的变化率确定的,第二优先级系数和第三优先级系数均大于1;If the first priority coefficient is greater than the third threshold, obtain an adjustment coefficient for adjusting the size of the first priority coefficient, where the adjustment coefficient includes the second priority coefficient and/or the third priority coefficient, wherein the second priority coefficient is determined according to the first motion type related to the first motion data, the third priority coefficient is determined according to the rate of change of the first motion data within the target period, and both the second priority coefficient and the third priority coefficient are greater than 1;
根据第一优先级系数和调整系数,确定第一运动数据对应的第一优先级值。A first priority value corresponding to the first motion data is determined according to the first priority coefficient and the adjustment coefficient.
可选的,在本申请的一些可能的实施方式中,划分单元702还用于:确定调整系数包括第二优先级系数,确定第二优先级系数的方法包括:Optionally, in some possible implementations of the present application, the dividing unit 702 is further configured to: determine that the adjustment coefficient includes a second priority coefficient, and the method for determining the second priority coefficient includes:
获取与第一运动数据相关的第一运动类型;obtaining a first movement type related to the first movement data;
根据第一运动类型和第一运动数据,确定第二优先级系数,第二优先级系数用于表示第一运动数据在第一运动类型所指示运动中被实时处理的优先级程度。According to the first motion type and the first motion data, a second priority coefficient is determined, and the second priority coefficient is used to indicate the priority level of the first motion data being processed in real time in the motion indicated by the first motion type.
可选的,在本申请的一些可能的实施方式中,划分单元702还用于:确定调整系数包括第三优先级系数,确定第三优先级系数的方法包括:Optionally, in some possible implementations of the present application, the dividing unit 702 is further configured to: determine that the adjustment coefficient includes a third priority coefficient, and the method for determining the third priority coefficient includes:
获取第一运动数据在目标时段内的变化率;obtaining the rate of change of the first motion data within the target period;
根据变化率,确定第三优先级系数。Based on the rate of change, a third priority factor is determined.
可以理解的是,本实施例的电子设备700的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the electronic device 700 in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments, which will not be repeated here.
由上可见,本实施例的方案中,电子设备700获取待处理的第一运动数据;确定第一运动数据的第一处理优先级;获取与第一处理优先级对应的第一权重比例;根据第一权重,分配用于处理第一运动数据的第一资源。由于对运动数据进行优先级划分,根据划分的优先级对应的权重比例分配资源,使得较高优先级的运动数据能得到较多的资源,有利于保证了对高处理优先级运动数据的处理实时性。As can be seen from the above, in the solution of this embodiment, the electronic device 700 acquires the first motion data to be processed; determines the first processing priority of the first motion data; acquires the first weight ratio corresponding to the first processing priority; The first weight is allocated to the first resource for processing the first motion data. Due to the priority division of motion data, resources are allocated according to the weight ratio corresponding to the divided priority, so that motion data with higher priority can get more resources, which is beneficial to ensure the real-time processing of motion data with high processing priority. sex.
图8示出了一种电子设备800的结构示意图。FIG. 8 shows a schematic structural diagram of an electronic device 800 .
电子设备800可以包括处理器810,外部存储器接口820,内部存储器821,通用串行总线(universal serial bus,USB)接口830,充电管理模块840,电源管理模块841,电池842,天线1,天线2,移动通信模块850,无线通信模块860,音频模块870,扬声器870A,受话器870B,麦克风870C,耳机接口870D,传感器模块880,按键890,马达891,指示器892,摄像头893,显示屏894,以及用户标识模块(subscriber identification module,SIM)卡接口895等。其中传感器模块880可以包括压力传感器880A,陀螺仪传感器880B,气压传感器880C,磁传感器880D,加速度传感器880E,距离传感器880F,接近光传感器880G,指纹传感器880H,温度传感器880J,触摸传感器880K,环境光传感器880L,骨传导传感器880M等。The electronic device 800 may include a processor 810, an external memory interface 820, an internal memory 821, a universal serial bus (USB) interface 830, a charge management module 840, a power management module 841, a battery 842, an antenna 1, an antenna 2 , mobile communication module 850, wireless communication module 860, audio module 870, speaker 870A, receiver 870B, microphone 870C, headphone jack 870D, sensor module 880, buttons 890, motor 891, indicator 892, camera 893, display screen 894, and Subscriber identification module (subscriber identification module, SIM) card interface 895 and so on. The sensor module 880 may include a pressure sensor 880A, a gyroscope sensor 880B, an air pressure sensor 880C, a magnetic sensor 880D, an acceleration sensor 880E, a distance sensor 880F, a proximity light sensor 880G, a fingerprint sensor 880H, a temperature sensor 880J, a touch sensor 880K, and ambient light. Sensor 880L, Bone Conduction Sensor 880M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备800的具体限定。在本申请另一些实施例中,电子设备800可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 800 . In other embodiments of the present application, the electronic device 800 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器810可以包括一个或多个处理单元,例如:处理器810可以包括应用处理器 (application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 810 may include one or more processing units, for example, the processor 810 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器810中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器810中的存储器为高速缓冲存储器。该存储器可以保存处理器810刚用过或循环使用的指令或数据。如果处理器810需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器810的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 810 for storing instructions and data. In some embodiments, the memory in processor 810 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 810 . If the processor 810 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 810 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器810可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 810 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器810可以包含多组I2C总线。处理器810可以通过不同的I2C总线接口分别耦合触摸传感器880K,充电器,闪光灯,摄像头893等。例如:处理器810可以通过I2C接口耦合触摸传感器880K,使处理器810与触摸传感器880K通过I2C总线接口通信,实现电子设备800的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 810 may contain multiple sets of I2C buses. The processor 810 can be respectively coupled to the touch sensor 880K, the charger, the flash, the camera 893, etc. through different I2C bus interfaces. For example, the processor 810 can couple the touch sensor 880K through the I2C interface, so that the processor 810 communicates with the touch sensor 880K through the I2C bus interface, so as to realize the touch function of the electronic device 800 .
I2S接口可以用于音频通信。在一些实施例中,处理器810可以包含多组I2S总线。处理器810可以通过I2S总线与音频模块870耦合,实现处理器810与音频模块870之间的通信。在一些实施例中,音频模块870可以通过I2S接口向无线通信模块860传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 810 may contain multiple sets of I2S buses. The processor 810 may be coupled with the audio module 870 through an I2S bus to implement communication between the processor 810 and the audio module 870 . In some embodiments, the audio module 870 can transmit audio signals to the wireless communication module 860 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块870与无线通信模块860可以通过PCM总线接口耦合。在一些实施例中,音频模块870也可以通过PCM接口向无线通信模块860传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 870 and the wireless communication module 860 may be coupled through a PCM bus interface. In some embodiments, the audio module 870 can also transmit audio signals to the wireless communication module 860 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器810与无线通信模块860。例如:处理器810通过UART接口与无线通信模块860中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块870可以通过UART接口向无线通信模块860传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 810 with the wireless communication module 860 . For example, the processor 810 communicates with the Bluetooth module in the wireless communication module 860 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 870 can transmit audio signals to the wireless communication module 860 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器810与显示屏894,摄像头893等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器810和摄像头893通过CSI接口通信,实现电子设备800的拍摄功能。处理器810和显示屏894通过DSI接口通信,实现电子设备800的显示功能。The MIPI interface can be used to connect the processor 810 with the display screen 894, the camera 893 and other peripheral devices. MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 810 communicates with the camera 893 through a CSI interface to implement the photographing function of the electronic device 800 . The processor 810 communicates with the display screen 894 through the DSI interface to implement the display function of the electronic device 800 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器810与摄像头893,显示屏894,无线通信模块860,音频模块870,传感器模块880等。GPIO接口还可以被配置为I2C接口,I2S 接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 810 with the camera 893, the display screen 894, the wireless communication module 860, the audio module 870, the sensor module 880, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口830是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口830可以用于连接充电器为电子设备800充电,也可以用于电子设备800与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 830 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 830 can be used to connect a charger to charge the electronic device 800, and can also be used to transmit data between the electronic device 800 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备800的结构限定。在本申请另一些实施例中,电子设备800也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 800 . In other embodiments of the present application, the electronic device 800 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块840用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块840可以通过USB接口830接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块840可以通过电子设备800的无线充电线圈接收无线充电输入。充电管理模块840为电池842充电的同时,还可以通过电源管理模块841为电子设备供电。The charging management module 840 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 840 may receive charging input from the wired charger through the USB interface 830 . In some wireless charging embodiments, the charging management module 840 may receive wireless charging input through the wireless charging coil of the electronic device 800 . While the charging management module 840 charges the battery 842, the power management module 841 can also supply power to the electronic device.
电源管理模块841用于连接电池842,充电管理模块840与处理器810。电源管理模块841接收电池842和/或充电管理模块840的输入,为处理器810,内部存储器821,显示屏894,摄像头893,和无线通信模块860等供电。电源管理模块841还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块841也可以设置于处理器810中。在另一些实施例中,电源管理模块841和充电管理模块840也可以设置于同一个器件中。The power management module 841 is used to connect the battery 842 , the charging management module 840 and the processor 810 . The power management module 841 receives input from the battery 842 and/or the charging management module 840, and supplies power to the processor 810, the internal memory 821, the display screen 894, the camera 893, and the wireless communication module 860. The power management module 841 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 841 may also be provided in the processor 810 . In other embodiments, the power management module 841 and the charging management module 840 may also be provided in the same device.
电子设备800的无线通信功能可以通过天线1,天线2,移动通信模块850,无线通信模块860,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 800 may be implemented by the antenna 1, the antenna 2, the mobile communication module 850, the wireless communication module 860, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备800中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 800 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块850可以提供应用在电子设备800上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块850可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块850可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块850还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块850的至少部分功能模块可以被设置于处理器810中。在一些实施例中,移动通信模块850的至少部分功能模块可以与处理器810的至少部分模块被设置在同一个器件中。The mobile communication module 850 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 800 . The mobile communication module 850 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like. The mobile communication module 850 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 850 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves and radiate it out through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 850 may be provided in the processor 810 . In some embodiments, at least part of the functional modules of the mobile communication module 850 may be provided in the same device as at least part of the modules of the processor 810 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器870A,受话器870B等)输出声音信号,或通过显示屏894显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器810,与移动通信模块850或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 870A, receiver 870B, etc.), or displays images or videos through display screen 894 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 810, and may be provided in the same device as the mobile communication module 850 or other functional modules.
无线通信模块860可以提供应用在电子设备800上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距 离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块860可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块860经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器810。无线通信模块860还可以从处理器810接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 860 can provide applications on the electronic device 800 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 860 may be one or more devices integrating at least one communication processing module. The wireless communication module 860 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 810 . The wireless communication module 860 can also receive the signal to be sent from the processor 810 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .
在一些实施例中,电子设备800的天线1和移动通信模块850耦合,天线2和无线通信模块860耦合,使得电子设备800可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 800 is coupled with the mobile communication module 850, and the antenna 2 is coupled with the wireless communication module 860, so that the electronic device 800 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备800通过GPU,显示屏894,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏894和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器810可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 800 implements a display function through a GPU, a display screen 894, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 894 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 810 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏894用于显示图像,视频等。显示屏894包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备800可以包括1个或N个显示屏894,N为大于1的正整数。Display screen 894 is used to display images, videos, and the like. Display screen 894 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 800 may include 1 or N display screens 894 , where N is a positive integer greater than 1.
电子设备800可以通过ISP,摄像头893,视频编解码器,GPU,显示屏894以及应用处理器等实现拍摄功能。The electronic device 800 may implement a shooting function through an ISP, a camera 893, a video codec, a GPU, a display screen 894, an application processor, and the like.
ISP用于处理摄像头893反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头893中。The ISP is used to process the data fed back by the camera 893. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 893.
摄像头893用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备800可以包括1个或N个摄像头893,N为大于1的正整数。The camera 893 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 800 may include 1 or N cameras 893 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备800在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 800 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
视频编解码器用于对数字视频压缩或解压缩。电子设备800可以支持一种或多种视频编 解码器。这样,电子设备800可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 800 may support one or more video codecs. In this way, the electronic device 800 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备800的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 800 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口820可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备800的存储能力。外部存储卡通过外部存储器接口820与处理器810通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 820 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 800 . The external memory card communicates with the processor 810 through the external memory interface 820 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器821可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器821可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备800使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器821可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器810通过运行存储在内部存储器821的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备800的各种功能应用以及数据处理。Internal memory 821 may be used to store computer executable program code, which includes instructions. The internal memory 821 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 800 and the like. In addition, the internal memory 821 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, universal flash storage (UFS), and the like. The processor 810 executes various functional applications and data processing of the electronic device 800 by executing the instructions stored in the internal memory 821 and/or the instructions stored in the memory provided in the processor.
电子设备800可以通过音频模块870,扬声器870A,受话器870B,麦克风870C,耳机接口870D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 800 may implement audio functions through an audio module 870, a speaker 870A, a receiver 870B, a microphone 870C, an earphone interface 870D, and an application processor. Such as music playback, recording, etc.
音频模块870用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块870还可以用于对音频信号编码和解码。在一些实施例中,音频模块870可以设置于处理器810中,或将音频模块870的部分功能模块设置于处理器810中。The audio module 870 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 870 may also be used to encode and decode audio signals. In some embodiments, the audio module 870 may be provided in the processor 810 , or some functional modules of the audio module 870 may be provided in the processor 810 .
扬声器870A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备800可以通过扬声器870A收听音乐,或收听免提通话。Speaker 870A, also referred to as "horn", is used to convert audio electrical signals into sound signals. Electronic device 800 can listen to music through speaker 870A, or listen to hands-free calls.
受话器870B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备800接听电话或语音信息时,可以通过将受话器870B靠近人耳接听语音。The receiver 870B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 800 answers a call or a voice message, the voice can be answered by placing the receiver 870B close to the human ear.
麦克风870C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风870C发声,将声音信号输入到麦克风870C。电子设备800可以设置至少一个麦克风870C。在另一些实施例中,电子设备800可以设置两个麦克风870C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备800还可以设置三个,四个或更多麦克风870C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 870C, also known as "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 870C through the human mouth, and input the sound signal into the microphone 870C. The electronic device 800 may be provided with at least one microphone 870C. In other embodiments, the electronic device 800 may be provided with two microphones 870C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 800 may further be provided with three, four or more microphones 870C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口870D用于连接有线耳机。耳机接口870D可以是USB接口830,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone jack 870D is used to connect wired headphones. The earphone interface 870D can be a USB interface 830, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器880A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器880A可以设置于显示屏894。压力传感器880A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器880A,电极之间的电容改变。电子设备800根据电容的变化确定压力的强度。当有触摸操作作用于显示屏894,电子设备800根据压力传感器880A检测所述触摸操作强度。电子设备800也可以根据压力传感器880A的检测信号计 算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 880A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 880A may be provided on display screen 894 . There are many types of pressure sensor 880A, such as resistive pressure sensor, inductive pressure sensor, capacitive pressure sensor and so on. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to pressure sensor 880A, the capacitance between the electrodes changes. The electronic device 800 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 894, the electronic device 800 detects the intensity of the touch operation according to the pressure sensor 880A. The electronic device 800 can also calculate the touched position according to the detection signal of the pressure sensor 880A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器880B可以用于确定电子设备800的运动姿态。在一些实施例中,可以通过陀螺仪传感器880B确定电子设备800围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器880B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器880B检测电子设备800抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备800的抖动,实现防抖。陀螺仪传感器880B还可以用于导航,体感游戏场景。The gyro sensor 880B can be used to determine the motion attitude of the electronic device 800 . In some embodiments, the angular velocity of electronic device 800 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 880B. The gyro sensor 880B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 880B detects the shaking angle of the electronic device 800, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shaking of the electronic device 800 through reverse motion to achieve anti-shake. The gyroscope sensor 880B can also be used for navigation and somatosensory game scenarios.
气压传感器880C用于测量气压。在一些实施例中,电子设备800通过气压传感器880C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 880C is used to measure air pressure. In some embodiments, the electronic device 800 calculates the altitude from the air pressure value measured by the air pressure sensor 880C to assist in positioning and navigation.
磁传感器880D包括霍尔传感器。电子设备800可以利用磁传感器880D检测翻盖皮套的开合。在一些实施例中,当电子设备800是翻盖机时,电子设备800可以根据磁传感器880D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 880D includes a Hall sensor. The electronic device 800 can detect the opening and closing of the flip holster using the magnetic sensor 880D. In some embodiments, when the electronic device 800 is a flip machine, the electronic device 800 can detect the opening and closing of the flip according to the magnetic sensor 880D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器880E可检测电子设备800在各个方向上(一般为三轴)加速度的大小。当电子设备800静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 880E can detect the magnitude of the acceleration of the electronic device 800 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 800 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器880F,用于测量距离。电子设备800可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备800可以利用距离传感器880F测距以实现快速对焦。Distance sensor 880F for measuring distance. The electronic device 800 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 800 can use the distance sensor 880F to measure the distance to achieve fast focusing.
接近光传感器880G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备800通过发光二极管向外发射红外光。电子设备800使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备800附近有物体。当检测到不充分的反射光时,电子设备800可以确定电子设备800附近没有物体。电子设备800可以利用接近光传感器880G检测用户手持电子设备800贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器880G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 880G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 800 emits infrared light to the outside through light emitting diodes. Electronic device 800 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 800 . When insufficient reflected light is detected, the electronic device 800 may determine that there is no object near the electronic device 800 . The electronic device 800 can use the proximity light sensor 880G to detect that the user holds the electronic device 800 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 880G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器880L用于感知环境光亮度。电子设备800可以根据感知的环境光亮度自适应调节显示屏894亮度。环境光传感器880L也可用于拍照时自动调节白平衡。环境光传感器880L还可以与接近光传感器880G配合,检测电子设备800是否在口袋里,以防误触。The ambient light sensor 880L is used to sense ambient light brightness. The electronic device 800 can adaptively adjust the brightness of the display screen 894 according to the perceived ambient light brightness. The ambient light sensor 880L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 880L can also cooperate with the proximity light sensor 880G to detect whether the electronic device 800 is in the pocket to prevent accidental touch.
指纹传感器880H用于采集指纹。电子设备800可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 880H is used to collect fingerprints. The electronic device 800 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器880J用于检测温度。在一些实施例中,电子设备800利用温度传感器880J检测的温度,执行温度处理策略。例如,当温度传感器880J上报的温度超过阈值,电子设备800执行降低位于温度传感器880J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备800对电池842加热,以避免低温导致电子设备800异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备800对电池842的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 880J is used to detect the temperature. In some embodiments, the electronic device 800 utilizes the temperature detected by the temperature sensor 880J to execute a temperature handling strategy. For example, when the temperature reported by the temperature sensor 880J exceeds a threshold value, the electronic device 800 may reduce the performance of the processor located near the temperature sensor 880J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 800 heats the battery 842 to avoid abnormal shutdown of the electronic device 800 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 800 boosts the output voltage of the battery 842 to avoid abnormal shutdown caused by low temperature.
触摸传感器880K,也称“触控面板”。触摸传感器880K可以设置于显示屏894,由触摸传感器880K与显示屏894组成触摸屏,也称“触控屏”。触摸传感器880K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸 事件类型。可以通过显示屏894提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器880K也可以设置于电子设备800的表面,与显示屏894所处的位置不同。Touch sensor 880K, also called "touch panel". The touch sensor 880K may be disposed on the display screen 894, and the touch sensor 880K and the display screen 894 form a touch screen, also referred to as a "touch screen". The touch sensor 880K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 894 . In other embodiments, the touch sensor 880K may also be disposed on the surface of the electronic device 800 at a different location than the display screen 894 .
骨传导传感器880M可以获取振动信号。在一些实施例中,骨传导传感器880M可以获取人体声部振动骨块的振动信号。骨传导传感器880M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器880M也可以设置于耳机中,结合成骨传导耳机。音频模块870可以基于所述骨传导传感器880M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器880M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 880M can acquire vibration signals. In some embodiments, the bone conduction sensor 880M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 880M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 880M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 870 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 880M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 880M, and realize the function of heart rate detection.
按键890包括开机键,音量键等。按键890可以是机械按键。也可以是触摸式按键。电子设备800可以接收按键输入,产生与电子设备800的用户设置以及功能控制有关的键信号输入。The keys 890 include a power-on key, a volume key, and the like. Keys 890 may be mechanical keys. It can also be a touch key. The electronic device 800 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 800 .
马达891可以产生振动提示。马达891可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏894不同区域的触摸操作,马达891也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 891 can generate vibration alerts. The motor 891 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 891 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 894 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器892可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 892 may be an indicator light, which may be used to indicate the charging status, the change of power, and may also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口895用于连接SIM卡。SIM卡可以通过插入SIM卡接口895,或从SIM卡接口895拔出,实现和电子设备800的接触和分离。电子设备800可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口895可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口895可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口895也可以兼容不同类型的SIM卡。SIM卡接口895也可以兼容外部存储卡。电子设备800通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备800采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备800中,不能和电子设备800分离。The SIM card interface 895 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 800 by inserting into the SIM card interface 895 or pulling out from the SIM card interface 895 . The electronic device 800 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 895 can support Nano SIM card, Micro SIM card, SIM card and so on. The same SIM card interface 895 can insert multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 895 can also be compatible with different types of SIM cards. The SIM card interface 895 is also compatible with external memory cards. The electronic device 800 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 800 employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the electronic device 800 and cannot be separated from the electronic device 800 .
在电子设备800中,处理器810调用内部存储器821中存储的代码,以用于获取待处理的第一运动数据;确定第一运动数据的第一处理优先级;获取与第一处理优先级对应的第一权重比例;根据第一权重,分配用于处理第一运动数据的第一资源。In the electronic device 800, the processor 810 invokes the code stored in the internal memory 821 for obtaining the first motion data to be processed; determining the first processing priority of the first motion data; obtaining the code corresponding to the first processing priority The first weight ratio of ; according to the first weight, the first resource for processing the first motion data is allocated.
可选的,在本发明的一些可能的实施方式中,所述处理器810还用于,在当前待传输的运动数据的数据量大于第一阈值,待传输的运动数据包括第一运动数据;或者,当前网络状态的稳定程度小于第二阈值时,调用程序使得电子设备使用本申请实施例提供的数据处理方法。Optionally, in some possible implementations of the present invention, the processor 810 is further configured to: when the data amount of the motion data to be transmitted currently is greater than the first threshold, the motion data to be transmitted includes the first motion data; Alternatively, when the stability of the current network state is less than the second threshold, the program is invoked to cause the electronic device to use the data processing method provided by the embodiment of the present application.
可以理解的是,本实施例的电子设备800采用上述方法实施例的数据处理方法时,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that, when the electronic device 800 of this embodiment adopts the data processing method of the foregoing method embodiment, the specific implementation process may refer to the relevant description of the foregoing method embodiment, which will not be repeated here.
本发明实施例还提供一种计算机程序产品,其中,当此计算机程序产品在电子设备上运行时,电子设备执行包括上述方法实施例中记载的一种数据处理方法的部分或全部步骤。Embodiments of the present invention further provide a computer program product, wherein when the computer program product runs on an electronic device, the electronic device executes some or all of the steps of a data processing method described in the above method embodiments.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的一种数据处理方法的部分或全部步骤。Embodiments of the present invention further provide a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program includes part or all of the steps of a data processing method described in the above method embodiments.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。 例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    获取待处理的第一运动数据,并确定所述第一运动数据的第一处理优先级;acquiring the first motion data to be processed, and determining the first processing priority of the first motion data;
    获取与所述第一处理优先级对应的第一权重比例;obtaining a first weight ratio corresponding to the first processing priority;
    根据所述第一权重比例,分配用于处理所述第一运动数据的第一资源。A first resource for processing the first motion data is allocated according to the first weight ratio.
  2. 如权利要求1所述的方法,其特征在于,所述待处理的第一运动数据为待传输的第一运动数据,所述第一资源为用于传输所述第一运动数据的传输资源。The method of claim 1, wherein the first motion data to be processed is first motion data to be transmitted, and the first resource is a transmission resource used for transmitting the first motion data.
  3. 如权利要求2所述的方法,其特征在于,所述确定所述第一运动数据的第一处理优先级之前,还包括:The method of claim 2, wherein before determining the first processing priority of the first motion data, the method further comprises:
    确定当前待传输的运动数据的数据量大于第一阈值,所述待传输的运动数据包括所述第一运动数据;或者,It is determined that the data amount of the current motion data to be transmitted is greater than a first threshold, and the motion data to be transmitted includes the first motion data; or,
    确定当前网络状态的稳定程度小于第二阈值。It is determined that the stability of the current network state is less than the second threshold.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一运动数据的第一处理优先级,包括:The method according to any one of claims 1-3, wherein the determining the first processing priority of the first motion data comprises:
    确定所述第一运动数据所属的第一数据类型,所述第一数据类型用于表示所述第一运动数据的属性;determining a first data type to which the first motion data belongs, where the first data type is used to represent an attribute of the first motion data;
    根据所述第一数据类型确定所述第一运动数据的第一处理优先级。A first processing priority of the first motion data is determined according to the first data type.
  5. 如权利要求4所述的方法,其特征在于,所述第一数据类型包括运动控制数据类型、运动实时数据类型、泛运动数据类型或通知数据类型中的一种。The method of claim 4, wherein the first data type comprises one of a motion control data type, a real-time motion data type, a pan-motion data type, or a notification data type.
  6. 如权利要求5所述的方法,其特征在于,所述根据所述第一数据类型确定所述第一运动数据的第一处理优先级,包括:The method of claim 5, wherein the determining the first processing priority of the first motion data according to the first data type comprises:
    若所述第一数据类型是运动控制数据类型,确定所述第一运动数据的第一处理优先级为M个优先级中的最高优先级,所述M为大于或等于1的整数。If the first data type is a motion control data type, the first processing priority of the first motion data is determined to be the highest priority among M priorities, where M is an integer greater than or equal to 1.
  7. 如权利要求5或6任一项所述的方法,其特征在于,所述根据所述第一数据类型确定所述第一运动数据的第一处理优先级,包括:The method according to any one of claims 5 or 6, wherein the determining the first processing priority of the first motion data according to the first data type comprises:
    若所述第一数据类型不是运动控制数据类型,获取所述第一运动数据对应的第一优先级值;If the first data type is not a motion control data type, obtain a first priority value corresponding to the first motion data;
    确定所述第一优先级值所在的第一优先级值范围,所述第一优先级值范围是M个优先级值范围中的一个,所述M个优先级值范围中的每个优先级值范围对应M个优先级中的一个优先级;determining a first priority value range in which the first priority value is located, the first priority value range is one of M priority value ranges, and each priority in the M priority value ranges The value range corresponds to one of the M priorities;
    将所述第一优先级值范围对应的优先级确定为所述第一运动数据的第一处理优先级。The priority corresponding to the first priority value range is determined as the first processing priority of the first motion data.
  8. 如权利要求7所述的方法,其特征在于,所述获取所述第一运动数据对应的第一优先级值,包括:The method of claim 7, wherein the acquiring the first priority value corresponding to the first motion data comprises:
    获取与所述第一数据类型对应的第一优先级系数,所述第一优先级系数用于表示属于所述第一数据类型的数据的被实时处理的优先级程度;acquiring a first priority coefficient corresponding to the first data type, where the first priority coefficient is used to indicate the priority level of data belonging to the first data type to be processed in real time;
    根据所述第一优先级系数,确定所述第一运动数据对应的第一优先级值。A first priority value corresponding to the first motion data is determined according to the first priority coefficient.
  9. 如权利要求8所述的方法,其特征在于,所述根据所述第一优先级系数,确定所述第一运动数据对应的第一优先级值,包括:The method according to claim 8, wherein the determining the first priority value corresponding to the first motion data according to the first priority coefficient comprises:
    若所述第一优先级系数小于或者等于第三阈值,将所述第一优先级系数确定为所述第一运动数据对应的第一优先级值;If the first priority coefficient is less than or equal to a third threshold, determining the first priority coefficient as the first priority value corresponding to the first motion data;
    若所述第一优先级系数大于第三阈值,获取用于调整所述第一优先级系数的大小的调整系数,所述调整系数包括第二优先级系数和/或第三优先级系数,其中,所述第二优先级系数是根据与所述第一运动数据相关的第一运动类型确定的,所述第三优先级系数是根据所述第一运动数据在目标时段内的变化率确定的,所述第二优先级系数和所述第三优先级系数均大于1;If the first priority coefficient is greater than a third threshold, obtain an adjustment coefficient for adjusting the size of the first priority coefficient, where the adjustment coefficient includes a second priority coefficient and/or a third priority coefficient, wherein , the second priority coefficient is determined according to the first motion type related to the first motion data, and the third priority coefficient is determined according to the rate of change of the first motion data within the target period , the second priority coefficient and the third priority coefficient are both greater than 1;
    根据所述第一优先级系数和所述调整系数,确定所述第一运动数据对应的第一优先级值。A first priority value corresponding to the first motion data is determined according to the first priority coefficient and the adjustment coefficient.
  10. 如权利要求9所述的方法,其特征在于,所述调整系数包括所述第二优先级系数,所述方法还包括:The method of claim 9, wherein the adjustment coefficient includes the second priority coefficient, the method further comprising:
    获取与所述第一运动数据相关的第一运动类型;obtaining a first movement type related to the first movement data;
    根据所述第一运动类型和所述第一运动数据,确定所述第二优先级系数,所述第二优先级系数用于表示所述第一运动数据在所述第一运动类型所指示运动中被实时处理的优先级程度。The second priority coefficient is determined according to the first motion type and the first motion data, and the second priority coefficient is used to indicate that the first motion data is in motion indicated by the first motion type The priority of being processed in real time.
  11. 如权利要求9所述的方法,其特征在于,所述调整系数包括第三优先级系数,所述方法还包括:The method of claim 9, wherein the adjustment coefficient includes a third priority coefficient, the method further comprising:
    获取所述第一运动数据在目标时段内的变化率;acquiring the rate of change of the first motion data within the target period;
    根据所述变化率,确定所述第三优先级系数。Based on the rate of change, the third priority factor is determined.
  12. 一种电子设备,其中,所述电子设备包括:一个或多个处理器、一个或多个存储器;An electronic device, wherein the electronic device comprises: one or more processors, one or more memories;
    所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,其特征在于,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1-11任一项所述的方法。The one or more memories are coupled to the one or more processors, the one or more memories for storing computer program code, the computer program code comprising computer instructions, characterized in that when the one or more When a plurality of processors execute the computer instructions, the electronic device executes the method of any one of claims 1-11.
  13. 一种计算机设备,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时使得所述计算机设备实现如权利要求1至11任一项所述的方法。A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, when the processor executes the computer program, the computer device realizes A method as claimed in any one of claims 1 to 11.
  14. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的方法。A computer program product comprising instructions, wherein, when the computer program product is run on an electronic device, the electronic device is caused to perform the method of any one of claims 1-11.
PCT/CN2021/118397 2020-09-27 2021-09-15 Data processing method and electronic device WO2022062978A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011035008.3A CN114362878B (en) 2020-09-27 2020-09-27 Data processing method and electronic equipment
CN202011035008.3 2020-09-27

Publications (1)

Publication Number Publication Date
WO2022062978A1 true WO2022062978A1 (en) 2022-03-31

Family

ID=80857191

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118397 WO2022062978A1 (en) 2020-09-27 2021-09-15 Data processing method and electronic device

Country Status (2)

Country Link
CN (1) CN114362878B (en)
WO (1) WO2022062978A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217499A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 Array dispatching method
CN102231697A (en) * 2011-06-17 2011-11-02 瑞斯康达科技发展股份有限公司 Bandwidth dispatching method of message queues as well as message reporting method and device
US20150119726A1 (en) * 2013-10-28 2015-04-30 Kabushiki Kaisha Toshiba Electronic apparatus and communication control method
CN105119844A (en) * 2015-09-07 2015-12-02 中国联合网络通信集团有限公司 Method and device for controlling working mode of built-in WIFI module
CN106843787A (en) * 2017-01-22 2017-06-13 广东美的制冷设备有限公司 Display device, system and method based on widget

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948095B (en) * 2017-11-21 2021-11-02 中国银行股份有限公司 Resource control method and device and bus system server
CN109756547A (en) * 2018-01-24 2019-05-14 启迪云控(北京)科技有限公司 For the data processing method of car networking system, device and equipment
CN110636533B (en) * 2018-06-21 2021-05-18 维沃移动通信有限公司 Scheduling transmission method and terminal
CN109067830A (en) * 2018-06-25 2018-12-21 深圳还是威健康科技有限公司 Information push method, device and terminal
CN109829107A (en) * 2019-01-23 2019-05-31 华为技术有限公司 A kind of recommended method and electronic equipment based on user movement state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217499A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 Array dispatching method
CN102231697A (en) * 2011-06-17 2011-11-02 瑞斯康达科技发展股份有限公司 Bandwidth dispatching method of message queues as well as message reporting method and device
US20150119726A1 (en) * 2013-10-28 2015-04-30 Kabushiki Kaisha Toshiba Electronic apparatus and communication control method
CN105119844A (en) * 2015-09-07 2015-12-02 中国联合网络通信集团有限公司 Method and device for controlling working mode of built-in WIFI module
CN106843787A (en) * 2017-01-22 2017-06-13 广东美的制冷设备有限公司 Display device, system and method based on widget

Also Published As

Publication number Publication date
CN114362878A (en) 2022-04-15
CN114362878B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US20220366906A1 (en) Voice wake-up method and electronic device
WO2020151387A1 (en) Recommendation method based on user exercise state, and electronic device
CN111416794B (en) Data transmission method and electronic equipment
WO2021036568A1 (en) Fitness-assisted method and electronic apparatus
WO2021169402A1 (en) Screen brightness adjustment method and electronic device
WO2021169515A1 (en) Method for data exchange between devices, and related device
CN111202955A (en) Motion data processing method and electronic equipment
CN111132234A (en) Data transmission method and corresponding terminal
WO2021213031A1 (en) Image synthesis method and related apparatus
CN112181616B (en) Task processing method and related device
WO2022012444A1 (en) Multi-device collaboration method, electronic device, and multi-device collaboration system
WO2021068926A1 (en) Model updating method, working node, and model updating system
CN111552451A (en) Display control method and device, computer readable medium and terminal equipment
CN111316604B (en) Data transmission method and electronic equipment
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
WO2022262492A1 (en) Data downloading method and apparatus, and terminal device
CN115016869A (en) Frame rate adjusting method, terminal equipment and frame rate adjusting system
WO2022227906A1 (en) Method and apparatus for determining minimum slot offset value
CN113596919B (en) Data downloading method and device and terminal equipment
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
CN111935705A (en) Data service management method and device, computer readable medium and terminal equipment
WO2020078267A1 (en) Method and device for voice data processing in online translation process
WO2022214004A1 (en) Target user determination method, electronic device and computer-readable storage medium
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
WO2022062978A1 (en) Data processing method and electronic device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871349

Country of ref document: EP

Kind code of ref document: A1