Data processing method and device, electronic equipment and readable storage medium
By acquiring the channel performance parameters of WiFi devices, calculating the comprehensive performance evaluation value, selecting the optimal channel, and adjusting the communication parameters, the problems of high power consumption and low communication quality of WiFi devices are solved, achieving channel communication with the lowest power consumption and the best communication quality.
Patent Information
- Application Number
- CN202411927800.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-12-25
AI Technical Summary
Current technology cannot simultaneously reduce the power consumption of WiFi devices and improve communication quality.
By acquiring the channel performance parameters of each channel, including channel gain, signal-to-noise ratio, and bit error rate, a comprehensive performance evaluation value is calculated. The optimal channel is selected for data interaction, and the transmit power and modulation method are adjusted according to the signal-to-noise ratio and data packet size to achieve adaptive energy saving.
This achieves improved communication quality and resource utilization while reducing the power consumption of WiFi devices.
Smart Images

Figure CN119893697B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to a data processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the development of wireless communication technology, the application of wireless communication (Wireless Fidelity, WiFi) devices is becoming more and more common.
[0003] With the increasing prevalence of WiFi devices, reducing their energy consumption and improving their communication quality have become pressing issues in the fields of the Internet of Things (IoT) and smart homes. Summary of the Invention
[0004] This application aims to provide a data processing method, apparatus, electronic device, and readable storage medium that at least solves the problem in the prior art that it is impossible to simultaneously reduce the power consumption of WiFi devices and improve the communication quality of WiFi devices.
[0005] In a first aspect, embodiments of this application disclose a data processing method applied to a gateway device, the gateway device having at least one channel; the method includes: The channel performance parameters for each channel are obtained respectively; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; Based on the channel performance parameters, obtain the comprehensive performance evaluation value of the channel; Based on the comprehensive performance evaluation value, select the target channel from at least one channel; Data interaction is performed with electronic devices based on the target channel.
[0006] Optionally, obtaining the comprehensive performance evaluation value of the channel based on the channel performance parameters includes: For each channel, each channel performance parameter of the channel is normalized to obtain the normalized result of the channel performance parameter. For each channel, the normalized results of each channel performance parameter are weighted and summed to obtain the comprehensive performance evaluation value of the channel.
[0007] Optionally, the channel performance parameters for each of the channels are obtained, including: Obtain the initial channel performance parameters for each of the channels; The initial channel performance parameters are filtered and interpolated to obtain the processed channel performance parameters. The processed channel performance parameters are determined as the channel performance parameters of the channel.
[0008] Optionally, data interaction with the electronic device is performed according to the target channel, including: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time. If the signal-to-noise ratio is outside the preset signal-to-noise ratio range, a transmission power adjustment command is sent to the electronic device to adjust the data transmission power for transmitting data to the gateway device in response to the transmission power adjustment command.
[0009] Optionally, data interaction with the electronic device is performed according to the target channel, including: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time. If the signal-to-noise ratio is outside the preset signal-to-noise ratio range, a modulation mode adjustment command to change the modulation mode is sent to the electronic device, so that the electronic device can adjust the modulation mode of the data transmitted to the gateway device in response to the modulation mode adjustment command.
[0010] Optionally, data interaction with the electronic device is performed according to the target channel, including: Obtain the size of the data packets used for data interaction between the electronic device and the gateway device; If the data packet size is less than or equal to a first preset data packet size threshold, a sleep command is sent to the electronic device so that the electronic device can respond to the sleep command and enter a sleep state.
[0011] Optionally, the method further includes: If the data packet size is greater than the second preset data packet size threshold, then it is determined whether the electronic device is in a sleep state; If it is determined that the electronic device is in a sleep state, a wake-up command is sent to the electronic device so that the electronic device responds to the wake-up command and enters a wake-up state.
[0012] Secondly, embodiments of this application disclose a channel selection device, the device being located in a gateway device, the gateway device having at least one channel; the device includes: The first acquisition module is used to acquire the channel performance parameters of each of the channels respectively; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; The second acquisition module is used to acquire the comprehensive performance evaluation value of the channel based on the channel performance parameters; The first selection module is used to select a target channel from at least one channel based on the comprehensive performance evaluation value; The communication module is used to interact with the electronic device based on the target channel.
[0013] Thirdly, embodiments of this application also disclose an electronic device, including a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0014] Fourthly, embodiments of this application also disclose a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method described in the first aspect.
[0015] In summary, in this embodiment, channel performance parameters for each channel are obtained. These parameters include at least one of the following: channel gain, signal-to-noise ratio (SNR), and bit error rate (BER). Based on these parameters, a comprehensive performance evaluation value for the channel is obtained. Based on this comprehensive performance evaluation value, a target channel is selected from at least one channel for the electronic device to interact with the gateway via the target channel. By selecting a target channel from multiple channels of the gateway device based on its performance, and then interacting with the electronic device via the target channel, a channel communication method based on the lowest energy consumption and highest communication quality can be implemented. Attached Figure Description
[0016] In the attached diagram: Figure 1 This is a flowchart illustrating the steps of data processing provided in an embodiment of this application; Figure 2 This is a flowchart of another data processing step provided in an embodiment of this application; Figure 3 This is a flowchart illustrating another data processing step provided in an embodiment of this application; Figure 4 This is a flowchart of a data processing method provided in an embodiment of this application; Figure 5 This is a flowchart illustrating another data processing step provided in an embodiment of this application; Figure 6 This is a flowchart of a data processing method provided in an embodiment of this application; Figure 7 This is a block diagram of a data processing apparatus provided in an embodiment of this application; Figure 8 This is a block diagram of an electronic device provided in one embodiment of this application; Figure 9 This is a block diagram of an electronic device according to another embodiment of the present application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0019] Figure 1 This is a flowchart illustrating the steps of channel selection provided in this embodiment. The method is applied to a gateway device, which has at least one channel. (Refer to...) Figure 1 Data processing methods may include the following steps: Step 101: Obtain the channel performance parameters for each channel.
[0020] The channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate.
[0021] For example, the gateway device integrates a high-efficiency Wi-Fi chip that supports Channel State Information (CSI) acquisition, and collects CSI data based on this Wi-Fi chip. Furthermore, the gateway device collects CSI data from the wireless communication system.
[0022] The collected CSI data includes at least one of the following: channel gain, signal-to-noise ratio (SNR), and bit error rate (BER). Channel gain refers to the amplification or attenuation of a signal as it propagates through a channel. Signal-to-noise ratio (SNR) is the ratio of signal strength to background noise intensity. For example, CSI data may also include phase information, which represents the phase changes of the signal within the channel.
[0023] In addition, the collected CSI data may also include a timestamp, which identifies the time point when the CSI data was collected.
[0024] Step 102: Obtain the comprehensive performance evaluation value of the channel based on the channel performance parameters; The gateway device collects CSI data and performs real-time channel status analysis on each channel based on the CSI data to view the comprehensive performance evaluation value of different channels under the current communication environment.
[0025] For example, the initial CSI data can be acquired, and then each initial CSI data can be filtered, interpolated, and normalized to obtain dimensionless channel performance parameters.
[0026] For each channel, the following processing is performed: the dimensionless channel performance parameters of the channel are weighted and summed to obtain the weighted sum result, which is then determined as the comprehensive performance evaluation value of the channel.
[0027] Step 103: Select a target channel from at least one channel based on the comprehensive performance evaluation value; For example, the system collects CSI data of the collected channels, obtains a comprehensive performance evaluation value based on the CSI data, and selects a target channel for data interaction from at least one channel based on the comprehensive performance evaluation value, thus realizing an adaptive energy-saving gateway using WiFi Channel State Information (CSI).
[0028] The gateway device selects the target channel for data interaction between electronic devices and the gateway device based on the different comprehensive performance evaluation values of different channels. Based on the target channel for data interaction, the gateway device manages and controls the electronic devices connected to the gateway device, thereby reducing the power consumption of electronic devices and the gateway device and maximizing the utilization of communication resources.
[0029] Step 104: Perform data interaction with the electronic device according to the target channel.
[0030] Specifically, electronic devices can send data to gateway devices based on the target channel, and also receive data sent by gateway devices through the target channel.
[0031] For example, electronic devices can be individual smart devices such as smart air conditioners, smart refrigerators, smart humidifiers, and smart fans in home appliances. Electronic devices can also be central control devices used to control various smart devices.
[0032] With the rapid development of wireless communication technology, WiFi devices have become an indispensable part of modern life and daily work. For example, whether in WiFi communication applications in home networks or in hotspot applications in public places, communication based on WiFi devices is required.
[0033] With the increasing popularity of WiFi devices, their energy consumption has become a growing concern, especially in Internet of Things (IoT) devices and smart home applications, where the power consumption of WiFi devices has become a limiting factor for their development and application.
[0034] In this embodiment, channel performance parameters for each channel are obtained. These parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate. A comprehensive performance evaluation value for the channel is obtained based on these parameters. Based on the comprehensive performance evaluation value, a target channel is selected from at least one channel for the electronic device to interact with the gateway via the target channel. By selecting a target channel from multiple channels of the gateway device based on its performance, and then interacting with the electronic device via the target channel, a channel communication method based on the lowest power consumption and best communication quality can be implemented.
[0035] Figure 2 Another data processing method is provided, see reference. Figure 2 The method may include the following steps: Step 201: Obtain the initial channel performance parameters for each channel.
[0036] The initial channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate.
[0037] For example, the initial channel performance parameters are CSI data collected by the WiFi chip in the gateway device. CSI data may include: channel gain (which refers to the amplification or attenuation of a signal as it propagates in the channel); signal-to-noise ratio (SNR, which is the ratio of signal strength to background noise); phase information (which refers to the phase changes of the signal in the channel); and a timestamp (which indicates the time point at which the CSI data was collected).
[0038] Step 202: Filter and interpolate the initial channel performance parameters to obtain the processed channel performance parameters.
[0039] For example, filtering can remove noise and outliers from the initial channel performance parameters, and interpolation can fill in missing values for discontinuous data points.
[0040] The initial channel performance parameters can be filtered to remove noise and outliers.
[0041] Based on the filtered channel performance parameters, a fitting curve for the channel performance parameters can be obtained. Then, based on the fitting curve, the data of the missing points can be obtained and inserted into the filtered data to fill in the missing values.
[0042] For example, each channel performance parameter collected by the gateway device has its own corresponding timestamp. If a channel performance parameter corresponding to a certain timestamp is missing, the channel performance parameter corresponding to that timestamp can be obtained by interpolation and inserted into the data point corresponding to that timestamp, thereby achieving data completion. Interpolation can improve data availability.
[0043] Step 203: Determine the processed channel performance parameters as the channel performance parameters.
[0044] Determining the channel performance parameters after filtering and interpolation as the channel performance parameters can improve the accuracy and availability of the channel performance parameters.
[0045] Step 204: For each channel, normalize each channel performance parameter to obtain the normalized result of the channel performance parameters.
[0046] For example, normalization of channel performance parameters can scale each performance parameter to a uniform scale and make each performance parameter dimensionless for easier comparison.
[0047] The channel performance parameters can be normalized using the following method: obtain the historical communication data of the channel corresponding to the channel performance parameters; based on the historical communication data, obtain the maximum value of the channel performance parameters within a preset historical time period; perform a ratio calculation between the channel performance parameters and the maximum value, and determine the ratio calculation result as the normalization result.
[0048] For example, for the signal-to-noise ratio (SNR) of channel A, the maximum SNR in channel A within a preset historical time period is SNRmax. After the gateway device obtains the SNR, it obtains the ratio of SNR to SNRmax and determines this ratio as the normalized result of the SNR.
[0049] Step 205: For each channel, the normalization results of each performance parameter of the channel are weighted and summed to obtain the comprehensive performance evaluation value of the channel.
[0050] For example, based on the preset weight values corresponding to each performance parameter, the performance parameters are weighted and summed to obtain the weighted sum result, which is then determined as the comprehensive performance evaluation value of the channel.
[0051] The preset weight values can be set according to communication requirements. For example, if a high signal-to-noise ratio is required for the communication process, the weight value corresponding to the signal-to-noise ratio can be set larger; if a high channel gain is required, the weight value corresponding to the channel gain can be set larger.
[0052] Step 206: Select a target channel from at least one channel based on the comprehensive performance evaluation value.
[0053] For example, the channel with the highest overall performance evaluation value can be selected and determined as the target channel.
[0054] For example, based on the comprehensive performance evaluation value and the correspondence between the pre-stored channel performance level and the range of the pre-stored comprehensive performance evaluation value, each channel can be classified to obtain the channel performance level of each channel.
[0055] For example, the pre-stored channel performance level in the correspondence includes four levels: excellent, good, medium and poor. If the comprehensive evaluation value of the channel is calculated based on the channel performance parameters and falls within the range of the pre-stored performance evaluation value corresponding to the excellent level, then the channel performance level is determined to be excellent.
[0056] Furthermore, the communication level of the electronic device is obtained, and the performance level corresponding to the communication level of the electronic device is obtained. Then, from multiple channels, the channel with a performance level equal to that performance level is selected and determined as the target channel.
[0057] The aforementioned method can be used to process all channel performance parameters as a whole to obtain a comprehensive performance evaluation value for the channel, and then the target channel can be selected based on the comprehensive performance evaluation value.
[0058] In one embodiment, the channel performance parameters to be analyzed that the electronic device needs to focus on can be determined according to the communication requirements of the electronic device. The channel performance parameters to be analyzed are selected from the various channel performance parameters. Then, the channel performance parameters to be analyzed of each channel are compared. Based on the comparison results, the target channel whose channel performance parameters meet the communication requirements of the electronic device is selected so that the electronic device can perform data interaction with the gateway based on the target channel.
[0059] For example, the target channel can also be obtained from at least one channel using the following method: The signal-to-noise ratio (SNR) of each channel is compared with a preset SNR threshold. If the SNR of the channel is greater than or equal to the preset SNR threshold, the channel's SNR level is determined to be excellent; if the SNR of the channel is less than the preset SNR threshold, the channel's SNR level is determined to be poor. Since SNR is a key consideration in electronic device communication, channels with excellent SNR levels are selected from at least one channel, and then the target channel is selected randomly from these excellent channels.
[0060] In another embodiment, based on the communication requirements of the electronic device, the performance parameters of the channel to be analyzed corresponding to the electronic device are obtained. Based on the performance parameters of the channel to be analyzed, a channel whose performance parameters meet the communication requirements of the electronic device is selected from at least one channel. Then, for each channel to be analyzed: the channel performance parameters of each channel are obtained; based on the channel performance parameters, the comprehensive performance evaluation value of the channel is obtained; based on the comprehensive performance evaluation value, a target channel is selected from at least one channel to be analyzed; and data interaction is performed with the electronic device based on the target channel.
[0061] Furthermore, from the channels whose performance parameters meet the communication requirements of electronic devices, the channel with the highest comprehensive performance evaluation value is selected, and the channel with the highest comprehensive performance evaluation value is determined as the target channel for data interaction with electronic devices.
[0062] Step 207: Perform data interaction with the electronic device according to the target channel.
[0063] Electronic devices can send data to gateway devices based on the target channel, and also receive data sent by gateway devices through the target channel.
[0064] For example, step 207 may include the following sub-steps: Sub-step A1: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time.
[0065] For example, the signal-to-noise ratio of the target channel can be obtained in real time during data interaction between the electronic device and the gateway device via the WiFi chip in the gateway device used to collect CSI data.
[0066] In sub-step A2, if the signal-to-noise ratio is outside the preset signal-to-noise ratio range, a transmission power adjustment command is sent to the electronic device to adjust the transmission power, so that the electronic device can respond to the transmission power adjustment command and adjust the data transmission power to transmit data to the gateway device.
[0067] Furthermore, if the signal-to-noise ratio is within the preset range, no transmission power adjustment command is sent to the electronic device to adjust the transmission power, so that the electronic device can perform data interaction with the gateway device based on the current transmission power.
[0068] Furthermore, if the signal-to-noise ratio is lower than the lower limit of the preset signal-to-noise ratio range, a command to increase the transmission power is sent to the electronic device, so that the electronic device can increase its transmission power in response to the command; if the signal-to-noise ratio is higher than the upper limit of the preset signal-to-noise ratio range, a command to decrease the transmission power is sent to the electronic device, so that the electronic device can decrease its transmission power in response to the command.
[0069] Therefore, based on this embodiment, communication system parameters can be dynamically adjusted according to real-time channel quality assessment results. Specifically, the power control parameters in the communication system can be adjusted to increase or decrease the transmit power to optimize the SNR. While meeting the signal-to-noise ratio requirements of electronic device communication, the transmit power of the electronic device can be adjusted in real time according to the actual SNR of the channel to avoid the problem of high energy consumption during communication caused by continuously transmitting data at high power.
[0070] For example, step 207 may also include the following sub-steps: Sub-step B1: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time.
[0071] The method for this step has been explained in the aforementioned sub-step A1, and will not be repeated here.
[0072] In sub-step B2, if the signal-to-noise ratio is outside the preset signal-to-noise ratio range, a modulation mode adjustment command to change the modulation mode is sent to the electronic device, so that the electronic device can respond to the modulation mode adjustment command and adjust the modulation mode of the data transmitted to the gateway device.
[0073] If the signal-to-noise ratio (SNR) is outside the preset SNR range, it means that the current communication state does not meet the communication requirements of the electronic device. Therefore, it is necessary to send a modulation mode adjustment command to the electronic device to change the modulation mode, so that the electronic device can respond to the modulation mode adjustment command and adjust the modulation mode of the data transmitted to the gateway device to adjust the SNR and make the communication mode meet the communication needs of the electronic device.
[0074] Specifically, adjusting the modulation scheme can include the following steps: selecting a more suitable modulation scheme based on channel quality, such as using a more robust modulation scheme when the channel quality is poor.
[0075] Furthermore, the methods described in steps 201 to 207 can also be used to perform routing selection during communication. Specifically, in a multipath environment, the path with the best channel quality is selected for data transmission.
[0076] For example, step 207 may also include the following sub-steps: Sub-step C1: Obtain the size of the data packets used for data interaction between the electronic device and the gateway device.
[0077] Specifically, a large data packet indicates that the electronic device is active and there is valid data transmission between the electronic device and the gateway device. A small data packet indicates that the electronic device is inactive and there is no valid data being transmitted between the electronic device and the gateway device; instead, there is only response and reply data that is not valid data.
[0078] In sub-step C2, if the data packet size is less than or equal to the first preset data packet size threshold, a sleep command is sent to the electronic device so that the electronic device can respond to the sleep command and enter a sleep state.
[0079] For example, the first preset data packet size threshold can be determined based on historical communication data of the communication system. Specifically, based on the data packet sizes transmitted when the electronic device and the gateway device are in an active state during a historical period, the minimum value among these data packet sizes is obtained, and this minimum value is determined as the first preset data packet size threshold.
[0080] Therefore, when the data packet size is less than or equal to the first preset data packet size threshold, the interaction between the electronic device and the gateway device may only be request and response data to determine whether the electronic device and the gateway device are communicating normally. In this case, a sleep command can be sent to the electronic device so that the electronic device can respond to the sleep command and enter a sleep state, thereby reducing the power consumption of the electronic device and the gateway device.
[0081] Furthermore, if the data packet size is less than or equal to a first preset data packet size threshold, a sleep command is sent to the electronic device, causing the electronic device to respond to the sleep command and enter a sleep state. This allows inactive electronic devices to enter a low-power sleep state, saving energy.
[0082] Sub-step C3: If the data packet size is greater than the second preset data packet size threshold, determine whether the electronic device is in a sleep state.
[0083] For example, the second preset data packet size threshold can be determined based on historical communication data of the communication system. The first preset data packet size and the second preset data packet size may be equal or unequal.
[0084] If the data packet size is greater than the second preset data packet size threshold, it indicates that the electronic device and the gateway device are in a state where normal data exchange is required. In this case, if the electronic device is in a sleep state, it will affect the normal data exchange. Therefore, it is necessary to determine whether the electronic device is in a sleep state in order to control the state of the electronic device based on the determination result.
[0085] Sub-step C4: If it is determined that the electronic device is in a sleep state, a wake-up command is sent to the electronic device so that the electronic device responds to the wake-up command and enters the wake-up state.
[0086] If it is determined that the electronic device is not in sleep mode, a wake-up command will not be sent to the electronic device.
[0087] Furthermore, if the data packet size exceeds the second preset data packet size threshold, and it is determined that the electronic device is in a sleep state, a wake-up command is sent to the electronic device, allowing it to respond and enter a wake-up state. Thus, by using the actual data packet size, the second preset data packet size threshold, and the determination of whether the electronic device is in a sleep state, a sleep-state electronic device can be woken up in a timely manner, enabling it to communicate normally with the gateway device.
[0088] In this embodiment, channel performance parameters for each channel are obtained; initial channel performance parameters for each channel are obtained; the initial channel performance parameters are filtered and interpolated to obtain processed channel performance parameters. For each channel, each channel performance parameter is normalized to obtain a normalized result. The normalized results for each channel performance parameter are weighted and summed to obtain a comprehensive performance evaluation value for the channel. Based on the comprehensive performance evaluation value, a target channel is selected from at least one channel for the electronic device to interact with the gateway based on the target channel.
[0089] Through filtering and interpolation, channel performance parameters with high accuracy and availability can be obtained. Normalizing these parameters and using the normalization results allows for accurate comprehensive channel performance evaluation values for each channel. By acquiring the target channel based on these comprehensive performance evaluation values and enabling data interaction between the target channel and electronic devices, a channel communication method with the lowest energy consumption and best communication quality can be achieved.
[0090] Figure 3 and Figure 4 This is a flowchart of another data processing method provided in an embodiment of the present invention, referred to... Figure 3 and Figure 4 For electronic devices awaiting network distribution, data processing can be performed using the following methods: Step S1: The device to be connected initiates a communication request to the gateway device.
[0091] Firstly, a modular design is adopted, modularizing the gateway's CSI data processing, adaptive algorithms, and sleep mechanisms for easy integration and maintenance. The modules communicate with each other through standard interfaces, ensuring system flexibility and scalability. This allows different types of devices to adjust power consumption through the gateway.
[0092] The gateway uses CSI data to evaluate channel quality in real time, analyzing metrics such as signal-to-noise ratio (SNR) and channel gain to dynamically understand the current channel status. It selects a channel with a better network environment for connecting devices, while simultaneously sending low-power information, as the selected channel reduces power consumption during connection. Based on the real-time channel quality assessment, the collected channel information is uploaded to an internal adaptive algorithm. The gateway then checks the signal sources connected to the devices, dynamically adjusting the transmit power, bandwidth, and modulation / coding of devices with minimal data transmission to save energy.
[0093] Based on this, the gateway also needs to implement intelligent sleep and fast wake-up mechanisms for devices. By detecting environmental information based on CSI data and then determining the sleep state and active working time of the working devices according to the data transmission requirements, the gateway can ensure that the device has the optimal channel for data transmission and enters the sleep state after only a short period of activity after completing the information transmission, thereby reducing the power consumption of the device.
[0094] Step S2: The gateway device collects CSI data for each channel.
[0095] For example, the gateway device integrates a Wi-Fi chip for CSI data acquisition, and the CSI data is collected based on this Wi-Fi chip.
[0096] The CSI data can include channel gain, signal-to-noise ratio, bit error rate, and phase information. It can also include timestamp information. Furthermore, data transmission delay can be calculated based on the timestamp information.
[0097] In step S3, the gateway device obtains the comprehensive performance evaluation value of each channel based on the CSI data, and selects the target channel with the best network environment from multiple channels based on the comprehensive performance evaluation value, and returns the channel identifier of the target channel to the communication module in the gateway device.
[0098] For example, each initial CSI data collected by the gateway device can be filtered, interpolated, and normalized to obtain dimensionless channel performance parameters. Then, for each channel, according to the preset weights corresponding to each channel performance parameter, the dimensionless channel performance parameters of the channel are weighted and summed to obtain a weighted sum result, which is then determined as the comprehensive performance evaluation value of the channel.
[0099] The preset weight values can be set according to communication requirements. For example, if the signal-to-noise ratio (SNR) requirement is high, the weight value corresponding to the SNR can be set larger; if the bit error rate (BER) requirement is high, the weight value corresponding to the BER can be set larger.
[0100] For example, CSI data can include channel gain, signal-to-noise ratio (SNR), bit error rate (BER), phase information, and timestamp information. Data transmission delay can be calculated based on the timestamp information. The channel gain, SNR, BER, phase information, and transmission delay are processed as follows: filtering, interpolation of the filtered data, and normalization of the interpolation results.
[0101] Thus, the normalized results for channel gain, signal-to-noise ratio (SNR), bit error rate (BER), phase information, and transmission delay are obtained. Then, based on the preset weight values for channel gain, SNR, BER, phase information, and transmission delay, these normalized results are weighted and summed to obtain a weighted sum result. This weighted sum result is then determined as the comprehensive performance evaluation value of the channel.
[0102] For example, the channel with the highest overall evaluation value can be identified as the target channel.
[0103] For example, based on the comprehensive evaluation value, the performance of each channel can be classified to obtain the performance category of each channel. Then, the performance category that meets the communication requirements of the electronic device can be selected, and one of the channels corresponding to these performance categories can be selected as the target channel.
[0104] For example, from the various channel performance parameters that electronic devices need to focus on in communication, the highest priority performance parameter to be analyzed can be selected; based on the comparison results of the performance parameter to be analyzed in all channels, the channel to be analyzed that meets the communication requirements of the electronic device can be selected; then the comprehensive performance rating value of each channel to be analyzed can be obtained and compared, and the target channel can be obtained from each channel to be analyzed based on the comparison results.
[0105] In step S4, the communication module communicates with the device to be accessed based on the target channel, and adjusts the transmission power of the electronic device according to the signal-to-noise ratio of the channel during the communication process to reduce communication power consumption.
[0106] Specifically, during data interaction between the electronic device and the gateway device, the signal-to-noise ratio (SNR) of the target channel is acquired in real time. If the SNR is within the preset range, the data transmission power of the electronic device is not adjusted.
[0107] If the signal-to-noise ratio (SNR) is outside the preset SNR range, the data transmission power of the electronic device is adjusted as follows: if the SNR is lower than the lower limit of the preset SNR range, a command to increase the transmission power is sent to the electronic device, so that the electronic device increases its transmission power in response to the command; if the SNR is higher than the upper limit of the preset SNR range, a command to decrease the transmission power is sent to the electronic device, so that the electronic device decreases its transmission power in response to the command.
[0108] Furthermore, refer to Figure 4 The device to be connected initiates a connection to the gateway device. The gateway device collects CSI data through the WiFi chip and performs channel state analysis on each channel of the gateway device according to the method of the aforementioned embodiment to obtain the comprehensive performance evaluation value of each channel.
[0109] Based on the comprehensive performance evaluation value of each channel, the target channel is selected from multiple channels. Then, the channel identifier of the target channel is returned to the communication module in the gateway device. The communication module determines the target channel based on the channel identifier and communicates with the device to be accessed based on the target channel.
[0110] The objective is to select the optimal channel from among the multiple channels available to the gateway device. During communication based on the optimal channel, the gateway device adjusts the modulation scheme of its electronic devices and the transmission power of its data transmission according to the actual communication status to reduce energy consumption.
[0111] Based on the method of this embodiment, the transmission power of the electronic device can be adjusted in real time according to the actual communication status between the electronic device and the gateway device, thereby improving the user experience and reducing energy consumption. Furthermore, by synchronizing the method of this embodiment, a comprehensive performance evaluation value for each channel can be obtained, dynamic channel quality assessment can be performed on the channels, and a target channel can be obtained from the channels based on the evaluation results. The electronic device then interacts with the gateway device based on the target channel to ensure data communication and reduce device communication energy consumption.
[0112] Reference Figure 5 and Figure 6 For electronic devices already connected to the network, data processing can be performed using the following methods: Step F1: Start the gateway device.
[0113] The gateway device is equipped with a Wi-Fi chip for collecting CSI data. After the gateway device is started, the channel performance parameters of the channel can be collected based on the Wi-Fi chip of the gateway device.
[0114] Step F2, based on the adaptive algorithm in the gateway, allocates a target channel with good performance to the active device communicating with the gateway device and adjusts the transmission power.
[0115] The adaptive algorithm includes: during data interaction between the electronic device and the gateway device, acquiring the signal-to-noise ratio (SNR) of the target channel in real time; if the SNR is outside a preset SNR range, sending a transmit power adjustment command to the electronic device to adjust the data transmission power to the gateway device; and if the SNR is outside a preset SNR range, sending a modulation scheme adjustment command to the electronic device to adjust the modulation scheme to the gateway device.
[0116] In addition, the adaptive algorithm further includes: acquiring channel performance parameters for each channel in real time; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; acquiring a comprehensive performance evaluation value of the channel based on the channel performance parameters; selecting a target channel from at least one channel based on the comprehensive performance evaluation value; if the target channel is inconsistent with the current communication channel, switching the communication channel to the target channel to perform data interaction with the electronic device based on the target channel.
[0117] Step F3: Send a sleep command to the active device that is communicating with the gateway device to reduce power consumption.
[0118] Specifically, during communication between the electronic device and the gateway device, the size of the data packets exchanged between the electronic device and the gateway device is acquired in real time. Then, the data packet size is compared with a first preset data packet size threshold.
[0119] If the data packet size is less than or equal to a first preset data packet size threshold, a sleep command is sent to the electronic device so that the electronic device responds to the sleep command and enters a sleep state.
[0120] Step F4: Send a quick wake-up command to the device to be activated that is communicating with the gateway device to wake up the device to be activated.
[0121] Specifically, during the communication process between the electronic device and the gateway device, the size of the data packets exchanged between the electronic device and the gateway device is obtained in real time, and the current state of the electronic device is determined, including whether it is in a sleep state or a wake-up state.
[0122] If the data packet size is greater than the second preset data packet size threshold, and the electronic device is in a sleep state, a wake-up command is sent to the electronic device so that the electronic device responds to the wake-up command and enters a wake-up state.
[0123] In step F5, the gateway device and the awakened, active device engage in data interaction.
[0124] Furthermore, refer to Figure 6 The gateway device is then activated, and its adaptive algorithm is used to obtain the comprehensive performance evaluation value of each channel. Specifically, the adaptive algorithm is used to implement the methods described in steps 101 to 104 above, which will not be elaborated here.
[0125] Furthermore, a high-performance target channel is obtained based on an adaptive algorithm, and communication is conducted with active electronic devices based on the target channel. The transmission power of the active devices is adjusted according to the actual communication status to reduce energy consumption.
[0126] Furthermore, if the data packet size transmitted between the gateway device and the electronic device is less than or equal to the first preset data packet size threshold, the electronic device is determined to be an active device, and a sleep command is sent to the active device to reduce its power and enter a sleep state.
[0127] Furthermore, if the data packet size transmitted between the gateway device and the electronic device exceeds a second preset data packet size threshold, and it is determined that the electronic device is in a sleep state, a quick wake-up command is sent to it to wake it up. This allows the electronic device to interact with the gateway device normally. For example, the woken-up electronic device can send data to the gateway device based on the target channel, and the gateway device can also send data to the electronic device based on the target channel.
[0128] Furthermore, in actual communication, if the actual communication channel is not the target channel obtained according to the adaptive algorithm, then the communication is switched to the target channel.
[0129] Based on the method of this embodiment, channel quality selection can be dynamically performed. An adaptive algorithm is implemented using an adaptive model in the gateway device. According to the adaptive algorithm, the transmit power of electronic devices is adjusted based on the actual scenario to achieve communication based on optimal power consumption. Furthermore, this embodiment employs a modular design to enable different types of electronic devices to connect to the gateway device and achieve energy-saving functionality.
[0130] refer to Figure 7 It illustrates a data processing apparatus 40 provided in an embodiment of this application, with reference to Figure 7 The device 40 includes: The first acquisition module 401 is used to acquire the channel performance parameters of each of the channels respectively; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; The second acquisition module 402 is used to acquire the comprehensive performance evaluation value of the channel based on the channel performance parameters; The first selection module 403 is used to select a target channel from at least one channel based on a comprehensive performance evaluation value; The communication module 404 is used to perform data interaction with the electronic device according to the target channel.
[0131] Optionally, the second acquisition module 402 may include: The first acquisition submodule is used to normalize each channel performance parameter for each channel to obtain the normalization result. The second acquisition submodule is used to perform weighted summation on the normalization results of each channel performance parameter to obtain the comprehensive performance evaluation value of the channel.
[0132] Optionally, the first acquisition module 401 may include: The third acquisition submodule is used to acquire the initial channel performance parameters for each channel; The fourth acquisition submodule is used to filter and interpolate the initial channel performance parameters to obtain the processed channel performance parameters. The first determining submodule is used to determine the processed channel performance parameters as the channel performance parameters.
[0133] Optionally, the communication module 404 may include: The fifth acquisition submodule is used to acquire the signal-to-noise ratio of the target channel in real time during the data interaction between the electronic device and the gateway device; The first transmitting submodule is used to send a transmission power adjustment command to the electronic device to adjust the transmission power if the signal-to-noise ratio is outside the preset signal-to-noise ratio range, so that the electronic device can adjust the data transmission power to transmit data to the gateway device in response to the transmission power adjustment command.
[0134] Optionally, the communication module 404 may include: The sixth acquisition submodule is used to acquire the signal-to-noise ratio of the target channel in real time during the data interaction between the electronic device and the gateway device; The second transmitting submodule is used to send a modulation mode adjustment command to the electronic device to change the modulation mode if the signal-to-noise ratio is outside the preset signal-to-noise ratio range, so that the electronic device can adjust the modulation mode of the data transmitted to the gateway device in response to the modulation mode adjustment.
[0135] Optionally, the communication module 404 may include: The seventh acquisition submodule is used to acquire the size of the data packets used for data interaction between the electronic device and the gateway device; The third sending submodule is used to send a sleep command to the electronic device if the data packet size is less than or equal to the first preset data packet size threshold, so that the electronic device can respond to the sleep command and enter a sleep state.
[0136] Optionally, the communication module 404 may include: The judgment submodule is used to determine whether the electronic device is in a sleep state if the data packet size is greater than the second preset data packet size threshold. The fourth sending submodule is used to send a wake-up command to the electronic device if it is determined that the electronic device is in a sleep state, so that the electronic device can respond to the wake-up command and enter the wake-up state.
[0137] In this embodiment, channel performance parameters for each channel are obtained. These parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate. A comprehensive performance evaluation value for the channel is obtained based on these parameters. Based on the comprehensive performance evaluation value, a target channel is selected from at least one channel for the electronic device to interact with the gateway via the target channel. By selecting a target channel from multiple channels of the gateway device based on its performance, and then interacting with the electronic device via the target channel, a channel communication method based on the lowest power consumption and best communication quality can be implemented.
[0138] Reference Figure 8 The electronic device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.
[0139] Processing component 502 typically controls the overall operation of electronic device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0140] Memory 504 is used to store various types of data to support the operation of electronic device 500. Examples of this data include instructions for any application or method operating on electronic device 500, contact data, phonebook data, messages, pictures, multimedia, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0141] Power supply component 506 provides power to various components of electronic device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 500.
[0142] Multimedia component 508 includes an interface that provides an output interface between electronic device 500 and user. In some embodiments, the interface may include a liquid crystal display (LCD) and a touch panel (TP). If the interface includes a touch panel, the interface may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When electronic device 500 is in an operating mode, such as shooting mode or multimedia mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0143] Audio component 510 is used to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) used to receive external audio signals when electronic device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0144] Input / output (I / O) interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0145] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of electronic device 500. For example, sensor assembly 514 may detect the on / off state of electronic device 500, the relative positioning of components such as the display and keypad of electronic device 500, changes in position of electronic device 500 or a component of electronic device 500, the presence or absence of user contact with electronic device 500, orientation or acceleration / deceleration of electronic device 500, and temperature changes of electronic device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0146] Communication component 516 facilitates wired or wireless communication between electronic device 500 and other devices. Electronic device 500 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 5G), or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0147] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement a data processing method provided in the embodiments of this application.
[0148] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of an electronic device 500 to perform the above-described method. For example, the non-transitory storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0149] Figure 9This is a block diagram of an electronic device 600 according to another embodiment of the present invention. For example, the electronic device 600 may be provided as a server. (See also...) Figure 9 The electronic device 600 includes a processing component 622, which further includes one or more processors, and memory resources represented by a memory 632 for storing instructions, such as application programs, that can be executed by the processing component 622. The application programs stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 622 is configured to execute instructions to perform a data processing method provided in embodiments of this application.
[0150] Electronic device 600 may also include a power supply component 626 configured to perform power management of electronic device 600, a wired or wireless network interface 650 configured to connect electronic device 600 to a network, and an input / output (I / O) interface 658. Electronic device 600 may operate on an operating system stored in memory 632, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.
[0151] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0152] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data processing method, characterized in that, Applied to a gateway device, the gateway device having at least one channel; the method includes: The channel performance parameters for each channel are obtained respectively; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; Based on the channel performance parameters, obtain the comprehensive performance evaluation value of the channel; Based on the comprehensive performance evaluation value, select the target channel from at least one channel; Based on the target channel, data interaction is performed with the electronic device; The step of interacting with the electronic device based on the target channel includes: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time. If the signal-to-noise ratio is higher than the upper limit of the preset signal-to-noise ratio range, a command to reduce the transmission power is sent to the electronic device, so that the electronic device can reduce the transmission power in response to the command to reduce the transmission power. Obtain the size of the data packets used for data interaction between the electronic device and the gateway device; If the data packet size is less than or equal to a first preset data packet size threshold, a sleep command is sent to the electronic device so that the electronic device can enter a sleep state in response to the sleep command, thereby reducing the power consumption of the electronic device. If the data packet size is greater than the second preset data packet size threshold, then it is determined whether the electronic device is in a sleep state; If it is determined that the electronic device is in a sleep state, a wake-up command is sent to the electronic device so that the electronic device responds to the wake-up command and enters a wake-up state.
2. The method according to claim 1, characterized in that, The step of interacting with the electronic device based on the target channel includes: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time. If the signal-to-noise ratio is outside the preset signal-to-noise ratio range, a modulation mode adjustment command to change the modulation mode is sent to the electronic device, so that the electronic device can adjust the modulation mode of the data transmitted to the gateway device in response to the modulation mode adjustment command.
3. The method according to claim 1, characterized in that, The step of obtaining the comprehensive performance evaluation value of the channel based on the channel performance parameters includes: For each channel, each channel performance parameter of the channel is normalized to obtain the normalized result of the channel performance parameter. For each channel, the normalized results of each channel performance parameter are weighted and summed to obtain the comprehensive performance evaluation value of the channel.
4. The method according to claim 1, characterized in that, Obtain the channel performance parameters for each of the channels, including: Obtain the initial channel performance parameters for each of the channels; The initial channel performance parameters are filtered and interpolated to obtain the processed channel performance parameters. The processed channel performance parameters are determined as the channel performance parameters of the channel.
5. A channel selection device, characterized in that, The device is located in a gateway device, the gateway device having at least one channel; the device includes: The first acquisition module is used to acquire the channel performance parameters of each of the channels respectively; the channel performance parameters include at least one of the following: channel gain, signal-to-noise ratio, and bit error rate; The second acquisition module is used to acquire the comprehensive performance evaluation value of the channel based on the channel performance parameters. The first selection module is used to select a target channel from at least one channel based on the comprehensive performance evaluation value; A communication module is used to interact with an electronic device based on the target channel; Specifically, the communication module is used for: During the data interaction between the electronic device and the gateway device, the signal-to-noise ratio of the target channel is acquired in real time. If the signal-to-noise ratio is higher than the upper limit of the preset signal-to-noise ratio range, a command to reduce the transmission power is sent to the electronic device, so that the electronic device can reduce the transmission power in response to the command to reduce the transmission power. Obtain the size of the data packets used for data interaction between the electronic device and the gateway device; If the data packet size is less than or equal to a first preset data packet size threshold, a sleep command is sent to the electronic device so that the electronic device can enter a sleep state in response to the sleep command, thereby reducing the power consumption of the electronic device. If the data packet size is greater than the second preset data packet size threshold, then it is determined whether the electronic device is in a sleep state; If it is determined that the electronic device is in a sleep state, a wake-up command is sent to the electronic device so that the electronic device responds to the wake-up command and enters a wake-up state.
6. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method as described in any one of claims 1 to 4.
7. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for selecting WiFi access point channel
CN112351473A
Power management for WLAN
CN1842027A
Method of power control for mobile communication system
CN1870455A
