Communication rate determination method, communication method and system

By testing the farthest pull-away floor between the LORA gateway and the LORA terminal under different communication rate modes, and determining the target communication rate mode based on the maximum offline floor, the problem of the communication rate of the LORA terminal in the prior art cannot be adjusted adaptively, and communication adaptability and efficiency are improved.

CN120034912APending Publication Date: 2025-05-23NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510213569.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, the communication rate of the LORA terminal cannot be adaptively adjusted according to the specific state, resulting in a long communication delay between indoor and outdoor equipment, and weak adaptability, which is prone to configuration errors, affecting the reliability of the equipment.

Method used

By testing the farthest pull-away floor between the LORA gateway and the LORA terminal under different communication rate modes, and determining the target communication rate mode based on the maximum offline floor, so that it is less than or equal to the farthest pull-away floor, thereby optimizing the communication rate.

Benefits of technology

It improves the communication adaptability between the LORA gateway and the LORA terminal, shortens the communication delay, enhances the system's adaptability, and improves the efficiency and reliability of wireless communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034912A_ABST
    Figure CN120034912A_ABST
Patent Text Reader

Abstract

The invention provides a communication rate determination method, a communication method and a communication system, and the determination method comprises the steps: carrying out the testing in different communication rate modes, and obtaining the farthest pull distance floor of an LORA gateway and an LORA terminal; controlling the LORA gateway to obtain the state of the LORA terminal of each floor in the building, and determining the maximum offline floor; and determining a target communication rate mode of the LORA gateway and the LORA terminal according to the farthest pull distance floor and the maximum offline floor, so that the maximum offline floor in the building is smaller than or equal to the farthest pull distance floor. According to the method and the device, the maximum pull distance floors of the LORA gateway and the LORA terminal in different communication rate modes are obtained through testing, so that the LORA gateway can determine the optimal communication rate mode according to the online and offline states of the LORA terminal of each floor in the current building, the mode with the high communication rate is preferentially tried, the communication efficiency is improved while the communication effect is ensured, and the communication efficiency is improved. And the wireless communication efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to a communication rate determination method, a communication method and a system. Background Art

[0002] As a wireless communication technology, LORA (Long Range Radio) is widely used due to its low power consumption and long transmission distance. In the existing technology, service technicians usually visit the site to check the status of the LORA terminal. However, this method has many problems: it fails to adaptively adjust the most matching communication rate mode for the specific power-off floor of the LORA terminal, resulting in a long communication delay between indoor and outdoor devices and failing to maximize the communication rate; the weak adaptive ability requires high technical capabilities of the on-site configuration operators, and it is easy to have configuration errors, resulting in the inability of the device to communicate normally; the on-site channel configuration takes a long time, and 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 low, which easily affects the reliability of the device; it is easy to configure the same channel with nearby devices and cause interference, etc. Summary of the invention

[0003] The technical problem to be solved by the present disclosure is to overcome the defect that the wireless communication system in the prior art fails to determine the corresponding communication rate according to the status of each LORA terminal, resulting in poor adaptability of the communication rate between the LORA gateway and the LORA terminal, and to provide a communication rate determination method, communication method and system.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] The present disclosure provides a method for determining a communication rate, the method being applied to a wireless communication system of a building, the wireless communication system comprising a LORA gateway and LORA terminals on each floor;

[0006] The determination method comprises:

[0007] Under different communication rate modes, the farthest distance between the LoRa gateway and the LoRa terminal is tested;

[0008] Among them, the farthest pull-distance floor is used to characterize the maximum interval floor on which the LoRa gateway and the LoRa terminal can maintain normal communication, and the farthest pull-distance floor is inversely proportional to the communication rate;

[0009] Control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building, and determine the maximum offline floor;

[0010] Among them, the maximum offline floor is used to represent the number of floors with the most consecutive offline floors among the LORA terminals in the offline state;

[0011] According to the farthest pull-away floor and the maximum offline floor, the target communication rate mode of the LoRa gateway and the LoRa terminal is determined so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

[0012] Preferably, the step of testing and obtaining the farthest distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes includes:

[0013] When all the LORA terminals are in an idle state, controlling all the LORA terminals to enter the same communication rate mode;

[0014] Control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy;

[0015] According to the routing table, control the LORA gateway to communicate with the LORA terminals on each floor;

[0016] According to the communication status between the LoRa gateway and each of the LoRa terminals, the farthest pull-away floor is obtained.

[0017] Preferably, the step of obtaining the farthest pull-away floor according to the communication status between the LoRa gateway and each of the LoRa terminals further includes:

[0018] Switch the communication rate mode, and repeat the step of controlling all the LORA terminals to enter the same communication rate mode until the farthest pull-distance floor test under each communication rate mode is completed.

[0019] Preferably, the communication rate mode includes a high speed mode, a medium speed mode and a low speed mode;

[0020] The farthest floor corresponding to the high-speed mode is the first floor, the farthest floor corresponding to the medium-speed mode is the second floor, the farthest floor corresponding to the low-speed mode is the third floor, the first floor is smaller than the second floor, and the second floor is smaller than the third floor;

[0021] The step of determining the target communication rate mode of the LORA terminal according to the farthest pull-away floor and the maximum offline floor so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor comprises:

[0022] When the maximum offline floor is less than or equal to the first distance floor, determining the target communication rate mode of the LORA terminal to be the high-speed mode;

[0023] When the maximum offline floor is greater than the first distance floor and less than or equal to the second distance floor, the target communication rate mode of the LORA terminal is determined to be the medium speed mode;

[0024] When the maximum offline floor is greater than the second distance floor and less than or equal to the third distance floor, the target communication rate mode of the LORA terminal is determined to be the low speed mode.

[0025] The present disclosure also provides a communication method, which is applied to a wireless communication system of a building, wherein the wireless communication system includes a LORA gateway and a LORA terminal on each floor;

[0026] The communication method comprises:

[0027] Based on the above-mentioned method for determining the communication rate, determine the target communication rate mode of the LoRa gateway and the LoRa terminal;

[0028] According to the target communication rate mode, control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy;

[0029] Control the LoRa gateway to communicate with the LoRa terminal according to the routing table.

[0030] Preferably, the step of controlling the LORA gateway to create a routing table for the building according to a preset routing table creation strategy according to the target communication rate mode includes:

