Adaptive adjustment frequency hopping communication method and device, equipment and storage medium

By dividing the common channel and data channel in Sub-G radio frequency communication, and determining the target channel for frequency hopping communication using RSSI value, the problems of long communication time and low success rate in complex environments are solved, and efficient and stable point-to-point communication is achieved.

CN119483636APending Publication Date: 2025-02-18无锡芯亿集成电路有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411643175.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In complex and interfering environments, the connection time of Sub-G radio frequency communication is long and the success rate is not high.

Method used

By dividing the Sub-G frequency band into a common channel and a data channel, the target broadcast channel and data channel are determined using the RSSI value, and data transmission is carried out through frequency hopping technology, adaptively adjust frequency hopping communication is achieved.

Benefits of technology

When meeting certain communication time limit requirements, the success rate and stability of Sub-G radio frequency communication are improved, especially in environments where there are more interference in multiple teams or frequency bands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119483636A_ABST
    Figure CN119483636A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive adjustment frequency hopping communication method and device, equipment and a storage medium, and relates to the field of radio frequency communication. Dividing a common channel and a data channel, setting the common channel as a broadcast channel, and determining a target broadcast channel according to the RSSI value; sending a query instruction to the receiving end by taking the target broadcast channel as a working channel, analyzing a preset data channel set by the opposite side based on the reply response, and determining a target data channel according to the RSSI value; and replying the determined target data channel by using the target broadcast channel, carrying out frequency hopping on the common channel to the target data channel to send a data instruction, and carrying out frequency hopping back to the common channel after transmission is completed. According to the scheme, the target broadcast channel is determined according to the frequency hopping logic and the RSSI value in the corresponding channel group, the query instruction is sent to the opposite end, confirmation is carried out according to the preset data channel temporarily distributed by the opposite end, handshake judgment is carried out, handshake can be rapidly carried out, communication is stable, and the anti-interference capability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of radio frequency communications, and in particular to a method, device, equipment and storage medium for adaptively adjusting frequency hopping communications. Background Art

[0002] Sub-G (also known as Sub-1G or Sub-1GHz) is a radio communication technology with an operating frequency band below 1GHz, usually 315MHz, 433MHz, 868MHz, 915MHz and other frequency bands. Some countries and regions also allow the use of the 169MHz frequency band. Sub-G is an ISM frequency band. ISM refers to industrial, scientific and medical (ISM for short), which refers to the use of equipment or devices that can generate radio frequency energy in a local area and use this energy to provide services for industrial, scientific, medical, civil or similar fields, but does not include use in the telecommunications field. The ISM frequency band is a certain frequency band that countries have set aside and is mainly open to industrial, scientific and medical institutions. There is no need for a license or fee to use these frequency bands. You only need to comply with a certain transmission power (generally less than 1W) and do not cause interference to other frequency bands.

[0003] The main advantage of Sub-G RF technologies is that they can penetrate obstacles, cover a wider range, and have relatively less interference with the environment. It shows great potential in many fields such as the Internet of Things (IoT), smart homes, and industrial automation. For example, in smart home systems, Sub-G technology can achieve low-power device communication, thereby extending battery life and reducing maintenance costs. In the field of industrial automation, Sub-G technology can provide stable wireless connections, thereby improving production efficiency and safety. Sub-G is usually used to design data transmission with lower bandwidth. Due to the small bandwidth, the amount of data information transmitted is relatively small, and the data rate is low. Due to the use of lower bandwidth and lower data rate, Sub-G system power consumption is also lower. Lower bandwidth leads to lower thermal noise and better receiving sensitivity.

[0004] In terms of technical implementation, most of them use a fixed frequency point to repeatedly communicate for connection and data transmission. Or a relatively simple frequency hopping algorithm is used. Simple frequency hopping algorithms generally fix a certain number of channels and continuously detect signals and try to connect on these fixed channels. The main problem with the above system communication scheme is that in a complex interference environment or an environment where multiple groups of RF control communication systems are required to work simultaneously, the connection communication time is long and the success rate is not high. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for adaptively adjusting frequency hopping communication to solve the problems of long communication time and low success rate in complex and interfering environments.

[0006] On the one hand, the present application discloses a method for adaptively adjusting frequency hopping communication, the method being used for a transmitting end of point-to-point communication, the method comprising:

[0007] The Sub-G frequency band is divided into M public channels and N data channels, the public channels are set as broadcast channels, and the target broadcast channel is determined according to the RSSI value of the received signal strength detected by the broadcast channel;

[0008] Sending a query instruction to a receiving end using the target broadcast channel as a working channel, parsing a preset data channel set by the receiving end based on a reply response, and determining a target data channel according to an RSSI value;

[0009] The determined target data channel uses the target broadcast channel to reply, the common channel is hopped to the target data channel to send data instructions, and after the data transmission is completed, it is hopped back to the common channel.

