Dual-frequency adaptive method of communication module

Through the dual-frequency adaptive method, the terminal automatically selects the best frequency band to reduce interference and improves the communication success rate, solving the problem of poor communication of single-frequency modules in complex environments, and realizing automatic frequency band matching and system flexibility improvement.

CN119325140APending Publication Date: 2025-01-17HOLLEY METERING LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411324227.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

In the existing RF meter reading system, single-frequency modules have poor communication in complex environments and are prone to homofrequency interference. They need to manually insert the communication module, which cannot achieve automatic frequency band matching.

Method used

Using the dual-frequency adaptive method, the RF module's working mode is read through the terminal, the corresponding frequency band is configured, the timing time is set, the RAM is cleared, the RSSI test is started, the corresponding frequency band RSSI is recorded, the adaptive frequency band process is completed, and the optimal frequency band is automatically selected to reduce the Interference and improve communication success rate.

Benefits of technology

Improve communication success rate in complex environments, reduce synchronous interference, realize automatic frequency band matching, reduce human intervention, and improve system flexibility and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119325140A_ABST
    Figure CN119325140A_ABST
Patent Text Reader

Abstract

In order to solve the problem of large co-frequency interference in the prior art, the invention provides a dual-frequency adaptive method of a communication module, which comprises the following steps that: a terminal reads the working mode of an RF (Radio Frequency) module; configuring a corresponding frequency band, and selecting a corresponding matching circuit; setting timing time, emptying the RAM, and starting an RSSI test; and recording the RSSI of the corresponding frequency band, and completing the self-adaptive frequency band flow. According to the invention, the terminal can preferably select the frequency band suitable for communication according to the result of scanning the environment RSSI by the environment, so that interference is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication modules, and in particular to a dual-frequency adaptive method of a communication module. Background Art

[0002] Currently, the RF meter reading systems on the market are all single-frequency RF systems, with independent modules for 433MHz, 868MHz, and 915MHz. If you want to switch, you need to replace the hardware to achieve it. In addition, the application scenarios are relatively complex. Sometimes the environment is relatively poor, the communication of a single frequency band is poor, and there is a lot of interference. At the same time, the system installation is relatively concentrated, the number is relatively large, and the same-frequency interference will also be relatively large.

[0003] In order to solve the above problems, the Chinese invention patent with patent number CN117129044A proposes a communication method and device for an adaptive electric meter, including receiving a request instruction from the communication module when the communication module is inserted into the electric energy meter and the electric energy meter resets the communication module through hardware connection, wherein the request instruction includes: a module identification code and a request type identifier; determining communication configuration information according to the module identification code and the request type identifier; sending the communication configuration information to the communication module so that the communication module realizes the communication of the electric energy meter according to the communication configuration information. However, the invention requires manual insertion of the communication module to realize communication, and does not have the technical feature of realizing automatic matching of frequency bands, resulting in relatively large interference and inconvenience in use. Summary of the invention

[0004] The present invention mainly solves the problem of large co-frequency interference in the prior art and provides a dual-frequency adaptive method for a communication module.

[0005] The above technical problems of the present invention are mainly solved by the following technical solutions: A dual-frequency adaptive method for a communication module, characterized by comprising the following steps: S1. The terminal reads the working mode of the RF module; S2. Configure the corresponding frequency band and select the corresponding matching circuit; S3, set the timing time, clear RAM, and start RSSI test; S4. Record the RSSI of the corresponding frequency band to complete the adaptive frequency band process.

[0006] As a preferred solution, in step S1, if the working mode is fixed frequency mode, the RF is configured to be fixed frequency mode; if the working mode is adaptive mode, the RF is configured to be adaptive mode, and it is determined whether the adaptive frequency band is completed.

[0007] As a preferred solution, if the adaptive frequency band is completed, jump to step S2; if the adaptive frequency band is not completed, the adaptive mode process is preferred, and then jump to step S2.