[0031] Control the LoRa gateway to receive the LoRa terminal whitelist of the building, wherein the LoRa terminal whitelist includes all the LoRa terminals in the building and the floor information corresponding to each of the LoRa terminals;

[0032] Control the LoRa gateway to determine a number of first terminals directly connected to the LoRa gateway from all the LoRa terminals in the building according to the LoRa terminal whitelist;

[0033] Wherein, the number of the first terminals is inversely proportional to the communication rate;

[0034] Control the LORA gateway to determine a primary route from the plurality of the first terminals;

[0035] Controlling the primary router to determine a plurality of second terminals directly connected to the primary router from the LoRa terminals other than the first terminal according to the LoRa terminal whitelist;

[0036] If there are no other LoRa terminals in the LoRa terminal whitelist except the first terminal and the second terminal, it is determined that the routing table is created;

[0037] If there are other LoRa terminals in addition to the first terminal and the second terminal in the LoRa terminal whitelist, each level of routing is controlled to determine the next level of routing from a number of directly connected LoRa terminals, and the next level of routing is controlled to determine the directly connected LoRa terminals, until all LoRa terminals of the building are directly connected to the LoRa gateway or indirectly connected through routing to complete the creation of the routing table;

[0038] Among them, the number of the LORA terminals directly connected to each level of routing is inversely proportional to the communication rate.

[0039] Preferably, the communication rate mode includes at least one of a high-speed mode, a medium-speed mode and a low-speed mode;

[0040] In the low-speed mode, the LoRa gateway is directly connected to all the LoRa terminals.

[0041] Preferably, the wireless communication system further includes an Internet of Things background;

[0042] The step of determining the target communication rate mode between the LoRa gateway and the LoRa terminal also includes:

[0043] Control the LORA gateway to send the communication rate mode to the Internet of Things background;

[0044] Control the Internet of Things background to display the communication rate mode.

[0045] The present disclosure also provides a communication rate determination system, the determination system is applied to a wireless communication system of a building, the wireless communication system includes a LORA gateway and a LORA terminal on each floor;

[0046] The determination system comprises:

[0047] A test module is used to test and obtain the farthest distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes;

[0048] Among them, the farthest pull-distance floor is used to characterize the maximum interval floor on which the LoRa gateway and the LoRa terminal can maintain normal communication, and the farthest pull-distance floor is inversely proportional to the communication rate;

[0049] A status acquisition module is used to control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building and determine the maximum offline floor;

[0050] The maximum offline floor is used to represent the number of floors with the most consecutive offline floors among the LORA terminals in the offline state;

[0051] The first mode determination module is used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal according to the farthest pull-away floor and the maximum offline floor, so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

[0052] Preferably, the test module includes:

[0053] A mode control unit, used to control all the LoRa terminals to enter the same communication rate mode when all the LoRa terminals are in an idle state;

[0054] A routing table creation unit, used to control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy;

[0055] A communication control unit, used to control the LoRa gateway to communicate with the LoRa terminals on each floor according to the routing table;

[0056] The pull distance determination unit is used to obtain the farthest pull distance floor according to the communication status between the LoRa gateway and each of the LoRa terminals.

[0057] Preferably, the pull distance determination unit is also used to switch the communication rate mode, and repeatedly execute the step of controlling all the LORA terminals to enter the same communication rate mode until the farthest pull distance floor test under each communication rate mode is completed.

[0058] Preferably, the communication rate mode includes a high speed mode, a medium speed mode and a low speed mode;

[0059] The farthest floor corresponding to the high-speed mode is the first floor, the farthest floor corresponding to the medium-speed mode is the second floor, the farthest floor corresponding to the low-speed mode is the third floor, the first floor is smaller than the second floor, and the second floor is smaller than the third floor;

[0060] The first mode determination module includes:

[0061] A first determining unit is used to determine that the target communication rate mode of the LORA terminal is the high-speed mode when the maximum offline floor is less than or equal to the first pull-distance floor;

[0062] A second determining unit is used to determine that the target communication rate mode of the LORA terminal is the medium speed mode when the maximum offline floor is greater than the first pull-distance floor and less than or equal to the second pull-distance floor;

[0063] The third determining unit is used to determine that the target communication rate mode of the LORA terminal is the low speed mode when the maximum offline floor is greater than the second pull-distance floor and less than or equal to the third pull-distance floor.

[0064] The present disclosure also provides a communication system, which is applied to a wireless communication system of a building, and the wireless communication system includes a LORA gateway and a LORA terminal on each floor;

[0065] The communication system comprises:

[0066] A second mode determination module is used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal based on the above-mentioned determination method;

[0067] A routing table creation module, used to control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy according to the target communication rate mode;

[0068] The communication module is used to control the LoRa gateway to communicate with the LoRa terminal according to the routing table.

[0069] Preferably, the routing table creation module includes:

[0070] A whitelist acquisition unit is used to control the LoRa gateway to receive the LoRa terminal whitelist of the building, wherein the LoRa terminal whitelist includes all the LoRa terminals in the building and the floor information corresponding to each of the LoRa terminals;

[0071] A first terminal determination unit is used to control the LoRa gateway to determine a number of first terminals directly connected to the LoRa gateway from all the LoRa terminals in the building according to the LoRa terminal whitelist;

[0072] Wherein, the number of the first terminals is inversely proportional to the communication rate;

[0073] A primary route determination unit, used to control the LoRa gateway to determine a primary route from a plurality of the first terminals;

[0074] A second terminal determination unit is used to control the first-level router to determine a number of second terminals directly connected to the first-level router from the LoRa terminals other than the first terminal according to the LoRa terminal whitelist;

[0075] A judging unit, used to judge whether there are other LoRa terminals in the LoRa terminal whitelist except the first terminal and the second terminal;

[0076] If not, calling the first creation unit to determine that the routing table is created;

[0077] If yes, the second creation unit is called to control each level of routing to determine the next level of routing from a number of directly connected LoRa terminals, and control the next level of routing to determine the directly connected LoRa terminals, until all LoRa terminals of the building are directly connected to the LoRa gateway or indirectly connected through routing to complete the creation of the routing table;

[0078] Among them, the number of the LORA terminals directly connected to each level of routing is inversely proportional to the communication rate.

[0079] Preferably, the communication rate mode includes at least one of a high-speed mode, a medium-speed mode and a low-speed mode;