[0010] Specifically, the M common channels include M / 2 general broadcast channels and M / 2 standby broadcast channels, and M<1 / 10(M+N);

[0011] Before the sending end and the receiving end perform point-to-point communication, the ID number of the sending end and the ID number of the receiving end are set to be unified.

[0012] Specifically, determining the target broadcast channel according to the received signal strength RSSI value detected by the broadcast channel includes:

[0013] The RSSI value is detected by polling according to the number of the general broadcast channel. When the RSSI value is lower than the set threshold, the corresponding general broadcast channel is determined as the target broadcast channel; when the RSSI value of M / 2 general broadcast channels is not lower than the set threshold, the RSSI value is detected by polling according to the number of the backup broadcast channel, and the target broadcast channel is determined therefrom.

[0014] Specifically, a point-to-point broadcast instruction set is set, and the instruction content is determined according to the instruction bytes, including a 4-byte data channel instruction, a 32-byte data frame instruction, and a data confirmation instruction;

[0015] The method of parsing the preset data channel set by the receiving end based on the reply response, and determining the target data channel according to the RSSI value, includes:

[0016] When a reply response from the receiving end is obtained within a set time threshold, a preset data channel set by the receiving end is parsed according to the reply response; the preset data channel is a data channel selected by the receiving end according to the RSSI value;

[0017] Switching the working channel to the corresponding preset data channel, detecting the RSSI value of the preset data channel, and switching the working channel back to the target broadcast channel;

[0018] When the RSSI value of the preset data channel is less than a set threshold, determining the preset data channel as a target data channel;

[0019] When the RSSI value of the preset data channel is not less than the set threshold, a data channel change instruction is sent to the receiving end through the target broadcast channel, and the receiving end continues to wait for a reply response until the target broadcast channel is determined; the data channel change instruction is used by the receiving end to reallocate the preset data channel.

[0020] Specifically, when no reply response is received from the receiving end within the set time threshold, the broadcast channel type to which the current working channel belongs is determined, and the RSSI value continues to be polled and detected according to the number in the corresponding broadcast channel type, and the target broadcast channel is re-determined according to the RSSI value of the general broadcast channel or the backup broadcast channel.

[0021] Specifically, the determined target data channel is replied using the target broadcast channel, and the common channel is frequency-hopped to the target data channel to send the data instruction, including:

[0022] Sending a data channel instruction that meets the transmission requirements to the receiving end through the target broadcast channel to determine the target data channel; the receiving end frequency-hops the corresponding working channel to the target data channel based on the data channel instruction;

[0023] Frequency hop the working channel to the target data channel and send data instructions to the receiving end;

[0024] When no data confirmation instruction is received within the preset time, re-execute the step of setting the public channel as the broadcast channel and determining the target broadcast channel according to the RSSI value;

[0025] When the data confirmation command replied by the receiving end is received within the preset time, it is confirmed that the frequency hopping communication is completed.

[0026] Specifically, after completing the data transmission, the working channel is switched back to the public channel, and it is determined whether it is necessary to continue to send data frames;

[0027] When it is necessary to continue sending data frames, the target broadcast channel is re-determined, and a query instruction is sent to the receiving end, and the data frame transmission task is performed based on the reply response.

[0028] On the other hand, the present application provides an adaptive frequency hopping communication device, the device is used for a transmitting end of point-to-point communication, and the device includes:

[0029] The first determination module is used to divide the Sub-G frequency band into M common channels and N data channels, set the common channel as a broadcast channel, and determine the target broadcast channel according to the RSSI value of the received signal strength detected by the broadcast channel;

[0030] A second determination module is used to send a query instruction to the receiving end using the target broadcast channel as a working channel, parse the preset data channel set by the receiving end based on the reply response, and determine the target data channel according to the RSSI value;

[0031] The sending module is used to reply the determined target data channel using the target broadcast channel, hop the common channel to the target data channel to send data instructions, and hop back to the common channel after completing the data transmission.

[0032] On the other hand, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the adaptive frequency hopping communication method described in the above aspects.

[0033] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the adaptive frequency hopping communication method described in the above aspects.

[0034] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least: This solution is based on the scenario of multiple teams (groups) of Sub-G radio frequency communication bands or a lot of interference in the frequency band, divides the entire frequency band into broadcast channels and data channels, and uses frequency hopping numbering between different types of frequency bands. When executing, the transmitter and the receiver hop and poll each public channel according to the RSSI signal value, select the target broadcast channel and send / receive query instructions, and quickly determine the target data channel by fast frequency hopping and handshaking according to the instruction set to transmit data. This frequency hopping technology can achieve the success rate and stability of point-to-point communication in the Sub-G radio frequency communication band under the environment of multiple teams (groups) or a lot of interference in the frequency band, while meeting certain communication time requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a flow chart of a method for adaptively adjusting frequency hopping communication provided in an embodiment of the present application;

[0036] Figure 2 A possible spectrum division schematic diagram provided in an embodiment of the present application;

