An intelligent curtain control switch based on the Internet of Things

By monitoring and processing the signal strength, phase error and background noise information of the wireless communication module in real time, and using the machine learning model to evaluate the transmission quality, the problem of unstable communication in the intelligent curtain control system under signal interference is solved, and an efficient and accurate device is realized control, improving user experience and device intelligence.

CN118506559BActive Publication Date: 2024-10-08SHENZHEN SODI INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961648.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-08
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In the home environment, the intelligent curtain control system causes unstable communication due to signal interference, and the transmitted information is incomplete or disordered, affecting the control effect.

Method used

Intelligent curtain control switches based on the Internet of Things are used to collect signal strength, phase error and background noise information in real time through the wireless communication module. The collection analysis module and evaluation module are used to generate the transmission quality index, and the pre-trained machine learning model is input to generate the transmission quality coefficient. , and perform real-time evaluation and feedback through the feedback module. The re-transmission module adjusts the communication strategy according to the feedback signal group to ensure that instructions are accurately conveyed.

Benefits of technology

It improves the response speed and accuracy, improves the user experience, enhances the adaptive ability and reliability of control, ensures the effective transmission of control instructions even when the signal is poor, and improves the intelligent level of home equipment control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506559B_ABST
    Figure CN118506559B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent curtain control switch based on the Internet of Things, which specifically relates to the field of smart home technology, and comprises a user control module, a wireless communication module, a main control module, an intelligent curtain control module, a collection and analysis module, an evaluation module, a feedback module and a re-transmission module. The user sends instructions through the intelligent curtain control module, the main control module receives and converts them into execution by the intelligent curtain control module, monitors signal strength and transmission quality in real time, uses machine learning to evaluate network performance, and automatically adjusts communication strategies according to feedback until all feedback signal groups are positive feedback signals or there is no hidden danger of insufficient transmission quality during the transmission of network signals. The present invention can evaluate and feedback the transmission quality of the communication time window in real time through the feedback module, ensure that the user instructions can be transmitted quickly and accurately, improve the overall response speed and accuracy, ensure that the communication quality meets the expected requirements, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and more specifically, to a smart curtain control switch based on the Internet of Things. Background Art

[0002] In the field of smart home, smart curtain control system, as an important part of home automation, can improve the comfort and energy efficiency of living environment. Traditional home equipment control methods mostly rely on manual operation, or only have simple timing control functions, which is difficult to meet users' needs for intelligence, automation and efficient control. With the development of Internet of Things technology, smart curtain control system can realize remote control through wireless communication module, which greatly improves the intelligence level of the system and user experience.

[0003] The existing technology has the following shortcomings: the smart curtain control system relies on wireless communication protocols to transmit data and instructions. In a home environment, many devices are using the same frequency band, including Wi-Fi routers, microwave ovens and other wireless devices. These devices may cause signal interference, resulting in unstable or delayed communication of the smart home system, causing incomplete or disordered information ultimately transmitted to the smart curtain control module, and the final control effect does not meet the user's expectations. Therefore, a smart curtain control switch based on the Internet of Things is proposed. Summary of the invention

[0004] To achieve the above object, the present invention provides the following technical solutions:

[0005] An intelligent curtain control switch based on the Internet of Things, comprising a main control module, an intelligent curtain control module, a wireless communication module, a user control module, a collection and analysis module, an evaluation module, a feedback module, and a re-delivery module;

[0006] The user control module is used to obtain a first control instruction sent by a user;

[0007] The wireless communication module is used to be responsible for the communication between the main control module and the user control module and the intelligent curtain control module;

[0008] The main control module is used to receive a first control instruction sent by a user through the wireless communication module and convert the control instruction into a second control instruction that can be read by the smart curtain control module;

[0009] The intelligent curtain control module is used to execute corresponding home appliance control operations according to the received second control instruction;

[0010] The collection and analysis module is used to collect the signal strength of the wireless communication module in real time during the two times of use, and then analyze the potential risks of the collected signal strength to preliminarily identify whether there is a potential risk of insufficient transmission quality during the transmission of the network signal;

[0011] The evaluation module is used to collect the signal phase error information and background noise intensity information under the wireless communication module use window when the hidden danger of insufficient transmission quality exists in the transmission process of the network signal is initially identified, and then perform abnormal analysis on the signal phase error information and the background noise intensity information respectively to generate a phase error index and a background noise index, substitute the phase error index and the background noise index into the pre-trained machine learning model, generate a transmission quality coefficient and send it to the feedback module;