[0008] As a preferred solution, step S3 specifically includes the following steps: S3.1. Wait until the timing time is up and directly obtain the first environment RSSI; S3.2, performing a first calculation on the first environment RSSI, obtaining and recording the second environment RSSI and the threshold value ratio, wherein the first calculation includes an average method and a weighted average method; S3.3, repeat the collection, perform a second calculation on the second environment RSSI, obtain and record the third environment RSSI, the second calculation includes a median method and an average method; S3.4. Compare the RSSI of the third environment with the configured threshold.

[0009] As a preferred solution, in step S3.1, if the timing time has not arrived, the module is configured to be in receiving mode, the environment RSSI is read and stored, and then step S3.1 is looped.

[0010] As a preferred solution, in step S3.3, if the number of collection times is less than 3 times, return to step S3.1.

[0011] As a preferred solution, in step S3.4, if the environment RSSI is less than the configured threshold, the process proceeds to step S4; if the environment RSSI is not less than the configured threshold, it is determined whether the frequency scan is completed.

[0012] As a preferred solution, if the frequency scan is not completed, the frequency is switched and the process returns to step S2.

[0013] As a preferred solution, if the frequency scan is completed, the frequency band is selected according to the threshold ratio and then the process proceeds to step S4. The frequency band selection according to the threshold ratio includes the following steps: S3.4.1. Count the frequency of the third environment RSSI value that is greater than the threshold value; S3.4.2. Calculate the threshold ratio according to the frequency. If the threshold ratio is not less than the specified value, re-collect the third environment RSSI value of the current environment and cancel the current sampling data. If the threshold ratio is less than the specified value, compare the threshold ratios under different frequencies and select the frequency band with a smaller threshold ratio as the better frequency band.

[0014] Therefore, the advantages of the present invention are: 1. The application scenarios of the terminal are relatively complex. Sometimes the environment is relatively poor, the communication in a single frequency band is poor, and there is a lot of interference. At this time, switching the frequency band can improve the communication success rate.

[0015] 2. Using different frequency bands to read can effectively reduce the same-frequency interference.

[0016] 3. Handheld reading can automatically match the frequency band of the terminal, reducing human intervention and making it more convenient.

[0017] 4. The terminal selects the frequency band suitable for communication based on the RSSI results of the environment scan to effectively avoid interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a block diagram of the working parameter configuration of the RF module of the present invention.

[0019] Figure 2 It is a flow chart of the adaptive frequency band of the present invention.

[0020] Figure 3 It is a hardware block diagram of the dual-frequency RF communication module of the present invention.

[0021] Figure 4 Graph showing the instantaneous value of RSSI according to the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.

[0023] Embodiment 1: Most of the RF meter reading systems widely used in the market currently use single-frequency RF modules, which usually operate in fixed frequency bands such as 433MHz, 868MHz or 915MHz. Although these modules can meet basic communication needs in specific environments, due to the single operating frequency band, they often expose some limitations and shortcomings during application. Especially in the actual application scenarios of electric meters, the complexity of the environment places higher requirements on the communication system. The use of a single-frequency RF module may lead to low communication efficiency or even communication failure.

[0024] First, the installation environment of electricity meters is usually complex, with multiple possible interference sources. For example, in some high-density installation scenarios, such as residential areas and industrial parks, the number of electricity meters is large and the installation locations are concentrated, which makes the single-band RF module susceptible to co-channel interference during communication. When multiple meters communicate at the same time, competition for spectrum resources increases. In this case, the single-band RF module is prone to signal collision, which leads to data transmission failure or error. This co-channel interference not only affects the stability of communication, but may also cause data loss, posing a great challenge to the accuracy and reliability of the meter reading system.

[0025] Secondly, the impact of environmental factors on RF communication cannot be ignored. In some harsh environmental conditions, such as basements, closed metal rooms, strong electromagnetic interference areas, etc., the communication signal of a single frequency band may be severely attenuated or interfered, resulting in unstable signal transmission or even complete interruption. Especially in the case of low frequency bands (such as 433MHz), although the signal penetration is good, the anti-interference ability is weak; and in high frequency bands (such as 915MHz), although the anti-interference ability is strong, the signal penetration is poor. This means that the communication performance of a single-frequency RF module may vary greatly in different application environments, and it cannot meet the communication needs in various complex environments at the same time.