[0037] Figure 3 It is an algorithm flow chart of the frequency hopping communication method for adaptively adjusting the frequency hopping communication at the transmitting end;

[0038] Figure 4 It is an algorithm flow chart of the frequency hopping communication method for adaptively adjusting the frequency hopping communication at the receiving end;

[0039] Figure 5 A structural block diagram of an adaptive frequency hopping communication device provided in an embodiment of the present application is shown;

[0040] Figure 6 A structural block diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0041] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0042] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0043] The main purpose of frequency hopping communication is to establish a handshake connection and communicate successfully in a complex environment. It can quickly and adaptively search for public channels and connect and communicate by handshake. Sub-G RF communication mainly consists of a transmitter and a receiver. The transmitter is responsible for sending data, which is called TxPoint, and the receiver is responsible for receiving data, which is called RxPoint. This solution is mainly aimed at point-to-point communication systems and does not involve one-to-many communication systems. The core is to synchronize TxPoint and RxPoint to a clean data channel (Dchal) for data transmission through the search and handshake mechanism.

[0044] In order to implement the various instructions and data processing described in the embodiments of the present application, an instruction set of the adaptive frequency hopping communication method is first designed, as shown in Table 1 below:

[0045] Table 1 Instruction set of adaptive frequency hopping communication method

[0046]

[0047] The above instruction set specifies the format and expression of instruction bytes in the point-to-point communication between the transmitter TxPoint and the receiver RxPoint. Query represents the query instruction sent by TxPoint to RxPoint, and QueryRly represents the reply response of RxPoint to TxPoint, which contains the data channel index number selected by the receiver, which is used for the transmitter to quickly index and determine the corresponding data channel. DLRsut represents the data channel instruction, which contains the agreement of both parties on the data channel. AppData represents the data frame instruction sent by TxPoint to RxPoint, which contains the data frame content with a minimum of 1 byte and a maximum of 32 bytes. AppDataRly represents the data confirmation instruction replied by RxPoint to TxPoint, which is replied when the data frame is successfully received.

[0048] Figure 1 : is a flow chart of the adaptive frequency hopping communication method provided by an embodiment of the present application, taking the transmitting end as the operation object, and specifically comprising the following steps:

[0049] S1. Divide the Sub-G frequency band into M common channels and N data channels, set the common channel as a broadcast channel, and determine the target broadcast channel according to the RSSI value of the received signal strength detected by the broadcast channel;

[0050] A public channel is a channel used for broadcast communications, and a data channel is a channel specifically used to transmit data. Under the premise that the Sub-G frequency band is fixed, the more frequency bands are divided, the more events will be occupied in the subsequent handshake frequency hopping, and the longer the connection communication time will be.

[0051] Whether it is at the TxPoint end or the RxPoint end, the frequency hopping parameters need to be set and unified before the system works. The first is the frequency hopping band, that is, the starting frequency of the frequency hopping channel, the total number of channels, the broadcast channel and the data channel. The embodiment of the present application can divide M common channels and N data channels according to the actual scenario. The total number of channels is M+N, and the actual M value needs to be set relatively small, so as to reduce the number of handshakes. Usually, in order to balance the handshake and communication time, it is chosen to control the number of common channels within a certain range, such as setting M<1 / 10(M+N), that is, keeping it within the ratio of 1 / 10, to obtain better results.

[0052] It should be noted that the frequency bands of the public channel and the data channel need to be kept uniformly set to avoid interference and achieve efficient frequency hopping communication. For any selected broadcast channel, before determining it as the target broadcast channel, it is necessary to detect its signal strength, that is, the received signal strength RSSI value. The larger the RSSI value, the worse the signal strength and the more serious the interference. In most applications, a threshold is usually set according to actual conditions, and a broadcast channel with an RSSI value less than the threshold is selected from the M broadcast channels to be determined as the target broadcast channel, and it is used as the working channel and subsequent operations are performed.

[0053] S2, sending a query command to the receiving end using the target broadcast channel as the working channel, parsing the preset data channel set by the receiving end based on the reply response, and determining the target data channel according to the RSSI value;

[0054] After determining the target broadcast channel, the device's working channel can be switched to the frequency band of the target broadcast channel, and then a Query command is sent to the receiving end. At the same time, the receiving end also needs to select a working channel suitable for itself according to the above steps and receive the Query command. Of course, this process is mainly received through polling.

[0055] Within the specified time range, when the sender receives the QueryRly instruction from the receiver, it parses its content and extracts the preset data channel set therein. The preset data channel is set by the receiver to notify the sender that the receiver is ready to use this data channel to receive data instructions. After the sender extracts the relevant information of the preset data channel, it randomly verifies it, specifically determining whether the transmission conditions are met based on the RSSI value, and whether it is determined as the target data channel.

[0056] S3. The determined target data channel is replied using the target broadcast channel, the common channel is hopped to the target data channel to send data instructions, and the common channel is hopped back to the common channel after the data transmission is completed.