[0012] The feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use windows, generate positive feedback signals or negative feedback signals, and summarize the feedback results of the two times to obtain a feedback signal group and transmit it to the retransmission module;

[0013] The retransmission module determines whether to perform a retransmission operation based on the feedback signal group, and executes the corresponding strategy according to the preset retransmission strategy when a retransmission operation is required, until all the feedback signal groups are positive feedback signals or there is no hidden danger of insufficient transmission quality during the transmission of the network signal.

[0014] In a preferred embodiment, the usage windows of the two wireless communication modules refer to the communication time window 1 established by the wireless communication module between the main control module and the user control module and the communication time window 2 established by the wireless communication module between the main control module and the smart curtain control module.

[0015] In a preferred embodiment, the collection and analysis module performs a hidden danger analysis on the collected signal strength, and preliminarily identifies whether there is a hidden danger of insufficient transmission quality during the transmission of the network signal, which refers to:

[0016] The signal strength change information collected in real time under the target communication time window is obtained, and the signal strength change information includes the signal strength data at each moment. The signal strength standard deviation is calculated based on the signal strength data at each moment, and the change interval of the signal strength data is obtained. Then, the change interval of the signal strength data is compared with a preset standard strength change range, and the signal strength standard deviation is compared with a preset signal strength standard fluctuation threshold. If the intersection of the change interval of the signal strength data and the preset standard strength change range is the change interval of the signal strength data and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a normal signal is generated. If the intersection of the change interval of the signal strength data and the preset standard strength change range is not the change interval of the signal strength data and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a hidden danger signal is generated. When the hidden danger signal is generated, it is preliminarily identified that there is a hidden danger of insufficient transmission quality under the target communication time window.

[0017] In a preferred embodiment, the signal phase error information is subjected to abnormal analysis and the logic for generating a phase error index is as follows:

[0018] The actual phase value and expected phase value of the transmission signal at each acquisition moment are obtained and the instantaneous phase error at each time point is calculated. The instantaneous phase error is the difference between the actual phase value and the expected phase value. Then the mean and standard deviation of the phase error are calculated. The mean calculation formula is: , For collection time The instantaneous phase error, N is the total number of acquisition moments, is the mean of the phase error, and the standard deviation is calculated as: , is the standard deviation of the phase error, and then calculate the RMS value of the phase error: , is the RMS value of the phase error;

[0019] Calculate the kurtosis of the phase error. The expression is: ; is the kurtosis of the phase error, N is the total number of acquisition moments;

[0020] Calculate the skewness of the phase error. The calculation expression is: ; is the skewness of the phase error, N is the total number of acquisition moments;

[0021] Finally, the phase error index is calculated, and the calculation expression is: ; SPEI is the phase error index, and M is the difference between the maximum expected phase value and the minimum expected phase value.

[0022] In a preferred embodiment, the background noise intensity information is subjected to abnormal analysis and the logic for generating the background noise index is:

[0023] Obtain the background noise signal value of the transmission signal at each acquisition moment, and then sort it out in the order of acquisition time to obtain , Represents the background noise signal value at the i-th time point, i=1,2,…,N, N is the total number of acquisition moments;

[0024] Perform Fourier transform on the background noise signal, and the transformation formula is: ; is the spectrum of the background noise, indicating the noise intensity at frequency f, is the Fourier transform operator;

[0025] Calculate the power spectral density of the background noise. The expression is: ; represents the power spectral density, is the square of the noise spectrum, indicating the power of the signal, is the frequency resolution, i.e. the frequency interval after Fourier transform;

[0026] Calculate the bandwidth of the noise. The expression is: ; BW is the bandwidth of the noise, is the maximum frequency of noise analysis;

[0027] Calculate the total power of the background noise. The expression is: ; is the total power of background noise;

[0028] Calculate the signal-to-noise ratio using the expression: ; SNR is the ratio of signal to noise, is the signal power;

[0029] Calculate the relative weight of the noise bandwidth, the expression is: ; is the relative weight of the noise bandwidth;

[0030] Calculate the background noise power within the signal bandwidth. The expression is: ; is the background noise power within the signal bandwidth, and Respectively represent the upper and lower frequency limits of the signal bandwidth;

[0031] Calculate the background noise index. The calculation expression is: ; BNI is the background noise index, PF is the peak power of the background noise, and PJ is the average power of the background noise.