[0026] In order to solve the above problems, the present invention provides a dual-frequency adaptive method of a communication module, which enables the electric meter to flexibly switch between different frequency bands, thereby improving the stability and reliability of communication, comprising the following steps: S1. The terminal reads the working mode of the RF module. The terminal can be a terminal device that requires local communication, such as an electric meter, a concentrator, or a collector. If the working mode is fixed frequency mode, the RF is configured to be fixed frequency mode, and the terminal will communicate directly according to the preset frequency band without switching the frequency band. In this mode, the working frequency band of the RF module is fixed, which is suitable for scenarios with less interference and a relatively stable communication environment. If the working mode is adaptive mode, the RF is configured to be adaptive mode, and it is determined whether the adaptive frequency band is completed. In this mode, the electric meter will intelligently determine the current communication environment and adjust the working frequency band according to the actual situation. If the communication quality of the current frequency band is detected to be poor, such as low signal strength, high bit error rate, severe interference, etc., the system will automatically switch to another more suitable frequency band for communication. This adaptive frequency band selection mechanism can effectively avoid the limitations of a single frequency band in a complex environment, thereby ensuring the continuity and stability of communication. If the adaptive frequency band is completed, jump to step S2; if the adaptive frequency band is not completed, the adaptive mode process is preferred, and the system will automatically select the best communication frequency band according to the signal conditions of the current environment to ensure the reliability of data transmission, and then jump to step S2.

[0027] S2. Configure the corresponding frequency band and select the corresponding matching circuit. If the operating frequency is 433MHz, select the 433MHz matching circuit and configure the module frequency to 433MHz. Configure the RF operating parameters such as frequency and power. This includes selecting appropriate filters, impedance matching circuits, power amplifiers and other components to ensure the communication performance of the 433MHz frequency band. At the same time, the meter will also configure the operating parameters of the RF module, such as center frequency, transmission power, modulation mode, etc., so that it can work stably in the 433MHz frequency band. If the operating frequency is 915MHz, select the 915MHz matching circuit and configure the module frequency to 915MHz. Configure the RF operating parameters such as frequency and power.

[0028] In this way, the meter can automatically select the appropriate hardware circuit and parameter configuration according to the actual working frequency band to ensure good communication performance in different frequency bands. This not only improves the flexibility of the system, but also maximizes the performance of the RF module.

[0029] In addition, the present invention also optimizes the frequency band switching process. When the electric meter needs to switch from one frequency band to another, it will first complete the switching of the hardware circuit and then adjust the working parameters of the RF module. This ensures that during the switching process, the communication will not be interrupted or the performance will not be degraded.

[0030] At the same time, the meter will also monitor the current communication quality and dynamically adjust the working parameters of the RF module, such as transmission power and modulation mode, according to the actual situation to maximize communication performance. For example, in harsh environmental conditions, the meter can appropriately increase the transmission power to ensure the transmission quality of the signal; in the case of less interference, the power consumption can be appropriately reduced to improve the energy efficiency of the system.

[0031] The dual-frequency RF adaptive communication method proposed in step S2 of the present invention can automatically select appropriate hardware circuits and parameter configurations according to the actual working frequency band, ensuring good communication performance in different frequency bands. At the same time, it also optimizes key links such as frequency band switching and communication quality monitoring, further improving the flexibility and reliability of the system. This method can not only be applied to meter reading systems, but also can be used in other scenarios that require remote communication, such as smart homes, industrial automation, etc. It has good versatility and scalability, and can meet various complex application requirements.

[0032] S3, set the timing time, clear RAM, and start RSSI test, which specifically includes the following steps: S3.1. Wait until the timing time is up, and directly obtain the first environment RSSI. If the timing time is not up, configure the module receiving mode, read the environment RSSI and store it, and then loop step S3.1.

[0033] S3.2. Perform a first calculation on the first environment RSSI, obtain and record the second environment RSSI and the threshold value ratio. Common first calculations include an average method and a weighted average method, etc. The present invention can select any one of them.