[0057] When the sender determines the target data channel, it will immediately use the previously determined target broadcast channel (i.e. the current working channel) to send the DLRsut instruction to the sender, and the two parties will perform a handshake confirmation. The purpose is to inform the receiver to determine the use of the target data channel to transmit data instructions.

[0058] Furthermore, the transmitter will hop the working channel to the target data channel, and send the relevant data frames to be sent in the form of AppData instruction data, and the receiver will receive AppData accordingly. In addition, for the data channel, the transmitter will not occupy the channel for a long time, and will hop back to the public channel after the transmission is completed, such as setting the default first public channel or randomly hopping to a public channel.

[0059] In summary, this solution is based on the scenario of multiple teams (groups) of Sub-G radio frequency communication bands or a lot of interference in the band. The entire band is divided into broadcast channels and data channels. Frequency hopping numbering is used between different types of bands. When executing, the transmitter and receiver hop and poll each public channel according to the RSSI signal value, select the target broadcast channel and send / receive query instructions, and quickly determine the target data channel by fast frequency hopping and handshaking according to the instruction set to transmit data. This frequency hopping technology can achieve the success rate and stability of point-to-point communication in the Sub-G radio frequency communication band under the condition of multiple teams (groups) or a lot of interference in the band, while meeting certain communication time requirements.

[0060] In some embodiments, before point-to-point communication is performed, it is necessary to set the ID of the RxPoint end to be the same as the ID of the TxPoint end of the corresponding frequency hopping communication pair, and then encode the channel. In a feasible implementation, the M common channels are divided into M / 2 general broadcast channels and M / 2 backup broadcast channels, and M<1 / 10(M+N). Preferably, the general broadcast channel can be used for detection first, that is, only the general broadcast channel is used for handshake detection, which can improve the efficiency of handshake communication. In the case of strong interference, the backup broadcast channel can be further enabled to ensure the stability of the communication process.

[0061] Figure 2 A possible spectrum division diagram provided in an embodiment of the present application includes the basic frequency FHSS_BFreq of the frequency hopping working frequency band, the channel step size (channel interval) FHSS_Step, and the maximum number of channels FHSS_MaxChalCnt (all channel index numbers are 0 to FHSS_MaxChalCnt-1). Specifically, it can be divided into 3 general broadcast channels Pchal and 3 backup broadcast channels PBchal, and the remaining channels are data channels Dchal. General broadcast channel Pchal group Pchal[1-3] (quantity 3, channel index number is: 5, FHSS_MaxChalCnt / 2+1, FHSS_MaxChalCnt-5, when the total number is 50, the three broadcast channel indexes are 5, 26, and 45 respectively). Backup broadcast channel group PBchal[1-3] (quantity 3, channel index number is: 6, FHSS_MaxChalCnt / 2+2, FHSS_MaxChalCnt-4, when the total number is 50, the three backup broadcast channel indexes are 6, 27, and 46 respectively). The above broadcast channels are all set relatively evenly, so as to avoid interference as much as possible.

[0062] For the transmitting end, the process of determining the target broadcast channel according to the RSSI value of the received signal strength detected by the broadcast channel can be to poll and detect the RSSI value according to the number of the general broadcast channel, and when the RSSI value is lower than the set threshold, the corresponding general broadcast channel is determined as the target broadcast channel. For example, the general broadcast channel group is first polled, and when the RSSI value of the general broadcast channel selected by the polling frequency hopping is lower than the set threshold, it means that the channel quality is good and it can be determined as the target broadcast channel. On the contrary, when the RSSI values ​​of M / 2 general broadcast channels are not lower than the set threshold, the RSSI value is polled and detected according to the number of the standby broadcast channel, and after the RSSI value detected by the frequency hopping meets the requirements, it is correspondingly determined as the target broadcast channel.

[0063] After determining the target channel and sending the Query command, the target data channel can be determined according to the response. The process can be specifically divided into the following steps:

[0064] A. When a reply response from the receiving end is obtained within a set time threshold, the preset data channel set by the receiving end is parsed according to the data channel index number and the data channel instruction in the reply response;

[0065] For the receiving end, it is also necessary to first determine a reliable target broadcast channel, and then hop frequency to receive the Query command. In particular, this process requires both parties to maintain the same frequency broadcast channel in order to receive. When the target broadcast channel of the receiving end is inconsistent with the target broadcast channel of the sending end, the receiving end needs to hop frequency to receive. After the receiving end obtains the Query command, it selects a data channel as the preset data channel for sending the QueryRly command according to its own situation, and this process also needs to be selected based on the RSSI value, otherwise the subsequent communication cannot be guaranteed to be stable.

[0066] B. Switch the working channel to the corresponding preset data channel, detect the RSSI value of the preset data channel, and switch the working channel back to the target broadcast channel;

[0067] C. When the RSSI value of the preset data channel is less than the set threshold, the preset data channel is determined as the target data channel;