[0032] In a preferred embodiment, the feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use windows respectively, which means:

[0033] The target communication time window is divided into a high-quality communication window and a low-quality communication window. When the target communication time window is a high-quality communication window, a positive feedback signal is generated. When the target communication time window is a low-quality communication window, a negative feedback signal is generated.

[0034] In a preferred embodiment, the logic of dividing the target communication time window into a high-quality communication window and a low-quality communication window is:

[0035] Obtain the transmission quality coefficient of the wireless communication module in the target communication time window, and then compare the transmission quality coefficient with the preset transmission quality threshold. If the transmission quality coefficient is greater than or equal to the preset transmission quality threshold, it is divided into a high-quality communication window; if the transmission quality coefficient is less than the preset transmission quality threshold, it is divided into a low-quality communication window.

[0036] In a preferred embodiment, the re-delivery module determines whether to perform a re-delivery operation according to the feedback signal group, and performs corresponding strategy execution according to a preset re-delivery strategy when a re-delivery operation is required, which means:

[0037] If there is a negative feedback signal in the feedback signal group, a re-transmission operation is required. When the re-transmission operation is required, the negative feedback signal types of communication time window one and communication time window two are obtained respectively. If only communication time window one is a negative feedback signal or both communication time window one and communication time window two are negative feedback signals, re-transmission strategy one is executed; if only communication time window two is a negative feedback signal, re-transmission strategy two is executed.

[0038] Technical effects and advantages of the present invention:

[0039] The present invention monitors the signal strength, phase error and background noise information of the wireless communication module in the communication time window in real time, utilizes the collection and analysis module and the evaluation module to timely identify and process the transmission quality problem of the network signal, generates a phase error index and a background noise index, and substitutes them into a pre-trained machine learning model to generate a transmission quality coefficient, accurately evaluates the transmission quality, and then evaluates and feeds back the transmission quality of the communication time window in real time through the feedback module, ensuring that the user instructions can be quickly and accurately transmitted to the smart curtain control module, improving the overall response speed and accuracy, and greatly improving the user experience. The re-transmission module can automatically adjust and optimize the communication strategy according to the feedback signal group to ensure that the communication quality meets the expected requirements. The intelligent management and control function of the present invention effectively improves the management efficiency, reduces human intervention, and enhances the adaptability and reliability of the overall control.

[0040] The present invention combines wireless communication technology and machine learning models to achieve automatic control of household appliances and real-time monitoring and optimization of network signal quality. Users can control household appliances wirelessly anytime and anywhere, which improves the convenience of use. Through the re-transmission mechanism, the effective transmission of control instructions can be ensured even in the case of poor signal. This smart curtain control switch is suitable for homes, offices and other places. It can realize automatic control of the opening and closing of household appliances, improve the quality of life and work efficiency. At the same time, in an environment with unstable network signals, it can also adaptively adjust to ensure the continuity and stability of control, which can greatly improve the intelligence level of household appliance control and provide users with a more convenient life experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings;

[0042] Figure 1 This is a schematic diagram of an intelligent curtain control switch based on the Internet of Things in the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Reference Figure 1 The following embodiments are obtained:

[0045] Embodiment 1: A smart curtain control switch based on the Internet of Things, comprising a main control module, a smart curtain control module, a wireless communication module, a user control module, a collection and analysis module, an evaluation module, a feedback module, and a re-delivery module; signals are connected among the main control module, the smart curtain control module, the wireless communication module, the user control module, the collection and analysis module, the evaluation module, the feedback module, and the re-delivery module.

[0046] The user control module is used to obtain a first control instruction sent by a user; for example, a user can send a home appliance control instruction through a mobile phone application, a remote controller, or a voice assistant.

[0047] The wireless communication module is responsible for the communication between the main control module and the user control module and the smart curtain control module respectively; wireless communication technologies such as Wi-Fi, Zigbee or Bluetooth are usually used to ensure the timeliness and reliability of data transmission.

[0048] The main control module is used to receive a first control instruction sent by the user through the wireless communication module and convert the control instruction into a second control instruction that can be read by the smart curtain control module; after receiving the user control instruction, the main control module parses the instruction content and generates an instruction format suitable for execution by the smart curtain control module.

[0049] The smart curtain control module is used to execute the corresponding home appliance control operation according to the received second control instruction; for example, the smart curtain control module includes a curtain drive motor and a curtain controller, which are used to control the opening and closing of the home appliance, namely the curtain, and the range of opening.