[0034] S3.3, repeat the collection, generally three times or more, perform a second calculation on the second environment RSSI, obtain and record the third environment RSSI, common second calculations include the median method (sorting, taking the median) and the average method (summing and taking the average), etc. The present invention can select any one of them. If the number of collection times is less than 3 times, return to step S3.1.

[0035] S3.4. Compare the third environment RSSI with the configured threshold. If the third environment RSSI is less than the configured threshold, proceed to step S4. If the third environment RSSI is not less than the configured threshold, determine whether the frequency scan is completed. If the frequency scan is not completed, switch the frequency and return to step S2. If the frequency scan is completed, select the frequency band according to the threshold ratio and enter step S4. Overall principle: Set the sampling time t and the number of sampling times s to complete the RSSI data collection of the first environment. Use the short-term multiple sampling method to sum a large number of instantaneous values ​​in a unit time to calculate the RSSI value of the second environment in the current time period. Repeat the collection N times (N≥3) to calculate the RSSI value of the third environment. Compare the RSSI value of the third environment with the configured threshold. If the RSSI value of the third environment is less than the configured threshold, proceed to step S4. If the RSSI value of the third environment is ≥ the configured threshold, determine whether the frequency scan is completed. If the frequency scan is not completed, switch the frequency and return to step S2. If the frequency scan is completed, select the frequency band according to the threshold ratio and enter step S4. Selecting the frequency band according to the threshold ratio specifically includes the following steps: S3.4.1. Count the frequency f of the third environment RSSI value that is greater than the threshold value; S3.4.2. Calculate the threshold value ratio r = f / s according to the frequency. If the threshold value ratio is not less than the specified value, that is, r ≥ the specified value, eg: the specified value = 1 / 3 (which means that 1 / 3 of the data in the sampling time exceeds the threshold value), then re-collect the third environment RSSI value of the current environment and cancel the current sampling data. If the threshold value ratio is less than the specified value, that is, r < the specified value, then compare the threshold value ratios under different frequencies and select the frequency band with the smaller threshold value ratio r as the better frequency band. Average value method or weighted average value method: Average value: Set the sampling time t and the number of sampling times s to complete the RSSI data collection of the first environment. Use the short-term multiple sampling method to sum a large number of instantaneous values ​​within a unit time, and take the average value as the RSSI value of the current time period; RSSI (average) = sum(RSSI (t)) / s; Weighted average method: If RSSI(t) is greater than 2*threshold value, the weight is 4; RSSI(t) is greater than or equal to the threshold value and less than 2*threshold value, and the weight is 2; RSSI(t) is less than the threshold value, and the weight is 1; RSSI (average) = sum(((RSSI(t1)*W1+RSSI(t2)*W2)+...+RSSI(ts)*Ws)) / (W1+W2+...+Ws)) / s; RSSI (average) = sum(RSSI(t)) / s; RSSI(average)=sum(RSSI(t)) / s.

[0036] In the process of setting the timer, clearing the RAM, and starting the RSSI test, multiple steps need to be performed in sequence to ensure the completeness and accuracy of the test. First, set a timer, which is usually set according to the test requirements and may be a few seconds, minutes, or longer. At the same time as setting the timer, it is also necessary to clear the RAM to ensure that no previous data is left during the test to avoid affecting the current test results. Clearing the RAM usually involves erasing all data in the memory so that the system is in a clean state so that new test data can be recorded more accurately.

[0037] After the timing time is set and the RAM is cleared, the system will enter a waiting state until the timing time is reached. During this process, the system will not perform other operations, but focus on the elapse of the waiting time. The purpose of this step is to prepare for the next step and ensure that the system is in a stable state when starting the RSSI test.

[0038] Once the timing is reached, the system will immediately start the RSSI test. When starting the RSSI test, you first need to configure the module to enter the receiving mode. The receiving mode means that the system will receive external signals and analyze these signals. In this mode, the system will receive various signals from the environment through the antenna and measure the strength of these signals, namely RSSI (Received Signal Strength Indicator). RSSI is an important indicator for measuring the strength of wireless signals. Its value is usually expressed as a negative number. The smaller the value, the stronger the signal.

