A method for controlling working mode of a wireless radio frequency chip and a wireless radio frequency chip
By extracting features from the historical data of the wireless RF chip and identifying scenarios, and establishing a feature model to determine the target working mode, the problem that traditional wireless RF chips cannot adapt to different application scenarios is solved, and power consumption and response time are optimized.
Patent Information
- Application Number
- CN202411909295.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-12-24
AI Technical Summary
The working mode management of traditional wireless RF chips cannot adapt to the response time requirements in various application scenarios, especially in the absence of a mains power supply, resulting in the inability to balance the power consumption and response time of beacon labels.
By extracting data distribution characteristics from the historical data sent and received by the wireless radio frequency chip, identifying the work scenarios, and establishing a feature model, determining the target working mode according to the model to flexibly manage the work mode conversion.
It realizes flexible working mode management of wireless radio frequency chips in different application scenarios, optimizes the balance of power consumption and response time, and improves the portability and real-timeness of beacon labels.
Smart Images

Figure CN119647509B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a working mode control method of a wireless radio frequency chip and the wireless radio frequency chip. Background Art
[0002] Radio frequency chips are widely used as beacon tags in many fields. For example, they are used as positioning beacon tags for people, vehicles, and even goods in large venues such as shopping malls, parking lots, airports, or train stations for indoor and outdoor positioning and navigation. Radio frequency chips are attached to fixed assets as asset management beacon tags for enterprise asset management. Radio frequency chips are attached to cargo as tracking beacon tags for cargo tracking in logistics transportation. Radio frequency chips are also installed in industrial, office, and home environments as intelligent control beacon tags to control and connect industrial equipment or smart home devices. In many of these application scenarios, radio frequency chips as beacon tags require a certain degree of mobility, meaning they cannot be connected to a mains power source at the location of use. Therefore, beacon tags usually need to carry their own micro batteries, such as button batteries, to ensure both mobility and portability.
[0003] Due to the limited capacity of the built-in micro-battery, the power consumption and battery life of beacon tags are extremely important. Beacon tags usually enter a low-power operating mode when there is no data transmission or reception task for a long time. For example, the power supply voltage and current of most non-critical components such as power amplifiers, Gaussian frequency shift keying modulators, and transmit filters are cut off, and the clock frequency and refresh frequency of components such as baseband controllers and caches are reduced. In this operating mode, the standby power consumption of the beacon tag is low, but because it needs to wake up the powered-off devices when responding to commands, including re-powering, restoring its hardware logic state, and re-initializing registers and controllers, its response time is prolonged, and it can only be used in some scenarios where the real-time response is not required. The operating mode management of traditional wireless RF chips cannot well adapt to the response time requirements of beacon tags in various possible situations in actual application scenarios. Summary of the Invention
[0004] Based on the above problems, the present invention proposes a working mode control method of a wireless radio frequency chip and a wireless radio frequency chip, which can flexibly manage the working mode conversion of the wireless radio frequency chip as a beacon tag in various application scenarios.
[0005] In view of this, a first aspect of the present invention provides a method for controlling an operating mode of a wireless radio frequency chip, comprising:
[0006] Extracting a first data distribution feature of the wireless radio frequency chip from historical transceiver data of the wireless radio frequency chip, where the first data distribution feature is a distribution feature of the amount of data received and / or sent by the wireless radio frequency chip relative to a time dimension;
[0007] Identifying a working scenario of the wireless radio frequency chip, wherein the working scenario includes a working environment type of the wireless radio frequency chip and a type of an object to which the wireless radio frequency chip is attached;
[0008] Establishing a feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario, wherein the feature model is a data model composed of feature data obtained by statistically analyzing the amount of received data and / or sent data of the wireless radio frequency chip with a pre-configured time period as a statistical period;
[0009] Determine a second data distribution feature of the wireless radio frequency chip in a current statistical period based on the feature model;
[0010] Determining a target operating mode of the wireless radio frequency chip in a current statistical period according to the operating scenario and the second data distribution feature;
[0011] Control the wireless radio frequency chip to switch to the target operating mode.
[0012] Furthermore, the step of extracting the first data distribution feature of the wireless radio frequency chip from the historical transceiver data of the wireless radio frequency chip specifically includes:
[0013] Reading historical transceiver data of the wireless radio frequency chip from a database, wherein the historical transceiver data includes a historical receiving data set and a historical sending data set of the wireless radio frequency chip;
[0014] Divide the statistical period into consecutive sub-periods;
[0015] According to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and Send data subsets;
[0016] right receive data subsets and The first data distribution feature of the wireless radio frequency chip is obtained by performing feature analysis on each of the transmitted data subsets.
[0017] Further, according to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and The steps of sending a data subset specifically include:
[0018] Get the number of statistical cycles in the historical sending and receiving data ;
[0019] From 1 to Sequentially traverse each statistical period;
[0020] Determine the traversed statistical period as the target statistical period to perform the following steps:
[0021] Initialization count ranges from 1 to Count variable By order The value in the initial state is 1;
[0022] Get the target statistical period Number of data received in a sub-period and the number of times data is sent ;
[0023] Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ;
[0024] Get the target statistical period In the sub-period The amount of data received and The amount of data sent ;
[0025] Calculate the target statistical period The cumulative amount of received data in each sub-period:
[0026] , and the cumulative amount of data sent:
[0027] ;
[0028] The cumulative amount of received data Write the historical received data set of the received data subsets, and
[0029] The cumulative amount of data sent Write the historical sending data set Send data subset;
[0030] when When, let the counting variable Add 1 and execute again to obtain the target statistical period Number of data received in a sub-period and the number of times data is sent The cumulative amount of received data Write the historical received data set received data subsets, and the cumulative amount of sent data Write the historical sending data set Step 1: Send a subset of data.
[0031] Furthermore, the first data distribution feature includes a first receiving peak feature, a first sending peak feature, a first receiving valley feature and a first sending valley feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period, and a second receiving peak feature, a second sending peak feature, a second receiving peak feature and a second receiving valley feature for evaluating the data distribution density of the historical sent and received data in each sub-time period. receive data subsets and The step of performing feature analysis on each of the transmitted data subsets to obtain the first data distribution feature of the wireless radio frequency chip specifically includes:
[0032] In each received data subset, a 、 、 、 , so that it satisfies:
[0033] ;
[0034] Will 、 、 、 respectively determine as a first receiving peak characteristic, a first transmitting peak characteristic, a first receiving valley characteristic, and a first transmitting valley characteristic of the wireless radio frequency chip;
[0035] Calculate the target statistical period Cumulative number of receptions in each sub-period:
[0036] , and the cumulative number of times sent:
[0037] ;
[0038] Determine a 、 、 、 , so that it satisfies:
[0039] ;
[0040] Will 、 、 、 The second reception peak characteristic, the second transmission peak characteristic, the second reception peak characteristic and the second reception valley characteristic of the wireless radio frequency chip are respectively determined.
[0041] Furthermore, the step of establishing a feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario specifically includes:
[0042] Generate a model object instance for storing a feature model of the wireless radio frequency chip, wherein the model object includes a working scene attribute, a feature attribute of a volume of transmitted and received data, and a data distribution density attribute;
[0043] Obtaining a working scene code of the wireless radio frequency chip to write into the working scene attribute;
[0044] Writing the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip into the characteristic attribute of the amount of transmitted and received data;
[0045] The second receiving peak feature, the second transmitting peak feature, the second receiving peak feature and the second receiving valley feature in the first data distribution feature of the wireless radio frequency chip are written into the data distribution density attribute.
[0046] Furthermore, the second data distribution feature includes a first received data distribution feature and a first sent data distribution feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period of the current statistical period, and a second received data distribution feature and a second sent data distribution feature for evaluating the data distribution density of the wireless radio frequency chip in each sub-time period of the current statistical period. The step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model specifically includes:
[0047] Determine the sub-time period number that the current time falls into ;
[0048] Initialization count ranges from 1 to Count variable By order The value in the initial state is 1;
[0049] Get the current statistical period Number of data received in a sub-period and the number of times data is sent ;
[0050] Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ;
[0051] Get the current statistical period In the sub-period The amount of data received and The amount of data sent ;
[0052] Calculate the current statistical period The cumulative amount of received data in each sub-period is:
[0053] , and the cumulative amount of data sent:
[0054] ;
[0055] Will 、 respectively determining as a first received data distribution feature and a first sent data distribution feature of the wireless radio frequency chip in a current statistical period;
[0056] Will 、 The second received data distribution feature and the second sent data distribution feature of the wireless radio frequency chip in the current statistical period are respectively determined.
[0057] Furthermore, the step of determining a target operating mode of the wireless radio frequency chip in a current statistical period according to the operating scenario and the second data distribution feature specifically includes:
[0058] Reading the working scenario attribute, the characteristic attribute of the amount of data sent and received, and the data distribution density attribute in the characteristic model of the wireless radio frequency chip;
[0059] Determining whether the current working scene of the wireless radio frequency chip matches the working scene attribute in the feature model;
[0060] When the current working scenario of the wireless radio frequency chip matches the working scenario attribute in the feature model, calculating the interval coefficient of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume characteristic attribute in the feature model, the interval coefficient being a correlation coefficient between the first received data distribution feature and the first sent data distribution feature and the received and sent data volume characteristic attribute in the feature model;
[0061] Get the current real time;
[0062] Determining whether the real-time time falls within a peak interval or a valley interval in the feature model;
[0063] When the real time falls within the valley interval, determining the target operating mode as a first standby mode, where the first standby mode is a standby mode with minimized average current consumption;
[0064] When the real time does not fall within the peak interval and does not fall within the valley interval, the target operating mode is determined to be a second standby mode, where the second standby mode is a standby mode in which a clock buffer corresponding to the interval coefficient is in an active state.
[0065] Furthermore, the step of calculating the interval coefficients of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume feature attribute in the feature model specifically includes:
[0066] The receiving interval coefficient is calculated based on the first receiving data distribution feature of the current statistical period and the first receiving peak feature and the first receiving valley feature in the receiving and sending data volume feature attribute of the feature model:
[0067] ;
[0068] The sending interval coefficient is calculated based on the first sending data distribution feature of the current statistical period and the first sending peak feature and the first sending valley feature in the sending and receiving data volume feature attribute of the feature model:
[0069] ;
[0070] The interval coefficient is calculated according to the receiving interval coefficient and the sending interval coefficient:
[0071] .
[0072] Furthermore, the step of controlling the wireless radio frequency chip to switch to the target operating mode specifically includes:
[0073] When the target operating mode is the second standby mode, based on the interval coefficient determining an active number of clock buffers in the second standby mode;
[0074] The state of the clock buffer is configured according to the active number.
[0075] A second aspect of the present invention provides a wireless radio frequency chip, comprising a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the working mode control method of the wireless radio frequency chip according to any one of the first aspects of the present invention.
[0076] The present invention proposes a working mode control method for a wireless radio frequency chip and a wireless radio frequency chip. The method extracts a first data distribution feature from historical transceiver data of the wireless radio frequency chip and identifies its working scenario. A feature model of the wireless radio frequency chip is established according to the first data distribution feature and the working scenario. The feature model is a data model composed of feature data obtained by statistically analyzing the amount of received data and / or sent data of the wireless radio frequency chip in a preset statistical period. Based on the feature model, a second data distribution feature of the wireless radio frequency chip in the current statistical period is determined. According to the working scenario and the second data distribution feature, a target working mode of the wireless radio frequency chip in the current statistical period is determined. The wireless radio frequency chip is controlled to switch to the target working mode. The method can flexibly manage the working mode conversion of the wireless radio frequency chip as a beacon tag in various application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 This is a flowchart of a method for controlling an operating mode of a wireless radio frequency chip provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0078] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0079] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present invention is not limited to the specific embodiments disclosed below.
[0080] In the description of the present invention, the term "plurality" refers to two or more. Unless otherwise specified, the terms "upper" and "lower" are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific manner. Therefore, they should not be construed as limiting the present invention. The terms "connected," "mounted," and "fixed," etc., should be interpreted broadly. For example, "connected" can refer to fixed, removable, or integral connections; directly or indirectly through an intermediary. A person of ordinary skill in the art will understand the specific meanings of these terms in the present invention based on the specific circumstances. Furthermore, the terms "first," "second," etc., etc., are used for descriptive purposes only and should not be construed to indicate or imply relative importance or to implicitly specify the number of the technical features indicated. Therefore, a feature designated "first," "second," etc., may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0081] Throughout this specification, terms such as "one embodiment," "some implementations," and "specific examples" indicate that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of these terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0082] A method for controlling an operating mode of a wireless radio frequency chip and a wireless radio frequency chip according to some embodiments of the present invention will be described below with reference to the accompanying drawings.
[0083] like Figure 1 In view of this, a first aspect of the present invention provides a method for controlling an operating mode of a wireless radio frequency chip, comprising:
[0084] Extracting a first data distribution feature of the wireless radio frequency chip from historical transceiver data of the wireless radio frequency chip, where the first data distribution feature is a distribution feature of the amount of data received and / or sent by the wireless radio frequency chip relative to a time dimension;
[0085] Identifying a working scenario of the wireless radio frequency chip, wherein the working scenario includes a working environment type of the wireless radio frequency chip and a type of an object to which the wireless radio frequency chip is attached;
[0086] Establishing a feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario, wherein the feature model is a data model composed of feature data obtained by statistically analyzing the amount of received data and / or sent data of the wireless radio frequency chip with a pre-configured time period as a statistical period;
[0087] Determine a second data distribution feature of the wireless radio frequency chip in a current statistical period based on the feature model;
[0088] Determining a target operating mode of the wireless radio frequency chip in a current statistical period according to the operating scenario and the second data distribution feature;
[0089] Control the wireless radio frequency chip to switch to the target operating mode.
[0090] Specifically, the amount of data received and sent at a single time by the wireless RF chip as a beacon tag is usually relatively fixed. Therefore, the amount of data received and sent by the wireless RF chip within a period of time is basically determined by its data receiving frequency and data sending frequency. The data receiving frequency and data sending frequency of the wireless RF chip are mainly related to its working scenario. For example, when the wireless RF chip is used as a tracking beacon tag for goods, it can be configured to have a relatively small data receiving frequency and data sending frequency. However, when it is used as a remote control beacon tag for industrial equipment, it may be configured to have a higher data receiving frequency and data sending frequency. Of course, depending on the configured wake-up conditions, the amount of data received and sent by the wireless RF chip within a period of time may also be related to external factors. The data that generates these external factors is usually provided by the device or sensor connected to the wireless RF chip.
[0091] As mentioned above, the wireless radio frequency chip may be used as a beacon tag in many different working scenarios. These working scenarios can usually be described by the type of environment in which the wireless radio frequency chip is located, the type of object to which the wireless radio frequency chip is attached, and / or the functional purpose of the wireless radio frequency chip, such as the working scenario of positioning a vehicle in a parking lot, the working scenario of tracking goods in a warehouse, and the working scenario of controlling smart appliances in a home or office environment. Furthermore, the working scenario can be written into the wireless radio frequency chip in the form of manual configuration, or it can be identified by data provided by a device or sensor connected to the wireless radio frequency chip.
[0092] The characteristic model is a time distribution model of the amount of data received and sent by the wireless radio frequency chip in a specific operating scenario within a preset statistical period. The time distribution model is composed of a plurality of characteristic data reflecting the data distribution characteristics of the amount of data received and / or sent by the wireless radio frequency chip in the operating scenario within the statistical period. Preferably, the statistical period is configured as one day.
[0093] In the technical solution of the present invention, for any wireless radio frequency chip, after establishing a feature model for it, each data transmission and reception event of the wireless radio frequency chip is monitored, and after each data transmission and reception event of the wireless radio frequency chip, or after several data transmission and reception events, a step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model is performed, wherein the current statistical period is the statistical period in which the step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model is performed. The second data distribution feature refers to the distribution feature of the amount of received data and / or the amount of sent data of the wireless radio frequency chip relative to the time dimension in the current statistical period, earlier than the time period of performing the step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model.
[0094] Furthermore, the step of extracting the first data distribution feature of the wireless radio frequency chip from the historical transceiver data of the wireless radio frequency chip specifically includes:
[0095] Reading historical transceiver data of the wireless radio frequency chip from a database, wherein the historical transceiver data includes a historical receiving data set and a historical sending data set of the wireless radio frequency chip;
[0096] Divide the statistical period into consecutive sub-periods;
[0097] According to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and Send data subsets;
[0098] right receive data subsets and The first data distribution feature of the wireless radio frequency chip is obtained by performing feature analysis on each of the transmitted data subsets.
[0099] It should be noted that, in the technical solution of the present invention, the historical transceiver data of the wireless RF chip stored in the database is only used to extract the first data distribution feature of the wireless RF chip to establish a feature model of the wireless RF chip. Therefore, in the actual implementation process, it is not necessary to store all the historical transceiver data of the wireless RF chip in the database. Instead, the historical transceiver data of several consecutive statistical periods of the wireless RF chip are selectively stored in the database. The time length of the stored historical transceiver data, that is, the number of statistical periods, can be configured according to implementation needs and storage space occupancy.
[0100] The number of consecutive sub-time periods in a statistical period The length of a statistical period is expressed as , then the length of each sub-time period is For example, when the statistical period is divided into In the steps of consecutive sub-time periods, the statistical period For a day, the number of its sub-time periods For example, the length of each sub-time period is 1 hour. In the technical solution of this embodiment, 8 o'clock to 9 o'clock is a sub-time period, and there is a received data subset and a sent data subset in this sub-time period. The received data subset contains all historical received data in the historical transceived data whose receiving time falls between 8 o'clock and 9 o'clock, and the sent data subset contains all historical sent data in the historical transceived data whose sending time falls between 8 o'clock and 9 o'clock. Similarly, 9 o'clock to 10 o'clock is another sub-time period, and there is also a received data subset and a sent data subset in this sub-time period. The received data subset contains all historical received data in the historical transceived data whose receiving time falls between 9 o'clock and 10 o'clock, and the sent data subset contains all historical sent data in the historical transceived data whose sending time falls between 9 o'clock and 10 o'clock.
[0101] Further, according to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and The steps of sending a data subset specifically include:
[0102] Get the number of statistical cycles in the historical sending and receiving data ;
[0103] From 1 to Sequentially traverse each statistical period;
[0104] Determine the traversed statistical period as the target statistical period to perform the following steps:
[0105] Initialization count ranges from 1 to Count variable By order The value in the initial state is 1;
[0106] Get the target statistical period Number of data received in a sub-period and the number of times data is sent ;
[0107] Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ;
[0108] Get the target statistical period In the sub-period The amount of data received and The amount of data sent ;
[0109] Calculate the target statistical period The cumulative amount of received data in each sub-period:
[0110] , and the cumulative amount of data sent:
[0111] ;
[0112] The cumulative amount of received data Write the historical received data set of the received data subsets, and
[0113] The cumulative amount of data sent Write the historical sending data set Send data subset;
[0114] when When, let the counting variable Add 1 and execute again to obtain the target statistical period Number of data received in a sub-period and the number of times data is sent The cumulative amount of received data Write the historical received data set received data subsets, and the cumulative amount of sent data Write the historical sending data set Step 1: Send a subset of data.
[0115] As mentioned above, the number of statistical cycles in the historical sending and receiving data The number is pre-configured according to the actual implementation needs. In the technical solution of the above embodiment, the counting variable 、 、 All are positive integers.
[0116] After executing the historical receiving data set and the historical sending data set in the historical receiving and sending data are divided into receive data subsets and After the steps of sending data subsets, each received data subset should have The cumulative amount of received data and The cumulative amount of sent data corresponds to a historical statistical period.
[0117] For convenience of representation, define a positive integer count variable , making the The first The cumulative amount of received data is expressed as , No. The first in the sent data subset The cumulative amount of data sent is expressed as . Similarly, the first In the statistical period The number of data received in each sub-time period is expressed as , the first In the statistical period The number of data transmission times in a sub-time period is expressed as .
[0118] Furthermore, the first data distribution feature includes a first receiving peak feature, a first sending peak feature, a first receiving valley feature and a first sending valley feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period, and a second receiving peak feature, a second sending peak feature, a second receiving peak feature and a second receiving valley feature for evaluating the data distribution density of the historical sent and received data in each sub-time period. receive data subsets and The step of performing feature analysis on each of the transmitted data subsets to obtain the first data distribution feature of the wireless radio frequency chip specifically includes:
[0119] In each received data subset, a 、 、 、 , so that it satisfies:
[0120] ;
[0121] Will 、 、 、 respectively determine as a first receiving peak characteristic, a first transmitting peak characteristic, a first receiving valley characteristic, and a first transmitting valley characteristic of the wireless radio frequency chip;
[0122] Calculate the target statistical period Cumulative number of receptions in each sub-period:
[0123] , and the cumulative number of times sent:
[0124] ;
[0125] Determine a 、 、 、 , so that it satisfies:
[0126] ;
[0127] Will 、 、 、 The second reception peak characteristic, the second transmission peak characteristic, the second reception peak characteristic and the second reception valley characteristic of the wireless radio frequency chip are respectively determined.
[0128] In the technical solution of the above embodiment, the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature and the first transmitting valley feature are all a A data sequence of data elements, that is, the first receiving peak characteristic, the first transmitting peak characteristic, the first receiving valley characteristic and the first transmitting valley characteristic of the wireless RF chip have a one-to-one correspondence with each sub-time period of the statistical period. More specifically, each sub-time period corresponds to one and only one first receiving peak characteristic. Similarly, each sub-time period corresponds to one and only one first transmitting peak characteristic, first receiving peak characteristic and first receiving valley characteristic. The second receiving peak characteristic, the second transmitting peak characteristic, the second receiving peak characteristic and the second receiving valley characteristic are all single characteristic values. It should be known that the sub-time period of the statistical period referred to here does not specifically refer to the sub-time period in a certain statistical period.
[0129] Furthermore, the step of establishing a feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario specifically includes:
[0130] Generate a model object instance for storing a feature model of the wireless radio frequency chip, wherein the model object includes a working scene attribute, a feature attribute of a volume of transmitted and received data, and a data distribution density attribute;
[0131] Obtaining a working scene code of the wireless radio frequency chip to write into the working scene attribute;
[0132] Writing the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip into the characteristic attribute of the amount of transmitted and received data;
[0133] The second receiving peak feature, the second transmitting peak feature, the second receiving peak feature and the second receiving valley feature in the first data distribution feature of the wireless radio frequency chip are written into the data distribution density attribute.
[0134] Specifically, the model object instance is generated based on a pre-built model object containing a work scene attribute, a characteristic attribute of the amount of data sent and received, and a data distribution density attribute. The characteristic attribute of the amount of data sent and received is a number of attributes with A data sequence of data elements.
[0135] Furthermore, the model object instance also includes a reading and writing method for reading and writing the working scene attributes, the characteristic attributes of the amount of data sent and received, and the data distribution density attributes, a method for constructing the first data distribution characteristic curve of the wireless RF chip based on the first data distribution characteristics of the wireless RF chip, etc.
[0136] The working scenario code is an identification code pre-configured for each standard working scenario. The so-called standard working scenario is a plurality of common working scenarios corresponding to the combination of the pre-configured common working environment types of the wireless radio frequency chip and the types of attached objects.
[0137] The first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip are all discrete data sequences, which can be respectively expressed as:
[0138] ;
[0139] ;
[0140] ;
[0141] .
[0142] The lengths of the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip are all , that is, each discrete data sequence contains data elements.
[0143] Furthermore, the second data distribution feature includes a first received data distribution feature and a first sent data distribution feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period of the current statistical period, and a second received data distribution feature and a second sent data distribution feature for evaluating the data distribution density of the wireless radio frequency chip in each sub-time period of the current statistical period. The step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model specifically includes:
[0144] Determine the sub-time period number that the current time falls into ;
[0145] Initialization count ranges from 1 to Count variable By order The value in the initial state is 1;
[0146] Get the current statistical period Number of data received in a sub-period and the number of times data is sent ;
[0147] Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ;
[0148] Get the current statistical period In the sub-period The amount of data received and The amount of data sent ;
[0149] Calculate the current statistical period The cumulative amount of received data in each sub-period is:
[0150] , and the cumulative amount of data sent:
[0151] ;
[0152] Will 、 respectively determining as a first received data distribution feature and a first sent data distribution feature of the wireless radio frequency chip in a current statistical period;
[0153] Will 、 The second received data distribution feature and the second sent data distribution feature of the wireless radio frequency chip in the current statistical period are respectively determined.
[0154] Specifically, the so-called current time refers to the time at which the step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model is executed, and the sub-time period number of the current time refers to the sequential number of the sub-time period within the statistical period in which the current time falls. Still taking one day as a statistical period and one hour as a sub-time period as an example, the sub-time period between midnight and one o'clock in the morning is numbered 1, the sub-time period between one o'clock and two o'clock in the morning is numbered 2, and so on.
[0155] In the technical solution of the above embodiment, the first received data distribution feature, the first sent data distribution feature, the second received data distribution feature and the second sent data distribution feature are all a A data sequence of data elements.
[0156] Furthermore, the step of determining a target operating mode of the wireless radio frequency chip in a current statistical period according to the operating scenario and the second data distribution feature specifically includes:
[0157] Reading the working scenario attribute, the characteristic attribute of the amount of data sent and received, and the data distribution density attribute in the characteristic model of the wireless radio frequency chip;
[0158] Determining whether the current working scene of the wireless radio frequency chip matches the working scene attribute in the feature model;
[0159] When the current working scenario of the wireless radio frequency chip matches the working scenario attribute in the feature model, calculating the interval coefficient of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume characteristic attribute in the feature model, the interval coefficient being a correlation coefficient between the first received data distribution feature and the first sent data distribution feature and the received and sent data volume characteristic attribute in the feature model;
[0160] Get the current real time;
[0161] Determining whether the real-time time falls within a peak interval or a valley interval in the feature model;
[0162] When the real time falls within the valley interval, determining the target operating mode as a first standby mode, where the first standby mode is a standby mode with minimized average current consumption;
[0163] When the real time does not fall within the peak interval and does not fall within the valley interval, the target operating mode is determined to be a second standby mode, where the second standby mode is a standby mode in which a clock buffer corresponding to the interval coefficient is in an active state.
[0164] Specifically, the real-time time is the time for executing the step of determining the target working mode of the wireless radio frequency chip in the current statistical period according to the working scenario and the second data distribution feature.
[0165] In the technical solution of the above-mentioned embodiment, the peak interval is a time interval composed of continuous sub-time periods in which the difference between the cumulative amount of received data in the feature model and the corresponding first receiving peak feature or the difference between the cumulative amount of sent data and the corresponding first sending peak feature is less than a preset deviation threshold, and the valley interval is a time interval composed of continuous sub-time periods in which the difference between the cumulative amount of received data in the feature model and the corresponding first receiving valley feature or the difference between the cumulative amount of sent data and the corresponding first sending valley feature is less than a preset deviation threshold.
[0166] Furthermore, after the step of writing the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip into the characteristic attribute of the amount of transmitted and received data, the method further includes:
[0167] Generate a data sequence of the cumulative amount of received data:
[0168] , and the cumulative amount of data sent data sequence:
[0169] ;
[0170] Calculate the relationship between each data element in the cumulative received data amount data sequence and the first receiving peak characteristic The difference of derives the first difference sequence:
[0171] ;
[0172] Calculate the relationship between each data element in the cumulative sent data amount data sequence and the first sent peak characteristic The second difference sequence of the difference:
[0173] ;
[0174] in:
[0175] ,
[0176] ;
[0177] Each element in the first difference value sequence and the second difference value sequence corresponds to a sub-time period.
[0178] Furthermore, when calculating the relationship between each data element in the cumulative received data amount data sequence and the first received peak characteristic The difference between the first difference sequence and the first transmission peak characteristic is obtained by calculating the difference between each data element in the cumulative transmission data amount data sequence and the first transmission peak characteristic After the step of obtaining the second difference sequence of differences, the method further comprises:
[0179] Get the preset deviation threshold ;
[0180] Calculate the deviation between each data element in the first difference sequence and the deviation threshold The difference of derives the third difference order sequence:
[0181] ;;
[0182] Calculate the deviation between each data element in the second difference sequence and the deviation threshold The difference of derives the fourth difference sequence:
[0183] ;
[0184] in:
[0185] ,
[0186] ;
[0187] Each element in the third difference sequence and the fourth difference sequence corresponds to a sub-time period;
[0188] The time interval corresponding to the continuous sub-time periods corresponding to the data elements less than zero in the third difference sequence and the fourth difference sequence is determined as the peak interval of the feature model.
[0189] Furthermore, after the step of writing the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip into the characteristic attribute of the amount of transmitted and received data, the method further includes:
[0190] Calculate the relationship between each data element in the cumulative received data amount data sequence and the first received valley value feature The difference of derives the fifth difference sequence:
[0191] ;
[0192] Calculate the relationship between each data element in the cumulative sent data amount data sequence and the first sent valley value feature The sixth difference sequence of the difference:
[0193] ;
[0194] in:
[0195] ,
[0196] ;
[0197] Each element in the fifth difference value sequence and the sixth difference value sequence corresponds to a sub-time period.
[0198] Furthermore, when calculating the relationship between each data element in the cumulative received data amount data sequence and the first received valley value feature The difference between the fifth difference sequence and the calculation of each data element in the cumulative sent data amount data sequence and the first sent valley value feature After the step of the sixth difference sequence of differences, the method further comprises:
[0199] Get the preset deviation threshold ;
[0200] Calculate the deviation between each data element in the fifth difference sequence and the deviation threshold The difference of is the seventh difference sequence:
[0201] ;;
[0202] Calculate the deviation between each data element in the sixth difference sequence and the deviation threshold The difference of is the eighth difference sequence:
[0203] ;
[0204] in:
[0205] ,
[0206] ;
[0207] Each element in the seventh difference sequence and the first difference sequence corresponds to a sub-time period;
[0208] The time interval corresponding to the continuous sub-time periods corresponding to the data elements less than zero in the seventh difference sequence and the eighth difference sequence is determined as the valley interval of the feature model.
[0209] Furthermore, the step of calculating the interval coefficients of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume feature attribute in the feature model specifically includes:
[0210] The receiving interval coefficient is calculated based on the first receiving data distribution feature of the current statistical period and the first receiving peak feature and the first receiving valley feature in the receiving and sending data volume feature attribute of the feature model:
[0211] ;
[0212] The sending interval coefficient is calculated based on the first sending data distribution feature of the current statistical period and the first sending peak feature and the first sending valley feature in the sending and receiving data volume feature attribute of the feature model:
[0213] ;
[0214] The interval coefficient is calculated according to the receiving interval coefficient and the sending interval coefficient:
[0215] .
[0216] Furthermore, the step of controlling the wireless radio frequency chip to switch to the target operating mode specifically includes:
[0217] When the target operating mode is the second standby mode, based on the interval coefficient determining an active number of clock buffers in the second standby mode;
[0218] The state of the clock buffer is configured according to the active number.
[0219] Specifically, when the target operating mode is the first standby mode, only the crystal oscillator is kept in an active state to wake up the wireless radio frequency chip after a preset sleep time. Compared with the first standby mode, the second standby mode has more additional clock buffers in an active state. Although the wireless radio frequency chip consumes more current in the second standby mode, when a new data packet is uploaded to its FIFO (First Input First Output) queue, its phase-locked loop will start at a faster speed and send the data packet with lower latency. In the technical solution of the above embodiment, the interval coefficient The interval coefficient is proportional to the number of clock buffers active in the second standby mode. The larger the value, the more clock buffers are active, resulting in faster startup.
[0220] A second aspect of the present invention provides a wireless radio frequency chip, comprising a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the working mode control method of the wireless radio frequency chip according to any one of the first aspects of the present invention.
[0221] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0222] While embodiments of the present invention have been described above, these embodiments do not exhaustively describe all details and do not limit the invention to the specific embodiments described. Obviously, many modifications and variations are possible based on the above description. These embodiments are selected and described in detail in this specification in order to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better utilize the present invention and its modifications. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for controlling the working mode of a wireless radio frequency chip, characterized in that: include: Extracting a first data distribution feature of the wireless radio frequency chip from historical transceiver data of the wireless radio frequency chip, where the first data distribution feature is a distribution feature of the amount of data received and / or sent by the wireless radio frequency chip relative to a time dimension; Identifying a working scenario of the wireless radio frequency chip, wherein the working scenario includes a working environment type of the wireless radio frequency chip and a type of an object to which the wireless radio frequency chip is attached; Establishing a feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario, wherein the feature model is a data model composed of feature data obtained by statistically analyzing the amount of received data and / or sent data of the wireless radio frequency chip with a pre-configured time period as a statistical period; Determine a second data distribution feature of the wireless radio frequency chip in a current statistical period based on the feature model; Determining a target operating mode of the wireless radio frequency chip in a current statistical period according to the operating scenario and the second data distribution feature; Control the wireless radio frequency chip to switch to the target operating mode.
2. The method for controlling the working mode of a wireless radio frequency chip according to claim 1, wherein: The step of extracting the first data distribution feature of the wireless radio frequency chip from the historical transceiver data of the wireless radio frequency chip specifically includes: Reading historical transceiver data of the wireless radio frequency chip from a database, wherein the historical transceiver data includes a historical receiving data set and a historical sending data set of the wireless radio frequency chip; Divide the statistical period into consecutive sub-periods; According to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and Send data subsets; right receive data subsets and The first data distribution feature of the wireless radio frequency chip is obtained by performing feature analysis on each of the transmitted data subsets.
3. The method for controlling the working mode of a wireless radio frequency chip according to claim 2, wherein: According to the correspondence between the receiving or sending time of the historical transceiver data and the sub-time period, the historical receiving data set and the historical sending data set in the historical transceiver data are divided into receive data subsets and The steps of sending a data subset specifically include: Get the number of statistical cycles in the historical sending and receiving data ; From 1 to Sequentially traverse each statistical period; Determine the traversed statistical period as the target statistical period to perform the following steps: Initialization count ranges from 1 to Count variable By order The value in the initial state is 1; Get the target statistical period Number of data received in a sub-period and the number of times data is sent ; Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ; Get the target statistical period In the sub-period The amount of data received and The amount of data sent ; Calculate the target statistical period The cumulative amount of received data in each sub-period: , and the cumulative amount of data sent: ; The cumulative amount of received data Write the historical received data set of the received data subsets, and The cumulative amount of data sent Write the historical sending data set Send data subset; when When, let the counting variable Add 1 and execute again to obtain the target statistical period Number of data received in a sub-period and the number of times data is sent The cumulative amount of received data Write the historical received data set received data subsets, and the cumulative amount of sent data Write the historical sending data set Step 1: Send a subset of data.
4. The method for controlling the working mode of a wireless radio frequency chip according to claim 3, wherein: The first data distribution feature includes a first receiving peak feature, a first sending peak feature, a first receiving valley feature, and a first sending valley feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period, and a second receiving peak feature, a second sending peak feature, a second receiving peak feature, and a second receiving valley feature for evaluating the data distribution density of the historical sent and received data in each sub-time period. receive data subsets and The step of performing feature analysis on each of the transmitted data subsets to obtain the first data distribution feature of the wireless radio frequency chip specifically includes: In each received data subset, a 、 、 、 , so that it satisfies: ; Will 、 、 、 respectively determine as a first receiving peak characteristic, a first transmitting peak characteristic, a first receiving valley characteristic, and a first transmitting valley characteristic of the wireless radio frequency chip; Calculate the target statistical period Cumulative number of receptions in each sub-period: , and the cumulative number of times sent: ; Determine a 、 、 、 , so that it satisfies: ; Will 、 、 、 The second reception peak characteristic, the second transmission peak characteristic, the second reception peak characteristic and the second reception valley characteristic of the wireless radio frequency chip are respectively determined.
5. The method for controlling the working mode of a wireless radio frequency chip according to claim 4, wherein: The step of establishing the feature model of the wireless radio frequency chip according to the first data distribution feature and the working scenario specifically includes: Generate a model object instance for storing a feature model of the wireless radio frequency chip, wherein the model object includes a working scene attribute, a feature attribute of a volume of transmitted and received data, and a data distribution density attribute; Obtaining a working scene code of the wireless radio frequency chip to write into the working scene attribute; Writing the first receiving peak feature, the first transmitting peak feature, the first receiving valley feature, and the first transmitting valley feature in the first data distribution feature of the wireless radio frequency chip into the characteristic attribute of the amount of transmitted and received data; The second receiving peak feature, the second transmitting peak feature, the second receiving peak feature and the second receiving valley feature in the first data distribution feature of the wireless radio frequency chip are written into the data distribution density attribute.
6. The method for controlling the working mode of a wireless radio frequency chip according to claim 5, wherein: The second data distribution feature includes a first received data distribution feature and a first sent data distribution feature for evaluating the amount of data sent and received by the wireless radio frequency chip in each sub-time period of the current statistical period, and a second received data distribution feature and a second sent data distribution feature for evaluating the data distribution density of the wireless radio frequency chip in each sub-time period of the current statistical period. The step of determining the second data distribution feature of the wireless radio frequency chip in the current statistical period based on the feature model specifically includes: Determine the sub-time period number that the current time falls into ; Initialization count ranges from 1 to Count variable By order The value in the initial state is 1; Get the current statistical period Number of data received in a sub-period and the number of times data is sent ; Initialization count ranges from 1 to Count variable and counts from 1 to Count variable ; Get the current statistical period In the sub-period The amount of data received and The amount of data sent ; Calculate the current statistical period The cumulative amount of received data in each sub-period: , and the cumulative amount of data sent: ; Will 、 respectively determining as a first received data distribution feature and a first sent data distribution feature of the wireless radio frequency chip in a current statistical period; Will 、 The second received data distribution feature and the second sent data distribution feature of the wireless radio frequency chip in the current statistical period are respectively determined.
7. The method for controlling the working mode of a wireless radio frequency chip according to claim 6, wherein: The step of determining the target operating mode of the wireless radio frequency chip in the current statistical period according to the operating scenario and the second data distribution feature specifically includes: Reading the working scenario attribute, the characteristic attribute of the amount of data sent and received, and the data distribution density attribute in the characteristic model of the wireless radio frequency chip; Determining whether the current working scene of the wireless radio frequency chip matches the working scene attribute in the feature model; When the current working scenario of the wireless radio frequency chip matches the working scenario attribute in the feature model, calculating the interval coefficient of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume characteristic attribute in the feature model, the interval coefficient being a correlation coefficient between the first received data distribution feature and the first sent data distribution feature and the received and sent data volume characteristic attribute in the feature model; Get the current real time; Determining whether the real-time time falls within a peak interval or a valley interval in the feature model; When the real time falls within the valley interval, determining the target operating mode as a first standby mode, where the first standby mode is a standby mode with minimized average current consumption; When the real time does not fall within the peak interval and does not fall within the valley interval, the target operating mode is determined to be a second standby mode, where the second standby mode is a standby mode in which a clock buffer corresponding to the interval coefficient is in an active state.
8. The method for controlling the working mode of a wireless radio frequency chip according to claim 7, wherein: The step of calculating the interval coefficients of the first received data distribution feature and the first sent data distribution feature relative to the received and sent data volume feature attribute in the feature model specifically includes: The receiving interval coefficient is calculated based on the first receiving data distribution feature of the current statistical period and the first receiving peak feature and the first receiving valley feature in the receiving and sending data volume feature attribute of the feature model: ; The sending interval coefficient is calculated based on the first sending data distribution feature of the current statistical period and the first sending peak feature and the first sending valley feature in the sending and receiving data volume feature attribute of the feature model: ; The interval coefficient is calculated according to the receiving interval coefficient and the sending interval coefficient: 。 9. The method for controlling the working mode of a wireless radio frequency chip according to claim 8, wherein: The step of controlling the wireless radio frequency chip to switch to the target operating mode specifically includes: When the target operating mode is the second standby mode, based on the interval coefficient determining an active number of clock buffers in the second standby mode; The state of the clock buffer is configured according to the active number.
10. A wireless radio frequency chip, characterized in that: The method comprises a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the working mode control method of the wireless radio frequency chip according to any one of claims 1 to 9.
Citation Information
Patent Citations
Multi-channel wireless sensing monitoring system based on CC1310 chip
CN113708795A
Communication management method and device, network equipment and storage medium
CN113938936A