Time-sharing scheduling method and system for low-power data transmission of smart glasses
By confirming the time-sharing scheduling environment through time-sharing scheduling instructions, obtaining priority data sequences, and dividing time slot sequences, the problem of excessive power consumption in data transmission of smart glasses is solved, low-power data transmission is achieved, and battery life is improved.
Patent Information
- Application Number
- CN202511520598.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2045-10-23
AI Technical Summary
Existing smart glasses suffer from excessive power consumption during data transmission and lack fine-grained scheduling and management of different data types and service priorities, resulting in insufficient battery life.
By receiving time-sharing scheduling instructions, confirming the time-sharing scheduling environment, obtaining priority data sequences, dividing time slot sequences, and monitoring power consumption, low-power data transmission time-sharing scheduling is finally achieved.
Effectively manage the data transmission process, reduce power consumption, improve battery life, and ensure the stable operation of smart glasses.
Smart Images

Figure CN121001197B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data transmission technology, and in particular to a time-sharing method and system for low-power data transmission in smart glasses. Background Technology
[0002] With the widespread adoption of smart wearable devices, smart glasses have been extensively used in various fields such as communication, healthcare, navigation, and augmented reality. Among these, data transmission, as a core functional module of smart glasses, plays a decisive role in their battery life. Conversely, effectively managing the data transmission process is indispensable for ensuring the stable and sustained operation of smart glasses.
[0003] Currently, smart glasses primarily use a continuous connection to achieve data transmission.
[0004] While the above methods can accomplish basic data transmission tasks, they fail to adequately consider power consumption during data transmission and lack fine-grained scheduling management for different data types and service priorities. This results in excessive power consumption when transmitting multiple data streams. Therefore, implementing time-sharing scheduling for data transmission has become an urgent problem to be solved. Summary of the Invention
[0005] This invention provides a time-sharing scheduling method for low-power data transmission in smart glasses and a computer-readable storage medium, the main purpose of which is to achieve time-sharing scheduling of data transmission.
[0006] To achieve the above objectives, the present invention provides a time-sharing scheduling method for low-power data transmission in smart glasses, comprising:
[0007] Receive a time-sharing scheduling instruction, and confirm the time-sharing scheduling environment based on the time-sharing scheduling instruction. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit, and a power consumption monitoring unit.
[0008] Priority data sequences are obtained based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream;
[0009] Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence;
[0010] Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence;
[0011] Receive a power consumption monitoring instruction from the power consumption monitoring unit, perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instruction, and obtain the data time slot power consumption;
[0012] Based on the data time slot sequence, an updated data time slot sequence set is obtained, and based on the data time slot power consumption and the updated data time slot sequence set, a target data time slot sequence is obtained.
[0013] Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
[0014] Optionally, obtaining the priority data sequence based on the plurality of data streams includes:
[0015] A set of communication modules is identified based on the multiple data streams, wherein the set of communication modules includes multiple communication modules, and each communication module corresponds one-to-one with a data stream;
[0016] A data transmission channel set is obtained based on the communication module set, wherein the data transmission channel set includes multiple data transmission channels, and each data transmission channel corresponds to a communication module.
[0017] A data type set is obtained based on the communication module set and multiple data streams, wherein the data type set includes multiple data types;
[0018] A data latency threshold set is obtained based on the data type set and data transmission channel set, wherein the data latency threshold in the data latency threshold set corresponds one-to-one with the data type;
[0019] A priority evaluation value sequence is obtained based on the data delay threshold set, wherein the priority evaluation value sequence includes multiple priority evaluation values;
[0020] Priority data sequences are obtained based on the priority evaluation value sequence and the data delay threshold corresponding to the priority evaluation value in the priority evaluation value sequence.
[0021] Optionally, obtaining the priority evaluation value sequence based on the data delay threshold set includes:
[0022] The number of delay thresholds in the statistical data set is used to obtain the delay value.
[0023] Obtain the maximum and minimum data latency thresholds from the set of data latency thresholds;
[0024] A reference evaluation interval is obtained based on the maximum and minimum data latency thresholds. The reference evaluation interval is composed of the maximum evaluation interval value and the minimum evaluation interval value. The maximum evaluation interval value in the reference evaluation interval is equal to the maximum data latency threshold plus one, and the minimum evaluation interval value is equal to the minimum data latency threshold minus one.
[0025] A priority evaluation interval sequence is obtained based on the delay value and the reference evaluation interval, wherein the number of priority evaluation intervals in the priority evaluation interval sequence is equal to the delay value, and the interval range of each priority evaluation interval is the same.
[0026] An evaluation value set is obtained based on the priority evaluation interval sequence, wherein the evaluation values in the evaluation value set correspond one-to-one with the priority evaluation intervals, and the evaluation value is equal to the reciprocal of the ordinal number of the priority evaluation interval in the priority evaluation interval sequence.
[0027] For each data latency threshold in the data latency threshold set, perform the following operation:
[0028] The target evaluation interval is obtained by sequentially extracting the priority evaluation intervals from the priority evaluation interval sequence. The target evaluation interval includes the maximum target interval value and the minimum target interval value.
[0029] Compare the data latency threshold and the target evaluation interval. If the data latency threshold is greater than or equal to the minimum target interval value and less than the maximum target interval value, then the evaluation value corresponding to the target evaluation interval shall be the priority evaluation value of the data latency threshold.
[0030] If the data delay threshold is less than the minimum target interval value or greater than or equal to the maximum target interval value, the target evaluation interval is removed from the priority evaluation interval sequence to obtain an updated evaluation interval sequence. The updated evaluation interval sequence is then used as the priority evaluation interval sequence, and the step of sequentially extracting priority evaluation intervals from the priority evaluation interval sequence is returned until the priority evaluation value is obtained.
[0031] The results are compiled and sorted in descending order of priority evaluation values to obtain a priority evaluation value sequence.
[0032] Optionally, the step of dividing a preset scheduling period based on the time slot division instruction and priority data sequence to obtain a time slot sequence includes:
[0033] The time slot protection interval time is obtained based on the time slot division instruction;
[0034] Perform the following operation on each priority data point in the priority data sequence:
[0035] The data transmission time is obtained based on the priority data and its corresponding data transmission channel;
[0036] By summing up the data transmission times, a data transmission time set is obtained;
[0037] Extract the maximum data transmission time from the set of data transmission times to obtain the target transmission time;
[0038] The sum of the target transmission time and the time slot protection interval is calculated to obtain the time interval for partitioning;
[0039] The scheduling period is divided using the time interval to obtain a time slot sequence. The time slots in the time slot sequence are sorted in ascending order of time, and the number of time slots is equal to the number of priority data.
[0040] Optionally, the step of matching the priority data sequence and the time slot sequence based on the time slot matching instruction to obtain the data time slot sequence includes:
[0041] Based on the time slot matching instruction, first priority data and second priority data are extracted from the priority data sequence. The first priority data is the first priority data in the priority data sequence, and the second priority data is adjacent to the first priority data and is placed after the first priority data.
[0042] Extract the first time slot from the time slot sequence to obtain the first time slot;
[0043] The second time slot is obtained based on the first time slot and the time slot sequence, wherein the second time slot is adjacent to the first time slot and is placed after the first time slot in the time slot sequence;
[0044] The first time slot is matched with the first priority data to obtain the first data time slot;
[0045] The second data time slot is obtained based on the second time slot and the second priority data;
[0046] Remove the first priority data and the second priority data from the priority data sequence to obtain the updated priority data sequence;
[0047] The updated time slot sequence is obtained based on the first time slot, the second time slot, and the time slot sequence.
[0048] The initial data slot sequence is obtained based on the update priority data sequence and the update slot sequence;
[0049] The data time slot sequence is obtained based on the first data time slot, the second data time slot, and the initial data time slot sequence.
[0050] Optionally, the step of monitoring the power consumption of the data time slot sequence based on the power consumption monitoring instruction to obtain the data time slot power consumption includes:
[0051] Perform the following operation on each data time slot in the data time slot sequence:
[0052] Obtain the communication module corresponding to the data time slot to obtain the target communication module;
[0053] The operating voltage is obtained by monitoring the target communication module using a pre-built voltage sensor;
[0054] The target communication module is monitored based on the power consumption monitoring command and data time slot to obtain the data transmission time period;
[0055] The operating current is obtained by monitoring the target communication module using a pre-built current sensor and a data transmission time period;
[0056] The module sleep time period is obtained based on the data time slot and data transmission time period;
[0057] The target communication module is monitored using a current sensor and the module's sleep period to obtain the sleep current;
[0058] The target time slot power consumption is obtained based on the operating voltage, operating current, data transmission time period, sleep current, and module sleep time period.
[0059] The target time slot power consumption is summed to obtain the data time slot power consumption, where the calculation formula for data time slot power consumption is as follows:
[0060] ,
[0061] in, Indicates the power consumption of the data slot. This represents the total number of data time slots in the data time slot sequence. Represents the first data slot in the time-slot sequence The operating current corresponding to each data time slot Represents the first data slot in the time-slot sequence The duration of the data transmission time segment corresponding to each data slot. Represents the first data slot in the time-slot sequence The dormant current corresponding to each data time slot Represents the first data slot in the time-slot sequence The length of the module sleep period corresponding to each data slot. Indicates the operating voltage.
[0062] Optionally, obtaining the updated data slot sequence set based on the data slot sequence includes:
[0063] Obtain the update priority data sequence and update time slot sequence corresponding to the data time slot sequence;
[0064] The update priority data in the update priority data sequence is randomly sorted multiple times to obtain the target priority data sequence set. The target priority data sequence set includes multiple target priority data sequences, and each target priority data sequence is different from the update priority data sequence.
[0065] For each target priority data sequence in the target priority data sequence set, perform the following operation:
[0066] The target priority data sequence and the update time slot sequence are matched sequentially to obtain the preprocessed data time slot sequence;
[0067] The updated data time slot sequence is obtained based on the first data time slot, the second data time slot, and the preprocessed data time slot sequence;
[0068] The updated data time slot sequences are summarized to obtain the updated data time slot sequence set.
[0069] Optionally, obtaining the target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set includes:
[0070] Obtain the updated data time slot power consumption set based on the updated data time slot sequence set;
[0071] Sort the power consumption of the updated data slots in the updated data slot power consumption set in ascending order to obtain the target data slot power consumption sequence;
[0072] Extract the power consumption of the first target data time slot from the target data time slot power consumption sequence to obtain the power consumption of the data time slot to be confirmed;
[0073] Compare the power consumption of the data time slot with the power consumption of the data time slot to be confirmed. If the power consumption of the data time slot is less than or equal to the power consumption of the data time slot to be confirmed, then the data time slot sequence corresponding to the power consumption of the data time slot is taken as the target data time slot sequence.
[0074] If the power consumption of the data time slot is greater than the power consumption of the data time slot to be confirmed, then the updated data time slot sequence corresponding to the power consumption of the data time slot to be confirmed is taken as the target data time slot sequence.
[0075] Optionally, the step of implementing low-power data transmission time-division scheduling based on the target data time slot sequence includes:
[0076] Extract the target data time slots sequentially from the target data time slot sequence, and perform the following operations on the extracted target data time slots:
[0077] The target data stream is obtained by scheduling the data stream corresponding to the extracted target data time slot using a pre-built scheduler.
[0078] The target data stream is transmitted using the data transmission channel corresponding to the target data stream to obtain the transmitted data;
[0079] Remove the extracted target data time slots from the target data time slot sequence to obtain the updated target data time slot sequence;
[0080] The target communication module set is obtained based on the updated target data time slot sequence;
[0081] The target communication modules in the target communication module set are driven into a sleep state using a scheduler to obtain a sleep communication module set;
[0082] Low-power data transmission time-sharing scheduling is achieved based on the aforementioned data transmission and sleep communication module set.
[0083] To achieve the above objectives, the present invention also provides a time-sharing scheduling system for low-power data transmission in smart glasses, comprising:
[0084] The time-sharing scheduling environment confirmation module is used to receive time-sharing scheduling instructions and confirm the time-sharing scheduling environment based on the time-sharing scheduling instructions. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit and a power consumption monitoring unit.
[0085] The time slot partitioning and matching module is used to obtain a priority data sequence based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream;
[0086] Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence;
[0087] Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence;
[0088] A power consumption monitoring module is used to receive power consumption monitoring instructions from a power consumption monitoring unit, and to perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instructions to obtain the data time slot power consumption.
[0089] The time-sharing scheduling module is used to obtain an updated data time slot sequence set based on the data time slot sequence, and to obtain a target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set.
[0090] Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
[0091] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:
[0092] A memory that stores at least one instruction; and a processor that executes the instructions stored in the memory to implement the time-sharing scheduling method for low-power data transmission in smart glasses described above.
[0093] To address the aforementioned problems, the present invention also provides a computer-readable storage medium storing at least one instruction, which is executed by a processor in an electronic device to implement the time-sharing scheduling method for low-power data transmission in smart glasses described above.
[0094] To address the problems described in the background art, this invention receives a time-sharing scheduling instruction and, based on this instruction, identifies a time-sharing scheduling environment. This environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time-slot partitioning unit, a time-slot matching unit, and a power consumption monitoring unit. Therefore, this invention considers the different data streams under different environments or conditions before performing time-sharing scheduling on data transmission. Thus, it identifies the time-sharing scheduling system and the multiple data streams to be transmitted. Furthermore, it obtains a priority data sequence based on these multiple data streams. This priority data sequence includes multiple different priority data, and each priority data corresponds one-to-one with a data stream. This invention also considers the impact of data stream priority on time-sharing scheduling before performing time-sharing scheduling on data transmission. Therefore, it determines the priority of a data stream by using a data stream latency threshold, thus laying the foundation for subsequent time-sharing scheduling. It receives a time-slot partitioning instruction from the time-slot partitioning unit and, based on the time-slot partitioning instruction and the priority data sequence, performs time-sharing scheduling on a preset scheduling period. The process involves dividing the data stream into time slots to obtain a time slot sequence. This invention also considers the impact of time slot size on data transmission in time-division scheduling, and divides the scheduling period into multiple time slots based on data transmission time. This improves the reliability of time-division scheduling for data transmission. The invention receives time slot matching instructions from the time slot matching unit and matches the priority data sequence and time slot sequence based on these instructions to obtain a data time slot sequence. This demonstrates that the invention considers the actual data flow in smart glasses when matching data streams and time slots. Therefore, the first priority data and second priority data are fixedly matched with the first and second time slots, respectively. Furthermore, the invention considers whether the matched data time slot sequence meets the requirements for low-power data transmission. Therefore, an updated data time slot sequence set is obtained based on the data time slot sequence. A target data time slot sequence is obtained based on the data time slot power consumption and the updated data time slot sequence set. The updated data time slot sequence set is used to verify whether the data time slot sequence is the target data time slot sequence. Finally, time-division scheduling of low-power data transmission is achieved based on the target data time slot sequence. Therefore, this invention can achieve time-division scheduling of data transmission. Attached Figure Description
[0095] Figure 1 This is a flowchart illustrating a time-sharing scheduling method for low-power data transmission in smart glasses, provided in an embodiment of the present invention.
[0096] Figure 2 This is a functional block diagram of a time-sharing scheduling system for low-power data transmission in smart glasses, provided in an embodiment of the present invention.
[0097] Figure 3 This is a schematic diagram of the structure of an electronic device that implements the time-sharing scheduling method for low-power data transmission in smart glasses, according to an embodiment of the present invention.
[0098] Explanation of reference numerals in the attached figures:
[0099] 10. Electronic device; 11. Processor; 12. Memory; 13. Bus.
[0100] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0101] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0102] This application provides a time-sharing scheduling method for low-power data transmission in smart glasses. The executing entity of this method includes, but is not limited to, at least one electronic device that can be configured to execute the method provided in this application, such as a server or a terminal. In other words, the time-sharing scheduling method for low-power data transmission in smart glasses can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.
[0103] Reference Figure 1 The diagram shown is a flowchart illustrating a time-sharing scheduling method for low-power data transmission in smart glasses according to an embodiment of the present invention. In this embodiment, the time-sharing scheduling method for low-power data transmission in smart glasses includes:
[0104] S1. Receive time-sharing scheduling instructions, and confirm the time-sharing scheduling environment based on the time-sharing scheduling instructions. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit, and a power consumption monitoring unit.
[0105] It should be explained that time-sharing scheduling instructions are issued by personnel who want to implement time-sharing scheduling of data transmission. The time-sharing scheduling environment refers to the necessary environment for implementing time-sharing scheduling of data transmission. The time-sharing scheduling system refers to the software or app used to implement time-sharing scheduling of data transmission. The multiple data streams to be transmitted refer to multiple data streams that need to be transmitted through time-sharing scheduling in the smart glasses, such as sensor data, user voice data, and video data in the smart glasses. The time-sharing scheduling system includes a time slot partitioning unit, a time slot matching unit, and a power consumption monitoring unit. For the specific application of these units, please refer to the following embodiments. The main purpose of this invention is to achieve low-power data transmission by performing time-sharing scheduling of multiple data streams.
[0106] For example, Zhang, as a technician responsible for the energy management of a smart glasses, in order to achieve low-energy transmission of data in the smart glasses and avoid problems such as insufficient battery life due to excessive energy consumption of data transmission, issues the time-sharing scheduling command and confirms the time-sharing scheduling environment.
[0107] S2. Obtain a priority data sequence based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream.
[0108] Furthermore, obtaining the priority data sequence based on the multiple data streams includes:
[0109] A set of communication modules is identified based on the multiple data streams, wherein the set of communication modules includes multiple communication modules, and each communication module corresponds one-to-one with a data stream;
[0110] A data transmission channel set is obtained based on the communication module set, wherein the data transmission channel set includes multiple data transmission channels, and each data transmission channel corresponds to a communication module.
[0111] A data type set is obtained based on the communication module set and multiple data streams, wherein the data type set includes multiple data types;
[0112] A data latency threshold set is obtained based on the data type set and data transmission channel set, wherein the data latency threshold in the data latency threshold set corresponds one-to-one with the data type;
[0113] A priority evaluation value sequence is obtained based on the data delay threshold set, wherein the priority evaluation value sequence includes multiple priority evaluation values;
[0114] Priority data sequences are obtained based on the priority evaluation value sequence and the data delay threshold corresponding to the priority evaluation value in the priority evaluation value sequence.
[0115] It should be explained that identifying the communication module set based on the multiple data streams means that the data streams are sent by their corresponding communication modules. Therefore, the communication module set can be identified through multiple data streams. A communication module refers to a component module in smart glasses, such as a camera, sensor, or microphone. Obtaining the data transmission channel set based on the communication module set means that each communication module has a dedicated data transmission channel for transmitting its generated data streams. A data transmission channel refers to the channel used by the communication modules in the smart glasses to transmit data.
[0116] It is clear that obtaining a data type set based on the aforementioned communication module set and multiple data streams means that the data stream is sent by the communication module, and its corresponding data type is determined by the communication module. For example, if the communication module is a sensor, the data type corresponding to the data stream is sensor data; if the communication module is a camera, the data type corresponding to the data stream is video data. The data latency threshold refers to the maximum delay that data can experience from its generation to being sent to the data transmission channel. Obtaining a data latency threshold set based on the aforementioned data type set and data transmission channel set means setting a reasonable and known data latency threshold in the data transmission channel according to the data type. For example, if the data type is sensor data, a high latency threshold will result in untimely sensor data transmission, leading to a poor user experience when using smart glasses. Therefore, the data latency threshold is set to 10ms.
[0117] Furthermore, obtaining the priority evaluation value sequence based on the data delay threshold set includes:
[0118] The number of delay thresholds in the statistical data set is used to obtain the delay value.
[0119] Obtain the maximum and minimum data latency thresholds from the set of data latency thresholds;
[0120] A reference evaluation interval is obtained based on the maximum and minimum data latency thresholds. The reference evaluation interval is composed of the maximum evaluation interval value and the minimum evaluation interval value. The maximum evaluation interval value in the reference evaluation interval is equal to the maximum data latency threshold plus one, and the minimum evaluation interval value is equal to the minimum data latency threshold minus one.
[0121] A priority evaluation interval sequence is obtained based on the delay value and the reference evaluation interval, wherein the number of priority evaluation intervals in the priority evaluation interval sequence is equal to the delay value, and the interval range of each priority evaluation interval is the same.
[0122] An evaluation value set is obtained based on the priority evaluation interval sequence, wherein the evaluation values in the evaluation value set correspond one-to-one with the priority evaluation intervals, and the evaluation value is equal to the reciprocal of the ordinal number of the priority evaluation interval in the priority evaluation interval sequence.
[0123] For each data latency threshold in the data latency threshold set, perform the following operation:
[0124] The target evaluation interval is obtained by sequentially extracting the priority evaluation intervals from the priority evaluation interval sequence. The target evaluation interval includes the maximum target interval value and the minimum target interval value.
[0125] Compare the data latency threshold and the target evaluation interval. If the data latency threshold is greater than or equal to the minimum target interval value and less than the maximum target interval value, then the evaluation value corresponding to the target evaluation interval shall be the priority evaluation value of the data latency threshold.
[0126] If the data delay threshold is less than the minimum target interval value or greater than or equal to the maximum target interval value, the target evaluation interval is removed from the priority evaluation interval sequence to obtain an updated evaluation interval sequence. The updated evaluation interval sequence is then used as the priority evaluation interval sequence, and the step of sequentially extracting priority evaluation intervals from the priority evaluation interval sequence is returned until the priority evaluation value is obtained.
[0127] The results are compiled and sorted in descending order of priority evaluation values to obtain a priority evaluation value sequence.
[0128] Understandably, the latency value refers to the number of latency thresholds in the data latency threshold set. The reference evaluation interval is the evaluation interval determined by the largest and smallest data latency thresholds, used to subsequently determine the priority of the data stream. The priority evaluation interval is the interval used to determine the evaluation value of the data stream, and the priority evaluation interval sequence is the sequence obtained by sorting the priority evaluation intervals in ascending order. The evaluation value is the numerical value used to evaluate the priority of the data stream corresponding to the priority evaluation interval, and the larger the evaluation value, the higher the priority. For example, if the data latency threshold set is {10, 60, 50, 149, 132}, then the latency value is 5. If the reference evaluation interval is [9, 150], then the priority evaluation value interval sequence is {[9, 36], [39, 66], [67, 94], [95, 122], [123, 150]}, and the priority evaluation values are 1, 1 / 2, 1 / 3, 1 / 4, and 1 / 5, respectively.
[0129] It is clear that the target evaluation interval refers to the priority evaluation interval extracted from the priority evaluation interval sequence. For example, the target evaluation interval is [9, 33]. If the data latency threshold is greater than or equal to the minimum target interval value and less than the maximum target interval value, it means that the data latency threshold is within the target evaluation interval. Therefore, the evaluation value corresponding to the target evaluation interval is used as the priority evaluation value of the data latency threshold. The priority evaluation value refers to the evaluation value corresponding to the data latency threshold. For example, if the data latency threshold is 10, the target evaluation interval is [9, 33], and the evaluation value corresponding to the target evaluation interval is 1, then the priority evaluation value is 1. If the data latency threshold is less than the minimum target interval value or greater than or equal to the maximum target interval value, it means that the data latency threshold is not within the target evaluation interval. Therefore, the target evaluation interval is removed from the priority evaluation interval sequence to obtain an updated priority evaluation interval sequence. Priority evaluation intervals are extracted again from the updated priority evaluation interval sequence and compared with the data latency threshold until a priority evaluation value is obtained. The updated evaluation interval sequence refers to the priority evaluation interval sequence after removing the target evaluation interval. For example, if the priority evaluation value interval sequence is {[9, 36], [39, 66], [67, 94], [95, 122], [123, 150]}, the data delay threshold is 50, and the target evaluation interval is [9, 36], and the data delay threshold is not located within the target evaluation interval, then the updated evaluation interval sequence {[39, 66], [67, 94], [95, 122], [123, 150]} is obtained, and the target evaluation interval [39, 66] is extracted from it. Since the data delay threshold 50 is located within [39, 66], the priority evaluation value corresponding to the data delay threshold 50 is 1 / 2.
[0130] Understandably, the priority evaluation value sequence refers to a sequence obtained by sorting priority evaluation values from largest to smallest. Obtaining a priority data sequence based on the priority evaluation value sequence and the corresponding data latency thresholds of the priority evaluation values means obtaining the data streams corresponding to the priority evaluation values through the data latency thresholds, and then sorting the data streams according to the priority evaluation value sequence to obtain the priority data sequence. For example, if multiple data streams are sensor data, video data, voice data, file synchronization data, and message data, then the data latency thresholds are {10, 60, 50, 149, 132}, and their corresponding priority evaluation values are 1, 1 / 3, 1 / 2, 1 / 5, 1 / 4, respectively. Therefore, the priority evaluation value sequence is {1, 1 / 2, 1 / 3, 1 / 4, 1 / 5}, and the priority data sequence is {sensor data, voice data, video data, message data, file synchronization data}.
[0131] S3. Receive a time slot division instruction from the time slot division unit, and divide the preset scheduling period based on the time slot division instruction and priority data sequence to obtain a time slot sequence.
[0132] It should be explained that the time slot partitioning unit is a functional module used in the time-sharing scheduling system to divide the scheduling cycle. Optionally, a variable-length time slice can be used as the time slot partitioning unit.
[0133] Furthermore, the step of dividing the preset scheduling period based on the time slot division instruction and priority data sequence to obtain a time slot sequence includes:
[0134] The time slot protection interval time is obtained based on the time slot division instruction;
[0135] Perform the following operation on each priority data point in the priority data sequence:
[0136] The data transmission time is obtained based on the priority data and its corresponding data transmission channel;
[0137] By summing up the data transmission times, a data transmission time set is obtained;
[0138] Extract the maximum data transmission time from the set of data transmission times to obtain the target transmission time;
[0139] The sum of the target transmission time and the time slot protection interval is calculated to obtain the time interval for partitioning;
[0140] The scheduling period is divided using the time interval to obtain a time slot sequence. The time slots in the time slot sequence are sorted in ascending order of time, and the number of time slots is equal to the number of priority data.
[0141] It is clear that the time slot allocation instruction refers to the operation instruction issued by the time slot allocation unit to begin dividing the scheduling period into time slots. Obtaining the time slot protection interval based on the time slot allocation instruction means setting the time slot protection interval in the scheduling period before starting time slot allocation. The time slot protection interval is the interval between two adjacent time slots, used to prevent mutual interference between communication modules in adjacent time slots when switching modes.
[0142] It is understood that obtaining the data transmission time based on the priority data and its corresponding data transmission channel means determining the data transmission rate through the data transmission channel, determining the size of the priority data according to the communication module corresponding to the priority data, and determining the data transmission time through the data transmission rate and the size of the priority data. For example, if the size of the priority data is 500 and the data transmission rate is 100, then the data transmission time is 5.
[0143] It is clear that the target transmission time refers to the longest data transmission time within the data transmission time set. The time interval is the sum of the target transmission time and the time slot protection interval. The scheduling period is the set time period used for time-division scheduling of data transmission. The time slot sequence is the sequence obtained by dividing the scheduling period into time intervals and sorting the time slots in ascending order. A time slot is a time period divided from the scheduling period. For example, if the target transmission time is 5 and the time slot protection interval is 1, then the time interval is 6, the scheduling period is (0, 30), and the time slot sequence is {(0, 6), (6, 12), (12, 18), (18, 24), (24, 30)}.
[0144] S4. Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence.
[0145] It should be explained that the time slot matching unit refers to the functional module in the time-sharing scheduling system used to match priority data sequences and time slot sequences, and the time slot matching instruction refers to the operation instruction issued by the time slot matching unit to start matching priority data sequences and time slot sequences.
[0146] Furthermore, the step of matching the priority data sequence and the time slot sequence based on the time slot matching instruction to obtain the data time slot sequence includes:
[0147] Based on the time slot matching instruction, first priority data and second priority data are extracted from the priority data sequence. The first priority data is the first priority data in the priority data sequence, and the second priority data is adjacent to the first priority data and is placed after the first priority data.
[0148] Extract the first time slot from the time slot sequence to obtain the first time slot;
[0149] The second time slot is obtained based on the first time slot and the time slot sequence, wherein the second time slot is adjacent to the first time slot and is placed after the first time slot in the time slot sequence;
[0150] The first time slot is matched with the first priority data to obtain the first data time slot;
[0151] The second data time slot is obtained based on the second time slot and the second priority data;
[0152] Remove the first priority data and the second priority data from the priority data sequence to obtain the updated priority data sequence;
[0153] The updated time slot sequence is obtained based on the first time slot, the second time slot, and the time slot sequence.
[0154] The initial data slot sequence is obtained based on the update priority data sequence and the update slot sequence;
[0155] The data time slot sequence is obtained based on the first data time slot, the second data time slot, and the initial data time slot sequence.
[0156] It should be explained that "first priority data" refers to the highest priority data in the priority data sequence, and "second priority data" refers to the next highest priority data. For example, if the priority data sequence is {sensor data, voice data, video data, message data, file synchronization data}, then the first priority data is sensor data, and the second priority data is voice data. "First time slot" refers to the first time slot in the time slot sequence, and scheduling and transmission begin from the first time slot in time-sharing scheduling. "Second time slot" refers to the time slot corresponding to the next ordinal number in the time slot sequence after the first time slot. For example, if the time slot sequence is {(0, 6), (6, 12), (12, 18), (18, 24), (24, 30)}, then the first time slot is (0, 6), and the second time slot is (6, 12).
[0157] It is clear that the first data time slot refers to the time slot in time-sharing scheduling where data of the highest priority is transmitted. In time-sharing scheduling, when in the first time slot, only data of the highest priority is transmitted. The second data time slot refers to the time slot in time-sharing scheduling where data of the second priority is transmitted. In time-sharing scheduling, when in the second time slot, only data of the second priority is transmitted. For example, the first data time slot might be sensor data - (0, 6), where sensor data represents data of the highest priority, (0, 6) represents the first time slot, and - indicates that the data of the highest priority matches the first time slot.
[0158] It is understandable that the updated priority data sequence refers to the priority data sequence after removing the first and second priority data, and the updated priority data refers to the priority data in the updated priority data sequence. For example, the updated priority data sequence is {video data, message data, file synchronization data}. The updated time slot sequence refers to the time slot sequence after removing the first and second time slots. For example, the updated time slot sequence is {(12, 18), (18, 24), (24, 30)}.
[0159] It is clear that the initial data time slot sequence refers to the initial data time slot sequence obtained by matching the update priority data sequence with the update time slot sequence in sequence. For example, the initial data time slot sequence is {video data - (12, 18), message data - (18, 24), file synchronization data - (24, 30)}, where video data is the update priority data, (12, 18) is the update time slot, and - indicates that the update priority data matches the update time slot. The initial data time slot refers to the update time slot in time-sharing scheduling where update priority data is transmitted. Update priority data refers to the priority data in the update priority data sequence. An update time slot refers to a time slot in the update time slot sequence; for example, only video data is transmitted in update time slot (12, 18), and only message data is transmitted in update time slot (18, 24).
[0160] It is understood that obtaining the data time slot sequence based on the first data time slot, the second data time slot, and the initial data time slot sequence means adding the first data time slot and the second data time slot sequentially before the initial data time slot sequence. For example, if the initial data time slot sequence is {video data - (12, 18), message data - (18, 24), file synchronization data - (24, 30)}, the first data time slot is sensor data - (0, 6), and the second data time slot is voice data - (6, 12), then the data time slot sequence is {sensor data - (0, 6), voice data - (6, 12), video data - (12, 18), message data - (18, 24), file synchronization data - (24, 30)}. The data time slot sequence refers to the sequence obtained by matching the priority data sequence with the time slot sequence in sequence. The data time slot sequence is ideally obtained by matching the priority data sequence with the time slot sequence. In subsequent embodiments, the data time slot sequence will be verified to determine if it is the target data time slot sequence.
[0161] It should be explained that the purpose of obtaining the first and second data time slots is as follows: Since the data latency thresholds for the first and second priority data are low, and considering the user experience when actually using smart glasses, to prevent a poor user experience due to slow data transmission of the first and second priority data, the first and second priority data are fixedly matched with the first and second time slots and transmitted with priority in time-sharing scheduling. The remaining priority data is scheduled and transmitted in the update time slots. The purpose of obtaining the update priority data and update time slot sequence is: In subsequent embodiments, by adjusting the matching order of the update priority data and update time slots, the update data time slot sequence corresponding to the lowest power consumption is found and compared with the power consumption corresponding to the data time slot sequence, thereby verifying whether the data time slot sequence is the target data time slot sequence.
[0162] S5. Receive a power consumption monitoring instruction from the power consumption monitoring unit, and perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instruction to obtain the data time slot power consumption.
[0163] It should be explained that the power consumption monitoring unit is a functional module used in the time-sharing scheduling system to monitor the power consumption of data transmission. Optionally, current sensors and voltage sensors can be used as power consumption monitoring units.
[0164] Further, the step of monitoring the power consumption of the data time slot sequence based on the power consumption monitoring command to obtain the data time slot power consumption includes:
[0165] Perform the following operation on each data time slot in the data time slot sequence:
[0166] Obtain the communication module corresponding to the data time slot to obtain the target communication module;
[0167] The operating voltage is obtained by monitoring the target communication module using a pre-built voltage sensor;
[0168] The target communication module is monitored based on the power consumption monitoring command and data time slot to obtain the data transmission time period;
[0169] The operating current is obtained by monitoring the target communication module using a pre-built current sensor and a data transmission time period;
[0170] The module sleep time period is obtained based on the data time slot and data transmission time period;
[0171] The target communication module is monitored using a current sensor and the module's sleep period to obtain the sleep current;
[0172] The target time slot power consumption is obtained based on the operating voltage, operating current, data transmission time period, sleep current, and module sleep time period.
[0173] The target time slot power consumption is summed to obtain the data time slot power consumption, where the calculation formula for data time slot power consumption is as follows:
[0174] ,
[0175] in, Indicates the power consumption of the data slot. This represents the total number of data time slots in the data time slot sequence. Represents the first data slot in the time-slot sequence The operating current corresponding to each data time slot Represents the first data slot in the time-slot sequence The duration of the data transmission time segment corresponding to each data slot. Represents the first data slot in the time-slot sequence The dormant current corresponding to each data time slot Represents the first data slot in the time-slot sequence The length of the module sleep period corresponding to each data slot. Indicates the operating voltage.
[0176] It should be explained that the target communication module refers to the communication module corresponding to the priority data in the data time slot. Optionally, a Hall voltage sensor can be used as the constructed voltage sensor to monitor the target communication module. The operating voltage refers to the voltage of the communication module in the smart glasses, and the voltage in each communication module is equal.
[0177] It is clear that monitoring the target communication module based on the power consumption monitoring command and data time slots means that during data transmission in the data time slots, the power consumption monitoring command is used to confirm the time sensor monitoring of the target communication module until the data transmission ends, thus obtaining the data transmission time period. The operating current refers to the current in the target communication module during data transmission. Optionally, a Hall current sensor can be used as a pre-built current sensor to monitor the target communication module.
[0178] Understandably, after data transmission ends, the target communication module enters a sleep state, and the current in the target communication module decreases during this sleep state. Therefore, the module sleep time period is determined. The module sleep time period refers to the time during which the target communication module is in a sleep state within a data time slot. For example, if the data time slot is (0, 6) and the data transmission time period is (0, 4), then the module sleep time period is (5, 6), the data transmission time period is 6 seconds, and the module sleep time period is 2 seconds. Data time slot power consumption refers to the sum of the target time slot power consumption corresponding to all data time slots in the data time slot sequence.
[0179] S6. Obtain an updated data time slot sequence set based on the data time slot sequence, and obtain a target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set.
[0180] Furthermore, obtaining the updated data slot sequence set based on the data slot sequence includes:
[0181] Obtain the update priority data sequence and update time slot sequence corresponding to the data time slot sequence;
[0182] The update priority data in the update priority data sequence is randomly sorted multiple times to obtain the target priority data sequence set. The target priority data sequence set includes multiple target priority data sequences, and each target priority data sequence is different from the update priority data sequence.
[0183] For each target priority data sequence in the target priority data sequence set, perform the following operation:
[0184] The target priority data sequence and the update time slot sequence are matched sequentially to obtain the preprocessed data time slot sequence;
[0185] The updated data time slot sequence is obtained based on the first data time slot, the second data time slot, and the preprocessed data time slot sequence;
[0186] The updated data time slot sequences are summarized to obtain the updated data time slot sequence set.
[0187] It should be explained that repeatedly randomly sorting the update priority data in the update priority data sequence means repeatedly swapping the positions of the update priority data in the update priority data sequence to obtain the target priority data sequence set. Each time the target priority data sequence is swapped, it is different from the previous one. For example, if the update priority data sequence is {1, 2, 3, 4}, then the target priority data sequences in the target priority data sequence set will be {1, 3, 2, 4}, {1, 3, 4, 2}, {1, 4, 3, 2}, {1, 4, 2, 3}, etc. The target priority data refers to the update priority data in the target priority data sequence.
[0188] It is clear that matching the target priority data sequence and update time slot sequence sequentially means matching the target priority data corresponding to ordinal number 1 in the target priority data sequence with the update time slot corresponding to ordinal number 1 in the update time slot sequence to obtain the preprocessed data time slot; matching the target priority data corresponding to ordinal number 2 in the target priority data sequence with the update time slot corresponding to ordinal number 2 in the update time slot sequence, and so on, to obtain the preprocessed data time slot sequence. The preprocessed data time slot refers to the update time slot used for transmitting target priority data in time-division scheduling. The preprocessed data time slot sequence refers to the sequence obtained by sorting the preprocessed data time slots in ascending order of the times corresponding to the update time slots. For example, if the target priority data sequence is {1, 3, 2, 4} and the update time slot sequence is {(6, 12), (12, 18), (18, 24), (24, 30)}, then the preprocessed data time slot sequence is {1-(6, 12), 3-(12, 18), 2-(18, 24), 4-(24, 30)}, where 1-(6, 12) represents the preprocessed data time slot obtained by matching the target priority data 1 with the update time slot (6, 12).
[0189] It should be explained that the updated data time slot sequence refers to the data time slot sequence obtained by sequentially adding the first data time slot and the second data time slot before the preprocessed data time slot sequence. For example, if the preprocessed data time slot sequence is {message data - (12, 18), file synchronization data - (18, 24), video data - (24, 30)}, the first data time slot is sensor data - (0, 6), and the second data time slot is voice data - (6, 12), then the updated data time slot sequence is {sensor data - (0, 6), voice data - (6, 12), message data - (12, 18), file synchronization data - (18, 24), video data - (24, 30)}.
[0190] Furthermore, obtaining the target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set includes:
[0191] Obtain the updated data time slot power consumption set based on the updated data time slot sequence set;
[0192] Sort the power consumption of the updated data slots in the updated data slot power consumption set in ascending order to obtain the target data slot power consumption sequence;
[0193] Extract the power consumption of the first target data time slot from the target data time slot power consumption sequence to obtain the power consumption of the data time slot to be confirmed;
[0194] Compare the power consumption of the data time slot with the power consumption of the data time slot to be confirmed. If the power consumption of the data time slot is less than or equal to the power consumption of the data time slot to be confirmed, then the data time slot sequence corresponding to the power consumption of the data time slot is taken as the target data time slot sequence.
[0195] If the power consumption of the data time slot is greater than the power consumption of the data time slot to be confirmed, then the updated data time slot sequence corresponding to the power consumption of the data time slot to be confirmed is taken as the target data time slot sequence.
[0196] It is clear that obtaining the updated data time slot power consumption set based on the updated data time slot sequence set means monitoring the power consumption of each updated data time slot sequence in the updated data time slot sequence set to obtain the updated data time slot power consumption. The method for obtaining the updated data time slot power consumption is the same as the method for obtaining the data time slot power consumption, and will not be repeated here. Updated data time slot power consumption refers to the energy consumption generated during data transmission using updated data time slot sequences in time-sharing scheduling. The target data time slot power consumption sequence refers to the sequence obtained by sorting the updated data time slot power consumption in the updated data time slot power consumption set in ascending order of power consumption.
[0197] It should be explained that the power consumption of the data slot to be confirmed refers to the power consumption of the updated data slot corresponding to ordinal number 1 in the target data slot power consumption sequence. If the power consumption of the data slot is less than or equal to the power consumption of the data slot to be confirmed, it means that the power consumption generated when performing time-sharing scheduling with the data slot sequence corresponding to the power consumption of the data slot meets the low power consumption requirement, and therefore the data slot sequence is used as the target data slot sequence. The target data slot sequence refers to the data slot sequence that meets the low power data transmission requirement in time-sharing scheduling. If the power consumption of the data slot is greater than the power consumption of the data slot to be confirmed, it means that the updated data slot sequence corresponding to the power consumption of the data slot to be confirmed meets the low power consumption requirement better than the data slot sequence in time-sharing scheduling, and therefore the updated data slot sequence corresponding to the power consumption of the data slot to be confirmed is used as the target data slot sequence. For example, if the target data slot power consumption sequence is {10, 20, 25, 35} and the power consumption of the data slot is 9, then the power consumption of the data slot to be confirmed is 10, which is greater than the power consumption of the data slot 9. Therefore, the data slot sequence corresponding to the power consumption of the data slot 9 is used as the target data slot sequence.
[0198] S7. Implement time-sharing scheduling of low-power data transmission based on the target data time slot sequence.
[0199] Furthermore, the step of implementing low-power data transmission time-division scheduling based on the target data time slot sequence includes:
[0200] Extract the target data time slots sequentially from the target data time slot sequence, and perform the following operations on the extracted target data time slots:
[0201] The target data stream is obtained by scheduling the data stream corresponding to the extracted target data time slot using a pre-built scheduler.
[0202] The target data stream is transmitted using the data transmission channel corresponding to the target data stream to obtain the transmitted data;
[0203] Remove the extracted target data time slots from the target data time slot sequence to obtain the updated target data time slot sequence;
[0204] The target communication module set is obtained based on the updated target data time slot sequence;
[0205] The target communication modules in the target communication module set are driven into a sleep state using a scheduler to obtain a sleep communication module set;
[0206] Low-power data transmission time-sharing scheduling is achieved based on the aforementioned data transmission and sleep communication module set.
[0207] It should be explained that extracting the target data time slots sequentially from the target data time slot sequence means extracting the target data time slots in order of their ordinal numbers in the target data time slot sequence. Optionally, a multipath scheduler can be used as a pre-built scheduler. The target data stream refers to the data stream corresponding to the target data time slots extracted from multiple data streams before data transmission. For example, if the target data time slot sequence is {sensor data - (0, 6), voice data - (6, 12), video data - (12, 18), message data - (18, 24), file synchronization data - (24, 30)}, then the extracted target data time slot is sensor data - (0, 6), and the target data stream is sensor data.
[0208] It is clear that transmitted data refers to the data stream after transmission is complete. Updating the target data time slot sequence refers to the sequence obtained by removing the extracted target data time slots. For example, the updated target data time slot sequence is {voice data - (6, 12), video data - (12, 18), message data - (18, 24), file synchronization data - (24, 30)}. Obtaining the target communication module set based on the updated target data time slot sequence means identifying the communication modules corresponding to the data streams in the updated target data time slots. The target communication module set refers to the communication modules corresponding to the data streams in each target data time slot of the updated target data time slot sequence. The dormant communication module set refers to the set of communication modules in a dormant state. Driving the target communication modules in the target communication module set into a dormant state using the scheduler means that in time-sharing scheduling, when transmitting data, the scheduler only schedules the data stream corresponding to the current data time slot; therefore, other communication modules will enter a dormant state.
[0209] Understandably, when time-division scheduling data transmission, only the data stream corresponding to the target data time slot is transmitted in the target data time slot. That is, only the communication module corresponding to the target data time slot is performing transmission work, while the other communication modules enter a sleep state. When the data stream corresponding to the target data time slot is completed, the corresponding communication module enters a sleep state and performs data transmission for the next target data time slot. This reduces the power consumption generated during data transmission and thus achieves time-division scheduling of low-power data transmission.
[0210] To address the problems described in the background art, this invention receives a time-sharing scheduling instruction and, based on this instruction, identifies a time-sharing scheduling environment. This environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time-slot partitioning unit, a time-slot matching unit, and a power consumption monitoring unit. Therefore, this invention considers the different data streams under different environments or conditions before performing time-sharing scheduling on data transmission. Thus, it identifies the time-sharing scheduling system and the multiple data streams to be transmitted. Furthermore, it obtains a priority data sequence based on these multiple data streams. This priority data sequence includes multiple different priority data, and each priority data corresponds one-to-one with a data stream. This invention also considers the impact of data stream priority on time-sharing scheduling before performing time-sharing scheduling on data transmission. Therefore, it determines the priority of a data stream by using a data stream latency threshold, thus laying the foundation for subsequent time-sharing scheduling. It receives a time-slot partitioning instruction from the time-slot partitioning unit and, based on the time-slot partitioning instruction and the priority data sequence, performs time-sharing scheduling on a preset scheduling period. The process involves dividing the data stream into time slots to obtain a time slot sequence. This invention also considers the impact of time slot size on data transmission in time-division scheduling, and divides the scheduling period into multiple time slots based on data transmission time. This improves the reliability of time-division scheduling for data transmission. The invention receives time slot matching instructions from the time slot matching unit and matches the priority data sequence and time slot sequence based on these instructions to obtain a data time slot sequence. This demonstrates that the invention considers the actual data flow in smart glasses when matching data streams and time slots. Therefore, the first priority data and second priority data are fixedly matched with the first and second time slots, respectively. Furthermore, the invention considers whether the matched data time slot sequence meets the requirements for low-power data transmission. Therefore, an updated data time slot sequence set is obtained based on the data time slot sequence. A target data time slot sequence is obtained based on the data time slot power consumption and the updated data time slot sequence set. The updated data time slot sequence set is used to verify whether the data time slot sequence is the target data time slot sequence. Finally, time-division scheduling of low-power data transmission is achieved based on the target data time slot sequence. Therefore, this invention can achieve time-division scheduling of data transmission.
[0211] like Figure 2 The diagram shown is a functional block diagram of a time-sharing scheduling system for low-power data transmission in smart glasses, provided by an embodiment of the present invention.
[0212] The time-sharing scheduling system 100 for low-power data transmission in smart glasses described in this invention can be installed in an electronic device. Depending on the functions implemented, the time-sharing scheduling system 100 for low-power data transmission in smart glasses may include a time-sharing scheduling environment confirmation module 101, a time slot allocation matching module 102, a transmission power consumption monitoring module 103, and a time-sharing scheduling module 104. The module described in this invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0213] The time-sharing scheduling environment confirmation module 101 is used to receive time-sharing scheduling instructions and confirm the time-sharing scheduling environment based on the time-sharing scheduling instructions. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit and a power consumption monitoring unit.
[0214] The time slot division matching module 102 is used to obtain a priority data sequence based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream;
[0215] Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence;
[0216] Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence;
[0217] The transmission power consumption monitoring module 103 is used to receive power consumption monitoring instructions from the power consumption monitoring unit, and perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instructions to obtain the data time slot power consumption.
[0218] The time-sharing scheduling module 104 is used to obtain an updated data time slot sequence set based on the data time slot sequence, and to obtain a target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set.
[0219] Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
[0220] In detail, the modules in the time-sharing scheduling system 100 for low-power data transmission in smart glasses described in this embodiment of the invention employ the same methods as described above. Figure 1 The same technical means are used as described in the time-sharing scheduling method for low-power data transmission in smart glasses, and can produce the same technical effect, so they will not be repeated here.
[0221] like Figure 3 The diagram shown is a structural schematic of an electronic device that implements a time-sharing scheduling method for low-power data transmission in smart glasses, according to an embodiment of the present invention.
[0222] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a time-sharing method program for low-power data transmission in smart glasses.
[0223] The memory 11 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as the portable hard drive of the electronic device 1. In other embodiments, the memory 11 can be an external storage device of the electronic device 1, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 1. Furthermore, the memory 11 includes both internal storage units and external storage devices of the electronic device 1. The memory 11 can be used not only to store application software and various types of data installed on the electronic device 1, such as code for a time-sharing scheduling method for low-power data transmission in smart glasses, but also to temporarily store data that has been output or will be output.
[0224] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., a time-sharing scheduling method for low-power data transmission in smart glasses) and calls data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
[0225] The bus 12 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize the connection and communication between the memory 11 and at least one processor 10, etc.
[0226] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0227] For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0228] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is typically used to establish communication connections between the electronic device 1 and other electronic devices.
[0229] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 1 and to display a visual user interface.
[0230] The time-sharing scheduling method program for low-power data transmission in smart glasses, stored in the memory 11 of the electronic device 1, is a combination of multiple instructions. When run in the processor 10, it can achieve the following:
[0231] Receive a time-sharing scheduling instruction, and confirm the time-sharing scheduling environment based on the time-sharing scheduling instruction. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit, and a power consumption monitoring unit.
[0232] Priority data sequences are obtained based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream;
[0233] Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence;
[0234] Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence;
[0235] Receive a power consumption monitoring instruction from the power consumption monitoring unit, perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instruction, and obtain the data time slot power consumption;
[0236] Based on the data time slot sequence, an updated data time slot sequence set is obtained, and based on the data time slot power consumption and the updated data time slot sequence set, a target data time slot sequence is obtained.
[0237] Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
[0238] Specifically, the processor 10's implementation method for the above instructions can be found in [reference needed]. Figures 1 to 3 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0239] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0240] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:
[0241] Receive a time-sharing scheduling instruction, and confirm the time-sharing scheduling environment based on the time-sharing scheduling instruction. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit, and a power consumption monitoring unit.
[0242] Priority data sequences are obtained based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream;
[0243] Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence;
[0244] Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence;
[0245] Receive a power consumption monitoring instruction from the power consumption monitoring unit, perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instruction, and obtain the data time slot power consumption;
[0246] Based on the data time slot sequence, an updated data time slot sequence set is obtained, and based on the data time slot power consumption and the updated data time slot sequence set, a target data time slot sequence is obtained.
[0247] Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
[0248] In the embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative, and actual implementations may have other classification methods.
[0249] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0250] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0251] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0252] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A time-sharing scheduling method for low-power data transmission in smart glasses, characterized in that, The method includes: Receive a time-sharing scheduling instruction, and confirm the time-sharing scheduling environment based on the time-sharing scheduling instruction. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit, and a power consumption monitoring unit. Priority data sequences are obtained based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream; Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence; Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence; Receive a power consumption monitoring instruction from the power consumption monitoring unit, perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instruction, and obtain the data time slot power consumption; Based on the data time slot sequence, an updated data time slot sequence set is obtained, and based on the data time slot power consumption and the updated data time slot sequence set, a target data time slot sequence is obtained. Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
2. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 1, characterized in that, The step of obtaining priority data sequences based on the multiple data streams includes: A set of communication modules is identified based on the multiple data streams, wherein the set of communication modules includes multiple communication modules, and each communication module corresponds one-to-one with a data stream; A data transmission channel set is obtained based on the communication module set, wherein the data transmission channel set includes multiple data transmission channels, and each data transmission channel corresponds to a communication module. A data type set is obtained based on the communication module set and multiple data streams, wherein the data type set includes multiple data types; A data latency threshold set is obtained based on the data type set and data transmission channel set, wherein the data latency threshold in the data latency threshold set corresponds one-to-one with the data type; A priority evaluation value sequence is obtained based on the data delay threshold set, wherein the priority evaluation value sequence includes multiple priority evaluation values; Priority data sequences are obtained based on the priority evaluation value sequence and the data delay threshold corresponding to the priority evaluation value in the priority evaluation value sequence.
3. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 2, characterized in that, The step of obtaining the priority evaluation value sequence based on the data delay threshold set includes: The number of delay thresholds in the statistical data set is used to obtain the delay value. Obtain the maximum and minimum data latency thresholds from the set of data latency thresholds; A reference evaluation interval is obtained based on the maximum and minimum data latency thresholds. The reference evaluation interval is composed of the maximum evaluation interval value and the minimum evaluation interval value. The maximum evaluation interval value in the reference evaluation interval is equal to the maximum data latency threshold plus one, and the minimum evaluation interval value is equal to the minimum data latency threshold minus one. A priority evaluation interval sequence is obtained based on the delay value and the reference evaluation interval, wherein the number of priority evaluation intervals in the priority evaluation interval sequence is equal to the delay value, and the interval range of each priority evaluation interval is the same. An evaluation value set is obtained based on the priority evaluation interval sequence, wherein the evaluation values in the evaluation value set correspond one-to-one with the priority evaluation intervals, and the evaluation value is equal to the reciprocal of the ordinal number of the priority evaluation interval in the priority evaluation interval sequence. For each data latency threshold in the data latency threshold set, perform the following operation: The target evaluation interval is obtained by sequentially extracting the priority evaluation intervals from the priority evaluation interval sequence. The target evaluation interval includes the maximum target interval value and the minimum target interval value. Compare the data latency threshold and the target evaluation interval. If the data latency threshold is greater than or equal to the minimum target interval value and less than the maximum target interval value, then the evaluation value corresponding to the target evaluation interval shall be the priority evaluation value of the data latency threshold. If the data delay threshold is less than the minimum target interval value or greater than or equal to the maximum target interval value, the target evaluation interval is removed from the priority evaluation interval sequence to obtain an updated evaluation interval sequence. The updated evaluation interval sequence is then used as the priority evaluation interval sequence, and the step of sequentially extracting priority evaluation intervals from the priority evaluation interval sequence is returned until the priority evaluation value is obtained. The results are compiled and sorted in descending order of priority evaluation values to obtain a priority evaluation value sequence.
4. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 3, characterized in that, The step of dividing a preset scheduling period based on the time slot division instruction and priority data sequence to obtain a time slot sequence includes: The time slot protection interval time is obtained based on the time slot division instruction; Perform the following operation on each priority data point in the priority data sequence: The data transmission time is obtained based on the priority data and its corresponding data transmission channel; By summing up the data transmission times, a data transmission time set is obtained; Extract the maximum data transmission time from the set of data transmission times to obtain the target transmission time; The sum of the target transmission time and the time slot protection interval is calculated to obtain the time interval for division; The scheduling period is divided using the time interval to obtain a time slot sequence. The time slots in the time slot sequence are sorted in ascending order of time, and the number of time slots is equal to the number of priority data.
5. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 4, characterized in that, The step of matching the priority data sequence and the time slot sequence based on the time slot matching instruction to obtain the data time slot sequence includes: Based on the time slot matching instruction, first priority data and second priority data are extracted from the priority data sequence. The first priority data is the first priority data in the priority data sequence, and the second priority data is adjacent to the first priority data and is placed after the first priority data. Extract the first time slot from the time slot sequence to obtain the first time slot; The second time slot is obtained based on the first time slot and the time slot sequence, wherein the second time slot is adjacent to the first time slot and is placed after the first time slot in the time slot sequence; The first time slot is matched with the first priority data to obtain the first data time slot; The second data time slot is obtained based on the second time slot and the second priority data; Remove the first priority data and the second priority data from the priority data sequence to obtain the updated priority data sequence; The updated time slot sequence is obtained based on the first time slot, the second time slot, and the time slot sequence. The initial data slot sequence is obtained based on the update priority data sequence and the update slot sequence; The data time slot sequence is obtained based on the first data time slot, the second data time slot, and the initial data time slot sequence.
6. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 5, characterized in that, The step of monitoring the power consumption of the data time slot sequence based on the power consumption monitoring command to obtain the data time slot power consumption includes: Perform the following operation on each data time slot in the data time slot sequence: Obtain the communication module corresponding to the data time slot to obtain the target communication module; The operating voltage is obtained by monitoring the target communication module using a pre-built voltage sensor; The target communication module is monitored based on the power consumption monitoring command and data time slot to obtain the data transmission time period; The operating current is obtained by monitoring the target communication module using a pre-built current sensor and a data transmission time period; The module sleep time period is obtained based on the data time slot and data transmission time period; The target communication module is monitored using a current sensor and the module's sleep period to obtain the sleep current; The target time slot power consumption is obtained based on the operating voltage, operating current, data transmission time period, sleep current, and module sleep time period. The target time slot power consumption is summed to obtain the data time slot power consumption, where the calculation formula for data time slot power consumption is as follows: , in, Indicates the power consumption of the data slot. This represents the total number of data time slots in the data time slot sequence. Represents the first data slot in the time sequence. The operating current corresponding to each data time slot Represents the first data slot in the time sequence. The duration of the data transmission time segment corresponding to each data slot. Represents the first data slot in the time sequence. The dormant current corresponding to each data time slot Represents the first data slot in the time sequence. The length of the module sleep period corresponding to each data slot. Indicates the operating voltage.
7. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 6, characterized in that, The step of obtaining the updated data slot sequence set based on the data slot sequence includes: Obtain the update priority data sequence and update time slot sequence corresponding to the data time slot sequence; The update priority data in the update priority data sequence is randomly sorted multiple times to obtain the target priority data sequence set. The target priority data sequence set includes multiple target priority data sequences, and each target priority data sequence is different from the update priority data sequence. For each target priority data sequence in the target priority data sequence set, perform the following operation: The target priority data sequence and the update time slot sequence are matched sequentially to obtain the preprocessed data time slot sequence; The updated data time slot sequence is obtained based on the first data time slot, the second data time slot, and the preprocessed data time slot sequence; The updated data time slot sequences are summarized to obtain the updated data time slot sequence set.
8. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 7, characterized in that, The step of obtaining the target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set includes: Obtain the updated data time slot power consumption set based on the updated data time slot sequence set; Sort the power consumption of the updated data slots in the updated data slot power consumption set in ascending order to obtain the target data slot power consumption sequence; Extract the power consumption of the first target data time slot from the target data time slot power consumption sequence to obtain the power consumption of the data time slot to be confirmed; Compare the power consumption of the data time slot with the power consumption of the data time slot to be confirmed. If the power consumption of the data time slot is less than or equal to the power consumption of the data time slot to be confirmed, then the data time slot sequence corresponding to the power consumption of the data time slot is taken as the target data time slot sequence. If the power consumption of the data time slot is greater than the power consumption of the data time slot to be confirmed, then the updated data time slot sequence corresponding to the power consumption of the data time slot to be confirmed is taken as the target data time slot sequence.
9. The time-sharing scheduling method for low-power data transmission in smart glasses as described in claim 8, characterized in that, The low-power data transmission time-division scheduling based on the target data time slot sequence includes: Extract the target data time slots sequentially from the target data time slot sequence, and perform the following operations on the extracted target data time slots: The target data stream is obtained by scheduling the data stream corresponding to the extracted target data time slot using a pre-built scheduler. The target data stream is transmitted using the data transmission channel corresponding to the target data stream to obtain the transmitted data; Remove the extracted target data time slots from the target data time slot sequence to obtain the updated target data time slot sequence; The target communication module set is obtained based on the updated target data time slot sequence; The target communication modules in the target communication module set are driven into a sleep state using a scheduler to obtain a sleep communication module set; Low-power data transmission time-sharing scheduling is achieved based on the aforementioned data transmission and sleep communication module set.
10. A time-sharing scheduling system for low-power data transmission in smart glasses, characterized in that, The system includes: The time-sharing scheduling environment confirmation module is used to receive time-sharing scheduling instructions and confirm the time-sharing scheduling environment based on the time-sharing scheduling instructions. The time-sharing scheduling environment includes a time-sharing scheduling system and multiple data streams to be transmitted. The time-sharing scheduling system includes a time slot division unit, a time slot matching unit and a power consumption monitoring unit. The time slot partitioning and matching module is used to obtain a priority data sequence based on the multiple data streams, wherein the priority data sequence includes multiple different priority data, and the priority data corresponds one-to-one with the data stream; Receive a time slot partitioning instruction from the time slot partitioning unit, and partition a preset scheduling period based on the time slot partitioning instruction and priority data sequence to obtain a time slot sequence; Receive a time slot matching instruction from the time slot matching unit, and match the priority data sequence and time slot sequence based on the time slot matching instruction to obtain a data time slot sequence; A power consumption monitoring module is used to receive power consumption monitoring instructions from a power consumption monitoring unit, and to perform power consumption monitoring on the data time slot sequence based on the power consumption monitoring instructions to obtain the data time slot power consumption. The time-sharing scheduling module is used to obtain an updated data time slot sequence set based on the data time slot sequence, and to obtain a target data time slot sequence based on the data time slot power consumption and the updated data time slot sequence set. Low-power data transmission time-division scheduling is achieved based on the target data time slot sequence.
Citation Information
Patent Citations
Transmission method and device
CN110380831A
Method and system for controlling intelligent glasses with camera shooting function
CN119556479A