[0050] The collection and analysis module is used to collect the signal strength of the wireless communication module in real time twice, and then perform hidden danger analysis on the collected signal strength to preliminarily identify whether there is a hidden danger of insufficient transmission quality during the transmission of the network signal; use the signal strength sensor or the module's own monitoring function to collect real-time signal strength data and analyze whether there is signal attenuation or interference.

[0051] The evaluation module is used to collect the signal phase error information and background noise intensity information under the wireless communication module use window when the hidden danger of insufficient transmission quality is initially identified in the transmission process of the network signal, and then perform abnormal analysis on the signal phase error information and background noise intensity information respectively to generate a phase error index and a background noise index, substitute the phase error index and the background noise index into the pre-trained machine learning model, generate a transmission quality coefficient and send it to the feedback module; use signal analysis tools or software to extract the signal phase error and background noise data. Use the pre-trained machine learning model for comprehensive evaluation to generate a transmission quality coefficient.

[0052] The feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use window, generate a positive feedback signal or a negative feedback signal and summarize the two feedback results to obtain a feedback signal group and transmit it to the re-transmission module; the feedback module determines whether the communication quality meets the requirements based on the transmission quality coefficient, and records the feedback results for subsequent optimization.

[0053] The retransmission module determines whether to perform a retransmission operation based on the feedback signal group, and executes the corresponding strategy according to the preset retransmission strategy when a retransmission operation is required, until the feedback signal group contains positive feedback signals or there is no hidden danger of insufficient transmission quality during the transmission of the network signal; the retransmission module determines whether data needs to be retransmitted by analyzing the feedback signal group, and executes corresponding error correction and optimization strategies, until the feedback signal group contains positive feedback signals or the communication hidden danger is eliminated.

[0054] The use windows of the two wireless communication modules refer to the communication time window 1 established by the wireless communication module between the main control module and the user control module and the communication time window 2 established by the wireless communication module between the main control module and the intelligent curtain control module; Communication time window 1 (user control module and main control module): The wireless communication module is responsible for the time period during which the user control module and the main control module are established and maintained for communication. In this window, the user's control instructions are transmitted to the main control module through the wireless communication module. Communication time window 2 (main control module and intelligent curtain control module): The wireless communication module is responsible for the time period during which the main control module and the intelligent curtain control module are established and maintained for communication. In this window, the instructions of the main control module are transmitted to the intelligent curtain control module through the wireless communication module. By refining the definition and operation of the use windows of the two wireless communication modules, the communication quality can be effectively monitored and managed, and more options and basis can be provided for subsequent optimization.

[0055] The collection and analysis module analyzes the potential risks of the collected signal strength and preliminarily identifies whether there are potential risks of insufficient transmission quality during the transmission of network signals. These are:

[0056] The signal strength change information collected in real time under the target communication time window is obtained. The signal strength change information includes the signal strength data at each moment. The signal strength standard deviation is calculated according to the signal strength data at each moment, and the change interval of the signal strength data is obtained. Then, the change interval of the signal strength data is compared with the preset standard strength change range, and the signal strength standard deviation is compared with the preset signal strength standard fluctuation threshold. If the intersection of the signal strength data change interval and the preset standard strength change range is the signal strength data change interval and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a normal signal is generated, such as If the intersection of the signal strength data variation interval and the preset standard strength variation range does not satisfy the signal strength data variation interval and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a hidden danger signal is generated. When a hidden danger signal is generated, it is preliminarily identified that there is a hidden danger of insufficient transmission quality under the target communication time window. It should be noted that if a normal signal is generated or the feedback signal group generated by the feedback module is a positive feedback signal, the smart curtain control module directly executes the corresponding home appliance control operation according to the second control instruction it receives, such as controlling the home appliance to open or close. Otherwise, it needs to be optimized and re-transmitted through the re-transmission module.