[0080] In the low-speed mode, the LoRa gateway is directly connected to all the LoRa terminals.

[0081] Preferably, the wireless communication system further includes an Internet of Things background;

[0082] The communication system further comprises:

[0083] A sending module is used to control the LORA gateway to send the communication rate mode to the Internet of Things background;

[0084] The display module is used to control the Internet of Things background to display the communication rate mode.

[0085] On the basis of conforming to the common sense in the art, various preferred conditions can be arbitrarily combined to obtain various preferred embodiments of the present disclosure.

[0086] The positive progressive effect of the present disclosure is that the maximum distance between the LORA gateway and the LORA terminal under different communication rate modes is obtained through testing, so that the LORA gateway can determine the optimal communication rate mode according to the online and offline status of the LORA terminals on each floor of the current building, thereby improving the efficiency of wireless communication while ensuring the communication effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] Figure 1This is a flow chart of a method for determining a communication rate according to Embodiment 1 of the present disclosure.

[0088] Figure 2 This is the first flow chart of the communication method of Embodiment 2 of the present disclosure.

[0089] Figure 3 This is a second flow chart of the communication method of Embodiment 2 of the present disclosure.

[0090] Figure 4 This is a topological diagram of the routing table in the high-speed mode of the present invention.

[0091] Figure 5 This is a topology diagram of the routing table in the low-speed mode of the present invention.

[0092] Figure 6 This is a topological diagram of the routing table in the medium-speed mode disclosed in the present invention.

[0093] Figure 7 This is a schematic diagram of an application scenario of the communication method of Embodiment 2 of the present disclosure.

[0094] Figure 8 This is a module diagram of a system for determining a communication rate according to Embodiment 3 of the present disclosure.

[0095] Fig. 9 This is a module diagram of the communication system of Example 4 of the present disclosure. DETAILED DESCRIPTION

[0096] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0097] Example 1

[0098] This embodiment provides a method for determining a communication rate, which is applied to a wireless communication system of a building, wherein the wireless communication system includes a LORA gateway and LORA terminals on each floor;

[0099] like Figure 1 As shown, the determination method includes the following steps:

[0100] S1. Under different communication rate modes, test and obtain the farthest distance floor between LoRa gateway and LoRa terminal;

[0101] Among them, the farthest pull-distance floor is used to represent the maximum interval floor at which the LoRa gateway and the LoRa terminal can maintain normal communication. The farthest pull-distance floor is inversely proportional to the communication rate.

[0102] Specifically, the gateway device of the wireless communication system includes a networking module, a LORA gateway and a device. Among them, the networking module realizes the networking function of the device, such as the CAT1 (a communication module) module and other modules using cellular networks, which communicate data with the IoT (Internet of Things) background and the LORA gateway; the LORA gateway, as the hub of LORA communication, communicates data with the networking module, the device MCU (microprocessor) and the LORA terminal; the device, as the carrier of the entire solution equipment, is the implementation end of the physical function and communicates data with the LORA gateway.

[0103] The communication rate mode may include high speed mode, medium speed mode, low speed mode, etc. Step S1 tests the distance pulling capability between the LoRa gateway and the LoRa terminal under different communication rate modes, that is, how many floors can be continuously penetrated to maintain normal data communication.

[0104] S2, control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building, and determine the maximum offline floor;

[0105] Among them, the maximum offline floor is used to represent the number of consecutive offline floors among the LORA terminals in the offline state.

[0106] In step S2, the LoRa gateway counts the online LoRa terminals, offline LoRa terminals and the corresponding floor distribution in real time, and determines the number of floors with the most consecutive offline floors, that is, the maximum offline floor.

[0107] S3. According to the farthest pull-away floor and the maximum offline floor, determine the target communication rate mode between the LoRa gateway and the LoRa terminal, so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

[0108] In step S3, the LoRa gateway determines the target communication rate mode according to a certain strategy based on the farthest pull-distance floor and the maximum offline floor, so that the maximum offline floor in the building is less than or equal to the farthest pull-distance floor. When the above conditions are met, a higher communication rate is preferred.

[0109] In this solution, the maximum distance between the LoRa gateway and the LoRa terminal under different communication rate modes is obtained through testing, so that the LoRa gateway can determine the optimal communication rate mode according to the online and offline status of the LoRa terminals on each floor of the current building, while ensuring the communication effect and improving the efficiency of wireless communication.

[0110] In one feasible solution, step S1 includes:

[0111] When all LoRa terminals are in idle state, control all LoRa terminals to enter the same communication rate mode.

[0112] For example, in the early morning and when all LoRa terminals are in an idle state, all LoRa terminals can be controlled to enter a high-speed mode to perform a distance test.

[0113] Control the LoRa gateway to create the building's routing table according to the preset routing table creation strategy.

[0114] According to the routing table, the LoRa gateway is controlled to communicate with the LoRa terminals on each floor.

[0115] According to the communication status between the LoRa gateway and each LoRa terminal, the farthest pull-away floor is obtained.

[0116] In one feasible solution, step S1 further includes:

[0117] Switch the communication rate mode and repeat the steps of controlling all LORA terminals to enter the same communication rate mode until the farthest pull-distance floor test in each communication rate mode is completed.

[0118] For example, switch between medium-speed mode and low-speed mode in turn to test the farthest distance floor between the LoRa gateway and the LoRa terminal.

[0119] In this solution, the maximum distance between the LoRa gateway and the LoRa terminal under different communication rate modes is obtained through testing, so that the LoRa gateway can match the most suitable communication rate mode according to the floor distribution status of offline devices in the current building, thereby improving the efficiency of wireless communication.

[0120] In an implementable solution, the communication speed mode includes a high speed mode, a medium speed mode and a low speed mode.

[0121] Of course, other communication rate modes may also be set according to actual requirements of the wireless communication system.

[0122] The farthest floor corresponding to the high-speed mode is the first distance floor, the farthest floor corresponding to the medium-speed mode is the second distance floor, and the farthest floor corresponding to the low-speed mode is the third distance floor. The first distance floor is smaller than the second distance floor, and the second distance floor is smaller than the third distance floor.

[0123] Step S3 includes:

[0124] When the maximum offline floor is less than or equal to the first distance floor, the target communication rate mode of the LORA terminal is determined to be high speed mode;