[0039] After configuring the module to enter the receiving mode, the system will begin to measure the RSSI values ​​in the environment. These RSSI values ​​refer to the strength of the signal received by the system, reflecting the strength of the wireless signal in the current environment. The system will store the measured RSSI values ​​for subsequent analysis. During this process, the system will continue to loop, that is, repeatedly perform the operation of measuring RSSI values ​​and storing them until the timing time arrives. The purpose of this loop is to ensure that the system can measure RSSI values ​​multiple times at different time points and under different conditions, so as to obtain more accurate and comprehensive environmental RSSI data.

[0040] When the timing time is reached, the system will stop the loop and start analyzing the previously stored RSSI data. First, the system will calculate the ambient RSSI and threshold ratio of the configured frequency band. The configured frequency band refers to the wireless communication frequency band currently being used by the system. Different frequency bands may have different RSSI values. The threshold ratio refers to the ratio between the measured RSSI value and a certain threshold value set by the system. By calculating the ambient RSSI and threshold ratio, the system can determine the signal quality in the current environment and decide whether it is necessary to adjust the communication parameters or take other measures.

[0041] After calculating and recording the ambient RSSI and threshold ratio of the configured frequency band, the system will repeatedly collect ambient RSSI data three or more times. This means that the system will enter the receiving mode again, measure the RSSI value in the environment, and store these values. The system will repeat this process until more than three ambient RSSI data are collected. The RSSI value collected each time may be different, depending on the signal changes in the environment. In order to improve the accuracy of the data, the system will average the RSSI data collected several times, that is, add up several measured values ​​and divide them by the number of collections to get an average value. This average value will be recorded as the current ambient RSSI value.

[0044] If the system finds that the number of acquisitions is less than three during the acquisition process, for example, the measurement is interrupted or the data is incomplete due to some reasons, the system will return to the previous step and restart the RSSI data acquisition. This design ensures that the system can obtain enough RSSI data at any time to calculate an accurate average value. By collecting and calculating the average value multiple times, the system can effectively reduce the impact of accidental factors on the RSSI measurement results, thereby providing a more stable and reliable signal strength evaluation.

[0045] Throughout the process, the system will strictly follow the predetermined steps to ensure that the RSSI test results are accurate and reliable enough. Each step is interrelated, and the successful execution of the previous step is the prerequisite for the smooth progress of the next step. At the same time, the system also needs to have a certain fault tolerance to cope with various abnormal situations that may occur. For example, if an emergency occurs while waiting for the timing time, the system may need to readjust the timing time or reconfigure the receiving mode to ensure that the test can continue.

[0046] S4. Record the RSSI of the corresponding frequency band to complete the adaptive frequency band process.

[0047] like Figure 3 As shown, the dual-band RF communication module of the present invention can actively configure functions, and uses an external spring antenna to support 433MHz and 915MHz at the same time. This design makes the module show great flexibility and adaptability when dealing with different application scenarios. It is directly connected to the meter with a 5-core single-row bent needle and built into the meter, which simplifies the integration process with the meter and can be built into the meter. This compact design not only saves space, but also makes the overall structure of the system more compact and integrated. The module includes a serial port circuit for realizing the communication interface with external devices to ensure that data can be reliably transmitted between the module and the meter. The 433 / 915 wireless matching circuit can select a suitable current working frequency band according to the configuration of the module, thereby ensuring the stability and effectiveness of signal transmission. The reset circuit ensures the stability and reliability of the module during startup and operation. Even in the event of an abnormality, it can be restored through the reset circuit to prevent system crashes. The LDO voltage regulator circuit is responsible for providing a stable voltage output for the module to ensure the normal operation of each internal circuit unit. The debugging download interface allows engineers to easily Debug and upgrade the program, MCU, wireless transceiver chip, crystal oscillator circuit; the module can work at 433MHz or 915MHz according to the software configuration; the LDO voltage regulator circuit can control the output and shutdown of the LDO voltage regulator circuit through the high and low levels of the meter interface RST, RST high level, LDO voltage regulator circuit output 3.3V, dual-band RF module works, MCU and wireless transceiver chip PAN3031 are connected through SPI communication, the dual-band RF module controls the high and low levels of 433 / 915 frequency band selection according to the configuration, selects 433 or 915 antenna matching circuit, so that the dual-band RF module works at 433MHz or 915MHz frequency band.

