Equipment awakening method and device, storage medium and electronic equipment
By periodically detecting preamble data in wireless devices and adjusting the detection duration according to wake-up efficiency, the problem of high power consumption caused by low wake-up accuracy of wireless devices is solved, and communication reliability and energy efficiency ratio are improved.
Patent Information
- Application Number
- CN202411123398.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-22
AI Technical Summary
When a wireless device is in a low-power state, due to the complex and changeable wireless signals, the accuracy of waking up the device is low, resulting in high power consumption of the device.
By periodically detecting preamble data within a preset time period, and adjusting the detection time according to wake-up efficiency, the receiving device is woken up when the target verification conditions are met, and the detection time is dynamically adjusted to optimize wake-up efficiency and reduce power consumption.
It improves the communication reliability and energy efficiency ratio of wireless devices in low-power states, reduces the power consumption of the device, and solves the problem of high power consumption caused by low accuracy of waking up the device.
Smart Images

Figure CN118828601A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method and apparatus for waking up a device, a storage medium, and an electronic device. Background Art
[0002] At present, in order to balance power consumption and communication performance in a low-power working state, wireless devices usually adopt a timed reception method to wake up the device by detecting the preamble data to receive business data for processing. However, in actual environments, due to the complexity and variability of wireless signals, wireless devices are susceptible to interference. In summary, there is a technical problem in the related technology that the accuracy of waking up the device is low, resulting in high power consumption of the device.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method and apparatus for waking up a device, a storage medium, and an electronic device, so as to at least solve the technical problem that the accuracy of waking up the device is low, resulting in high power consumption of the device.
[0005] According to one aspect of an embodiment of the present application, a device wake-up method is provided, comprising: periodically detecting preamble data within a preset duration, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by a sending device; verifying the preamble data detected within the preset duration, and waking up the receiving device to receive service data if the preamble data meets a target verification condition, wherein the preamble data meeting the target verification condition indicates that the receiving device is allowed to receive the service data; verifying the service data received within the preset duration, determining at least one matching result, and determining the wake-up efficiency of the receiving device according to the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly woken up, and the matching result includes that if the service data matches the receiving device, the receiving device is correctly woken up, and if the service data does not match the receiving device, the receiving device is not correctly woken up; if the wake-up efficiency meets the preset efficiency condition, adjusting the duration of each detection of the preamble data by the receiving device to a second duration, wherein the first duration is different from the second duration.
[0006] According to another aspect of an embodiment of the present application, a device wake-up device is also provided, including: a detection module, used to periodically detect preamble code data within a preset duration, wherein the duration of each detection of the preamble code data by the receiving device is set to a first duration, and the preamble code data is sent by the sending device; a verification module, used to verify the preamble code data detected within the preset duration, and if the preamble code data meets the target verification condition, wake up the receiving device to receive business data, wherein the preamble code data meeting the target verification condition indicates that the receiving device is allowed to receive the business data; a determination module, used to verify the preamble code data received within the preset duration The business data is verified to determine at least one matching result, and the wake-up efficiency of the receiving device is determined based on the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly awakened, and the matching result includes that when the business data matches the receiving device, the receiving device is correctly awakened, and when the business data does not match the receiving device, the receiving device is not correctly awakened; an adjustment module is used to adjust the duration of each detection of the preamble code data by the receiving device to a second duration when the wake-up efficiency meets a preset efficiency condition, wherein the first duration is different from the second duration.
[0007] Optionally, the device is used to verify the business data received within the preset time length in the following manner to determine at least one matching result, and determine the wake-up efficiency of the receiving device based on the at least one matching result: verify the business data received within the preset time length, and determine a first matching result when the business data matches the receiving device, and determine a second matching result when the business data does not match the receiving device; determine the business data corresponding to the first matching result as valid business data, and determine the business data corresponding to the second matching result as invalid business data; determine a first number corresponding to the valid business data and a second number corresponding to the invalid business data within the preset time length; and use the first number and the second number to determine the wake-up efficiency.
[0008] Optionally, the device is used to determine the wake-up efficiency using the first quantity and the second quantity in the following manner: obtaining a first weight coefficient set for the valid business data and a second weight coefficient set for the invalid business data; using the first weight coefficient and the second weight coefficient to perform a weighted conversion operation on the first quantity and the second quantity to determine the wake-up efficiency within the preset time length.
[0009] Optionally, the device is used to verify the business data received within the preset time period in the following manner, and determine a first matching result when the business data matches the receiving device, and determine a second matching result when the business data does not match the receiving device: obtaining a first receiving device identifier of the business data and a second receiving device identifier of the receiving device; verifying the first receiving device identifier and the second receiving device identifier; determining the first matching result when the first receiving device identifier and the second receiving device identifier are the same or belong to the same device set; determining the second matching result when the first receiving device identifier and the second receiving device identifier are different or do not belong to the same device set.
[0010] Optionally, the device is used to adjust the duration of each time the receiving device detects the preamble code data to a second duration when the wake-up efficiency meets a preset efficiency condition in the following manner: when the wake-up efficiency is less than or equal to a first efficiency threshold, adjusting the duration of each time the receiving device detects the preamble code data to the second duration, wherein the second duration is greater than the first duration; when the wake-up efficiency is greater than or equal to a second efficiency threshold, adjusting the duration of each time the receiving device detects the preamble code data to the second duration, wherein the second duration is less than the first duration, and the second efficiency threshold is greater than the first efficiency threshold.
[0011] Optionally, the device is also used to: when the wake-up efficiency is less than or equal to a third efficiency threshold, adjust the duration of each time the receiving device detects the preamble code data to a third duration, wherein the third duration is greater than the first duration, and the third efficiency threshold is less than the first efficiency threshold; when the wake-up efficiency is greater than or equal to a fourth efficiency threshold, adjust the duration of each time the receiving device detects the preamble code data to a fourth duration, wherein the fourth duration is greater than the second duration, and the fourth efficiency threshold is greater than the second efficiency threshold.
[0012] Optionally, the device is used to adjust the duration of each time the receiving device detects the preamble code data to a second duration when the wake-up efficiency meets a preset efficiency condition in the following manner: when the wake-up efficiency is less than or equal to a first target efficiency threshold, determine a first parameter value relationship between the wake-up efficiency and the first target efficiency threshold; use the first parameter value relationship to determine a first time difference; determine the sum of the first time difference and the first duration as the second duration, and adjust the duration of each time the receiving device detects the preamble code data to the second duration; when the wake-up efficiency is greater than or equal to the second target efficiency threshold, determine a second parameter value relationship between the wake-up efficiency and the first target efficiency threshold, wherein the second target efficiency threshold is greater than the first target efficiency threshold; use the second parameter value relationship to determine a second time difference; determine the difference between the first time difference and the first duration as the second duration, and adjust the duration of each time the receiving device detects the preamble code data to the second duration.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the wake-up method of the above-mentioned device when running.
[0014] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the wake-up method of the above device.
[0015] According to another aspect of an embodiment of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the device wake-up method through the computer program.
[0016] In an embodiment of the present application, a periodic detection of preamble data within a preset duration is adopted, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by the sending device; the preamble data detected within the preset duration is verified, and when the preamble data meets a target verification condition, the receiving device is awakened to receive service data, wherein the preamble data meeting the target verification condition indicates that the receiving device is allowed to receive service data; the service data received within the preset duration is verified, and at least one matching result is determined, and the wake-up efficiency of the receiving device is determined based on the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly awakened, and the matching result indicates whether the receiving device is awakened correctly. The results include that when the business data matches the receiving device, the receiving device is correctly awakened, and when the business data does not match the receiving device, the receiving device is not correctly awakened; when the wake-up efficiency meets the preset efficiency condition, the duration of each detection of the preamble code data by the receiving device is adjusted to a second duration, wherein the first duration is different from the second duration, and the target verification condition can also be adjusted by dynamically adjusting the detection duration to achieve the purpose of optimizing the wake-up efficiency and reducing power consumption, thereby achieving the technical effect of improving the communication reliability and energy efficiency of the wireless device in a low power consumption state, and further solving the technical problem of low accuracy of the wake-up device, resulting in high power consumption of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of an application environment of an optional device wake-up method according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of an optional method for waking up a device according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of an optional device wake-up method according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application;
[0024] Figure 7 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application;
[0025] Figure 8 is a schematic structural diagram of an optional device wake-up device according to an embodiment of the present application;
[0026] Fig. 9 is a schematic structural diagram of an optional device wake-up product according to an embodiment of the present application;
[0027] Fig.10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] The present application is described below in conjunction with embodiments:
[0031] According to one aspect of an embodiment of the present application, a device wake-up method is provided. Optionally, in this embodiment, the device wake-up method can be applied to: Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 via a network, and can be used to provide services for the terminal device or the application installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, for example, a local area network, a metropolitan area network, and a wide area network; the wireless network includes, for example, Bluetooth, WIFI, and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal, and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0032] Combination Figure 1 As shown, the wake-up method of the above-mentioned device can be executed by an electronic device, which can be a terminal device or a server. The wake-up method of the above-mentioned device can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.
[0033] The above is only an example and is not specifically limited in this embodiment.
[0034] Optionally, as an optional implementation, as Figure 2 As shown, the wake-up method of the above device includes:
[0035] S202, periodically detecting the preamble data within a preset duration, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by the sending device;
[0036] Optionally, in an embodiment of the present application, the above-mentioned preamble code data refers to a specific signal sequence used to instruct the above-mentioned receiving device to start receiving business data sent by the sending device. The above-mentioned receiving device may include but is not limited to wireless sensors, smart phones, wearable devices, etc. The above-mentioned duration refers to the time window used by the receiving device to detect the preamble code in each wake-up cycle, and the duration can be adjusted according to actual needs. The above-mentioned sending device may include but is not limited to wireless gateways, servers, other wireless communication devices, etc., and can be used to send preamble code data and business data packets to the receiving device.
[0037] In an exemplary embodiment, the sending device is a wireless gateway, the receiving device is a wireless sensor, and the preamble data is a signal sequence pre-agreed by the wireless gateway and the wireless sensor. For example, the preamble data is "555555". Within the preset time period, the wireless sensor detects whether the preamble data can be obtained every 20 seconds.
[0038] S204, verifying the preamble data detected within a preset time length, and waking up the receiving device to receive service data if the preamble data meets the target verification condition, wherein the preamble data meeting the target verification condition indicates that the receiving device is allowed to receive the service data;
[0039] Optionally, in an embodiment of the present application, the above-mentioned target verification conditions refer to predefined rules or parameters between the receiving device and the sending device, which are used to verify the correctness and integrity of the preamble data, and may include but are not limited to the specific format of the preamble, checksum, CRC (cyclic redundancy check) code, synchronization word, etc. The above-mentioned business data may include but are not limited to the data content actually transmitted between the sending device and the receiving device, control instructions, configuration information, status updates, etc., which is the information that the receiving device needs to process after waking up, including but not limited to text, audio, video, sensor readings and other digital information.
[0040] Exemplarily, if the above-mentioned receiving device detects the above-mentioned preamble code data within a preset time length, then, it is determined whether the preamble code data meets the target verification condition. If it does, as in the embodiment of the present application, the receiving device is awakened to prepare to receive the above-mentioned business data sent from the sending device, and the business data is subsequently processed.
[0041] It should be noted that if there are multiple receiving devices as mentioned above, the preamble code data sent by the sending device may include but is not limited to being detected by these multiple receiving devices, and the time periods for these multiple devices to periodically detect the preamble code data may be the same or different. For example, receiving device A detects whether the preamble code data can be obtained every 20 seconds within the above-mentioned preset time length; receiving device B detects whether the preamble code data can be obtained every 30 seconds within the above-mentioned preset time length.
[0042] In an exemplary embodiment, the above-mentioned target verification condition is: if the receiving device receives two consecutive codeword signals in the preamble data, it is considered that the preamble data meets the target verification condition. At this time, the receiving device is awakened and is ready to receive the service data sent by the sending device.
[0043] In another exemplary embodiment, the sending device may also periodically send preamble code data and service data within the above-mentioned preset time length, and directly send the service data after sending the preamble code data, and the data sending period of the sending device may be the same as or different from the data receiving period of the above-mentioned receiving device.
[0044] S206, verifying the service data received within the preset time period, determining at least one matching result, and determining the wake-up efficiency of the receiving device according to the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly woken up, and the matching result includes that when the service data matches the receiving device, the receiving device is correctly woken up, and when the service data does not match the receiving device, the receiving device is not correctly woken up;
[0045] Optionally, in an embodiment of the present application, the above-mentioned matching result can be understood as whether the business data received by the receiving device is valid data, that is, the verification result of the business data performed by the receiving device indicates whether the received business data conforms to the expected format or content, thereby judging whether the wake-up operation is performed based on valid preamble code data. The above-mentioned wake-up efficiency refers to the proportion or frequency of the receiving device successfully responding to the business data matching the receiving device during the wake-up attempt, which is used to measure the communication reliability of the receiving device in a low power consumption state.
[0046] Exemplarily, after obtaining the above service data, the receiving device will determine whether the service data is valid. If valid, the current wake-up is identified as a valid wake-up, and the number of valid wake-ups within a preset period is obtained.
[0047] In an exemplary embodiment, the above wake-up efficiency may include but is not limited to the ratio of the number of correct wake-ups to the total number of wake-up attempts; the number of successful reception and processing of business data within a certain period of time; the ratio of the number of false wake-ups to the number of correct wake-ups, i.e., the false wake-up rate, etc.
[0048] In another exemplary embodiment, it is assumed that the receiving device and the sending device have predefined the expected format or content of the business data. For example, the device number of the receiving device is A. If the receiving device parses the business data after starting to receive the above-mentioned business data and determines that the business data includes the device code "A", the business data will be determined as valid business data, and this wake-up is a valid wake-up, and the wake-up operation is performed based on the valid preamble data. On the contrary, if the business data is parsed and it is determined that the business data does not include the device code "A", the business data will be determined as invalid business data, and this wake-up is an invalid wake-up. Further, the number of valid wake-ups and the number of invalid wake-ups of the receiving device within a preset period are counted to obtain the above-mentioned at least one matching result, each of the at least one matching result corresponds to each time the receiving device receives business data, and then, based on the at least one matching result, the ratio of the valid wake-up number*valid weight coefficient / (valid wake-up number*valid weight coefficient+invalid wake-up number*invalid weight coefficient) is determined as the above-mentioned wake-up efficiency. The valid weight coefficient and the invalid weight coefficient can be flexibly set, and the present application does not limit this.
[0049] In another exemplary embodiment, assuming that the purpose of the receiving device is to perform operations such as data cleaning on the address information in the business data, if the receiving device parses the business data after starting to receive the above business data and determines that the business data includes address information, then the business data will be determined to be valid business data, and the wake-up operation is performed based on the valid preamble code data. Conversely, if the business data is parsed and it is determined that the business data does not include address information, the business data will be determined to be invalid business data.
[0050] S208, when the wake-up efficiency meets the preset efficiency condition, adjusting the duration of each detection of the preamble data by the receiving device to a second duration, wherein the first duration is different from the second duration.
[0051] Optionally, in an embodiment of the present application, the above-mentioned preset efficiency condition can be determined by predefined rules and wake-up efficiency thresholds of the above-mentioned receiving device and the above-mentioned sending device, and the above-mentioned first time length is greater than the above-mentioned second time length, or the above-mentioned first time length is less than the above-mentioned second time length.
[0052] Exemplarily, the wake-up efficiency corresponding to the receiving device is determined within the above-mentioned preset duration, and then, as in the embodiment of the present application, it is determined whether the wake-up efficiency meets the above-mentioned preset efficiency condition, and the above-mentioned duration is dynamically adjusted based on the determination result.
[0053] In an exemplary embodiment, if the wake-up efficiency is less than the minimum wake-up efficiency in the preset efficiency conditions, the verification conditions in the target verification conditions can be appropriately relaxed. For example, the original target verification conditions are: if the codeword in the preamble data includes five consecutive specified codeword signals, the preamble data is considered to meet the target verification conditions, and the receiving device will be woken up. At this time, the target verification conditions can be adjusted to: if the codeword in the preamble data includes two consecutive specified codeword signals, the preamble data is considered to meet the target verification conditions, and the receiving device will be woken up. For another example, if the wake-up efficiency is less than the minimum wake-up efficiency in the preset efficiency conditions, the verification conditions in the target verification conditions can be appropriately narrowed. At this time, the target verification conditions can be adjusted to: if the codeword in the preamble data includes six consecutive specified codeword signals, the preamble data is considered to meet the target verification conditions, and the receiving device will be woken up.
[0054] In another exemplary embodiment, the wake-up efficiency is less than the minimum wake-up efficiency in the preset efficiency condition. The original target verification condition is: if the codeword in the preamble data includes five consecutive designated codeword signals and the receiving time does not exceed 1ms, then the preamble data is considered to meet the target verification condition, and the receiving device will be woken up. At this time, the target verification condition can be adjusted to: if the codeword in the preamble data includes five consecutive designated codeword signals, then the preamble data is considered to meet the target verification condition, and the receiving device will be woken up. In summary, the above-mentioned target verification conditions can be adjusted from multiple dimensions and aspects, including but not limited to increasing or decreasing the number of consecutive designated codeword signals; introducing additional verification mechanisms, such as adding CRC verification or encryption verification; changing the type or frequency of the codeword signal; considering signal strength or signal-to-noise ratio as part of the verification condition, etc.
[0055] In an exemplary embodiment, Figure 3 1 is a schematic diagram of an optional device wake-up method according to an embodiment of the present application. Assuming that the receiving device is a wireless sensor, after the wireless sensor receives the preamble data each time within a preset period, the specific wake-up and subsequent service data processing flow can be as follows: Figure 3 As shown:
[0056] S302, the wireless sensor in the low power consumption working state receives the preamble data;
[0057] S304, the wireless sensor determines whether the codeword in the preamble data includes two consecutive designated codeword signals, and if so, executes S306, otherwise executes S314;
[0058] S306, the wireless sensor receives service data;
[0059] S308, determining whether the service data includes the device number of the wireless sensor, if yes, executing S310, otherwise executing S312;
[0060] S310, determining the preamble data received by the wireless sensor this time as valid preamble data, that is, the current awakening of the wireless sensor is a valid awakening;
[0061] S312, determining the preamble data received by the wireless sensor this time as invalid preamble data, that is, the current wake-up of the wireless sensor is invalid wake-up;
[0062] S314, the wireless sensor enters a dormant state and waits for the next reception of preamble data.
[0063] Furthermore, the number of valid wake-up times and invalid wake-up times of the wireless sensor within a preset period is counted to generate the wake-up efficiency of the wireless sensor within the preset period. If the wake-up efficiency meets the preset efficiency condition, the above-mentioned duration is adjusted to the second duration, and the above-mentioned target verification condition can also be adaptively adjusted.
[0064] Through the embodiments of the present application, the preamble code data is periodically detected within a preset time length, wherein the duration of each detection of the preamble code data by the receiving device is set to a first time length, and the preamble code data is sent by the sending device; the preamble code data detected within the preset time length is verified, and when the preamble code data meets the target verification condition, the receiving device is awakened to receive the service data, wherein the preamble code data meeting the target verification condition indicates that the receiving device is allowed to receive the service data; the service data received within the preset time length is verified, and at least one matching result is determined, and the wake-up efficiency of the receiving device is determined based on the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly awakened, and the matching result indicates whether the receiving device is awakened correctly. The results include that when the business data matches the receiving device, the receiving device is correctly awakened, and when the business data does not match the receiving device, the receiving device is not correctly awakened; when the wake-up efficiency meets the preset efficiency condition, the duration of each detection of the preamble code data by the receiving device is adjusted to a second duration, wherein the first duration is different from the second duration, and the target verification condition can also be adjusted by dynamically adjusting the detection duration to achieve the purpose of optimizing the wake-up efficiency and reducing power consumption, thereby achieving the technical effect of improving the communication reliability and energy efficiency of the wireless device in a low power consumption state, and further solving the technical problem of low accuracy of the wake-up device, resulting in high power consumption of the device.
[0065] As an optional scheme, the above-mentioned business data received within the above-mentioned preset time period is verified to determine at least one matching result, and the wake-up efficiency of the above-mentioned receiving device is determined according to the above-mentioned at least one matching result, including: verifying the above-mentioned business data received within the above-mentioned preset time period, and determining a first matching result when the above-mentioned business data matches the above-mentioned receiving device, and determining a second matching result when the above-mentioned business data does not match the above-mentioned receiving device; determining the above-mentioned business data corresponding to the above-mentioned first matching result as valid business data, and determining the above-mentioned business data corresponding to the above-mentioned second matching result as invalid business data; determining a first number corresponding to the above-mentioned valid business data and a second number corresponding to the above-mentioned invalid business data within the above-mentioned preset time period; and using the above-mentioned first number and the above-mentioned second number to determine the above-mentioned wake-up efficiency.
[0066] Optionally, in an embodiment of the present application, the above-mentioned first matching result may include but is not limited to correct data reception, successful verification, address matching, etc., the above-mentioned second matching result may include but is not limited to data error, verification failure, address mismatch, etc., the above-mentioned valid business data refers to data that has successfully passed the verification and is processed by the receiving device, the above-mentioned invalid business data refers to data that has failed to pass the verification or has been ignored by the receiving device, the above-mentioned first quantity refers to the number of valid business data packets that have been successfully received and processed within a preset time length, and the above-mentioned second quantity refers to the number of invalid business data packets that have been received within the preset time length but have not passed the verification.
[0067] In an exemplary embodiment, after receiving the above-mentioned business data, the receiving device may verify the above-mentioned business data and obtain the above-mentioned first matching result, indicating that the business data passes the verification, then the business data received this time is valid business data; otherwise, the above-mentioned second matching result is obtained, indicating that the business data fails the verification, then the business data received this time is invalid business data. Specifically, the verification conditions may be agreed upon in advance by the receiving device and the sending device. For example, the device number of the receiving device is A. If the receiving device parses the business data after starting to receive the above-mentioned business data and determines that the business data includes the device code "A", the business data will be determined as valid business data, otherwise it will be determined as invalid business data.
[0068] In another exemplary embodiment, the number of times the receiving device receives valid business data within a preset period is counted as the above-mentioned first number, and the number of times the receiving device receives invalid business data within the preset period is counted as the above-mentioned second number, and the above-mentioned wake-up efficiency is the first number * effective weight coefficient / (first number * effective weight coefficient + second number * invalid weight coefficient), and then, if the wake-up efficiency meets the preset efficiency condition, the above-mentioned duration is adjusted to the second duration.
[0069] Through the embodiment of the present application, the business data received within a preset time length is verified to determine the first matching result and the second matching result, so as to count the first quantity and the second quantity respectively according to the first matching result and the second matching result; the wake-up efficiency is determined using the first quantity and the second quantity to ensure the accuracy of the wake-up efficiency.
[0070] As an optional scheme, the above-mentioned use of the above-mentioned first quantity and the above-mentioned second quantity to determine the above-mentioned wake-up efficiency includes: obtaining the first weight coefficient set for the above-mentioned valid business data and the second weight coefficient set for the above-mentioned invalid business data; using the above-mentioned first weight coefficient and the above-mentioned second weight coefficient to perform a weighted conversion operation on the above-mentioned first quantity and the above-mentioned second quantity to determine the above-mentioned wake-up efficiency within the above-mentioned preset time length.
[0071] Optionally, in an embodiment of the present application, the above-mentioned first weight coefficient and the above-mentioned second weight coefficient can be flexibly set, and the first weight coefficient and the second weight coefficient may include but are not limited to the first weight coefficient being greater than the second weight coefficient, that is, valid business data occupies a larger proportion in the wake-up efficiency calculation; the first weight coefficient is less than the second weight coefficient, that is, the influence of invalid business data in the wake-up efficiency calculation is amplified; the first weight coefficient is equal to the second weight coefficient, that is, valid and invalid business data have equal importance in the wake-up efficiency calculation.
[0072] In an exemplary embodiment, assuming that the first weight coefficient is 0.7 and the second weight coefficient is 0.3, the wake-up efficiency may be determined as 0.7*first number+0.3*second number.
[0073] Through the embodiments of the present application, the first weight coefficient and the second weight coefficient can be flexibly set to optimize the calculation of wake-up efficiency according to specific application scenarios and performance goals, thereby better balancing power consumption and communication performance.
[0074] As an optional scheme, the above-mentioned verification of the business data received within the above-mentioned preset time period, and determining a first matching result when the above-mentioned business data matches the above-mentioned receiving device, and determining a second matching result when the above-mentioned business data does not match the above-mentioned receiving device, including: obtaining the first receiving device identifier of the above-mentioned business data and the second receiving device identifier of the above-mentioned receiving device; verifying the above-mentioned first receiving device identifier and the above-mentioned second receiving device identifier; determining the above-mentioned first matching result when the above-mentioned first receiving device identifier and the above-mentioned second receiving device identifier are the same or belong to the same device set; determining the above-mentioned second matching result when the above-mentioned first receiving device identifier and the above-mentioned second receiving device identifier are different or do not belong to the above-mentioned same device set.
[0075] Optionally, in an embodiment of the present application, the above-mentioned first receiving device identifier and the above-mentioned second receiving device identifier may include but are not limited to device number, device physical address, device IP (network) address, device purpose, etc., and the above-mentioned same device set may include but is not limited to several of the above-mentioned receiving devices.
[0076] In an exemplary embodiment, the device number of the above-mentioned receiving device is 123, and the above-mentioned second receiving device identifier is 123. If the above-mentioned business data includes the second receiving device identifier 123, the first receiving device identifier and the second receiving device identifier are the same, and the first matching result is determined, and the business data is determined to be valid business data.
[0077] In another exemplary embodiment, the device number of the above-mentioned receiving device is 123, and the above-mentioned second receiving device identifier is 123. If the above-mentioned business data includes a second receiving device identifier of 456, the first receiving device identifier and the second receiving device identifier are different, and a second matching result is determined, and the business data is determined to be invalid business data.
[0078] In another exemplary embodiment, the same device set includes receiving devices under the same gateway, that is, the receiving devices all have the same subnet address, that is, each receiving device has the same first three octets of the network address, for example, 192.168.1.X, X is used to distinguish different receiving devices in the same device set, and the first receiving device is identified as "192.168.1". At this time, if the business data should be sent to a device in the device set with the subnet address of "192.168.1", the second receiving device is identified as "192.168.1". At this time, the first receiving device identifier and the second receiving device identifier are the same, a first matching result is determined, and the business data is determined to be valid business data.
[0079] Through the embodiment of the present application, the first matching result and the second matching result are determined by comparing the first receiving device identifier and the second receiving device identifier, thereby achieving the technical effect of improving the wake-up efficiency of the receiving device and the accuracy of data processing.
[0080] As an optional scheme, when the wake-up efficiency meets the preset efficiency condition, the duration of each detection of the preamble code data by the above-mentioned receiving device is adjusted to a second duration, including: when the wake-up efficiency is less than or equal to the first efficiency threshold, the duration of each detection of the preamble code data by the above-mentioned receiving device is adjusted to the second duration, wherein the second duration is greater than the first duration; when the wake-up efficiency is greater than or equal to the second efficiency threshold, the duration of each detection of the preamble code data by the above-mentioned receiving device is adjusted to the second duration, wherein the second duration is less than the first duration, and the second efficiency threshold is greater than the first efficiency threshold.
[0081] Optionally, in an embodiment of the present application, the first efficiency threshold and the second efficiency threshold can be flexibly set.
[0082] For example, Figure 4 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application. When the wake-up efficiency is less than or equal to the first efficiency threshold, adjusting the duration includes but is not limited to the following: Figure 4 As shown:
[0083] S402, the receiving device starts preparing to receive the preamble data;
[0084] S404, counting wake-up efficiency;
[0085] S406, determining whether the wake-up efficiency is less than or equal to the first efficiency threshold, if yes, executing S408, otherwise executing S404;
[0086] S408, shortening the duration of each detection of the leading code data by the receiving device, and lowering the target verification condition.
[0087] In an exemplary embodiment, assuming that the first efficiency threshold is 60% and the second efficiency threshold is 80%, the duration of each detection of the preamble data by the above-mentioned receiving device is initially set to the first duration, for example, 1 millisecond. Assuming that after a period of detection, the wake-up efficiency calculation result is 55%, which is lower than the first efficiency threshold of 60%, the duration of the detection of the preamble data can be increased to improve the accuracy of the detection. Therefore, the duration can be adjusted from the first duration to the second duration, for example, from 1 millisecond to 2 milliseconds.
[0088] For example, Figure 5 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application. When the wake-up efficiency is greater than or equal to the first efficiency threshold, adjusting the duration includes but is not limited to the following: Figure 5 As shown:
[0089] S502, the receiving device starts preparing to receive the preamble data;
[0090] S504, counting wake-up efficiency;
[0091] S506, determining whether the wake-up efficiency is greater than or equal to the first efficiency threshold, if yes, executing S508, otherwise executing S504;
[0092] S508, increase the duration of each detection of the leading code data by the receiving device to improve the target verification condition.
[0093] In another exemplary embodiment, assuming that after another period of detection, the wake-up efficiency is improved to 85%, which is higher than the second efficiency threshold of 80%. At this time, the duration of detecting the preamble code data can be reduced to reduce energy consumption. Therefore, the duration is adjusted from the second duration to the first duration, for example, from 2 milliseconds to 1 millisecond.
[0094] Through the embodiments of the present application, the first efficiency threshold and the second efficiency threshold are respectively compared with the above-mentioned wake-up efficiency to determine whether the above-mentioned duration needs to be adjusted and how to adjust the duration, so as to automatically adjust the duration according to the current wake-up efficiency to achieve the best balance between the energy consumption and communication performance of the receiving device.
[0095] As an optional scheme, the above method also includes: when the above wake-up efficiency is less than or equal to a third efficiency threshold, adjusting the duration of each time the above-mentioned receiving device detects the above-mentioned preamble code data to a third duration, wherein the third duration is greater than the first duration, and the third efficiency threshold is less than the first efficiency threshold; when the above-mentioned wake-up efficiency is greater than or equal to a fourth efficiency threshold, adjusting the duration of each time the above-mentioned receiving device detects the above-mentioned preamble code data to a fourth duration, wherein the fourth duration is greater than the second duration, and the fourth efficiency threshold is greater than the second efficiency threshold.
[0096] Optionally, in the embodiment of the present application, the third efficiency threshold and the fourth efficiency threshold can be flexibly set.
[0097] Exemplarily, when the wake-up efficiency is lower than the third efficiency threshold, a longer duration (that is, the first duration at this time is adjusted to the third duration) is required to increase the number of preamble code wake-up receptions, thereby reducing the number of invalid wake-ups; after a period of time, the wake-up efficiency is higher than the third efficiency threshold, however, when it is lower than the first efficiency threshold, the duration needs to be further increased. At this time, the third duration can be adjusted to the second duration to further reduce the number of invalid wake-ups, and the first duration here is less than the second duration.
[0098] In an exemplary embodiment, assuming that the first efficiency threshold is 80% and the third efficiency threshold is 70%, the duration of each detection of the preamble code data by the receiving device is initially set to the first duration, for example, 1 millisecond. Assuming that after a period of detection, the wake-up efficiency is calculated to be 65%, which is lower than the third efficiency threshold of 70%, and the duration needs to be increased, and the duration is adjusted from the first duration to the third duration, for example, from 1 millisecond to 2.5 milliseconds. Assuming that after the next period of detection, the wake-up efficiency is increased to 85%, which is higher than the third efficiency threshold of 70%, but lower than the first efficiency threshold of 80%, and the duration needs to be further increased, and the duration is adjusted from the third duration to the second duration, for example, from 2.5 milliseconds to 3.5 milliseconds.
[0099] Exemplarily, when the wake-up efficiency is greater than the fourth efficiency threshold, in order to ensure a balance between the energy consumption and communication performance of the receiving device, the above-mentioned duration will be shortened (that is, the first duration at this time will be adjusted to the fourth duration) to reduce the number of preamble code wake-up receptions; after a period of time, the wake-up efficiency is lower than the fourth efficiency threshold, however, when it is higher than the second efficiency threshold, the duration needs to be further shortened. At this time, the fourth duration can be adjusted to the second duration, and the first duration here is greater than the second duration.
[0100] In another exemplary embodiment, assuming that the second efficiency threshold is 80% and the fourth efficiency threshold is 95%, the duration of each detection of the preamble code data by the receiving device is initially set to the first duration, for example, 1 millisecond. Assuming that after a period of detection, the wake-up efficiency is calculated to be 99%, which is higher than the fourth efficiency threshold of 90%, and the duration needs to be reduced, and the duration is adjusted from the first duration to the fourth duration, for example, from 4 milliseconds to 3 milliseconds. Assuming that after the next period of detection, the wake-up efficiency is reduced to 85%, which is lower than the fourth efficiency threshold of 95%, but higher than the second efficiency threshold of 80%, and the duration needs to be further reduced, and the duration is adjusted from the fourth duration to the second duration, for example, from 3 milliseconds to 2 milliseconds.
[0101] Through the embodiments of the present application, multiple efficiency thresholds can be set to adjust the above-mentioned duration multiple times, so as to make flexible adjustments according to actual application scenarios and ensure accurate regulation of the wake-up efficiency.
[0102] As an optional scheme, when the wake-up efficiency satisfies the preset efficiency condition, the duration of each detection of the preamble code data by the above-mentioned receiving device is adjusted to a second duration, including: when the above-mentioned wake-up efficiency is less than or equal to the first target efficiency threshold, determining the first parameter value relationship between the above-mentioned wake-up efficiency and the above-mentioned first target efficiency threshold; using the above-mentioned first parameter value relationship to determine the first time difference; determining the sum of the above-mentioned first time difference and the above-mentioned first duration as the above-mentioned second duration, and adjusting the duration of each detection of the above-mentioned preamble code data by the above-mentioned receiving device to the above-mentioned second duration; when the above-mentioned wake-up efficiency is greater than or equal to the second target efficiency threshold, determining the second parameter value relationship between the above-mentioned wake-up efficiency and the above-mentioned first target efficiency threshold, wherein the above-mentioned second target efficiency threshold is greater than the above-mentioned first target efficiency threshold; using the above-mentioned second parameter value relationship to determine the second time difference; determining the difference between the above-mentioned first time difference and the above-mentioned first duration as the above-mentioned second duration, and adjusting the duration of each detection of the above-mentioned preamble code data by the above-mentioned receiving device to the above-mentioned second duration.
[0103] Optionally, in an embodiment of the present application, the relationship between the values of the above-mentioned first parameter includes but is not limited to at least one of the above-mentioned wake-up efficiency being greater than the above-mentioned first target efficiency threshold, the above-mentioned wake-up efficiency being less than the above-mentioned first target efficiency threshold, the above-mentioned wake-up efficiency being equal to the above-mentioned first target efficiency threshold, the above-mentioned wake-up efficiency being greater than or equal to the above-mentioned first target efficiency threshold, and the above-mentioned wake-up efficiency being less than or equal to the above-mentioned first target efficiency threshold.
[0104] In an exemplary embodiment, a first time difference value of the duration that should be increased under the current wake-up efficiency is calculated based on the first parameter value relationship, and the first time difference value is added to the initial duration to obtain a new duration, i.e., a second duration. The settings of the receiving device are adjusted so that the duration of each detection of the leading code data is the second duration. For example, the above-mentioned wake-up efficiency is 70%, and the above-mentioned first target efficiency threshold is 80%, and the difference between the two is 10%. At this time, the first duration is 30 seconds. The above-mentioned first time difference value can be determined as the product of the difference between the above-mentioned wake-up efficiency and the above-mentioned first target efficiency threshold and the first duration (10%*30). At this time, the above-mentioned second duration is 33 (30+3) seconds.
[0105] In an exemplary embodiment, a second time difference value of the duration that should be increased under the current wake-up efficiency is calculated based on the relationship between the first parameter values, and the difference between the second time difference value and the initial duration is determined as a new duration, i.e., the second duration. The settings of the receiving device are adjusted so that the duration of each detection of the leading code data is the second duration. For example, the above-mentioned wake-up efficiency is 80%, and the above-mentioned first target efficiency threshold is 70%, and the difference between the two is 10%. At this time, the first duration is 30 seconds. The above-mentioned second time difference value can be determined as the product of the difference between the above-mentioned wake-up efficiency and the above-mentioned first target efficiency threshold and the first duration (10%*30). At this time, the above-mentioned second duration is 27 (30-3) seconds.
[0106] Through the embodiments of the present application, the adjustment of the above-mentioned duration is dynamically associated with the wake-up efficiency, and the duration of the receiving device detecting the preamble code data can be automatically adjusted according to the actual wake-up efficiency, thereby achieving the goals of low power consumption and high communication efficiency.
[0107] Exemplarily, the device wake-up method proposed in this application can be applied to the field of wireless communication technology to realize environmental reception data detection, dynamically adjust the preamble check condition, and ensure that the device can obtain wireless data with lower power consumption in an environment with less interference. In an environment with greater interference, the number of false wake-ups can be reduced, and the wireless operation power consumption can be reduced by adapting to different environmental interferences.
[0108] It should be noted that the preamble data wake-up principle in the embodiment of the present application is that the RF chip of the receiving device receives the wireless signal in the air. When the received data is consistent with the preset preamble data and meets a certain preamble length, the RF chip will generate an interrupt, thereby waking up the device to complete the reception of the business data.
[0109] In an exemplary embodiment, Figure 6 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application, such as Figure 6 As shown in the receiving display diagram 602 in FIG. 1 , when the receiving device is awakened by receiving the preamble data, it is often necessary to receive service data. When the receiving device receives service data that meets the conditional format (that is, the service data received within the preset time length is checked as described above), it is considered to be a valid awakening, and the number of valid awakenings generated by the receiving device within the unit time period Tn (the above preset period) is recorded as E1. Conversely, if the receiving device is awakened by receiving the preamble data, such as Figure 6As shown in the receiving display diagram 604, if no business data that meets the conditional format is received after opening a receiving window, it is considered that this is an invalid wake-up, and the number of invalid wake-ups generated by the receiving device within the unit time period Tn is recorded as I1. By weighted conversion of the valid wake-up number E1 and the invalid wake-up number I1 generated within the unit time period Tn, the wake-up efficiency of the receiving device in the current environment is obtained and recorded as Ef.
[0110] Furthermore, when the wake-up efficiency Ef is lower than the set third efficiency threshold, the duration is increased and the number of preamble code wake-up receptions is increased, thereby achieving the purpose of reducing the number of invalid wake-ups. When the wake-up efficiency Ef is still lower than the set first efficiency threshold, the duration is increased again and the number of preamble code wake-up receptions is increased, thereby achieving a further reduction in the number of invalid wake-ups. Similarly, when the wake-up efficiency Ef is higher than the set fourth efficiency threshold, the duration is reduced and the number of preamble code wake-up receptions is reduced. Thus, the purpose of reducing the standby reception power consumption of the receiving device is achieved. When the wake-up efficiency Ef is still higher than the set second efficiency threshold, the duration is reduced again and the number of preamble code wake-up receptions is reduced, thereby achieving a further reduction in power consumption.
[0111] It should be noted that the increase or decrease of the above-mentioned duration will be adjusted within the range of the normal establishment of the communication infrastructure between the receiving device and the sending device.
[0112] Further, Figure 7 1 is a schematic diagram of another optional device wake-up method according to an embodiment of the present application. Without using the device wake-up method proposed in the present application, the power consumption performance of the receiving device in an ideal environment is as follows: Figure 7 As shown in the power consumption performance diagram 702, the receiving device is awakened at a certain time interval, and enters the sleep state after not being awakened. The power consumption performance in the interference environment is as follows Figure 7 The power consumption performance diagram 704 in FIG. 704 is shown. After using the device wake-up method proposed in the present application, the power consumption performance of the receiving device under an ideal environment is as follows: Figure 7 As shown in the power consumption performance diagram 706, the receiving device is awakened at a certain time interval, and enters the sleep state after not being awakened. The power consumption performance in the interference environment is as follows Figure 7 As shown in the power consumption performance diagram 708, at this time, the receiving device wakes up at a certain time interval. Due to the large environmental interference and low wake-up efficiency, the wake-up interval can be gradually increased and the wake-up conditions can be enhanced. After the wake-up conditions are improved, in order to ensure that the device can receive data normally, a certain threshold can be set according to the preamble length of the sending device to ensure that the maximum number of preamble reception adjustments does not exceed the threshold. Figure 7 It can be seen that after using the device wake-up method proposed in the present application, dynamic wake-up adjustment of the receiving device can be performed in different environments, effectively reducing the standby power consumption of the device.
[0113] Through the embodiments of the present application, when the wireless interference in the operating environment of the receiving device is small, the purpose of reducing the power consumption of the device is achieved by lowering the preamble code wake-up condition. When the wireless interference in the operating environment of the receiving device is large, the preamble code wake-up condition can be improved to avoid the receiving device being mistakenly awakened and causing power consumption to increase. The above-mentioned duration can also be dynamically adjusted by self-learning, and the above-mentioned duration can be adaptively adjusted in combination with the effective wake-up and abnormal wake-up situations of the receiving device itself, so as to achieve the purpose of reducing power consumption performance.
[0114] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0115] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0116] According to another aspect of the embodiments of the present application, a device for waking up a device for implementing the above-mentioned device waking up method is also provided. Figure 8 As shown, the device comprises:
[0117] A detection module 802, configured to periodically detect the preamble data within a preset duration, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by the sending device;
[0118] The verification module 804 is used to verify the preamble data detected within a preset time length, and wake up the receiving device to receive the service data when the preamble data meets the target verification condition, wherein the preamble data meets the target verification condition, indicating that the receiving device is allowed to receive the service data;
[0119] A determination module 806 is used to verify the service data received within a preset time period, determine at least one matching result, and determine the wake-up efficiency of the receiving device according to the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly woken up, and the matching result includes that when the service data matches the receiving device, the receiving device is correctly woken up, and when the service data does not match the receiving device, the receiving device is not correctly woken up;
[0120] The adjustment module 808 is used to adjust the duration of each detection of the preamble data by the receiving device to a second duration when the wake-up efficiency meets a preset efficiency condition, wherein the first duration is different from the second duration.
[0121] As an optional scheme, the above-mentioned device is used to verify the business data received within a preset time length in the following manner, determine at least one matching result, and determine the wake-up efficiency of the receiving device based on the at least one matching result: verify the business data received within the preset time length, and determine a first matching result when the business data matches the receiving device, and determine a second matching result when the business data does not match the receiving device; determine the business data corresponding to the first matching result as valid business data, and determine the business data corresponding to the second matching result as invalid business data; determine a first number corresponding to the valid business data and a second number corresponding to the invalid business data within the preset time length; and use the first number and the second number to determine the wake-up efficiency.
[0122] As an optional scheme, the above-mentioned device is used to determine the wake-up efficiency using the first quantity and the second quantity in the following manner: obtain a first weight coefficient set for valid business data and a second weight coefficient set for invalid business data; use the first weight coefficient and the second weight coefficient to perform a weighted conversion operation on the first quantity and the second quantity to determine the wake-up efficiency within a preset time length.
[0123] As an optional scheme, the above-mentioned device is used to verify the business data received within a preset time period in the following manner, and determine a first matching result when the business data matches the receiving device, and determine a second matching result when the business data does not match the receiving device: obtain a first receiving device identifier of the business data and a second receiving device identifier of the receiving device; verify the first receiving device identifier and the second receiving device identifier; determine a first matching result when the first receiving device identifier and the second receiving device identifier are the same or belong to the same device set; determine a second matching result when the first receiving device identifier and the second receiving device identifier are different or do not belong to the same device set.
[0124] As an optional scheme, the above-mentioned device is used to adjust the duration of each time the receiving device detects the preamble code data to a second duration when the wake-up efficiency meets the preset efficiency condition in the following manner: when the wake-up efficiency is less than or equal to the first efficiency threshold, the duration of each time the receiving device detects the preamble code data is adjusted to the second duration, wherein the second duration is greater than the first duration; when the wake-up efficiency is greater than or equal to the second efficiency threshold, the duration of each time the receiving device detects the preamble code data is adjusted to the second duration, wherein the second duration is less than the first duration, and the second efficiency threshold is greater than the first efficiency threshold.
[0125] As an optional scheme, the above-mentioned device is also used to: when the wake-up efficiency is less than or equal to a third efficiency threshold, adjust the duration of each time the receiving device detects the preamble code data to a third duration, wherein the third duration is greater than the first duration, and the third efficiency threshold is less than the first efficiency threshold; when the wake-up efficiency is greater than or equal to a fourth efficiency threshold, adjust the duration of each time the receiving device detects the preamble code data to a fourth duration, wherein the fourth duration is greater than the second duration, and the fourth efficiency threshold is greater than the second efficiency threshold.
[0126] As an optional scheme, the above-mentioned device is used to adjust the duration of each time the receiving device detects the leading code data to a second duration when the wake-up efficiency meets the preset efficiency condition in the following manner: when the wake-up efficiency is less than or equal to the first target efficiency threshold, determine the first parameter value relationship between the wake-up efficiency and the first target efficiency threshold; use the first parameter value relationship to determine the first time difference; determine the sum of the first time difference and the first duration as the second duration, and adjust the duration of each time the receiving device detects the leading code data to the second duration; when the wake-up efficiency is greater than or equal to the second target efficiency threshold, determine the second parameter value relationship between the wake-up efficiency and the first target efficiency threshold, wherein the second target efficiency threshold is greater than the first target efficiency threshold; use the second parameter value relationship to determine the second time difference; determine the difference between the first time difference and the first duration as the second duration, and adjust the duration of each time the receiving device detects the leading code data to the second duration.
[0127] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0128] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0129] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.
[0130] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0131] Fig. 9The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0132] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0133] like Fig. 9 As shown, the computer system 900 includes a central processing unit 901 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 902 (ROM) or the program loaded from the storage part 908 to the random access memory 903 (RAM). Various programs and data required for system operation are also stored in the random access memory 903. The central processing unit 901, the read-only memory 902 and the random access memory 903 are connected to each other through a bus 904. An input / output interface 905 (Input / Output interface, i.e., I / O interface) is also connected to the bus 904.
[0134] The following components are connected to the input / output interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.
[0135] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions defined in the system of the present application are executed.
[0136] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions provided by the embodiments of the present application are performed.
[0137] According to another aspect of the embodiment of the present application, an electronic device for implementing the wake-up method of the above device is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.
[0138] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0139] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.
[0140] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.
[0141] Among them, the memory 1002 can be used to store software programs and modules, such as the wake-up method of the device in the embodiment of the present application and the program instructions / modules corresponding to the device. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the wake-up method of the above-mentioned device. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 can be specifically, but not limited to, used to store information such as business data. As an example, such as Fig.10As shown, the memory 1002 may include but is not limited to the detection module 802, the verification module 804, the determination module 806, and the adjustment module 808 in the wake-up device of the device. In addition, other module units in the wake-up device of the device may also be included but are not limited to, which will not be repeated in this example.
[0142] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0143] In addition, the electronic device further includes: a display 1008 for displaying the business data; and a connection bus 1010 for connecting various module components in the electronic device.
[0144] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0145] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the device wake-up method provided in various optional implementations of the wake-up aspects of the above-mentioned device.
[0146] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.
[0147] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0148] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0149] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.
[0150] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for waking up a device, characterized in that: include: Periodically detecting the preamble data within a preset duration, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by the sending device; Verifying the preamble data detected within the preset time length, and waking up the receiving device to receive service data if the preamble data meets a target verification condition, wherein the preamble data meeting the target verification condition indicates that the receiving device is allowed to receive the service data; Verify the service data received within the preset time period to determine at least one matching result, and determine the wake-up efficiency of the receiving device according to the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly awakened, and the matching result includes that when the service data matches the receiving device, the receiving device is correctly awakened, and when the service data does not match the receiving device, the receiving device is not correctly awakened; When the wake-up efficiency meets a preset efficiency condition, the duration of each detection of the preamble data by the receiving device is adjusted to a second duration, wherein the first duration is different from the second duration.
2. The method according to claim 1, characterized in that: The verifying the service data received within the preset time period to determine at least one matching result, and determining the wake-up efficiency of the receiving device according to the at least one matching result includes: Verifying the service data received within the preset time period, and determining a first matching result if the service data matches the receiving device, and determining a second matching result if the service data does not match the receiving device; Determine the business data corresponding to the first matching result as valid business data, and determine the business data corresponding to the second matching result as invalid business data; Determine a first quantity corresponding to the valid service data and a second quantity corresponding to the invalid service data within the preset time period; The wake-up efficiency is determined using the first number and the second number.
3. The method according to claim 2, characterized in that The using the first number and the second number to determine the wake-up efficiency includes: Acquire a first weight coefficient set for the valid service data and a second weight coefficient set for the invalid service data; A weighted conversion operation is performed on the first quantity and the second quantity using the first weight coefficient and the second weight coefficient to determine the wake-up efficiency within the preset time length.
4. The method according to claim 2, characterized in that: The verifying the service data received within the preset time period, and determining a first matching result when the service data matches the receiving device, and determining a second matching result when the service data does not match the receiving device, includes: Acquire a first receiving device identifier of the service data and a second receiving device identifier of the receiving device; Verifying the first receiving device identifier and the second receiving device identifier; In a case where the first receiving device identifier and the second receiving device identifier are the same or belong to the same device set, determining the first matching result; In a case where the first receiving device identifier and the second receiving device identifier are different or do not belong to the same device set, the second matching result is determined.
5. The method according to claim 1, characterized in that When the wake-up efficiency satisfies a preset efficiency condition, adjusting the duration of each detection of the preamble data by the receiving device to a second duration includes: When the wake-up efficiency is less than or equal to the first efficiency threshold, adjusting the duration of each detection of the preamble data by the receiving device to the second duration, wherein the second duration is greater than the first duration; When the wake-up efficiency is greater than or equal to a second efficiency threshold, the duration of each detection of the preamble code data by the receiving device is adjusted to the second duration, wherein the second duration is less than the first duration, and the second efficiency threshold is greater than the first efficiency threshold.
6. The method according to claim 5, characterized in that The method further comprises: When the wake-up efficiency is less than or equal to a third efficiency threshold, adjusting the duration of each detection of the preamble data by the receiving device to a third duration, wherein the third duration is greater than the first duration, and the third efficiency threshold is less than the first efficiency threshold; When the wake-up efficiency is greater than or equal to a fourth efficiency threshold, the duration of each detection of the preamble code data by the receiving device is adjusted to a fourth duration, wherein the fourth duration is greater than the second duration, and the fourth efficiency threshold is greater than the second efficiency threshold.
7. The method according to claim 1, characterized in that When the wake-up efficiency satisfies a preset efficiency condition, adjusting the duration of each detection of the preamble data by the receiving device to a second duration includes: When the wake-up efficiency is less than or equal to a first target efficiency threshold, determining a first parameter value relationship between the wake-up efficiency and the first target efficiency threshold; Determine a first time difference using the first parameter value relationship; Determine the sum of the first time difference and the first duration as the second duration, and adjust the duration of each detection of the preamble data by the receiving device to the second duration; When the wake-up efficiency is greater than or equal to a second target efficiency threshold, determining a second parameter value relationship between the wake-up efficiency and the first target efficiency threshold, wherein the second target efficiency threshold is greater than the first target efficiency threshold; Determine a second time difference using the second parameter value relationship; The difference between the first time difference value and the first duration is determined as the second duration, and the duration of each detection of the preamble data by the receiving device is adjusted to the second duration.
8. A device for waking up a device, characterized in that: include: A detection module, configured to periodically detect the preamble data within a preset duration, wherein the duration of each detection of the preamble data by the receiving device is set to a first duration, and the preamble data is sent by the sending device; A verification module, configured to verify the preamble data detected within the preset time length, and wake up the receiving device to receive service data if the preamble data meets a target verification condition, wherein the preamble data meeting the target verification condition indicates that the receiving device is allowed to receive the service data; a determination module, configured to verify the service data received within the preset time period, determine at least one matching result, and determine the wake-up efficiency of the receiving device according to the at least one matching result, wherein the wake-up efficiency indicates the efficiency of whether the receiving device is correctly awakened, and the matching result includes that when the service data matches the receiving device, the receiving device is correctly awakened, and when the service data does not match the receiving device, the receiving device is not correctly awakened; An adjustment module is used to adjust the duration of each detection of the preamble code data by the receiving device to a second duration when the wake-up efficiency meets a preset efficiency condition, wherein the first duration is different from the second duration.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Cited By
Equipment wakeup method and device, computer equipment, storage medium and program product
CN121568198A
Device wake-up method and apparatus, computer device, storage medium, and program product
CN121568198B