[0057] The signal strength variation range refers to the range between the maximum and minimum signal strength values ​​within a certain time window. This indicator can reflect the fluctuation of signal strength. If the signal strength variation range exceeds the preset standard strength variation range, it may indicate that the network signal is relatively unstable during transmission. The signal strength standard deviation reflects the degree of dispersion of signal strength over a period of time. If the standard deviation is large, it means that the signal strength is unstable and susceptible to external interference, and there is a hidden danger of insufficient transmission quality. The collection and analysis module can quickly detect the changes in network signal strength by collecting signal strength data in real time. This method has strong real-time and operability, and can identify potential transmission problems in a short time. Data collection is convenient: modern wireless communication modules usually have their own signal strength detection function, and data collection is relatively simple and does not require additional hardware support. The analysis algorithm is efficient: the statistical analysis of signal strength (such as the calculation of standard deviation and variation range) can be completed quickly, which is suitable for real-time monitoring and evaluation. As monitoring indicators, the signal strength variation range and standard deviation can effectively capture small changes in the network environment. These indicators have high sensitivity and accuracy for detecting hidden dangers of insufficient transmission quality. High sensitivity: even small signal fluctuations can be reflected through the variation range and standard deviation, which is convenient for early warning. High accuracy: By comparing with preset standards, it can effectively distinguish normal fluctuations from abnormal fluctuations and accurately identify hidden dangers.

[0058] By real-time monitoring and identifying hidden dangers in the transmission quality of network signals, problems such as disconnection and delays that may occur during signal transmission can be discovered in advance. For smart devices and applications that rely on wireless communications, a stable network connection is essential. By identifying and addressing hidden dangers in transmission quality, the user experience can be significantly improved, and operational delays and failures caused by signal problems can be reduced. Subsequent optimization can ensure that users have a good user experience.

[0059] The logic of abnormal analysis and processing of signal phase error information and generating phase error index is as follows:

[0060] The actual phase value and expected phase value of the transmission signal at each acquisition moment can be obtained through a signal analyzer or other professional measurement equipment. The sampling frequency needs to be high enough to ensure that subtle changes in the phase are captured. The instantaneous phase error at each time point is calculated. The instantaneous phase error is the difference between the actual phase value and the expected phase value. Then the mean and standard deviation of the phase error are calculated. The mean calculation formula is: , For collection time The instantaneous phase error is in radians, where N is the total number of acquisition moments. is the mean of the phase error, which is used to indicate the average level of phase deviation. The standard deviation is calculated as follows: , is the standard deviation of the phase error, indicating the fluctuation of the phase error. Then the RMS value of the phase error is calculated: , is the RMS value of the phase error, which characterizes the magnitude of the error;

[0061] Calculate the kurtosis of the phase error. The expression is: ; is the kurtosis of the phase error, which is used to measure the sharpness of the phase error distribution, and N is the total number of acquisition moments;

[0062] Calculate the skewness of the phase error. The calculation expression is: ; is the skewness of the phase error, which is used to indicate the degree of skewness of the phase error distribution, and N is the total number of acquisition moments;

[0063] Finally, the phase error index is calculated, and the calculation expression is: ; SPEI is the phase error index, which quantifies the comprehensive impact of phase error. It is an advanced indicator to measure the complexity and impact of signal phase deviation. By analyzing the signal phase error, we can have a deeper understanding of signal quality and transmission stability. M is the difference between the maximum expected phase value and the minimum expected phase value. Low SPEI means small phase error and good signal transmission quality. High SPEI means large phase error and possible problems with signal transmission quality, which requires further investigation and processing.

[0064] The logic of abnormal analysis and processing of background noise intensity information to generate background noise index is as follows:

[0065] Use the noise measurement device or the noise measurement function of the wireless communication module to collect background noise intensity data over a period of time. The background noise intensity is usually expressed in dBm. Ensure that the sampling frequency is high enough to capture the frequency characteristics of the background noise. For example, obtain the background noise signal value of the transmission signal at each acquisition moment, and then sort it out in the order of acquisition time. , Represents the background noise signal value at the i-th time point, i=1,2,…,N, N is the total number of acquisition moments;

[0066] Perform Fourier transform on the background noise signal to obtain its frequency domain representation. Fourier transform can convert the time domain signal into the frequency domain signal and reveal the spectral components of the signal. The transformation formula is: ; is the spectrum of the background noise, indicating the noise intensity at frequency f, is the Fourier transform operator;

[0067] Calculate the power spectral density of the background noise. The expression is: ; It represents the power spectral density, which represents the noise power per unit frequency. The power spectral density of background noise can quantify the distribution of noise at different frequencies. is the square of the noise spectrum, indicating the power of the signal, is the frequency resolution, i.e. the frequency interval after Fourier transform;