[0068] D. When the RSSI value of the preset data channel is not less than the set threshold, a data channel change instruction is sent to the receiving end through the target broadcast channel, and the receiving end continues to wait for a reply response until the target broadcast channel is determined.

[0069] The QueryRly instruction is considered from the receiving end, but it does not necessarily meet the requirements of the sending end, so the sending end needs to check the preset data channel. If it does not meet the requirements, the receiving end needs to reallocate the preset data channel. This can be achieved through instructions, using DLRsut_OK and DLRsut_CHG to notify the receiving end. There is only one bit difference between these two instructions. When the bit is 0, it means that the target broadcast channel is determined. When the bit is 1, it means that the data channel needs to be reselected.

[0070] In some embodiments, the process of sending a data instruction can be described in detail as follows:

[0071] A. Send a data channel instruction that meets the transmission requirements to the receiving end through the target broadcast channel to determine the target data channel;

[0072] B. Frequency hop the working channel to the target data channel and send data instructions to the receiving end;

[0073] The sender uses the target data channel to send AppData. Correspondingly, after the receiver obtains DLRsut_OK, it hops the corresponding working channel to the target data channel based on the data channel instruction and prepares to receive AppData.

[0074] C. When the data confirmation command is received from the receiving end within the preset time, it is confirmed that the frequency hopping communication is completed.

[0075] For the receiving end, after receiving AppData, it will continue to use the working channel (target data channel) to send AppDataRly, indicating the confirmation of AppData. After the receiving end obtains AppDataRly, it determines that this communication task is completed.

[0076] Optionally, in some special scenarios, when the sender fails to receive AppDataRly within the preset time, it means that environmental interference factors have caused the other party to fail to successfully obtain data. The sender needs to re-execute the steps of setting the public channel as the broadcast channel and determining the target broadcast channel based on the RSSI value.

[0077] Furthermore, after completing the data transmission, the transmitter will switch the working channel to the public channel again and determine whether it needs to continue sending data frames. When it needs to continue sending data frames, it will re-determine the target broadcast channel and send a query command to the receiver, and perform the data frame transmission task based on the reply response.

[0078] In summary, this solution re-divides the frequency band of the Sub-G radio frequency system communication, uses a dual mechanism of ordinary broadcast channels and backup broadcast channels, reduces the number of polling detection and handshakes, determines the target broadcast channel and sends a query command to the other end in the corresponding channel group according to the frequency hopping logic and RSSI value, and confirms according to the preset data channel temporarily allocated by the other end to make a handshake judgment. This solution can quickly handshake and stabilize communication, and has strong anti-interference ability.

[0079] Based on the above-mentioned adaptive frequency hopping communication method, this application provides examples with the transmitting end and the receiving end as targets respectively.

[0080] Figure 3 It is the algorithm flow chart of the method for adaptively adjusting the frequency hopping communication at the transmitting end, which can be summarized as follows:

[0081] 1. The TxPoint end starts the frequency hopping mechanism and sets the current working channel to the common broadcast channel Wchal=Pchal[idx](idx=1);

[0082] 2. The TxPoint end detects the RSSI value of the current working channel Wchal. If the RSSI value of the current working channel is lower than the threshold RSSI_TH, it proceeds to step 5.

[0083] If the RSSI value of the current working channel is higher than the threshold RSSI_TH, the current working channel is frequency-hopped to the next common broadcast channel Wchal=Pchal[idx=idx+1], and step 2 is repeated.

[0084] If the continuously detected working channel Wchal has traversed all channels of the common broadcast channel group Pchal, and the channel signal RSSI values ​​are all higher than the threshold RSSI_TH, then go to step 3.

[0085] 3. The TxPoint end sets the current working channel as the channel of the backup broadcast channel group Wchal=PBchal[idx](idx=1);

[0086] 4. The TxPoint end detects the RSSI value of the current working channel Wchal. If the RSSI value of the current working channel is lower than the threshold RSSI_TH, it proceeds to step 5.

[0087] If the RSSI value of the current working channel is higher than the threshold RSSI_TH, the current working channel is updated to the next backup broadcast channel Wchal=PBchal[idx=idx+1], and step 4 is repeated.

[0088] If the working channel Wchal of the continuous frequency hopping detection has traversed all channels of the backup broadcast channel group PBchal, and the channel signal RSSI values ​​are all higher than the threshold RSSI_TH, it is reported that there is severe interference in the current environmental RF frequency band, and the frequency hopping algorithm process is exited or restarted.

[0089] 5. The TxPoint end sends a query command Query on the current working channel Wchal.

[0090] 6. TxPoint waits for the response QueryRly from RxPoint. If the response QueryRly from RxPoint is successfully received within a certain period of time, it proceeds to the next step 7. If the response QueryRly is not successfully received, the current working channel is set to the next common broadcast channel Wchal=Pchal[idx=idx+1] (when the current working channel is a common broadcast channel group), and the process goes to step 2; or the current working channel is set to the next backup broadcast channel Wchal=PBchal[idx=idx+1] (when the current working channel is a backup broadcast channel group), and the process goes to step 4.