[0125] When the maximum offline floor is greater than the first distance floor and less than or equal to the second distance floor, the target communication rate mode of the LORA terminal is determined to be the medium speed mode;

[0126] When the maximum offline floor is greater than the second distance floor and less than or equal to the third distance floor, the target communication rate mode of the LORA terminal is determined to be a low speed mode.

[0127] That is, when the LORA gateway determines the communication rate mode according to the maximum offline floor in the building, it gives priority to the mode with high communication rate under the premise of ensuring that the maximum offline floor is less than the farthest pull-distance floor.

[0128] In this solution, the communication efficiency of the wireless communication system can be guaranteed by giving priority to selecting a mode with a high communication rate.

[0129] The method for determining the communication rate provided in this embodiment obtains the maximum distance between the LoRa gateway and the LoRa terminal under different communication rate modes through testing, so that the LoRa gateway can determine the optimal communication rate mode according to the online and offline status of the LoRa terminals on each floor of the current building, and give priority to trying the mode with a high communication rate, thereby improving the efficiency of wireless communication while ensuring the communication effect.

[0130] Example 2

[0131] This embodiment provides a communication method, which is applied to a wireless communication system of a building, wherein the wireless communication system includes a LORA gateway and a LORA terminal on each floor;

[0132] like Figure 2 As shown, the communication method includes the following steps:

[0133] S4. Determine the target communication rate mode between the LoRa gateway and the LoRa terminal.

[0134] Based on the communication rate determination method of Example 1, the target communication rate mode of the LoRa gateway and the LoRa terminal is determined.

[0135] S5. According to the target communication rate mode, control the LORA gateway to create the routing table of the building according to the preset routing table creation strategy.

[0136] S6, control the LoRa gateway and the LoRa terminal to communicate according to the routing table.

[0137] In this solution, the maximum distance between the LoRa gateway and the LoRa terminal under different communication rate modes is obtained through testing, so that the LoRa gateway can determine the optimal communication rate mode according to the online and offline status of the LoRa terminals on each floor of the current building, and create a routing table according to different communication rate modes to realize the communication between the LoRa gateway and each LoRa terminal, which can improve the efficiency and stability of communication.

[0138] In one feasible solution, Figure 3As shown, step S5 includes:

[0139] S501, control the LoRa gateway to receive the LoRa terminal whitelist of the building, where the LoRa terminal whitelist includes all LoRa terminals in the building and the floor information corresponding to each LoRa terminal.

[0140] That is, the LORA terminal whitelist includes GwID (gateway identity information) -NodeID (terminal identity information) -Floor (floor information).

[0141] S502, controlling the LoRa gateway to determine a number of first terminals directly connected to the LoRa gateway from all the LoRa terminals in the building according to the LoRa terminal whitelist;

[0142] The number of the first terminals is inversely proportional to the communication rate.

[0143] The LoRa gateway is controlled to determine several first terminals that can be directly connected to the LoRa gateway from all the LoRa terminals in the building according to the evaluation results of the network quality status, that is, to create a direct connection mode routing table of the LoRa gateway.

[0144] S503, controlling the LoRa gateway to determine a primary route from a plurality of first terminals.

[0145] The LORA gateway is controlled to select the farthest first terminal as the primary route from the several first terminals directly connected to it.

[0146] S504: Control the primary router to determine a plurality of second terminals directly connected to the primary router from the LoRa terminals other than the first terminal according to the LoRa terminal whitelist.

[0147] Control the first-level routing according to the evaluation result of the network quality status, and determine several second terminals that can be directly connected to the first-level routing from other LoRa terminals except the first terminal directly connected to the LoRa gateway, that is, create a first-level routing mode routing table for the first-level routing.

[0148] S505: Determine whether there are other LoRa terminals in the LoRa terminal whitelist except the first terminal and the second terminal.

[0149] If not, execute step S506; if yes, execute step S507.

[0150] S506, confirming that the routing table is created;

[0151] S507, control each level of routing to determine the next level of routing from a number of directly connected LoRa terminals, and control the next level of routing to determine the directly connected LoRa terminals, until all LoRa terminals in the building are directly connected to the LoRa gateway or indirectly connected through routing to complete the creation of the routing table;

[0152] Among them, the number of LORA terminals directly connected to each level of routing is inversely proportional to the communication rate.

[0153] After the creation of the direct connection mode routing table and the first-level routing mode routing table is completed, if all LoRa terminals are directly connected to the LoRa gateway or connected to the first-level routing, the wireless communication system completes the networking. If there are still other LoRa terminals that have not completed the connection, continue to determine the second-level routing in the second terminal and create a second-level routing mode routing table, and so on, until all LoRa terminals in the building are directly connected to the LoRa gateway or indirectly connected to the LoRa gateway through several levels of routing.

[0154] In this solution, by controlling the gateway and each level of routing to determine the connected LORA terminals according to the network quality to automatically create a routing table, errors and omissions caused by manual creation of routing tables can be avoided, thereby improving the efficiency of routing table creation in the building and improving wireless communication effects.

[0155] In an implementable solution, the communication speed mode includes at least one of a high speed mode, a medium speed mode and a low speed mode.

[0156] Of course, other communication rate modes may also be set according to actual requirements of the wireless communication system.

[0157] In low-speed mode, the LoRa gateway is directly connected to all LoRa terminals.

[0158] In one feasible solution, the wireless communication system further includes an Internet of Things backend;

[0159] After step S6, the following steps are also included:

[0160] Control the LORA gateway to send the communication rate mode to the IoT backend;

[0161] Control the IoT background to display the communication rate mode.

[0162] That is, the IoT background can display the current communication rate mode.

[0163] In this solution, the current communication rate mode is displayed through the IoT background, which can help users understand the current communication status.

[0164] The communication method provided in this embodiment obtains the maximum pulling distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes through testing, so that the LoRa gateway can determine the optimal communication rate mode according to the online and offline status of the LoRa terminals on each floor in the current building, and create a routing table according to different communication rate modes to realize the communication between the LoRa gateway and each LoRa terminal, which can improve the efficiency and stability of communication.

[0165] The following is a specific implementation example to illustrate the implementation principle of the method for determining the communication rate provided in Example 1 and the implementation principle of the communication method provided in Example 2.

[0166] 1. This system includes handheld terminal applet / (application software), IoT (Internet of Things) background, networking module, LORA gateway, LORA terminal and LORA router;

