Bluetooth channel selection method
By building and updating the channel map and regularly updating the status and weight values of the channel, the existing Bluetooth channel selection methods are solved, and the anti-interference ability of low-power Bluetooth is improved.
Patent Information
- Application Number
- CN202411932960.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-03-28
AI Technical Summary
The existing Bluetooth channel selection method is complex and power-consuming when identifying bad channels, and the PER method requires a lot of time to evaluate the channel, making it difficult to effectively improve the anti-interference ability of low-power Bluetooth.
By building a channel map, including channel number, status and weight tags, the status and weight values in the channel map are regularly updated, and the channel used for the next frequency hopping is selected.
The anti-interference capability of low-power Bluetooth is improved. By updating the channel map in real time, selecting the channel with the best communication capabilities, and enhancing the random jump effect of the channel.
Smart Images

Figure CN119729433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communications, and in particular to a Bluetooth channel selection method. Background Art
[0002] With the increase in the types of wireless communication technologies, it is inevitable that the spectrum used by two or more wireless communication technologies will overlap in wireless communication technologies. For example, low-power Bluetooth, classic Bluetooth and WIFI, all of which operate in the 2.4G ISM band. In order to solve the conflict problem of channel overlap, a frequency hopping mechanism is designed in the Bluetooth communication protocol. For the frequency hopping mechanism, the most critical thing is how to select the optimal channel. To this end, the Bluetooth specification stipulates how to identify bad channels, and the process of identifying the quality of channels is usually called "channel evaluation". In the prior art, commonly used channel evaluation methods include RSSI (received signal strength indication) and PER (packet error rate). However, the RSSI method will increase the system complexity and system power consumption, while the PER method requires a lot of time to judge the quality of a channel. Summary of the invention
[0003] The Bluetooth channel selection method provided by the present invention can judge the channel quality in each first preset time interval and judge the selection weight in each second preset time interval, thereby effectively improving the anti-interference capability of low-power Bluetooth.
[0004] The present invention provides a Bluetooth channel selection method, the method comprising:
[0005] According to the radio frequency channel range, a channel map of general-purpose channels is constructed; wherein the channel map includes at least a channel number label, a state label and a weight label; wherein the channel number label is used to identify a plurality of general-purpose channels one by one by channel number;
[0006] According to a first preset time interval, obtaining a transmission success rate of each of the general-purpose channels, and updating a state value filled in a state tag of each of the general-purpose channels in the channel map according to a preset success rate threshold;
[0007] According to a second preset time interval, obtaining a channel utilization rate of each of the general-purpose channels, and updating a weight value filled in a weight tag of each of the general-purpose channels in the channel map according to the channel utilization rate;
[0008] When one of the devices connected by Bluetooth sends a heartbeat packet, the general-purpose channel used for the next frequency hopping is selected according to the state value, the weight value and a preset algorithm and sent to the opposite device.
[0009] Optionally, the acquiring, according to the first preset time interval, the transmission success rate of each of the general-purpose channels, and updating, according to a preset success rate threshold, the state value filled in the state label of each of the general-purpose channels in the channel map comprises:
[0010] In each of the first preset time intervals, obtaining a first number corresponding to first data packets sent by using each of the general-purpose channels and a second number corresponding to second data packets received by using each of the general-purpose channels in response to the first data packets;
[0011] Acquire a ratio of the second number to the first number as the transmission success rate;
[0012] When the transmission success rate is not higher than the preset success rate threshold, updating the state label of the corresponding general-purpose channel in the channel map to an unavailable state;
[0013] When the transmission success rate is higher than the preset success rate threshold, the status label of the corresponding general-purpose channel in the channel map is updated to an available status.
[0014] Optionally, after acquiring, within each of the first preset time intervals, a first number corresponding to first data packets sent using each of the general-purpose channels and a second number corresponding to second data packets received using each of the general-purpose channels in response to the first data packets, the method further comprises:
[0015] Within the first preset time interval, when the first data packet is not sent by using the general-purpose channel, the state label of the corresponding general-purpose channel in the channel map is updated to an available state.
[0016] Optionally, the acquiring, according to the second preset time interval, the channel utilization rate of each of the general-purpose channels, and updating, according to the channel utilization rate, the weight value filled in the weight tag of each of the general-purpose channels in the channel map comprises:
[0017] According to the second preset time interval, the channel utilization rate of each of the general-purpose channels is obtained, and the weight value filled in the weight tag of the general-purpose channel in the available state in the channel map is updated according to the channel utilization rate.
[0018] Optionally, when one of the devices connected via Bluetooth sends a heartbeat packet, selecting the general-purpose channel used for the next frequency hopping according to the state value, the weight value and a preset algorithm and sending the channel to the opposite device includes:
[0019] Calculating, according to a frequency hopping algorithm, a starting screening channel of the general-purpose channel used for the next frequency hopping;
[0020] The general-purpose channel used for the next frequency hopping is determined according to the channel number of the initial screening channel.
[0021] Optionally, the calculating, according to the frequency hopping algorithm, a starting screening channel of the general-purpose channel used for the next frequency hopping comprises:
[0022] Determine a first intermediate value according to the channel number of the general-purpose channel used for current communication or the channel number obtained by previous calculation;
[0023] The first intermediate value is modulo the total number of the general-purpose channels to obtain the starting screening channel.
[0024] Optionally, the step of performing a modulo operation on the first intermediate value with respect to the total number of the general-purpose channels to obtain the starting screening channel comprises:
[0025] When the initial screening channel is in an unavailable state, returning to the step of determining a first intermediate value based on the channel number of the general-purpose channel used for current communication or the channel number calculated last time.
[0026] Optionally, determining the first intermediate value according to the channel number of the general-purpose channel used for current communication or the channel number calculated last time includes:
[0027] The first intermediate value is determined based on the sum of the channel number of the general-purpose channel used for the current communication and the frequency hopping interval; or, the first intermediate value is determined based on the sum of the starting screening channel calculated when determining the general-purpose channel used for the next frequency hopping and the frequency hopping interval.
[0028] Optionally, determining the general-purpose channel used for the next frequency hopping according to the channel number of the initial screening channel includes:
[0029] Acquire the general-purpose channel whose channel number is greater than the channel number of the starting screening channel as a channel to be screened;
[0030] The general-purpose channel whose weight tag in the to-be-screened channel satisfies a preset condition and whose state tag is in an available state is used as a general-purpose channel used in the next frequency hopping.
[0031] Optionally, acquiring the channel utilization rate of each of the general-purpose channels according to the second preset time interval, and updating the weight value filled in the weight tag of the general-purpose channel in the available state in the channel map according to the channel utilization rate includes:
[0032] In each second preset time interval, obtaining a first time at which each of the general-purpose channels transmits data;
[0033] Obtaining a ratio of the first time to the second preset time interval to obtain a corresponding channel utilization rate of the general-purpose channel;
[0034] According to the negative correlation with the channel utilization rate, the weight value filled in the weight tag of the corresponding general-purpose channel is updated.
[0035] In the technical solution provided by the present invention, within each first preset time interval, the transmission success rate of each channel is obtained and its available state is marked, and within each second preset time interval, the channel utilization rate corresponding to each channel is obtained and its weight value is updated. The available state and weight value obtained by the above method can characterize the communication capability of the channel from different angles. Therefore, when one of the devices connected by Bluetooth sends a heartbeat packet, the general-purpose channel used for the next frequency hopping can be selected based on the available state and weight value. The channel with the best communication capability can be selected, thereby improving the random hopping effect of the low-power Bluetooth channel, which is conducive to improving the anti-interference capability of the low-power Bluetooth. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a Bluetooth channel selection method according to an embodiment of the present invention;
[0037] Figure 2 A flowchart of updating a channel map status label of a Bluetooth channel selection method according to another embodiment of the present invention;
[0038] Figure 3 A flowchart of a Bluetooth channel selection method according to another embodiment of the present invention for determining a general-purpose channel to be used for the next frequency hopping;
[0039] Figure 4 A flowchart of a Bluetooth channel selection method for determining a starting screening channel according to another embodiment of the present invention;
[0040] Figure 5 A flowchart of a Bluetooth channel selection method according to another embodiment of the present invention for determining a general-purpose channel to be used for the next frequency hopping;
[0041] Figure 6 This is a flow chart of updating a channel map weight label in a Bluetooth channel selection method according to another embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The embodiment of the present invention provides a Bluetooth channel selection method, such as Figure 1 As shown, the method includes:
[0044] Step 100, constructing a channel map of general-purpose channels according to the radio frequency channel range; wherein the channel map includes at least a channel number tag, a state tag and a weight tag; wherein the channel number tag is used to identify a plurality of general-purpose channels one by one by channel number;
[0045] In some embodiments, when constructing a channel map, each RF channel is assigned a unique channel number, and a status label is used to fill in the available or unavailable status of each general-purpose channel, thereby marking the channel numbers of all general-purpose channels as available or unavailable. The weight label is used to determine the selection weight of each general-purpose channel. Generally, the general-purpose channel with a higher weight should be selected.
[0046] Step 200, obtaining the transmission success rate of each of the general-purpose channels according to a first preset time interval, and updating the state value filled in the state label of each general-purpose channel in the channel map according to a preset success rate threshold;
[0047] In some embodiments, the available state or unavailable state of each general-purpose channel is updated once at each time interval, thereby ensuring that the general-purpose channels in the available state in the channel map are in real-time with good communication quality.
[0048] Step 300: acquiring the channel utilization rate of each of the general-purpose channels according to a second preset time interval, and updating the weight value filled in the weight tag of each of the general-purpose channels in the channel map according to the channel utilization rate.
[0049] In some embodiments, the second preset time interval can be designed according to actual needs, for example, it can be 1 second. In order to balance the load of multiple general-purpose channels, it is usually necessary to select the general-purpose channels of frequency hopping according to the channel utilization rate, so the weight label can be updated according to the channel utilization rate.
[0050] Step 400, when one of the devices connected via Bluetooth sends a heartbeat packet, the general-purpose channel used for the next frequency hopping is selected according to the state value, the weight value and the preset algorithm and sent to the opposite device.
[0051] In some embodiments, each time a general-purpose channel is selected, it is selected from the general-purpose channels whose status labels in the channel map are marked as available. Therefore, it can be ensured that the selected general-purpose channels are channels with good communication quality, thereby ensuring the anti-interference capability of low-power Bluetooth communication.
[0052] In the technical solution provided by the embodiment of the present invention, within each first preset time interval, the transmission success rate of each channel is obtained and its available status is marked, and within each second preset time interval, the channel utilization rate corresponding to each channel is obtained and its weight value is updated. The available status and weight value obtained in the aforementioned manner can characterize the communication capability of the channel from different angles. Therefore, when one of the devices connected by Bluetooth sends a heartbeat packet, the general-purpose channel used for the next frequency hopping can be selected based on the available status and weight value. The channel with the best communication capability can be selected, thereby improving the random hopping effect of the low-power Bluetooth channel, which is beneficial to improving the anti-interference capability of the low-power Bluetooth. As an optional implementation method, Figure 2 As shown, in step 200, the step of obtaining the transmission success rate of each of the general-purpose channels according to the first preset time interval, and updating the state value filled in the state label of each general-purpose channel in the channel map according to the preset success rate threshold includes:
[0053] Step 210, obtaining a first number corresponding to first data packets sent by each of the general-purpose channels and a second number corresponding to second data packets received by each of the general-purpose channels in response to the first data packets within each of the first preset time intervals;
[0054] In some embodiments, within each first preset time interval, the number of first data packets sent using each general-purpose channel is counted. At the same time, since during the communication process, the data receiving party needs to reply with a response packet, i.e., a second data packet, after receiving the data, the second number of second data packets received by the data sending party can be used to determine the number of first data packets successfully sent by each general-purpose channel. In some preferred embodiments, the first preset time interval can be, for example, 1 second.
[0055] Step 220, obtaining a ratio of the second number to the first number as the transmission success rate;
[0056] In some embodiments, the first number is the number of first data packets sent by each general-purpose channel, and the second number represents the number of first data packets successfully sent by each general-purpose channel. Therefore, the ratio of the second number to the first number can be used as the transmission success rate.
[0057] Step 231, when the transmission success rate is not higher than the preset success rate threshold, updating the state label of the corresponding general-purpose channel in the channel map to an unavailable state;
[0058] Step 232: When the transmission success rate is higher than the preset success rate threshold, the state label of the corresponding general-purpose channel in the channel map is updated to an available state.
[0059] In some embodiments, the preset success rate threshold can be determined according to the demand, for example, it can be 90% or 80%. For a general transmission channel whose transmission success rate is not higher than the preset success rate threshold, it can be considered that its channel quality is poor, and for a general transmission channel whose transmission success rate is higher than the preset success rate threshold, it can be considered that its channel quality is good. Therefore, it is necessary to mark the general-purpose channel with good channel quality as available, and mark the general-purpose channel with poor channel quality as unavailable.
[0060] As an optional implementation manner, in step 210, after obtaining, within each of the first preset time intervals, a first number corresponding to first data packets sent using each of the general-purpose channels and a second number corresponding to second data packets received in response to the first data packets using each of the general-purpose channels, the method further includes:
[0061] During the first preset time interval, when the general-purpose channel is not used to send the first data packet, the state label of the corresponding general-purpose channel in the channel map is updated to an available state.
[0062] In some embodiments, for a general-purpose channel that is not used within the first preset time interval, since it is not used, it can be considered that there is no interference on the channel and its channel quality is good, so it can be marked as available.
[0063] As an optional implementation, in step 300, obtaining the channel utilization rate of each of the general-purpose channels according to the second preset time interval, and updating the weight value filled in the weight label of each of the general-purpose channels in the channel map according to the channel utilization rate includes:
[0064] According to a second preset time interval, a channel utilization rate of each of the general-purpose channels is obtained, and a weight label of the general-purpose channels in an available state in the channel map is updated according to the channel utilization rate.
[0065] In some embodiments, the weight tags of general-purpose channels in the available state are updated, while the weight tags of general-purpose channels in the unavailable state are not selected, so the weight tags of the general-purpose channels in the unavailable state are not actually meaningful. In this embodiment, only the weight tags of general-purpose channels in the available state are updated.
[0066] As an optional implementation, Figure 3 As shown, in step 400, when one of the devices connected in Bluetooth sends a heartbeat packet, selecting the general-purpose channel used for the next frequency hopping according to the state value, the weight value and the preset algorithm and sending it to the opposite device includes:
[0067] Step 410, calculating the starting screening channel of the general-purpose channel used for the next frequency hopping according to the frequency hopping algorithm;
[0068] In some embodiments, the frequency hopping algorithm can ensure that the general-purpose channel used for the next frequency hopping has a required interval with the general-purpose channel currently used by calculating the starting screening channel based on the existing frequency hopping interval and frequency hopping algorithm, thereby effectively reducing interference.
[0069] Step 420, determining a general-purpose channel to be used for the next frequency hopping according to the channel number of the initial screening channel.
[0070] In some embodiments, after the channel number of the initial screening channel is determined, the general-purpose channel selected in combination with the weight label can effectively take into account both low interference and load balancing.
[0071] As an optional implementation, Figure 4 As shown, in step 410, the calculation of the starting screening channel of the general-purpose channel used for the next frequency hopping according to the frequency hopping algorithm includes:
[0072] Step 411, determining a first intermediate value according to the channel number of the general-purpose channel used for current communication or the channel number calculated last time;
[0073] Step 412: performing a modulo operation on the first intermediate value and the total number of the general-purpose channels to obtain the starting screening channel.
[0074] In some embodiments, for example, the next communication channel Ch(n+1) can be calculated according to the algorithm Ch(n+1)=(Ch(n)+h)%m, where Ch(n) is the channel number obtained by the previous calculation, h is the frequency hopping interval, which takes a value between 5 and 16, with a default value of 7, m is the total number of general-purpose channels, and % is the remainder operator.
[0075] As an optional implementation, in step 412, performing a modulo operation on the first intermediate value with respect to the total number of the general-purpose channels to obtain the starting screening channel includes:
[0076] When the initial screening channel is in an unavailable state, returning to the step of determining the first intermediate value based on the channel number of the general-purpose channel used for current communication or the channel number and frequency hopping interval calculated last time.
[0077] In some embodiments, when the starting filtering channel is in an unavailable state, it indicates that the interference near the starting filtering channel is strong and the communication quality is low. Therefore, in this embodiment, the step of determining the first intermediate value based on the channel number and frequency hopping interval calculated last time is returned again, so that the starting filtering channel calculated again has a certain interval with the starting filtering channel calculated this time, thereby ensuring the communication quality.
[0078] As an optional implementation, in step 412, determining the first intermediate value according to the channel number of the general-purpose channel used for current communication or the channel number calculated last time includes:
[0079] The first intermediate value is determined based on the sum of the channel number of the general-purpose channel used for the current communication and the frequency hopping interval; or the first intermediate value is determined based on the sum of the starting screening channel obtained by the previous calculation and the frequency hopping interval.
[0080] In some embodiments, in the technical solutions provided in the aforementioned embodiments, after each frequency hopping is completed, at least one of the devices connected by Bluetooth will perform the channel number of the general-purpose channel used for the next frequency hopping during the communication process. During the calculation process, if the obtained starting screening channel is in an available state, the starting screening channel can be directly used to screen the channel. If the obtained starting screening channel is in an unavailable state, it is necessary to repeat the calculation until the starting screening channel in an available state is calculated. Therefore, in the current communication stage, that is, in the time interval between the completion of the frequency hopping this time and the next frequency hopping, multiple calculations may be performed. In multiple calculations, for the first calculation, the channel number of the general-purpose channel used in the current communication can be directly used to participate in the calculation to obtain the first intermediate value, so as to ensure that the calculated starting screening channel has a frequency interval that meets the requirements with the general-purpose channel used in the current communication. For the calculation after the first time, since the starting screening channel obtained by the previous calculation is in an unavailable state, it is necessary to ensure that the starting screening channel obtained by the recalculation has a frequency interval that meets the requirements with the starting screening channel obtained by the previous calculation, therefore, the starting screening channel obtained by the previous calculation is used to participate in the calculation to obtain the first intermediate value.
[0081] As an optional implementation, Figure 5 As shown, in step 420, determining the general-purpose channel used for the next frequency hopping according to the channel number of the initial screening channel includes:
[0082] Step 421, obtaining the general-purpose channel whose channel number is greater than the channel number of the starting screening channel as a channel to be screened;
[0083] Step 422: The general-purpose channel whose weight tag meets the preset condition and whose status tag is in the available state among the channels to be screened is used as the general-purpose channel used for the next frequency hopping.
[0084] In some embodiments, using a general-purpose channel whose channel number is greater than the channel number of the starting screening channel can ensure that the screened channel has a certain interval with the channel with strong interference to avoid interference. Using a general-purpose channel whose weight label meets the preset conditions can meet the load balancing requirements for each channel. In some preferred embodiments, the preset condition can be, for example, the highest weight. At the same time, for a general-purpose channel whose status label is in the available state, its transmission success rate is in a high state, indicating that the general-purpose channel has good communication quality.
[0085] As an optional implementation, Figure 6As shown, in step 300, the obtaining of the channel utilization rate of each of the general-purpose channels according to the second preset time interval, and updating the weight value filled in the weight tag of the general-purpose channel in the available state in the channel map according to the channel utilization rate includes:
[0086] Step 311, obtaining the first time at which each of the general-purpose channels transmits data within each second preset time interval;
[0087] Step 312, obtaining a ratio of the first time to the second preset time interval to obtain a corresponding channel utilization rate of the general-purpose channel;
[0088] Step 313: updating the weight value filled in the weight tag of the corresponding general-purpose channel according to the negative correlation with the channel utilization rate.
[0089] In some embodiments, within each second preset time interval, the output transmission time is counted, and then the ratio of the data transmission time to the time interval is calculated, so that the busyness of the channel, that is, the channel utilization rate, can be determined. In order to meet the load balancing of multiple channels, the busier the channel, the stronger the interference, and the lower the weight should be given. Therefore, in this embodiment, the update of the weight label should be negatively correlated with the channel utilization rate.
[0090] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be implemented by instructing related 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 processes in the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0091] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A Bluetooth channel selection method, characterized in that: The method comprises: According to the radio frequency channel range, a channel map of general-purpose channels is constructed; wherein the channel map includes at least a channel number label, a state label and a weight label; wherein the channel number label is used to identify a plurality of general-purpose channels one by one by channel number; According to a first preset time interval, obtaining a transmission success rate of each of the general-purpose channels, and updating a state value filled in a state tag of each of the general-purpose channels in the channel map according to a preset success rate threshold; According to a second preset time interval, obtaining a channel utilization rate of each of the general-purpose channels, and updating a weight value filled in a weight tag of each of the general-purpose channels in the channel map according to the channel utilization rate; When one of the devices connected by Bluetooth sends a heartbeat packet, the general-purpose channel used for the next frequency hopping is selected according to the state value, the weight value and a preset algorithm and sent to the opposite device.
2. The method according to claim 1, characterized in that The acquiring, according to the first preset time interval, the transmission success rate of each of the general-purpose channels, and updating, according to the preset success rate threshold, the state value filled in the state label of each of the general-purpose channels in the channel map comprises: In each of the first preset time intervals, obtaining a first number corresponding to first data packets sent by using each of the general-purpose channels and a second number corresponding to second data packets received by using each of the general-purpose channels in response to the first data packets; Acquire a ratio of the second number to the first number as the transmission success rate; When the transmission success rate is not higher than the preset success rate threshold, updating the state label of the corresponding general-purpose channel in the channel map to an unavailable state; When the transmission success rate is higher than the preset success rate threshold, the status label of the corresponding general-purpose channel in the channel map is updated to an available state.
3. The method according to claim 2, characterized in that After acquiring, within each of the first preset time intervals, a first number corresponding to first data packets sent using each of the general-purpose channels and a second number corresponding to second data packets received using each of the general-purpose channels in response to the first data packets, the method further includes: Within the first preset time interval, when the first data packet is not sent by using the general-purpose channel, the state label of the corresponding general-purpose channel in the channel map is updated to an available state.
4. The method according to claim 1, characterized in that: The acquiring, according to the second preset time interval, the channel utilization rate of each of the general-purpose channels, and updating, according to the channel utilization rate, the weight value filled in the weight tag of each of the general-purpose channels in the channel map comprises: According to the second preset time interval, the channel utilization rate of each of the general-purpose channels is obtained, and the weight value filled in the weight tag of the general-purpose channel in the available state in the channel map is updated according to the channel utilization rate.
5. The method according to claim 1, characterized in that: When one of the devices connected in Bluetooth sends a heartbeat packet, selecting the general-purpose channel used for the next frequency hopping according to the state value, the weight value and a preset algorithm and sending the channel to the opposite device includes: Calculating, according to a frequency hopping algorithm, a starting screening channel of the general-purpose channel used for the next frequency hopping; The general-purpose channel used for the next frequency hopping is determined according to the channel number of the initial screening channel.
6. The method according to claim 5, characterized in that The step of calculating the starting screening channel of the general-purpose channel used for the next frequency hopping according to the frequency hopping algorithm comprises: Determining a first intermediate value according to the channel number of the general-purpose channel used for current communication or the channel number obtained by a previous calculation; The first intermediate value is modulo the total number of the general-purpose channels to obtain the starting screening channel.
7. The method according to claim 6, characterized in that The step of performing a modulo operation on the first intermediate value with respect to the total number of the general-purpose channels to obtain the starting screening channel comprises: When the initial screening channel is in an unavailable state, returning to the step of determining a first intermediate value based on the channel number of the general-purpose channel used for current communication or the channel number calculated last time.
8. The method according to claim 6, characterized in that Determining the first intermediate value according to the channel number of the general-purpose channel used for the current communication or the channel number calculated last time includes: The first intermediate value is determined based on the sum of the channel number of the general-purpose channel used for the current communication and the frequency hopping interval; or the first intermediate value is determined based on the sum of the starting screening channel obtained by the previous calculation and the frequency hopping interval.
9. The method according to claim 5, characterized in that Determining the general-purpose channel used for the next frequency hopping according to the channel number of the initial screening channel includes: Acquire the general-purpose channel whose channel number is greater than the channel number of the starting screening channel as a channel to be screened; The general-purpose channel whose weight tag in the to-be-screened channel satisfies a preset condition and whose state tag is in an available state is used as a general-purpose channel used in the next frequency hopping.
10. The method according to claim 1, characterized in that The acquiring, according to the second preset time interval, the channel utilization rate of each of the general-purpose channels, and updating, according to the channel utilization rate, the weight value filled in the weight tag of the general-purpose channel in the available state in the channel map comprises: In each of the second preset time intervals, acquiring a first time at which each of the general-purpose channels transmits data; Obtaining a ratio of the first time to the second preset time interval to obtain a corresponding channel utilization rate of the general-purpose channel; According to the negative correlation with the channel utilization rate, the weight value filled in the weight tag of the corresponding general-purpose channel is updated.