[0091] 7. The TxPoint end parses the data channel Dchal allocated by the RxPoint end according to the received response QueryRly, and records the current working channel, sets the working channel to the data channel Wchal=Dchal, detects the RSSI value of the current working channel Wchal, and sets the working channel back to the previous channel Wchal=Wchal (previous working channel) after the detection is completed.

[0092] If the detected RSSI value is less than or equal to the threshold RSSI_TH, the RxPoint end is replied with a DLRsut instruction (DLRsut_OK) indicating that the allocated data channel Dchal is available, and the process jumps to the next step 8. If the detected RSSI value is greater than the threshold RSSI_TH, the RxPoint end is replied with a DLRsut instruction (DLRsut_CHG) indicating that the data channel needs to be reallocated, and the process jumps to step 6.

[0093] 8. TxPoint sets the working channel to the data channel Dchal assigned by RxPoint, Wchal = Dchal, and sends AppData to RxPoint, and then waits for AppDataRly from RxPoint within a certain period of time. If AppDataRly is successfully received, it is determined that the current frequency hopping communication is completed, and jumps to step 9.

[0094] In addition to the above possibilities, it is also possible that QueryRly cannot be received. When the AppDataRly of the receiving end is not obtained within the set time threshold, jump to step 1 to continue execution, that is, determine the broadcast channel type to which the current working channel belongs, and continue to poll and detect the RSSI value according to the number in the corresponding broadcast channel type, and redetermine the target broadcast channel according to the RSSI value of the general broadcast channel or the backup broadcast channel.

[0095] 9. If you need to send data continuously, jump to step 1 to continue execution. Otherwise, exit the frequency hopping communication algorithm process.

[0096] The adaptive frequency hopping algorithm on the RxPoint side corresponds to the algorithm flow on the TxPoint side. Figure 4 It is the algorithm flow chart of the receiving end adaptive adjustment frequency hopping communication method, which can be summarized as follows:

[0097] 1. The RxPoint end starts the frequency hopping mechanism, sets the channel signal quality RSSI threshold RSSI_TH and the current working channel as the common broadcast channel Wchal=Pchal[idx](idx=1);

[0098] 2. The RxPoint end detects the RSSI value of the current working channel Wchal. If the RSSI value of the current working channel is lower than the threshold RSSI_TH, proceed to step 5; if the RSSI value of the current working channel is higher than the threshold RSSI_TH, update the current working channel to the next broadcast channel Wchal=Pchal[idx=idx+1], and repeat step 2.

[0099] If the continuously detected working channel Wchal has traversed all channels of the common broadcast channel group Pchal and the channel signal RSSI values ​​are all higher than the threshold RSSI_TH, then go to step 3.

[0100] 3. The RxPoint end sets the current working channel as the channel of the backup broadcast channel group Wchal=PBchal[idx](idx=1);

[0101] 4. The RxPoint end detects the RSSI value of the current working channel Wchal. If the RSSI value of the current working channel is lower than the threshold RSSI_TH, proceed to step 5; if the RSSI value detected by the current working channel is higher than the threshold RSSI_TH, the current working channel is frequency-hopped to the next backup broadcast channel Wchal=PBchal[idx=idx+1], and step 4 is repeated.

[0102] If the continuously detected working channel Wchal has traversed all channels of the backup broadcast channel group PBchal, and the channel signal RSSI values ​​are all higher than the threshold RSSI_TH, it is reported that there is severe interference in the current environmental RF frequency band, and the frequency hopping algorithm process is exited or restarted.

[0103] 5. The RxPoint end waits on the working channel Wchal for the query instruction Query sent by the TxPoint end.

[0104] 6. If the RxPoint end can successfully receive the query instruction Query from the TxPoint end within a certain period of time, then proceed to the next step 7. If the query instruction Query is not successfully received, then set the working channel to the next common broadcast channel Wchal=Pchal[idx=idx+1] (the current working channel is the common broadcast channel group channel) and jump to step 2, or set the current working channel to the next backup broadcast channel Wchal=PBchal[idx=idx+1] (the current working channel is the backup broadcast channel group channel) and jump to step 4.

[0105] 7. The RxPoint end randomly allocates a channel in all data signal groups as the preset data channel Dchal, records the current working channel Wchal, sets the temporary working channel to the preset data channel Wchal=Dchal, detects the RSSI value of the temporary working channel Wchal, and after the detection is completed, sets the temporary working channel back to the previous working channel Wchal=Wchal (previous status broadcast channel).

[0106] If the detected RSSI value is less than or equal to the threshold RSSI_TH, a response QueryRly is sent to the TxPoint end (with Dchal as a parameter), and the process jumps to the next step 8. If the detected RSSI value is greater than the threshold RSSI_TH, the process re-executes step 7;