[0167] 2. Handheld terminal applet / APP, for authorized operators to use;

[0168] 3. Networking module, which realizes the networking function of the device, such as CAT1 (a communication module) module and other modules using cellular network to communicate data with IOT background and LORA gateway;

[0169] 4. LORA gateway, as the hub of LORA communication, realizes one-key high-speed and low-speed mode switching function, and conducts data communication with outdoor unit, networking module and LORA terminal;

[0170] 5. LORA terminal, as the edge node of the LAN system, communicates data with the LORA gateway through LORA technology, and also communicates data with the indoor equipment distributed on each floor, such as UART (a serial port) serial port;

[0171] 6. LORA routing, the LORA terminal with routing function communicates with the LORA terminal connected to the routing node, and also communicates data with the indoor equipment distributed on the floor, such as UART serial port;

[0172] 7. For all factory equipment (LORA gateway, LORA terminal and networking module), the serial number SN (serial number) and the MAC (a kind of address) address of the networking module are synchronously entered into the IOT background database through the MES (a kind of system) system during the assembly and production of the whole machine;

[0173] 8. The operator opens the handheld terminal application, APP or applet, scans the QR code information of the serial number SN on the device (LORA gateway, LORA terminal and networking module), adds the corresponding soft coding information, and submits it to the IOT background to complete the device addition;

[0174] 9. The operator repeats 'step 8' to complete the addition and binding of all LoRa terminals of the current LoRa gateway;

[0175] 10. The IOT background sends the whitelist information of the LoRa gateway and all LoRa terminals to the LoRa gateway through the networking module;

[0176] 11. The LORA gateway completes the creation of a routing table in high-speed mode between the LORA gateway and all LORA terminals according to a certain strategy. At this time, the gateway and the terminal are in normal communication state. The high-speed mode tree network topology diagram is as follows Figure 4 As shown;

[0177] 12. The service personnel use the manual terminal APP or applet to perform 'system debugging' to verify the data communication and business communication capabilities between the outdoor gateway and the indoor terminal; if any problems are found, they will be solved in a targeted manner until all problems are solved and 'system debugging is successful';

[0178] 13. At this time, the LORA gateway and the networking module can communicate normally, the networking module and the IOT background can communicate normally, and the applet or APP and the IOT background can communicate normally;

[0179] 14. At this point, the LORA gateway is stably connected to all LORA terminals and can communicate data normally;

[0180] 15. After the operation service technician has installed all the equipment and successfully debugged the system, he needs to remotely switch the outdoor gateway and all indoor terminals to low-speed mode through the mini program or APP to ensure the stability of the communication connection between indoor and outdoor devices. The core strategy of this proposal can realize the function of switching the target rate mode according to the power-on rate and the floor distribution relationship of online devices and the number of abnormal floors with continuous power outages. The specific interaction logic is as follows:

[0181] (1) The parameter information involved in this core strategy includes: high-speed mode ModeHighSpeed ​​(high-speed mode configuration information: spreading factor SF=7 / 8, bandwidth 250kHZ, error correction code CR=4_8, transmission power 20dBm), medium-speed mode ModeMiddleSpeed ​​(medium-speed mode configuration information: spreading factor SF=9 / 10, bandwidth 125kHZ, error correction code CR=4_8, transmission power 20dBm), low-speed mode ModeLowSpeed ​​(low-speed mode configuration information: spreading factor SF=11 / 12, bandwidth 125kHZ, error correction code CR=4_8, transmission power rate is 20dBm), total device number DevTotalNum, online device number DevOnlineNumb, offline device number DevOfflineNumb, distance floor number FloorIntervalNum, device continuous offline floor number DevContinueOfflineNumb, indoor device online rate DevOnlinePer, statistical analysis time window TimeWindowAnalysis, device online rate stability DevOnlineStability, statistical analysis time window TimeWindowAnalysis;

[0182] (2) The operator remotely sets the "switch to low speed mode" from the applet or APP and successfully sends it to the network module;

[0183] (3) The networking module transmits the data to the outdoor unit gateway through the serial port;

[0184] (4) The outdoor unit gateway analyzes the low-speed mode and performs low-speed mode related operations. The specific interaction modes are as follows:

[0185] ① The gateway reports the status message of entering high-speed mode to the IOT platform;

[0186] 1) The IOT platform stores the log information and updates the gateway network status to 'Switching to high-speed mode...';

[0187] ② The gateway sends the 'low speed mode' command to the 'direct connection terminal' and 'routers at all levels', and at the same time, starts the silent mode (timeout 10*60 seconds)' command;

[0188] ③ The gateway sends the "start silent mode" command to its "directly connected terminal" and "routers at all levels", broadcasting it N times continuously at intervals of t seconds;

[0189] 1) The directly connected terminal receives the 'Start Silent Mode' command and enters the 'Listening Mode';

[0190] 2) Routers at all levels receive the "start silent mode" command and enter the "listening mode"; at the same time, the router forwards the "start silent mode" command to its directly connected terminal, broadcasting it N times continuously at an interval of t seconds;

[0191] 3) All indoor terminals are in 'silent listening mode' and all active reporting services are stopped;

[0192] ④ The gateway sends the "start low-speed mode" command to the "gateway direct connection terminal and router direct connection terminal" in a P2P (point-to-point) manner;

[0193] 1) The directly connected terminal receives the 'turn on low-speed mode' command, executes the switching action, and feeds back ACK data to the gateway;

[0194] 2) After receiving the 'turn on low speed mode' command, the routing terminal forwards the command to the target terminal to which it is connected:

[0195] The target terminal receives the 'turn on low-speed mode' command, executes the switching action, and feeds back ACK data to the upper-level router;

[0196] 3) The upper router receives the ACK and forwards it, and it eventually reaches the gateway;

[0197] ⑤ The gateway ensures that all terminals enter the low-speed mode according to the ACK information fed back by the terminal. If there are still terminals that have not entered, repeat the action of step ③ until all terminals enter the low-speed mode;

[0198] ⑥ The gateway recreates and maintains the routing table, maintaining the routing status of the 'direct communication mode', that is, the connection between the gateway and all terminals is a star network topology diagram. The low-speed mode star network topology diagram is as follows Figure 5 As shown;