[0068] Calculate the bandwidth of the noise. The expression is: ; BW is the bandwidth of the noise, which indicates the frequency range of the background noise distribution in the frequency domain. is the maximum frequency of noise analysis;

[0069] Calculate the total power of the background noise. The expression is: ; is the total power of the background noise, which means the sum of the energy of the background noise in the entire frequency domain;

[0070] Calculate the signal-to-noise ratio using the expression: ; SNR is the ratio of signal to noise, which is used to evaluate the impact of background noise on the signal. is the signal power;

[0071] Calculate the relative weight of the noise bandwidth, the expression is: ; is the relative weight of the noise bandwidth, which indicates the ratio of the noise bandwidth to the signal bandwidth;

[0072] Calculate the background noise power within the signal bandwidth. The expression is: ; is the background noise power within the signal bandwidth, which helps to evaluate the impact of noise within the signal frequency band. and Respectively represent the upper and lower frequency limits of the signal bandwidth;

[0073] Calculate the background noise index. The calculation expression is: ; BNI is the background noise index, which is used to quantify the impact of background noise on signal transmission. It is an advanced indicator to measure the impact of background noise on signal quality. By analyzing the background noise intensity, the degree of interference on signal transmission can be evaluated. PF is the peak power of the background noise, and PJ is the average power of the background noise. Low BNI means that the background noise has little impact on the signal and the signal transmission quality is good; high BNI means that the background noise has a greater impact on the signal, there may be problems with signal transmission, and noise control or interference suppression is required.

[0074] The machine learning model is not specifically limited here, and any model that can perform comprehensive analysis on the phase error index and the background noise index to generate a transmission quality coefficient is acceptable. In order to implement the technical solution of the present invention, the present invention provides a specific implementation method: the phase error index and the background noise index are substituted into a pre-trained machine learning model, and the logic of generating the transmission quality coefficient is: the phase error index and the background noise index are standardized so that their data range is within the same scale, and then substituted into the pre-trained machine learning model. ; represents the phase error index after normalization, represents the normalized background noise index, TQI is the generated transmission quality coefficient, and f is the prediction function of the pre-trained machine learning model, such as: ; k1 and k2 are both preset proportional coefficients used to measure the influence of the background noise index and phase error index after standardization on the transmission quality index TQI.

[0075] The feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use windows respectively, which means:

[0076] The target communication time window is divided into a high-quality communication window and a low-quality communication window. When the target communication time window is a high-quality communication window, a positive feedback signal is generated, and when the target communication time window is a low-quality communication window, a negative feedback signal is generated; the transmission quality coefficient of the wireless communication module under the target communication time window is obtained, and then the transmission quality coefficient is compared with the preset transmission quality threshold. If the transmission quality coefficient is greater than or equal to the preset transmission quality threshold, it is divided into a high-quality communication window, and if the transmission quality coefficient is less than the preset transmission quality threshold, it is divided into a low-quality communication window. The transmission quality index (TQI) is a comprehensive indicator for measuring communication quality. By comparing the TQI with the preset threshold, the quality status of the current communication time window can be quickly judged. The preset threshold should be set according to the system performance requirements and historical data to ensure accurate distinction between high-quality and low-quality communications; high-quality communication window: TQI is greater than or equal to the threshold, indicating that the signal transmission quality is good and the communication is stable. At this time, the system generates a positive feedback signal, indicating that no adjustment is required. Low-quality communication window: TQI is less than the threshold, indicating that the signal transmission quality is poor, and there is interference or attenuation. At this time, the system generates a negative feedback signal, indicating that corresponding measures need to be taken for optimization. Positive feedback signal: indicates that the communication quality meets the requirements, and the system can continue with the current configuration without adjustment. Negative feedback signal: indicates that there are problems with the communication quality, and the system needs to be adjusted and optimized, such as switching channels, increasing transmission power, etc., to improve communication quality.

[0077] The re-delivery module determines whether to perform a re-delivery operation according to the feedback signal group, and executes the corresponding strategy according to the preset re-delivery strategy when a re-delivery operation is required.

[0078] If there is a negative feedback signal in the feedback signal group, a retransmission operation needs to be performed. When the retransmission operation is needed, the negative feedback signal types of the communication time window 1 and the communication time window 2 are respectively obtained. If only the communication time window 1 is a negative feedback signal or both the communication time window 1 and the communication time window 2 are negative feedback signals, the retransmission strategy 1 is executed. If only the communication time window 2 is a negative feedback signal, the retransmission strategy 2 is executed.

