Communication channel determination system
The LoRa communication channel determination system automates channel configuration through a gateway device with priority-based channel selection, addressing inefficiencies and errors in manual methods, ensuring rapid and stable communication.
Patent Information
- Application Number
- CN202410058038.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-15
- Publication Date
- 2025-07-15
AI Technical Summary
The existing LoRa communication channel configuration method is time-consuming and labor-intensive and error-prone, resulting in the equipment being unable to communicate normally, and the equipment interface protection level is low, affecting reliability.
It provides a communication channel determination system, which automatically configures channel priority through the gateway device, determines the target channel using the central channel priority principle and frequency interval, and combines the Internet of Things backend registration results and gateway transmission power adjustment to achieve fast and accurate channel configuration.
Improve the efficiency and communication effect of channel determination, ensuring fast, stable and secure communication connections of the equipment.
Smart Images

Figure CN120321782A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet of Things technologies, and particularly to a communication channel determination system. Background Art
[0002] As a wireless communication technology, LoRa (Long Range Radio) has been widely used due to its low power consumption and long propagation distance. In the prior art, the LoRa communication channel is usually configured by means of local manual dialing, manual burning of configuration files, etc. However, this method has many problems: it requires a high technical ability of on-site configuration operators, and it is easy to make configuration errors, resulting in abnormal communication of the device; the on-site channel configuration takes a long time. If the configured channel is occupied, it needs to be reconfigured, which is time-consuming and laborious; the device needs to reserve a physical interface for local channel configuration, and the waterproof and dustproof levels are relatively low, which easily affects the reliability of the device, etc. Summary of the Invention
[0003] The technical problem to be solved by the present disclosure is to overcome the defects that when the LoRa communication channel is configured by means of manual dialing, manual burning of configuration files, etc. in the prior art, there are problems such as time-consuming, laborious and easy to make mistakes, resulting in abnormal communication of the device, and to provide a communication channel determination system.
[0004] The present disclosure solves the above technical problem by the following technical solutions:
[0005] The present disclosure provides a communication channel determination system, and the communication channel determination system includes a gateway device and an Internet of Things terminal;
[0006] The gateway device is used to configure the channel priority of the first channels according to a plurality of first channels between the gateway device and the Internet of Things terminal, and determine a target channel from the first channels according to the channel priority; through the target channel, communicate with a plurality of the Internet of Things terminals corresponding to the gateway device.
[0007] Preferably, the gateway device is further used to determine, from the available first channels, the first channel with the highest channel priority as the target channel.
[0008] Preferably, the gateway device is further used to configure the channel priority according to the communication frequency points of the first channels.
[0009] Preferably, the communication frequency point of the nth first channel is:
[0010] F n = F0+(n - 1)*Δf
[0011] Where F nis the communication frequency point of the nth first channel, F0 is the starting frequency point, and Δf is the frequency interval; 1 < n ≤ M and both n and M are integers, where M is the total number of the first channels.
[0012] Preferably, the gateway device is further configured to arrange all the first channels in ascending order according to the corresponding communication frequency points, and determine a central channel, where the channel priority of the central channel is the highest;
[0013] When M is odd, one of the first channels ranked in the middle position is used as the central channel;
[0014] When M is even, two of the first channels ranked in the middle position are obtained, and one of the first channels with a smaller communication frequency point is used as the central channel.
[0015] Preferably, the gateway device is further configured to evenly divide the sorted M first channels into N channel groups; where M = N * m, m is the number of the first channels in each channel group, and both N and m are integers;
[0016] Based on the central channel, determine the channel group priorities of each channel group; the channel group priority of the central channel group where the central channel is located is the highest, and the priorities of the other channel groups are negatively correlated with the distances from the central channel group;
[0017] According to the channel group priorities of each channel group, determine the channel priorities of the first channels; the channel priorities of all the first channels in each channel group are positively correlated with the channel group priorities of the corresponding channel groups.
[0018] Preferably, the gateway device is further configured to determine that the channel group priorities of two channel groups with equal distances from the central channel group are the same, and first search for the target channel in any one of the channel groups.
[0019] Preferably, the gateway device is further configured to calculate that there are m first channels in each channel group;
[0020] where m = M / N;
[0021] Calculate the remainder r obtained by dividing the random number R by m; r is an integer;
[0022] The channel priorities of the m first channels in each channel group, from high to low, are: the rth, (r + 1)th, (r + 2)th,..., mth, 1st, 2nd,..., (r - 1)th.
[0023] Preferably, when the M first channels cannot be evenly allocated to the N channel groups, the gateway device is further configured to calculate that the quotient of M divided by N is m and the remainder is R, and R is taken as an integer;
[0024] Allocate m + R of the first channels to the central channel group, and allocate m of the first channels to each of the remaining channel groups.
[0025] Preferably, the gateway device is further configured to determine the target channel according to the channel group priority. When all the first channels in the current channel group are unavailable, switch to the next channel group to determine whether there is an available first channel until the target channel is obtained;
[0026] Among them, the channel group priority of the channel group before switching is higher than that of the channel group after switching.
[0027] Preferably, the communication channel determination system further includes an Internet of Things background;
[0028] The Internet of Things background is configured to determine the registration result of the gateway device on the Internet of Things terminal;
[0029] The gateway device is further configured to communicate with the Internet of Things terminal when the registration result indicates successful registration; and / or,
[0030] The gateway device is further configured to switch the gateway transmission power to a high transmission power when the search distance increases;
[0031] Preferably, each cell contains a number of flue ducts provided in a number of buildings, and each flue duct corresponds to a gateway device;
[0032] Among them, the gateway device in any building communicates with each Internet of Things terminal in the building through the same target channel. On the basis of conforming to the common knowledge in the art, each preferred condition can be arbitrarily combined to obtain each preferred embodiment of the present disclosure.
[0033] The positive and progressive effects of the present disclosure are as follows: By the gateway device autonomously configuring the priority of the channels according to the central channel priority allocation principle, it can enable the gateway to quickly and accurately complete the target channel configuration when communicating with the Internet of Things terminal, improve the efficiency of channel determination, and thus improve the communication effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the first module of the communication channel determination system according to Embodiment 1 of the present disclosure.
[0035] Figure 2 It is a schematic diagram of the second module of the communication channel determination system according to Embodiment 1 of the present disclosure.
[0036] Figure 3 This is a schematic diagram of the application scenario of the communication channel determination system according to Embodiment 1 of the present disclosure. Detailed implementation manners
[0037] The present disclosure will be further described below by way of embodiments, but the present disclosure is not limited to the scope of the described embodiments.
[0038] Embodiment 1
[0039] This embodiment provides a communication channel determination system, as Figure 1 shown. The communication channel determination system includes a gateway device 1 and an Internet of Things (IoT) terminal 2;
[0040] The gateway device 1 is configured to configure the channel priorities of a number of first channels between the gateway device 1 and the IoT terminal 2, and determine a target channel from the first channels according to the channel priorities; and communicate with a number of IoT terminals 2 corresponding to the gateway device 1 through the target channel.
[0041] Specifically, the gateway device includes a networking module, a LoRa (a communication technology) gateway, and a device. Among them, the networking module realizes the networking function of the device, such as a module using a cellular network like a CAT1 (a communication module) module, and communicates with the IoT (Internet of Things) background and the LoRa gateway; the LoRa gateway, as the center of LoRa communication, communicates with the networking module, the device MCU (microprocessor), and the LoRa terminal; the device, as the carrier of the entire set of solution devices, is the implementation end of the physical function and communicates with the LoRa gateway.
[0042] The device in the gateway device determines the number of the first channels and the range of frequency points. That is, after the radio frequency hardware is finalized, the number of the first channels is also determined accordingly, such as 100 first channels; the LoRa gateway configures the channel priorities of the first channels, that is, determines the priority order of the 100 channels; when it is necessary to communicate with the IoT terminal, the LoRa gateway determines a target channel from the first channels according to the configured channel priorities for communication.
[0043] In this solution, by autonomously configuring the channel priorities by the gateway device, the gateway can quickly and accurately complete the configuration of the target channel when communicating with the IoT terminal, improving the efficiency of channel determination and further improving the communication effect.
[0044] In an implementable solution, the gateway device 1 is further configured to determine the first channel with the highest channel priority among the available first channels as the target channel.
[0045] Specifically, not every one of the multiple first channels between the gateway device and the Internet of Things terminals is currently available. Some may be occupied by other gateways or there may be other unusable situations. Therefore, it is necessary to determine the first channel with the highest priority from the available first channels as the target channel.
[0046] In this solution, by determining the first channel with the highest channel priority from the available first channels as the target channel, the normal communication can be ensured, and the security and stability of communication can be improved.
[0047] In an implementable solution, the gateway device 1 is also used to configure the channel priority according to the communication frequency points of the first channels.
[0048] Specifically, the gateway device adopts the principle of preferentially allocating channels near the center frequency point, and configures the channel priorities in sequence according to the magnitudes of the communication frequency points of each first channel.
[0049] In this solution, configuring the channel priority according to the communication frequency points of the first channels can improve the stability and efficiency of communication.
[0050] In an implementable solution, the communication frequency point of the nth first channel is:
[0051] F n = F0 + (n - 1) * Δf
[0052] where F n is the communication frequency point of the nth first channel, F0 is the starting frequency point, and Δf is the frequency point interval; 1 < n ≤ M and both n and M are integers, and M is the total number of first channels.
[0053] For example, if the starting frequency point F0 is 460001273 Hz (Hertz) and the frequency point interval Δf is 500019 Hz, then the communication frequency F1 of the first first channel = 460001273 Hz + (1 - 1) * 500019 Hz = 460001273 Hz; the communication frequency F2 of the second first channel = 460001273 Hz + (2 - 1) * 500019 Hz = 460501292 Hz, and so on. The communication frequency F M of the Mth first channel = 460001273 Hz + (M - 1) * 500019 Hz.
[0054] In this solution, through the starting frequency point and the frequency point interval, the communication frequencies of multiple channels can be determined in sequence.
[0055] In an implementable solution, the gateway device 1 is also used to arrange all the first channels in sequence according to the magnitudes of the corresponding communication frequency points, and determine the center channel, and the channel priority of the center channel is the highest;
[0056] When M is odd, one of the first channels sorted in the middle position is used as the central channel;
[0057] When M is even, two of the first channels sorted in the middle position are obtained, and the first channel with a smaller communication frequency point is used as the central channel.
[0058] For example, first arrange all the first channels in order according to the size of the communication frequency points. When the total number M of the first channels is 101, the 51st first channel in the middle position is determined as the central channel; when the total number M of the first channels is 100, the 50th and 51st first channels in the middle are obtained first, and the one with a smaller communication frequency point is determined as the central channel. When configuring the channel priority, the central channel has the highest priority.
[0059] In this solution, by determining the channel with a communication frequency point near the central frequency point as the central channel and assigning it the highest priority, the communication quality can be improved.
[0060] In an implementable solution, the gateway device 1 is further configured to evenly divide the sorted M first channels into N channel groups; where M = N * m, m is the number of first channels in each channel group, and both N and m are integers;
[0061] Based on the central channel, determine the channel group priorities of each channel group; the channel group priority of the central channel group where the central channel is located is the highest, and the priorities of the other channel groups are negatively correlated with the distance from the central channel group;
[0062] According to the channel group priorities of each channel group, determine the channel priorities of the first channels; the channel priorities of all the first channels in each channel group are positively correlated with the channel group priority of the corresponding channel group.
[0063] The number N of channel groups can be set accordingly according to the total number M of channels.
[0064] Specifically, taking the gateway device searching for 100 first channels as an example, they can be arranged in order according to the communication frequency point size and then evenly divided into 10 groups, with 10 channels in each group. First determine the channel group priorities of the 1st to 10th channel groups, and then determine the channel priorities in each channel group. If the 50th first channel is the central channel, then the 5th channel group where this central channel is located is the central channel group, and the target channel is preferentially searched in the central channel group. The channel group priorities of the other channel groups are negatively correlated with the distance from the central channel group.
[0065] The channel priorities of all the channels in each channel group are positively correlated with the channel group priority of the corresponding channel group. That is, for a channel group with a higher channel group priority, the priorities of all the channels it contains are also higher.
[0066] In this solution, by grouping all the first channels, first determining the channel group priority, and then further determining the channel priority, the efficiency of configuring the channel priority can be improved, thereby improving the communication speed.
[0067] In an implementable solution, the gateway device 1 is further configured to determine that the channel group priorities of two channel groups at equal distances from the central channel group are the same, and first search for a target channel from any one of the channel groups.
[0068] For example, if the 5th channel group is the central channel group with the highest priority, when there are no available channels in the 5th channel group, the target channel can be searched for from the 4th or 6th channel group next.
[0069] In this solution, by determining that the channel group priorities of two channel groups at equal distances from the central channel group are the same, and first searching for a target channel from any one of the channel groups, the efficiency of searching for the target channel can be further improved.
[0070] In an implementable solution, the gateway device 1 is further configured to calculate that there are m first channels in each channel group;
[0071] where m = M / N;
[0072] Calculate the remainder r obtained by dividing the random number R by m; r is an integer;
[0073] The channel priorities of the m first channels in each channel group, from high to low, are: the rth, (r + 1)th, (r + 2)th,..., mth, 1st, 2nd,..., (r - 1)th.
[0074] Specifically, taking 100 channels divided into 10 groups as an example, there are 10 channels in each channel group. In the 5th channel group with the highest priority, dividing the random number 26 by 10 gives a remainder of 6. Then the 6th channel in the 5th channel group has the highest priority. The priorities of all channels in the 5th channel group, from high to low, are: the 6th, 7th, 8th, 9th, 10th, 1st, 2nd, 3rd, 4th, 5th channels, that is, the 10 channels with higher priorities among all channels are the 46th, 47th, 48th, 49th, 50th, 41st, 42nd, 43rd, 44th, 45th channels in sequence.
[0075] In this solution, by determining the priorities of each channel in the channel group by means of a random number, the efficiency of channel priority configuration can be improved.
[0076] In an implementable solution, when the M first channels cannot be evenly divided into N channel groups, the gateway device 1 is further configured to calculate that the quotient of M divided by N is m and the remainder is R, and R is an integer;
[0077] Allocate m + R first channels in the central channel group, and allocate m first channels in each of the remaining channel groups.
[0078] Specifically, taking the example of dividing 101 channels into 10 groups, 11 channels need to be allocated in the central channel group, and 10 channels are allocated in each of the other channel groups. The channels in the 1st to 10th channel groups are the 1st to 10th, 11th to 20th, 21st to 30th, 31st to 40th, 41st to 51st, 52nd to 61st, 62nd to 71st, 72nd to 81st, 82nd to 91st, and 92nd to 101st channels respectively. Among them, the central channel group, that is, the 5th channel group, has 11 channels from 41st to 51st.
[0079] In this solution, when the number of channels cannot be evenly divided, allocating more channels in the central channel group can ensure the rationality of channel grouping.
[0080] In an implementable solution, the gateway device 1 is further configured to determine a target channel according to the channel group priority. When all the first channels in the current channel group are unavailable, switch to the next channel group to determine whether there is an available first channel until the target channel is obtained;
[0081] Among them, the channel group priority of the channel group before switching is higher than that of the channel group after switching.
[0082] Specifically, taking the above example of dividing 101 channels into 10 groups, first search for available channels in the 5th channel group. When there are no available channels in the 5th channel group, switch to the 6th or 4th channel group to continue the search, and so on. According to the high and low channel group priorities, search for available channels in each channel group in turn until the target channel is determined.
[0083] In this solution, by switching to different channel groups to search for available channels in turn according to the high and low channel group priorities, the efficiency of determining the target channel can be improved.
[0084] In an implementable solution, as Figure 2 shown, the communication channel determination system further includes an Internet of Things background 3;
[0085] The Internet of Things background 3 is configured to determine the registration result of the gateway device 1 on the Internet of Things terminal 2;
[0086] The gateway device 1 is further configured to communicate with the Internet of Things terminal when the registration result indicates successful registration.
[0087] Specifically, for all devices sold upon leaving the factory, their serial numbers SN (serial numbers) and the MAC (an address) addresses of the networking modules are synchronously entered into the database of the IoT backend (i.e., the Internet of Things platform) through the MES (a system) system during the whole-unit assembly production; the networking modules successfully connect to the IoT backend and can conduct business data communication; when the operator opens the handheld terminal application and scans the QR code information of the serial number SN on the device, it jumps to the device addition interface; after the operator supplements the Location-2 (address data) data (province / city / district - developer - community - building - unit - household number - total number of users, etc.) of the device soft coding information SoftCodeInf, and after confirmation, clicks the button to submit the data; the handheld terminal application uses the above-mentioned device soft coding information SoftCodeInf and sends it through the network, such as MQTT (Message Queuing Telemetry Transport Protocol) / HTTP (HyperText Transfer Protocol) / HTTPS (HyperText Transfer Protocol Secure), etc., to the IoT backend. The IoT backend parses the specific Location-2 data in the submitted soft coding information data SoftCodeInf and stores it in the database, and pushes the registration result (registration successful or registration failed) to the handheld terminal application. When the registration of the gateway device is successful, it performs priority configuration, determines the target channel according to the priority, and uses this channel to communicate with the terminal.
[0088] In this solution, by analyzing and sending the registration result through the Internet of Things platform, the configuration and determination of the communication channel can be remotely assisted.
[0089] In an implementable solution, the gateway device 1 is also used to switch the gateway transmission power to the high transmission power when the search distance increases.
[0090] In this solution, when the search distance of the LoRa gateway increases, by switching the gateway transmission power to the high transmission power, interference can be avoided and the stability of channel search can be ensured.
[0091] In an implementable solution, each community contains a number of flue ducts set in several buildings, and each flue duct corresponds to a gateway device;
[0092] Among them, the gateway device in any building communicates with each Internet of Things terminal in the building through the same target channel.
[0093] Specifically, there are several households in each building, and the range hoods of all households correspond to the same flue duct in this building. Therefore, the range hoods of all households in this building share a gateway. After the Internet of Things backend determines and distributes the target channel for this gateway, this gateway communicates with all Internet of Things terminals in the building through the target channel.
[0094] In this solution, the gateway communicates with all corresponding terminals through the same channel, which can improve the utilization rate of the channel and the communication efficiency. The following uses a specific implementation to illustrate the control principle of the communication channel determination system provided in this embodiment.
[0095] 1. This system consists of a handheld terminal applet / APP (application software), an IoT background, a networking module, a LoRa gateway, and devices.
[0096] 2. The handheld terminal applet / APP is for authorized operators to use.
[0097] 3. The networking module realizes the networking function of the device. For example, modules using cellular networks such as CAT1 (a communication module) communicate with the IoT background and the LoRa gateway.
[0098] 4. The LoRa gateway, as the center of LoRa communication, communicates with the networking module, the device MCU, and the LoRa terminal.
[0099] 5. The device, as the carrier of the entire set of solution devices and the implementation end of physical functions, communicates with the LoRa gateway.
[0100] 6. The IoT background serves as the center for data distribution and processing. The LoRa gateway communicates with it through the networking module.
[0101] 7. For all devices sold out of the factory, their serial numbers SN (serial numbers) and the MAC (an address) addresses of the networking modules are synchronously entered into the IoT background database through the MES (a system) system during the whole machine assembly production.
[0102] 8. Power on the device equipped with the LoRa gateway normally, and the LoRa gateway and the networking module are also powered on and working properly. At the same time, there may be many devices with the same functions around the current device.
[0103] 9. The networking module successfully connects to the IoT background and can perform business data communication.
[0104] 10. The operator opens the handheld terminal application, scans the QR code information of the serial number SN on the device, and then jumps to the device addition interface.
[0105] 11. After the operator supplements the Location-2 data (province / city / district - developer - community - building - unit - household number - total number of users, etc.) of the device soft coding information SoftCodeInf and confirms it is correct, clicks the button to submit the data.
[0106] 12. The handheld terminal application uses the device soft coding information SoftCodeInf in step 11 and sends it via a network, such as MQTT / HTTP / HTTPS, etc., to the IoT background.
[0107] 13. The IoT background parses the specific Location-2 data in the submitted soft coding information data SoftCodeInf and stores it in the database.
[0108] 14. Meanwhile, the IoT background pushes the registration result (registration success or failure) to the handheld terminal application.
[0109] 15. The handheld terminal application displays the analysis result pushed by the IoT background to the operating user, indicating registration success or failure.
[0110] 16. Read the soft coding SoftCodeInf parsed in step 13 from the database and send it via a network (MQTT / HTTP / HTTPS, etc.) to the networking module.
[0111] 17. The networking module parses the device soft coding information SoftCodeInf data and stores the data (such as storing it in the file system to media such as Flash / EEPROM).
[0112] 18. Meanwhile, the networking module sends the field "Start LoRa Channel Retrieval Algorithm" to the LoRa gateway via the serial port UART.
[0113] 19. The LoRa gateway parses the field "Start LoRa Channel Retrieval Algorithm" in the serial port data and stores the LoRa channels in the storage medium.
[0114] 20. The LoRa gateway increases the transmission power (for the purpose of expanding the search range) to α dBm (a power unit). The transmission power can be selected as high or low according to its own hardware capabilities, α ≥ 30 dBm, and starts the LoRa gateway channel retrieval algorithm. The specific judgment and processing logic are as follows:
[0115] (1) All channel information for communication between the LoRa gateway and the LoRa terminal is clear, that is, the communication channel (including three groups of data: communication frequency point Frq, spreading factor SF, and bandwidth BW) information has been mutually recognized and determined in the codes of both parties.
[0116] (2) The parameter information involved in the intelligent channel retrieval algorithm includes frequency point FreqPoint (470 MHz - 510 MHz), channel CommChannel, start frequency point StartFreqPoint, center frequency point CenterFreqPoint, channel sequence CommChannelSeq, frequency point interval FreqPointInterval, and channel group CommChannelGroup;
[0117] (3) Among them, the corresponding relationship between the LoRa communication frequency point and the channel is as follows:
[0118] FreqPoint = StartFreqPoint + (CommChannelSeq - 1) * (FreqPointInterval + δ)
[0119] The value range of the parameters is as follows:
[0120] FreqPoint ∈ [470 MHz, 510 MHz], FreqPointInterval ∈ [250 KHz, 1024 KHz],
[0121] StartFreqPoint ∈ [470 MHz, 510 MHz];
[0122] Among them, δ is a constant factor.
[0123] (4) According to the above formula, a one-to-one correspondence between the channel CommChannel and the frequency point FreqPoint can be created, and the LoRa communication follows the principle of preferentially allocating channels near the center frequency point;
[0124] (5) Among them, taking the total number of channels as 2Numb as an example, that is, the number of channels available for the LoRa gateway and the terminal is 2Numb, and the value range of the channel is:
[0125] CommChannelSeq ∈ [1, 2Numb]
[0126] (6) Divide the 2Numb channels into β channel groups on average, that is, CommChannelGroup = β, and the number of channels in each group is 2Numb / β. Taking the number of channels 2Numb = 100 and the number of groups β = 10 as an example, the specific logic is as follows:
[0127] ① Divide the 100 channels into 10 groups, and the number of channels in each group is 10 (2Numb / β). That is, the channel sequences of the 1st group, 2nd group, 3rd group... 10th group are:
[0128] CommChannelSeq1 ∈ [1, 10], CommChannelSeq2 ∈ [11, 20],... CommChannelSeq10 ∈ [91, 100];
[0129] ② According to the principle of preferentially allocating channels near the center frequency point, the allocation sequence of the channel group is as follows:
[0130] CommChannelSeq5(β / 2), CommChannelSeq6(β / 2 + 1), CommChannelSeq4(β / 2 - 1), CommChannelSeq7(β / 2 + 2), CommChannelSeq3(β / 2 - 2), CommChannelSeq8(β / 2 + 3), CommChannelSeq2(β / 2 - 3), CommChannelSeq9(β / 2 + 4), CommChannelSeq1(β / 2 - 4), CommChannelSeq10(β / 2 + 5);
[0131] ③ The channels in the channel group are arranged in ascending order, and the selection algorithm logic of the channels in the group is as follows:
[0132] a. After the LoRa gateway is powered on, it preferentially retrieves the specific LoRa channels according to the channel group sorting in step 20-(6)-②, that is, selects CommChannelSeq5(β / 2);
[0133] b. Start scanning the channels in CommChannelSeq5(β / 2), and use the remainder of CommChannel = Random(γ) % (2Numb / β) as the starting channel, and then increment and screen from the beginning in turn;
[0134] c. If the currently selected is the 5th group (CommChannelSeq5) grouping, CommChannel = Random(γ) % (10) = 6, that is, start retrieving from the 6th channel of the 5th grouping, and the retrieval priority sequence is "46, 47, 48, 49, 50, 41, 42, 43, 44, 45";
[0135] d. First step, the LoRa gateway listens according to the 46th channel selected in the previous step, and sends "Broadcast Channel Pre-selection Synchronization Channel" to the air interface;
[0136] e. Within the specified time interval of δ seconds, if there are surrounding devices using this 46th channel, the gateway replies with the ACK (a kind of instruction) instruction of the channel pre-selection synchronization channel in step d;
[0137] f. If the LoRa gateway receives the ACK selection command replied by the device gateway in step e, increment (CommChannel = CommChannel + offset) to the next channel 47 and repeat step d to listen whether the channel is already occupied;
[0138] g. If the LoRa gateway does not receive the reply of the "reply beacon synchronization ACK instruction" message within the specified time interval δ seconds, it is considered that the current channel is not occupied, and directly select this channel;
[0139] h. Select the current channel CommChannel as the service channel and store it in the storage media Flash (a storage medium), EEPROM (a storage medium), etc. of the LoRa gateway;
[0140] i. Restore the transmission power of the LoRa gateway to 20 dBm;
[0141] j. Use CommChannel for service communication;
[0142] Figure 3 Determine the device deployment architecture diagram of the system in a specific application scenario of the communication channel.
[0143] Figure 3 Among them, 41, 42, and 43 are wind turbines, 44, 45, and 46 are the corresponding CAT1 modules of the wind turbines, 7 is the cloud server, 8 is the mobile application or applet, 51 is the outdoor wind turbine CAT1 module, 52 is the MCU of the outdoor wind turbine power supply board, and 53 is the outdoor DC auxiliary wind turbine. 61 is the CAT1 module of the household indoor range hood, 62 is the power supply board of the range hood, 63 is the intelligent check valve of the range hood, 10 is the DC fan of the range hood, and 91, 92, 93, 94, 95, 96, 97, 98, 99, 910 are serial ports.
[0144] The communication channel determination system provided in this embodiment searches for channels through the gateway device and autonomously configures the channel priority according to the principle of central channel priority allocation, which can enable the Internet of Things terminal to quickly and accurately complete the target channel configuration during communication, improve the efficiency of channel determination, and thus improve the communication effect.
[0145] Although the specific implementation manners of the present disclosure have been described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Without departing from the principles and essences of the present disclosure, those skilled in the art can make various changes or modifications to these implementation manners, but these changes and modifications all fall within the protection scope of the present disclosure.
Claims
1. A communication channel determination system, characterized in that, The communication channel determination system includes a gateway device and Internet of Things terminals; The gateway device is configured to configure the channel priorities of the first channels according to a plurality of first channels between the gateway device and the Internet of Things terminals, and determine a target channel from the first channels according to the channel priorities; and communicate with a plurality of the Internet of Things terminals corresponding to the gateway device through the target channel.
2. The communication channel determination system according to claim 1, wherein The gateway device is further configured to determine the first channel with the highest channel priority among the available first channels as the target channel.
3. The communication channel determination system according to claim 2, wherein, The gateway device is further configured to configure the channel priorities according to the communication frequencies of the first channels.
4. The communication channel determination system according to claim 3, wherein The communication frequency of the nth first channel is: F n = F0 + (n - 1) * Δf Among them, F n is the communication frequency point of the nth first channel, F0 is the starting frequency point, and Δf is the frequency point interval; 1 < n ≤ M and both n and M are integers, and M is the total number of the first channels.
5. The communication channel determination system according to claim 4, wherein The gateway device is further configured to arrange all the first channels in ascending order of the corresponding communication frequencies, and determine a center channel, and the center channel has the highest channel priority; When M is odd, one of the first channels sorted in the middle position is used as the center channel; When M is even, two of the first channels sorted in the middle position are obtained, and the first channel with the smaller communication frequency is used as the center channel.
6. The communication channel determination system according to claim 5, characterized in that, The gateway device is further configured to evenly divide the sorted M first channels into N channel groups; where M = N * m, m is the number of the first channels in each channel group, and both N and m are integers; Based on the center channel, determine the channel group priorities of the respective channel groups; the channel group where the center channel is located has the highest channel group priority, and the priorities of the other respective channel groups are negatively correlated with the distances from the center channel group; According to the channel group priorities of the respective channel groups, determine the channel priorities of the first channels; the channel priorities of all the first channels in each channel group are positively correlated with the channel group priorities of the corresponding channel groups.
7. The communication channel determination system according to claim 6, wherein The gateway device is further configured to determine that the channel group priorities of two channel groups with equal distances from the center channel group are the same, and first search for the target channel in any one of the channel groups.
8. The communication channel determination system according to claim 7, wherein The gateway device is further configured to calculate that there are m first channels in each channel group; Where m = M / N; Calculate the remainder r obtained by dividing the random number R by m; r is an integer; The channel priorities of the m first channels in each channel group, from high to low, are: the rth, r + 1th, r + 2th,..., mth, 1st, 2nd,..., r - 1th.
9. The communication channel determination system according to claim 8, characterized in that, The gateway device is further configured to, when the M first channels cannot be evenly divided into N channel groups, calculate that the quotient of M divided by N is m and the remainder is R, and R is an integer; Allocate m + R first channels in the center channel group, and allocate m first channels in each of the remaining channel groups.
10. The communication channel determination system according to claim 9, wherein, The gateway device is further configured to determine the target channel according to the channel group priorities. When all the first channels in the current channel group are unavailable, switch to the next channel group to determine whether there are available first channels until the target channel is obtained; Among them, the channel group priority of the channel group before switching is higher than that of the channel group after switching.
11. The communication channel determination system according to claim 1, characterized in that, The communication channel determination system further includes an Internet of Things background; The Internet of Things background is used to determine the registration result of the gateway device on the Internet of Things terminal; The gateway device is further configured to communicate with the Internet of Things terminal when the registration result indicates successful registration; And / or, The gateway device is further configured to switch the gateway transmission power to a high transmission power when the search distance increases.
12. The communication channel determination system according to claim 1, wherein Each of the cells contains a number of flue ducts provided in a number of buildings, and each of the flue ducts corresponds to one of the gateway devices; Among them, the gateway device in any one of the buildings communicates with each of the Internet of Things terminals in the building through the same target channel.