[0199] ⑦ The gateway communicates with the terminal P2P to verify the link communication quality, thus completing the switch to low-speed mode;

[0200] ⑧The gateway and all terminals can communicate normally;

[0201] (5) In low-speed mode, the gateway monitors and analyzes the operating parameters of the current flue indoor equipment in real time, and switches to the target mode according to a certain strategy. The specific interaction modes are as follows:

[0202] ① The gateway obtains the network time DateTimeNet of the current date through the networking module, and executes each rate mode according to a certain strategy. SF (spreading factor) and BW (bandwidth) can be arbitrarily combined to generate the corresponding distance floor FloorIntervalNum value, where SF=7 / 8 / 9 / 10 / 11 / 12, BW=125KHz / 250KHz, and the distance capability detection of the gateway and the terminal, that is, how many floors can be penetrated continuously, and the gateway and the terminal can also communicate normally. The specific interaction logic is as follows:

[0203] 1) If DateTimeNet∈[02:30, 4:30], and all indoor terminals are in idle state, the gateway enters the target rate mode distance detection mode (in the order of high speed mode, medium speed mode, and low speed mode);

[0204] 2) The gateway allows all indoor terminals to enter the target rate mode (high-speed mode) according to a certain strategy;

[0205] 3) In the target rate mode, create a routing table. After the routing table is successfully created, determine the number of pull-up floors corresponding to the target rate mode (high-speed mode) FloorIntervalNum=α_ModeHighSpeed, that is, the farthest pull-up interval floor in the target rate mode (high-speed mode) is α_ModeHighSpeed;

[0206] 4) Repeat the actions of 'steps 15-(5)-①-2) and 15-(5)-①-3)' to determine the farthest pull-off interval floors in the medium speed mode and low speed mode as β_ModeMiddleSpeed ​​and γ_ModeLowSpeed ​​respectively;

[0207] 5) The gateway stores the distance values ​​α_ModeHighSpeed, β_ModeMiddleSpeed, and γ_ModeLowSpeed ​​in the three speed modes in the local storage system for use by subsequent related functions;

[0208] 6) The gateway exits the target rate mode and the distance detection mode, and re-enters the low-speed mode according to 'Step 15-(4)';

[0209] ② The gateway counts the number of online devices DevOnlineNumb and their floor distribution, the number of offline devices DevOfflineNumb and their floor distribution in real time, and determines the target rate mode according to a certain strategy based on the relationship between the number of continuous offline floors DevContinueOfflineNumb and FloorIntervalNum. The specific interaction mode is as follows:

[0210] 1) If the number of consecutive power-off floors DevContinueOfflineNumb∈[0,α_ModeHighSpeed] and DateTimeNet∈[02:30,4:30], the gateway determines that the target rate mode is high-speed mode and creates a routing table according to the following logic:

[0211] The gateway performs the same actions as in 'Step 15-(4)' to synchronize the gateway and the terminal to high-speed mode;

[0212] The gateway reports the network status "Switching to high-speed mode..." log information to the IOT backend through the networking module;

[0213] The gateway and terminal complete the creation of the routing table (the routing table topology diagram in high-speed mode is as follows Figure 4 As shown), data interconnection and intercommunication can be carried out;

[0214] 2) If the number of consecutive power-off floors DevContinueOfflineNumb∈[α_ModeHighSpeed+1,β_ModeMiddleSpeed] and DateTimeNet∈[02:30,4:30], the gateway determines that the target rate mode is the medium speed mode and creates a routing table according to the following logic:

[0215] The gateway follows the same actions as in 'Step 15-(4)' to synchronize the gateway and the terminal to medium speed mode;

[0216] The gateway reports the network status 'Switching to medium-speed mode...' log information to the IOT backend through the networking module;

[0217] The gateway and terminal complete the creation of the routing table (the tree topology diagram of the medium-speed mode is as follows Figure 6 As shown), data interconnection and intercommunication can be carried out;

[0218] 3) If the number of consecutive power-off floors DevContinueOfflineNumb∈[β_ModeMiddleSpeed+1, γ_ModeLowSpeed] and DateTimeNet∈[02:30,4:30], the gateway determines that the target rate mode is low-speed mode and creates a routing table according to the following logic:

[0219] The gateway performs the same actions as in 'Step 15-(4)' to synchronize the gateway and the terminal to low-speed mode;

[0220] The gateway reports the network status "switching to low-speed mode..." log information to the IOT backend through the networking module;

[0221] The gateway and terminal complete the creation of the routing table (the low-speed mode star topology diagram is as follows Figure 5 As shown), data interconnection and intercommunication can be carried out;

[0222] The gateway monitors the offline and online status of the device in real time, and implements adaptive switching of the high, medium and low speed modes of the gateway and terminal under the current flue according to 'Step 15-(5)'.

[0223] The beneficial effects that the above scheme can achieve are as follows:

[0224] 1. The gateway can adaptively switch the network mode according to the device online rate and online rate stability to ensure the stability of the connection between devices;

[0225] 2. The gateway can adaptively select high-speed mode, medium-speed mode or low-speed mode according to the location information of the offline device;

[0226] 3. Gateway adaptive optimization mechanism: When selecting the target rate mode, the high rate mode is tried first, and if it fails, the speed is reduced;

[0227] 4. The gateway is mainly based on device communication and supplemented by network mode switching. It executes mode switching action strategies in the early morning and can be flexibly configured remotely;

[0228] 5. It has the function configuration switch of remote WEB page, applet or APP, and remote one-key low-speed mode switching, saving time and effort;

[0229] 6. The network mode status of the gateway is reported to the IOT background in real time for data analysis and presentation;

[0230] 7. In the high-speed and low-speed mode switching state, the outdoor unit gateway and the indoor unit terminal innovate the data interaction mode:

[0231] Silence all indoor terminal in the whitelist and put them in listening detection mode;

[0232] The outdoor unit gateway adopts a P2P method to name all indoor unit terminals in the whitelist to improve the efficiency of high-speed and low-speed mode switching;

[0233] 8. Rich system mode switching can quickly locate the gateway system status, which is convenient and fast.

[0234] Figure 7 A diagram of the device deployment architecture for a specific application scenario.