[0079] When a problem occurs in communication time window one (from user control module to main control module), it is usually because the user command fails to be correctly transmitted to the main control module. Re-transmission strategy one is also divided into sub-strategy three and sub-strategy four. Sub-strategy three indicates that there is a problem only in communication time window one, and sub-strategy four indicates that there are problems in both communication time window one and communication time window two. Sub-strategy three only needs to strengthen the communication path from the user control module to the main control module, and needs to resend the user command: resend the user command to ensure that the main control module can receive the complete command. Examples of enhancement methods are: adjust the communication channel: switch to a backup channel or a different frequency band to reduce signal interference, increase signal strength: increase the signal power at the sending end to ensure that the command can penetrate the interference, and re-transmit the second control command that the smart curtain control module can read.

[0080] Sub-strategy four requires strengthening the communication path from the user control module to the main control module, and the communication path from the main control module to the smart curtain control module, and needs to resend the user instructions, and re-transmit the second control instructions that can be read by the smart curtain control module.

[0081] When a problem occurs in the second communication time window (from the main control module to the smart curtain control module), it is usually because the main control command failed to be correctly transmitted to the smart curtain control module. The second retransmission strategy only needs to enhance this communication path. Resend the main control command: resend the command from the main control module to the smart curtain control module to ensure that the home device can perform operations according to the predetermined command. Examples of enhancement methods are: Switch transmission mode: switch to a more stable transmission mode (such as switching from Wi-Fi to Bluetooth) to reduce interference. Reroute data packets: reroute data packets through the network to avoid signal attenuation areas.

[0082] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0083] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0084] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0086] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An intelligent curtain control switch based on the Internet of Things, It is characterized in that It includes main control module, intelligent curtain control module, wireless communication module, user control module, collection and analysis module, evaluation module, feedback module and re-delivery module; The user control module is used to obtain a first control instruction sent by a user; The wireless communication module is used to be responsible for the communication between the main control module and the user control module and the intelligent curtain control module; The main control module is used to receive a first control instruction sent by a user through the wireless communication module and convert the control instruction into a second control instruction that can be read by the smart curtain control module; The intelligent curtain control module is used to execute the corresponding curtain device control operation according to the received second control instruction; The collection and analysis module is used to collect the signal strength of the wireless communication module in real time during the two times of use, and then analyze the potential risks of the collected signal strength to preliminarily identify whether there is a potential risk of insufficient transmission quality during the transmission of the network signal; The evaluation module is used to collect the signal phase error information and background noise intensity information under the wireless communication module use window when the hidden danger of insufficient transmission quality exists in the transmission process of the network signal is initially identified, and then perform abnormal analysis on the signal phase error information and the background noise intensity information respectively to generate a phase error index and a background noise index, substitute the phase error index and the background noise index into the pre-trained machine learning model, generate a transmission quality coefficient and send it to the feedback module; The feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use windows, generate positive feedback signals or negative feedback signals, and summarize the feedback results of the two times to obtain a feedback signal group and transmit it to the retransmission module; The retransmission module determines whether to perform a retransmission operation according to the feedback signal group, and executes the corresponding strategy according to the preset retransmission strategy when a retransmission operation is required, until all the feedback signal groups are positive feedback signals or there is no hidden danger of insufficient transmission quality during the transmission of the network signal; The logic of abnormal analysis and processing of signal phase error information and generating phase error index is as follows: The actual phase value and expected phase value of the transmission signal at each acquisition moment are obtained and the instantaneous phase error at each time point is calculated. The instantaneous phase error is the difference between the actual phase value and the expected phase value. Then the mean and standard deviation of the phase error are calculated. The mean calculation formula is: , For collection time The instantaneous phase error, N is the total number of acquisition moments, is the mean of the phase error, and the standard deviation is calculated as: , is the standard deviation of the phase error, and then calculate the RMS value of the phase error: , is the RMS value of the phase error; Calculate the kurtosis of the phase error. The expression is: ; is the kurtosis of the phase error, N is the total number of acquisition moments; Calculate the skewness of the phase error. The calculation expression is: ; is the skewness of the phase error, N is the total number of acquisition moments; Finally, the phase error index is calculated, and the calculation expression is: ; SPEI is the phase error index, and M is the difference between the maximum expected phase value and the minimum expected phase value.