[0107] 8. The RxPoint end waits for the TxPoint end instruction DLRsut on the current working channel. If the instruction DLRsut is not received within a certain period of time, the current working channel is set to the next ordinary broadcast channel Wchal=Pchal[idx=idx+1] (the current working channel is the ordinary broadcast channel group channel), and jump to step 2 or set the current working channel to the next backup broadcast channel Wchal=PBchal[idx=idx+1] (the current working channel is the backup broadcast channel group channel), and jump to step 3.

[0108] If the command DLRsut is received and the command content is DLRsut_OK, the current working channel is set as the target data channel Wchal=Dchal, and the process jumps to the next step 9. When the command content is DLRsut_CHG, the process jumps to step 7.

[0109] 9. The RxPoint end waits for the data instruction AppData sent by the TxPoint end within a certain period of time. If AppData is successfully received, it replies AppDataRly to the TxPoint end and jumps to step 10; if AppData is not received, the current working channel is set to the next ordinary broadcast channel Wchal=Pchal[idx=idx+1] (the current working channel is the backup broadcast channel group channel), and jumps to step 2, or the current working channel is set to the next backup broadcast channel Wchal=PBchal[idx=idx+1] (the current working channel is the backup broadcast channel group channel) and jumps to step 4.

[0110] 10. If continuous data reception is required, jump to step 1 to continue execution; otherwise, exit the frequency hopping communication algorithm process.

[0111] Figure 5 The structure block diagram of the adaptive frequency hopping communication device provided in the embodiment of the present application is shown, and the device is used for the transmitting end of point-to-point communication, and the device includes:

[0112] The first determination module 510 is used to divide the Sub-G frequency band into M common channels and N data channels, set the common channels as broadcast channels, and determine the target broadcast channel according to the RSSI value of the received signal strength detected by the broadcast channel;

[0113] A second determination module 520 is used to send a query instruction to the receiving end using the target broadcast channel as a working channel, parse the preset data channel set by the receiving end based on the reply response, and determine the target data channel according to the RSSI value;

[0114] The sending module 530 is used to reply the determined target data channel using the target broadcast channel, hop the common channel to the target data channel to send data instructions, and hop back to the common channel after completing the data transmission.

[0115] The adaptive frequency hopping communication device provided in the embodiment of the present application can be applied to the adaptive frequency hopping communication method provided in the above embodiment. For relevant details, refer to the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0116] It should be noted that the adaptive frequency hopping communication device provided in the embodiment of the present application is only illustrated by the division of the above-mentioned functional modules / functional units. In practical applications, the above-mentioned functions can be assigned to different functional modules / functional units as needed, that is, the internal structure of the adaptive frequency hopping communication device is divided into different functional modules / functional units to complete all or part of the functions described above. In addition, the implementation method of the adaptive frequency hopping communication method provided in the above method embodiment and the implementation method of the adaptive frequency hopping communication device provided in this embodiment belong to the same concept. The specific implementation process of the adaptive frequency hopping communication device provided in this embodiment is detailed in the above method embodiment, which will not be repeated here.

[0117] Figure 6 The block diagram of an electronic device provided by an exemplary embodiment of the present application is shown. It is an electronic device such as a desktop computer, a laptop computer, a PDA, and a cloud server. The electronic device may include, but is not limited to, a processor and a memory. Among them, the processor and the memory may be connected by a bus or otherwise. Among them, the processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, graphics processors (GPU), embedded neural network processors (NPU) or other dedicated deep learning coprocessors, discrete gates or transistor logic devices, discrete hardware components and other chips, or a combination of the above-mentioned various chips.

[0118] The processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0119] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above-mentioned embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the method in the above-mentioned method implementation is realized. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0120] In some embodiments, the electronic device may further optionally include: a peripheral device interface and at least one peripheral device. The processor, the memory and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit, a display screen and a keyboard.

[0121] The peripheral device interface can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor and the memory. In some embodiments, the processor, the memory, and the peripheral device interface are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor, the memory, and the peripheral device interface can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0122] The display screen is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen is a touch screen, the display screen also has the ability to collect touch signals on the surface of the display screen or above the surface. The touch signal can be input to the processor as a control signal for processing. At this time, the display screen can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen can be one, arranged on the front panel of the electronic device; in other embodiments, the display screen can be at least two, arranged on different surfaces of the electronic device or in a folding design. In other embodiments, the display screen can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even the display screen can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode) and the like.