[0235] Figure 741, 42, 43 are fans, 44, 45, 46 are CAT1 modules corresponding to fans, 7 is a cloud server, 8 is a mobile phone application or applet, 51 is an outdoor fan CAT1 module, 52 is an outdoor fan power board MCU, 53 is an outdoor DC auxiliary fan. 61 is a family indoor range hood CAT1 module, 62 is a range hood power board, 63 is a range hood smart check valve, 10 is a range hood DC fan, 91, 92, 93, 94, 95, 96, 97, 98, 99, 910 are serial ports.

[0236] Example 3

[0237] This embodiment provides a communication rate determination system, which is applied to a wireless communication system of a building, wherein the wireless communication system includes a LORA gateway and LORA terminals on each floor;

[0238] like Figure 8 As shown, the communication rate determination system includes:

[0239] Test module 1 is used to test the farthest distance between the LoRa gateway and the LoRa terminal under different communication rate modes;

[0240] Among them, the farthest pull-off floor is used to represent the maximum interval floor that the LoRa gateway and the LoRa terminal can maintain normal communication. The farthest pull-off floor is inversely proportional to the communication rate;

[0241] Status acquisition module 2 is used to control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building and determine the maximum offline floor;

[0242] Among them, the maximum offline floor is used to represent the number of floors with the most consecutive offline floors among the LORA terminals in the offline state;

[0243] The first mode determination module 3 is used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal according to the farthest pull-away floor and the maximum offline floor, so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

[0244] In one feasible solution, the test module 1 includes:

[0245] The mode control unit is used to control all LoRa terminals to enter the same communication rate mode when all LoRa terminals are in an idle state;

[0246] The routing table creation unit is used to control the LORA gateway to create a routing table for the building according to the preset routing table creation strategy;

[0247] The communication control unit is used to control the LoRa gateway to communicate with the LoRa terminals on each floor according to the routing table;

[0248] The pull distance determination unit is used to obtain the farthest pull distance floor according to the communication status between the LoRa gateway and each LoRa terminal.

[0249] In an implementable solution, the pull distance determination unit is also used to switch the communication rate mode, and repeatedly execute the steps of controlling all LORA terminals to enter the same communication rate mode until the farthest pull distance floor test in each communication rate mode is completed.

[0250] In an implementable solution, the communication rate mode includes a high-speed mode, a medium-speed mode and a low-speed mode;

[0251] The farthest floor corresponding to the high-speed mode is the first floor, the farthest floor corresponding to the medium-speed mode is the second floor, and the farthest floor corresponding to the low-speed mode is the third floor. The first floor is smaller than the second floor, and the second floor is smaller than the third floor.

[0252] The first mode determination module 3 includes:

[0253] The first determining unit is used to determine that the target communication rate mode of the LORA terminal is a high-speed mode when the maximum offline floor is less than or equal to the first distance floor;

[0254] The second determining unit is used to determine that the target communication rate mode of the LORA terminal is a medium speed mode when the maximum offline floor is greater than the first distance floor and less than or equal to the second distance floor;

[0255] The third determining unit is used to determine that the target communication rate mode of the LORA terminal is a low speed mode when the maximum offline floor is greater than the second distance floor and less than or equal to the third distance floor.

[0256] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, in which the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution.

[0257] The communication rate determination system provided in this embodiment obtains the maximum pulling distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes through testing, so that the LoRa gateway can determine the best communication rate mode according to the online and offline status of the LoRa terminals on each floor of the current building, and give priority to trying the mode with high communication rate, thereby improving the efficiency of wireless communication while ensuring the communication effect.

[0258] Example 4

[0259] This embodiment provides a communication system, which is applied to a wireless communication system of a building. The wireless communication system includes a LORA gateway and a LORA terminal on each floor;

[0260] like Fig. 9 As shown, the communication system includes:

[0261] The second mode determination module 4 is used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal based on the above determination method;

[0262] The routing table creation module 5 is used to control the LORA gateway to create a routing table for the building according to the preset routing table creation strategy according to the target communication rate mode;

[0263] The communication module 6 is used to control the LoRa gateway to communicate with the LoRa terminal according to the routing table.

[0264] In an implementable solution, the routing table creation module 5 includes:

[0265] The whitelist acquisition unit is used to control the LoRa gateway to receive the LoRa terminal whitelist of the building. The LoRa terminal whitelist includes all the LoRa terminals in the building and the floor information corresponding to each LoRa terminal;

[0266] The first terminal determination unit is used to control the LoRa gateway to determine a number of first terminals directly connected to the LoRa gateway from all the LoRa terminals in the building according to the LoRa terminal whitelist;

[0267] Wherein, the number of first terminals is inversely proportional to the communication rate;

[0268] A primary route determination unit, used to control the LORA gateway to determine a primary route from a plurality of first terminals;

[0269] The second terminal determination unit is used to control the first-level router to determine a number of second terminals directly connected to the first-level router from the LoRa terminals other than the first terminal according to the LoRa terminal whitelist;

[0270] A judging unit, used to judge whether there are other LoRa terminals in the LoRa terminal whitelist except the first terminal and the second terminal;

[0271] If not, calling the first creation unit to determine that the routing table creation is complete;

[0272] If yes, the second creation unit is called to control each level of routing to determine the next level of routing from a number of directly connected LoRa terminals, and control the next level of routing to determine the directly connected LoRa terminals, until all LoRa terminals in the building are directly connected to the LoRa gateway or indirectly connected through routing to complete the creation of the routing table;

[0273] Among them, the number of LORA terminals directly connected to each level of routing is inversely proportional to the communication rate.

[0274] In an implementable solution, the communication rate mode includes at least one of a high-speed mode, a medium-speed mode, and a low-speed mode;

[0275] In low-speed mode, the LoRa gateway is directly connected to all LoRa terminals.

[0276] In one feasible solution, the wireless communication system further includes an Internet of Things backend;

[0277] The communication system also includes:

[0278] The sending module is used to control the LORA gateway to send the communication rate mode to the IoT background;

[0279] The display module is used to control the IoT background to display the communication rate mode.

[0280] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, in which the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution.

[0281] The communication system provided in this embodiment obtains the maximum distance between the LORA gateway and the LORA terminal under different communication rate modes through testing, so that the LORA gateway can determine the optimal communication rate mode according to the online and offline status of the LORA terminals on each floor of the current building, and create a routing table according to different communication rate modes to realize the communication between the LORA gateway and each LORA terminal, which can improve the efficiency and stability of communication.