2. According to claim 1, a smart curtain control switch based on the Internet of Things, It is characterized in that The use windows of the two wireless communication modules refer to the communication time window 1 established between the wireless communication module and the main control module and the user control module, and the communication time window 2 established between the wireless communication module and the main control module and the smart curtain control module.

3. According to claim 2, a smart curtain control switch based on the Internet of Things, It is characterized in that The collection and analysis module analyzes the potential risks of the collected signal strength and preliminarily identifies whether there are potential risks of insufficient transmission quality during the transmission of network signals. These are: The signal strength change information collected in real time under the target communication time window is obtained, and the signal strength change information includes the signal strength data at each moment. The signal strength standard deviation is calculated based on the signal strength data at each moment, and the change interval of the signal strength data is obtained. Then, the change interval of the signal strength data is compared with a preset standard strength change range, and the signal strength standard deviation is compared with a preset signal strength standard fluctuation threshold. If the intersection of the change interval of the signal strength data and the preset standard strength change range is the change interval of the signal strength data and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a normal signal is generated. If the intersection of the change interval of the signal strength data and the preset standard strength change range is not the change interval of the signal strength data and the signal strength standard deviation is less than the preset signal strength standard fluctuation threshold, a hidden danger signal is generated. When the hidden danger signal is generated, it is preliminarily identified that there is a hidden danger of insufficient transmission quality under the target communication time window.

4. According to claim 3, a smart curtain control switch based on the Internet of Things, It is characterized in that The logic of abnormal analysis and processing of background noise intensity information to generate background noise index is as follows: Obtain the background noise signal value of the transmission signal at each acquisition moment, and then sort it out in the order of acquisition time to obtain , Represents the background noise signal value at the i-th time point, i=1,2,…,N, N is the total number of acquisition moments; Perform Fourier transform on the background noise signal, and the transformation formula is: ; is the spectrum of the background noise, indicating the noise intensity at frequency f, is the Fourier transform operator; Calculate the power spectral density of the background noise. The expression is: ; represents the power spectral density, is the square of the noise spectrum, indicating the power of the signal, is the frequency resolution, i.e. the frequency interval after Fourier transform; Calculate the bandwidth of the noise. The expression is: ; BW is the bandwidth of the noise, is the maximum frequency of noise analysis; Calculate the total power of the background noise. The expression is: ; is the total power of background noise; Calculate the signal-to-noise ratio using the expression: ; SNR is the ratio of signal to noise, is the signal power; Calculate the relative weight of the noise bandwidth, the expression is: ; is the relative weight of the noise bandwidth; Calculate the background noise power within the signal bandwidth. The expression is: ; is the background noise power within the signal bandwidth, and They represent the upper and lower frequency limits of the signal bandwidth respectively; Calculate the background noise index. The calculation expression is: ; BNI is the background noise index, PF is the peak power of the background noise, and PJ is the average power of the background noise.

5. According to claim 4, a smart curtain control switch based on the Internet of Things, It is characterized in that The feedback module is used to perform feedback operations on the transmission quality coefficients of the two wireless communication modules under the use windows respectively, which means: The target communication time window is divided into a high-quality communication window and a low-quality communication window. When the target communication time window is a high-quality communication window, a positive feedback signal is generated. When the target communication time window is a low-quality communication window, a negative feedback signal is generated.

6. According to claim 5, a smart curtain control switch based on the Internet of Things, It is characterized in that The logic of dividing the target communication time window into a high-quality communication window and a low-quality communication window is: Obtain the transmission quality coefficient of the wireless communication module in the target communication time window, and then compare the transmission quality coefficient with the preset transmission quality threshold. If the transmission quality coefficient is greater than or equal to the preset transmission quality threshold, it is divided into a high-quality communication window; if the transmission quality coefficient is less than the preset transmission quality threshold, it is divided into a low-quality communication window.

7. According to claim 6, the smart curtain control switch based on the Internet of Things, It is characterized in that The re-delivery module determines whether to perform a re-delivery operation according to the feedback signal group, and executes the corresponding strategy according to the preset re-delivery strategy when a re-delivery operation is required. If there is a negative feedback signal in the feedback signal group, a re-transmission operation is required. When the re-transmission operation is required, the negative feedback signal types of communication time window one and communication time window two are obtained respectively. If only communication time window one is a negative feedback signal or both communication time window one and communication time window two are negative feedback signals, re-transmission strategy one is executed; if only communication time window two is a negative feedback signal, re-transmission strategy two is executed.