[0123] The power source is used to power various components in the electronic device. The power source can be AC, DC, a disposable battery, or a rechargeable battery. When the power source includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0124] Those skilled in the art will appreciate that the structure shown in this embodiment does not limit the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0125] The embodiment of the present application also discloses a computer-readable storage medium. Specifically, the computer-readable storage medium is used to store a computer program, and when the computer program is executed by the processor, the method in the above-mentioned method implementation is implemented. Those skilled in the art can understand that the implementation of all or part of the process in the above-mentioned implementation method of the present application can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the process of the implementation of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0126] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A method for adaptively adjusting frequency hopping communication, characterized in that: The method is used for a sending end of point-to-point communication, and the method comprises: The Sub-G frequency band is divided into M public channels and N data channels, the public channels are set as broadcast channels, and the target broadcast channel is determined according to the RSSI value of the received signal strength detected by the broadcast channel; Sending a query instruction to a receiving end using the target broadcast channel as a working channel, parsing a preset data channel set by the receiving end based on a reply response, and determining a target data channel according to an RSSI value; The determined target data channel uses the target broadcast channel to reply, the common channel is hopped to the target data channel to send data instructions, and after the data transmission is completed, it is hopped back to the common channel.

2. The method according to claim 1, characterized in that The M public channels include M / 2 general broadcast channels and M / 2 standby broadcast channels, and M<1 / 10(M+N); Before the sending end and the receiving end perform point-to-point communication, the ID number of the sending end and the ID number of the receiving end are set to be unified.

3. The method according to claim 2, characterized in that The target broadcast channel is determined based on the received signal strength RSSI value detected by the broadcast channel, including: The RSSI value is detected by polling according to the number of the general broadcast channel. When the RSSI value is lower than the set threshold, the corresponding general broadcast channel is determined as the target broadcast channel; when the RSSI value of M / 2 general broadcast channels is not lower than the set threshold, the RSSI value is detected by polling according to the number of the backup broadcast channel, and the target broadcast channel is determined therefrom.

4. The method according to claim 2, characterized in that: Set the point-to-point broadcast instruction set, and determine the instruction content according to the instruction byte, including 4-byte data channel instruction, 32-byte data frame instruction, and data confirmation instruction; The method of parsing the preset data channel set by the receiving end based on the reply response, and determining the target data channel according to the RSSI value, includes: When a reply response from the receiving end is obtained within a set time threshold, a preset data channel set by the receiving end is parsed according to the reply response; the preset data channel is a data channel selected by the receiving end according to the RSSI value; Switching the working channel to the corresponding preset data channel, detecting the RSSI value of the preset data channel, and switching the working channel back to the target broadcast channel; When the RSSI value of the preset data channel is less than a set threshold, determining the preset data channel as a target data channel; When the RSSI value of the preset data channel is not less than the set threshold, a data channel change instruction is sent to the receiving end through the target broadcast channel, and the receiving end continues to wait for a reply response until the target broadcast channel is determined; the data channel change instruction is used by the receiving end to reallocate the preset data channel.

5. The method according to claim 2, characterized in that: When no reply response is received from the receiving end within the set time threshold, the broadcast channel type to which the current working channel belongs is determined, and the RSSI value is continued to be polled according to the number in the corresponding broadcast channel type, and the target broadcast channel is re-determined according to the RSSI value of the general broadcast channel or the backup broadcast channel.

6. The method according to claim 4, characterized in that The step of replying the determined target data channel using the target broadcast channel and frequency hopping the common channel to the target data channel to send a data instruction comprises: Sending a data channel instruction that meets the transmission requirements to the receiving end through the target broadcast channel to determine the target data channel; the receiving end frequency-hops the corresponding working channel to the target data channel based on the data channel instruction; Frequency hop the working channel to the target data channel and send data instructions to the receiving end; When no data confirmation instruction is received within the preset time, re-execute the step of setting the public channel as the broadcast channel and determining the target broadcast channel according to the RSSI value; When the data confirmation command replied by the receiving end is received within the preset time, it is confirmed that the frequency hopping communication is completed.

7. The method according to claim 1, characterized in that After completing the data transmission, the working channel is switched back to the public channel, and it is determined whether it is necessary to continue sending data frames; When it is necessary to continue sending data frames, the target broadcast channel is re-determined, and a query instruction is sent to the receiving end, and the data frame transmission task is performed based on the reply response.

8. An adaptive frequency hopping communication device, characterized in that: The device is used as a sending end of point-to-point communication, and the device comprises: The first determination module is used to divide the Sub-G frequency band into M common channels and N data channels, set the common channel as a broadcast channel, and determine the target broadcast channel according to the RSSI value of the received signal strength detected by the broadcast channel; A second determination module is used to send a query instruction to the receiving end using the target broadcast channel as a working channel, parse the preset data channel set by the receiving end based on the reply response, and determine the target data channel according to the RSSI value; The sending module is used to reply the determined target data channel using the target broadcast channel, hop the common channel to the target data channel to send data instructions, and hop back to the common channel after completing the data transmission.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the adaptive frequency hopping communication method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the adaptive frequency hopping communication method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Bidirectional wireless communication frequency hopping method, system, device and medium

    CN120897276A

  • A method, system, device, and medium for bi-directional wireless communication frequency hopping

    CN120897276B