[0282] Although the specific embodiments of the present disclosure are 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. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A method for determining a communication rate, characterized in that: The determination method is applied to a wireless communication system of a building, wherein the wireless communication system includes a LORA gateway and LORA terminals on each floor; The determination method comprises: Under different communication rate modes, the farthest distance between the LoRa gateway and the LoRa terminal is tested; Among them, the farthest pull-distance floor is used to characterize the maximum interval floor on which the LoRa gateway and the LoRa terminal can maintain normal communication, and the farthest pull-distance floor is inversely proportional to the communication rate; Control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building, and determine the maximum offline floor; Among them, the maximum offline floor is used to represent the number of floors with the most consecutive offline floors among the LORA terminals in the offline state; According to the farthest pull-away floor and the maximum offline floor, the target communication rate mode of the LoRa gateway and the LoRa terminal is determined so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

2. The method for determining the communication rate according to claim 1, wherein: The step of testing and obtaining the farthest distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes includes: When all the LORA terminals are in an idle state, controlling all the LORA terminals to enter the same communication rate mode; Control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy; According to the routing table, control the LORA gateway to communicate with the LORA terminals on each floor; According to the communication status between the LoRa gateway and each of the LoRa terminals, the farthest pull-away floor is obtained.

3. The method for determining the communication rate according to claim 2, wherein: The step of obtaining the farthest pull-away floor according to the communication status between the LoRa gateway and each of the LoRa terminals also includes: Switch the communication rate mode, and repeat the step of controlling all the LORA terminals to enter the same communication rate mode until the farthest pull-distance floor test under each communication rate mode is completed.

4. The method for determining the communication rate according to claim 3, wherein: The communication speed mode includes a high speed mode, a medium speed mode and a low speed mode; The farthest floor corresponding to the high-speed mode is the first floor, the farthest floor corresponding to the medium-speed mode is the second floor, the farthest floor corresponding to the low-speed mode is the third floor, the first floor is smaller than the second floor, and the second floor is smaller than the third floor; The step of determining the target communication rate mode of the LORA terminal according to the farthest pull-away floor and the maximum offline floor so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor comprises: When the maximum offline floor is less than or equal to the first distance floor, determining the target communication rate mode of the LORA terminal to be the high-speed mode; When the maximum offline floor is greater than the first distance floor and less than or equal to the second distance floor, the target communication rate mode of the LORA terminal is determined to be the medium speed mode; When the maximum offline floor is greater than the second distance floor and less than or equal to the third distance floor, the target communication rate mode of the LORA terminal is determined to be the low speed mode.

5. A communication method, characterized in that: The communication method is applied to a wireless communication system of a building, and the wireless communication system includes a LORA gateway and LORA terminals on each floor; The communication method comprises: Based on the communication rate determination method described in claims 1-4, determine the target communication rate mode between the LoRa gateway and the LoRa terminal; According to the target communication rate mode, control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy; Control the LoRa gateway to communicate with the LoRa terminal according to the routing table.

6. The communication method according to claim 5, characterized in that: The step of controlling the LORA gateway to create a routing table for the building according to a preset routing table creation strategy according to the target communication rate mode includes: Control the LoRa gateway to receive the LoRa terminal whitelist of the building, wherein the LoRa terminal whitelist includes all the LoRa terminals in the building and the floor information corresponding to each of the LoRa terminals; Control the LoRa gateway to determine a number of first terminals directly connected to the LoRa gateway from all the LoRa terminals in the building according to the LoRa terminal whitelist; Wherein, the number of the first terminals is inversely proportional to the communication rate; Control the LORA gateway to determine a primary route from the plurality of the first terminals; Controlling the primary router to determine a plurality of second terminals directly connected to the primary router from the LoRa terminals other than the first terminal according to the LoRa terminal whitelist; If there are no other LoRa terminals in the LoRa terminal whitelist except the first terminal and the second terminal, it is determined that the routing table is created; If there are other LoRa terminals in addition to the first terminal and the second terminal in the LoRa terminal whitelist, each level of routing is controlled to determine the next level of routing from a number of directly connected LoRa terminals, and the next level of routing is controlled to determine the directly connected LoRa terminals, until all LoRa terminals of the building are directly connected to the LoRa gateway or indirectly connected through routing to complete the creation of the routing table; Among them, the number of the LORA terminals directly connected to each level of routing is inversely proportional to the communication rate.

7. The communication method according to claim 6, characterized in that: The communication rate mode includes at least one of a high speed mode, a medium speed mode and a low speed mode; In the low-speed mode, the LoRa gateway is directly connected to all the LoRa terminals.

8. The communication method according to any one of claims 5 to 7, characterized in that: The wireless communication system also includes an Internet of Things background; The step of determining the target communication rate mode between the LoRa gateway and the LoRa terminal also includes: Control the LORA gateway to send the communication rate mode to the Internet of Things background; Control the Internet of Things background to display the communication rate mode.

9. A communication rate determination system, characterized in that: The determination system is applied to the wireless communication system of the building, and the wireless communication system includes a LORA gateway and LORA terminals on each floor; The determination system comprises: A test module is used to test and obtain the farthest distance floor between the LoRa gateway and the LoRa terminal under different communication rate modes; Among them, the farthest pull-distance floor is used to characterize the maximum interval floor on which the LoRa gateway and the LoRa terminal can maintain normal communication, and the farthest pull-distance floor is inversely proportional to the communication rate; A status acquisition module is used to control the LoRa gateway to obtain the status of the LoRa terminals on each floor of the building and determine the maximum offline floor; Among them, the maximum offline floor is used to represent the number of floors with the most consecutive offline floors among the LORA terminals in the offline state; The first mode determination module is used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal according to the farthest pull-away floor and the maximum offline floor, so that the maximum offline floor in the building is less than or equal to the farthest pull-away floor.

10. A communication system, characterized in that: The communication system is applied to the wireless communication system of the building, and the wireless communication system includes a LORA gateway and LORA terminals on each floor; The communication system comprises: A second mode determination module, used to determine the target communication rate mode between the LoRa gateway and the LoRa terminal based on the communication rate determination method described in claims 1-4; A routing table creation module, used to control the LORA gateway to create a routing table for the building according to a preset routing table creation strategy according to the target communication rate mode; The communication module is used to control the LoRa gateway to communicate with the LoRa terminal according to the routing table.