[0048] The dual-frequency RF communication module uses 9600-8-1 to communicate with the meter serial port, read and configure the dual-frequency RF communication module parameters, the module supports AT commands and transparent transmission functions, and can be configured with fixed frequency mode or adaptive mode through AT commands; the meter switches working modes according to different user-defined schemes. In fixed frequency mode, the module needs to be configured to work in 433MHz or 915MHz mode; in adaptive mode, the meter automatically selects the working frequency band according to the environmental conditions detected by the module; the meter can send the meter power and other parameters according to the user's configuration to the collector or display unit of the dual-frequency RF module, which is convenient for mobile personnel to read the meter or users to view.

[0049] Embodiment 2: When executing the adaptive frequency band process, the first thing to do is to record the RSSI (received signal strength indication) of the corresponding frequency band, which is the basis of the entire process and an important prerequisite for ensuring communication quality. In order to complete this process, the system first needs to configure the frequency and select the transceiver matching circuit of the corresponding frequency band. This step is crucial because the signal characteristics and environmental interference conditions corresponding to different frequency bands may vary greatly. By selecting the appropriate transceiver matching circuit, the system can ensure that the efficiency and stability of signal transmission and reception are optimal in the current frequency band.

[0050] Next, the system needs to set an appropriate timing time of 104uS. This time value is set according to the environment and communication requirements, and experiments and optimization may be required to determine the best time length. The purpose of setting the timing time is to continuously monitor and record the RSSI in the environment within a specific time window. The length of the timing time may affect the accuracy and representativeness of the RSSI data, so it needs to be reasonably selected according to the specific application scenario.

[0051] After setting the timing time, the system will clear the previously stored RSSI data. This step is very critical to avoid the interference of historical data on the current test results, thereby ensuring the accuracy of RSSI measurement. After clearing the RSSI storage, the system will start the RSSI test. This process includes configuring the module to enter the receiving mode and start measuring the instantaneous RSSI value in the environment. In the receiving mode, the module will receive wireless signals from the environment through the antenna and measure the strength of these signals. The system will continuously read the instantaneous RSSI value in the environment to evaluate the signal strength of the current frequency band.

[0052] When the timing time arrives, the system will stop collecting RSSI data. During this 500 millisecond period, the system will continue to repeat the above collection process and collect a total of 4096 RSSI instantaneous values. Since the trigger interval of the timer is 104uS, the system can be triggered frequently enough within 500 milliseconds to ensure that the required 4096 RSSI instantaneous values ​​can be collected. Subsequently, the system adds up these 4096 collected RSSI instantaneous values ​​to obtain a sum. In order to obtain a more stable value that can better represent the current environmental signal strength, the system will calculate the average value of these instantaneous values, that is, RSSI (average) = sum(RSSI (instantaneous)) / 4096, and at the same time give the ratio of the RSSI instantaneous value greater than a certain threshold within 500 milliseconds (the number of RSSI instantaneous values ​​greater than a certain threshold / 4096), such as Figure 4 , is a graph of an embodiment of the present application. This calculation is to obtain a more stable and accurate RSSI value to avoid measurement errors caused by short-term signal fluctuations. Next, the system will record the ambient RSSI value of this period and start the next stage of operation.

[0053] To ensure the representativeness of RSSI data, the system will continuously collect RSSI values ​​in three different time periods. The RSSI values ​​in these three time periods may vary due to environmental changes and interference sources. In order to obtain a more accurate and stable RSSI value, the system will sort the RSSI values ​​in these three time periods and take the middle value as the final RSSI record value. In this way, the system can effectively exclude abnormal high or low values, thereby obtaining a more reliable RSSI data.

[0054] After obtaining a stable RSSI record value, the system will compare the value with the preset threshold. This threshold is set according to the communication requirements and environmental conditions of the system, and usually represents the lower limit of signal quality. When the environmental RSSI value is less than this threshold, it means that the signal quality of the current frequency band may not be sufficient to support stable communication, so it is necessary to switch the frequency band.

[0055] When the environment RSSI is detected to be less than the configured threshold, the system will record the current adaptive frequency band and switch the frequency band. Frequency band switching is a core step in the adaptive frequency band process. By switching to another frequency band, the system can try to find a more ideal communication environment in the new frequency band. After switching the frequency band, the system will re-enter the previous process, reconfigure the frequency and matching circuit, set the timing time, clear the RSSI storage, and start the RSSI test again.

[0056] This process will be repeated until the ambient RSSI value detected by the system in a certain frequency band is greater than or equal to the configured threshold. When the system finds a frequency band that meets the communication requirements, the adaptive frequency band process is completed. At this time, the system will stop switching frequency bands, lock on the current frequency band, and continue normal communication operations in this frequency band.

[0057] Through this adaptive frequency band selection and switching process, the system can maintain stable communication quality in a changing wireless environment. Whether the signal quality is reduced due to environmental interference, signal attenuation or other factors, the system can automatically switch the frequency band to find an optimal communication band, thereby ensuring the reliability and continuity of communication.

[0058] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A dual-frequency adaptive method for a communication module, characterized in that: The following steps are involved: S1. The terminal reads the working mode of the RF module; S2. Configure the corresponding frequency band and select the corresponding matching circuit; S3, set the timing time, clear RAM, and start RSSI test; S4. Record the RSSI of the corresponding frequency band to complete the adaptive frequency band process.

2. A dual-frequency adaptive method for a communication module according to claim 1, characterized in that: In step S1, if the working mode is the fixed frequency mode, the RF is configured to be the fixed frequency mode; if the working mode is the adaptive mode, the RF is configured to be the adaptive mode, and it is determined whether the adaptive frequency band is completed.

3. A dual-frequency adaptive method for a communication module according to claim 2, characterized in that: If the adaptive frequency band is completed, jump to step S2; if the adaptive frequency band is not completed, the adaptive mode process is preferred, and then jump to step S2.

4. The dual-frequency adaptive method of a communication module according to claim 1, characterized in that: The step S3 specifically comprises the following steps: S3.

1. Wait until the timing time is up and directly obtain the first environment RSSI; S3.2, performing a first calculation on the first environment RSSI, obtaining and recording the second environment RSSI and the threshold value ratio; S3.3, repeat the collection, perform a second calculation on the RSSI of the second environment, and obtain and record the RSSI of the third environment; S3.

4. Compare the RSSI of the third environment with the configured threshold.

5. A dual-frequency adaptive method for a communication module according to claim 4, characterized in that: In step S3.1, if the timing time has not arrived, the module is configured to be in receiving mode, the environment RSSI is read and stored, and then step S3.1 is looped.

6. A dual-frequency adaptive method for a communication module according to claim 4, characterized in that: In step S3.3, if the number of collection times is less than 3 times, return to step S3.

1.

7. A dual-frequency adaptive method for a communication module according to claim 4, 5 or 6, characterized in that: In step S3.4, if the third environment RSSI is less than the configured threshold, proceed to step S4; if the third environment RSSI is not less than the configured threshold, determine whether the frequency scan is completed.

8. A dual-frequency adaptive method for a communication module according to claim 7, characterized in that: If the frequency scan is not completed, the frequency is switched and the process returns to step S2.

9. The dual-frequency adaptive method of a communication module according to claim 7, characterized in that: If the frequency scan is completed, the frequency band is optimized according to the threshold ratio and then the process goes to step S4.

10. A dual-frequency adaptive method for a communication module according to claim 8, characterized in that: The method of optimizing the frequency band according to the threshold ratio comprises the following steps: S3.4.

1. Count the frequency of the third environment RSSI value that is greater than the threshold value; S3.4.

2. Calculate the threshold ratio according to the frequency. If the threshold ratio is not less than the specified value, re-collect the third environment RSSI value of the current environment and cancel the current sampling data. If the threshold ratio is less than the specified value, compare the threshold ratios under different frequencies and select the frequency band with a smaller threshold ratio as the better frequency band.

Citation Information

Patent Citations

  • Communication method and device of self-adaptive electric meter

    CN117129044A