Communication method and system based on LoRa spread spectrum technology

By dynamically configuring the communication frequency points according to identity information in the LoRa communication system and updating the communication basic frequency when interference is detected, the problems of low efficiency and high maintenance costs caused by interference at the medium frequency points of the LoRa communication are solved, and flexible and efficient data transmission management is achieved.

CN120166547AActive Publication Date: 2025-06-17河南驰诚电气股份有限公司
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510513888.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-06-17
Estimated Expiration
2045-04-23

AI Technical Summary

Technical Problem

When using a single frequency point for LoRa communication, homofrequency or heterofrequency interference is prone to occur, resulting in false wake-up of nodes, data loss and power consumption, which in turn reduces data transmission efficiency and shortens the battery life of the device.

Method used

By obtaining the frequency point offset based on the identity information of the communication partner, and superimposing the offset on the most recently updated communication base frequency, the communication frequency point is dynamically configured to solve the frequency point interference problem. At the same time, the signal quality is detected and a frequency point switching command is sent when there is interference, instructing the peer to update the communication base frequency.

Benefits of technology

It realizes flexible and efficient data transmission management, reduces the occurrence of homofrequency and heterofrequency interference, improves data transmission efficiency, extends the battery life of the equipment, and reduces system maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166547A_ABST
    Figure CN120166547A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and system based on a LoRa spread spectrum technology. Relates to a communication transmission technology, and solves the problems of low transmission efficiency and high maintenance cost caused by data transmission at a single frequency point. The method comprises the following steps: acquiring a frequency point offset of a communication opposite terminal according to identity information of the communication opposite terminal; superposing the frequency point offset on the basis of the recently updated communication fundamental frequency to obtain a communication frequency point of the communication opposite end; and carrying out data transmission with the opposite communication end according to the communication frequency point. The technical scheme provided by the invention is suitable for LoRa network remote communication, and flexible and efficient data transmission management is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to communication transmission technology, and in particular to a communication method and system based on LoRa spread spectrum technology. Background Art

[0002] LoRa (Long Range) spread spectrum technology is a long-distance wireless radio frequency transmission communication technology with the characteristics of low power consumption, long transmission distance and low implementation cost.

[0003] In some IoT scenarios where it is difficult to achieve continuous power supply on site, sensors and other node devices are usually powered by batteries and rely on LoRa technology for low-power long-distance communication. Traditional LoRa communication methods usually use a single frequency point for data transmission, that is, multiple devices use the same frequency band to transmit data.

[0004] When using a single frequency for data transmission, co-frequency interference or inter-frequency interference is prone to occur, causing problems such as false awakening of dormant nodes and retransmission after data loss, which reduces data transmission efficiency and increases device power consumption. Increased power consumption will shorten the service life of the battery that powers the device. In order to avoid power outages and other situations, the frequency of battery replacement needs to be increased, which greatly increases system maintenance costs. Summary of the invention

[0005] In order to overcome the problems existing in the related technologies, the present disclosure provides a communication method and system based on LoRa spread spectrum technology. By updating the communication baseband, and then obtaining the communication frequency used for data transmission based on the communication baseband and combining the identity information, the problems of low transmission efficiency and high maintenance cost caused by data transmission at a single frequency are solved, and flexible and efficient data transmission management is achieved.

[0006] According to a first aspect of an embodiment of the present disclosure, a communication method based on LoRa spread spectrum technology is provided, including: Acquire the frequency offset of the communication peer terminal according to the identity information of the communication peer terminal; The frequency offset is superimposed on the most recently updated communication base frequency to obtain the communication frequency of the communication peer end; Data is transmitted with the communication peer according to the communication frequency.

[0007] Furthermore, the method further comprises: detecting a signal quality of a connection with at least one communication peer; In the case where the signal quality indicates that interference exists, a frequency switching command carrying a new communication base frequency is sent to the communication peer to instruct the communication peer to update the communication base frequency.

[0008] Further, the signal quality at least includes the received signal strength indication (RSSI) of the wireless connection with the communication peer and / or the communication success rate. When the signal quality indicates interference, the step of sending a frequency point switching command carrying a new communication fundamental frequency to the communication peer includes: Generate an RSSI interference range and / or a communication success rate interference range according to the signal quality of the wireless connection with the at least one communication peer; Determine that there is interference when the RSSI of the wireless connection with at least one communication peer is within the RSSI interference range and / or the communication success rate is within the communication success rate interference range; Send the frequency point switching command to the communication peer, and carry a new communication fundamental frequency in the frequency point switching command.

[0009] Further, after the step of sending a frequency point switching command carrying a new communication fundamental frequency to the communication peer when the signal quality indicates interference, it further includes: When the communication peer fails to update the communication fundamental frequency, still use the original communication fundamental frequency as the most recently updated communication fundamental frequency.

[0010] According to the second aspect of the embodiments of the present disclosure, a communication method based on LoRa spread spectrum technology is provided, including: Obtain a frequency point offset according to the local identity information; Superimpose the frequency point offset on the most recently updated communication fundamental frequency to obtain a communication frequency point; Perform data transmission with the communication peer according to the communication frequency point.

[0011] Further, the method further includes: Receive a frequency point switching command sent by the communication peer, and a new communication fundamental frequency is carried in the frequency point switching command; Update the local communication fundamental frequency according to the frequency point switching command.

[0012] Further, after the step of updating the local communication fundamental frequency according to the frequency point switching command, it further includes: When the update of the local communication fundamental frequency fails, continue to use the original communication fundamental frequency as the most recently updated communication fundamental frequency.

[0013] According to the third aspect of the embodiments of the present disclosure, a communication system based on LoRa spread spectrum technology is provided, including a first device and at least one second device; The first device is used to obtain the frequency offset of each second device according to the identity information of the second device, superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency of each second device, and perform data transmission with each second device according to the communication frequency; The second device is used to obtain the frequency offset according to the local identity information, superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency, and perform data transmission with the first device according to the communication frequency.

[0014] Further, the first device is further used to detect the signal quality of the connection with the at least one second device, and in the case that the signal quality indicates interference, send a frequency switching command carrying a new communication base frequency to the at least one second device to instruct the second device to update the communication base frequency; The second device is further used to receive the frequency switching command sent by the first device and update the local communication base frequency according to the frequency switching command.

[0015] Further, the first device is further used to, in the case that the second device fails to update the communication base frequency, still use the original communication base frequency as the most recently updated communication base frequency; The second device is further used to, in the case that the update of the local communication base frequency fails, continue to use the original communication base frequency as the most recently updated communication base frequency.

[0016] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: obtaining the frequency offset of the communication peer according to the identity information of the communication peer, then superimposing the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency of the communication peer, and then performing data transmission with the communication peer according to the communication frequency. Update the communication base frequency, and obtain the communication frequency currently used by the device on the basis of the latest communication base frequency in combination with the identity information of the device. Flexibly configure the frequency points used for frequency hopping transmission of the device, solve the problems of low transmission efficiency and high maintenance cost caused by using a single frequency point for data transmission, and achieve flexible and efficient data transmission management.

[0017] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0019] Figure 1 It is a flowchart of a communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0020] Figure 2 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0021] Figure 3 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0022] Figure 4 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0023] Figure 5 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0024] Figure 6 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0025] Figure 7 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0026] Figure 8 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0027] Figure 9 It is a flowchart of another communication method based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0028] Figure 10 It is a block diagram of a communication system based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0029] Figure 11 A block diagram of a device for communication based on LoRa spread spectrum technology shown according to an exemplary embodiment.

[0030] Figure 12 It is a block diagram of a device 1300 for communication based on LoRa spread spectrum technology shown according to an exemplary embodiment. Detailed implementation manners

[0031] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0032] When using a single frequency point for data transmission, co-frequency interference or cross-frequency interference is likely to occur, causing problems such as incorrect wake-up of nodes in the sleep state and retransmission after data loss, reducing the data transmission efficiency while increasing the power consumption of the device. The increase in power consumption will shorten the service life of the battery that powers the device. To avoid situations such as device power-off and offline, it is necessary to increase the battery replacement frequency, significantly increasing the system maintenance cost.

[0033] To solve the above problems, embodiments of the present disclosure provide a communication method and system based on LoRa spread spectrum technology. The communication base frequency is updated, and based on the latest communication base frequency, the communication frequency points currently used by the device are obtained in combination with the device's identity information. The frequency points used for device frequency hopping transmission are flexibly configured, solving the problems of low transmission efficiency and high maintenance cost caused by using a single frequency point for data transmission, and realizing flexible and efficient data transmission management.

[0034] An exemplary embodiment of the present disclosure provides a communication method based on LoRa spread spectrum technology. The process of using this method for data transmission in a LoRa network is as Figure 1 shown, including: Step 101, obtain the frequency offset of the communication peer according to the identity information of the communication peer.

[0035] According to an exemplary embodiment, in a LoRa network, there are a host device and several slave devices, and the host device and the slave devices are communication peers with each other.

[0036] The host device can be a network server, an application server, a gateway, a terminal node, the main control unit in a terminal node, etc. The host device can act as the main control device of the LoRa network, performing functions such as network access authentication for each entity in the network, transmission resource allocation and coordination, data aggregation, communication with the gateway or server, routing relay, and adjustment of communication parameters.

[0037] The slave device can be a network entity such as a terminal node with data collection and transmission functions. The slave device accepts the control and / or management of the host device in the LoRa network and performs functions such as accepting host device management, data collection, and data reporting.

[0038] In this step, the host device obtains the frequency offset of the communication peer according to the identity information of the communication peer. The communication peer can be a slave device, and the identity information can be the unique identifier of the slave device.

[0039] According to an exemplary embodiment, the identity information is the number of the slave device, which can be assigned and stored in both the slave device and the host device during network formation, or can be assigned and stored in the host device and the slave device when the slave device accesses the network, or can be pre-configured in both the host device and the slave device. The numbers of different slave devices are unique in the same LoRa network and can be used to uniquely identify the slave devices. The frequency offset can be calculated according to the following expression: Frequency offset = (ID % ) * Equation 1 In Equation 1, ID is the number of the slave device and can be an integer ranging from 1 to 9999 at minimum; is the total number of available frequency points and / or channels. For example, = 40 indicates that the available frequency range is divided into 40 frequency points or channels; is the frequency interval between adjacent frequency points or adjacent channels. Generally, the frequency intervals between adjacent frequency points or adjacent channels are the same, and can be set to 0.4 MHz.

[0040] According to Equation 1, based on taking the remainder of ID and then multiplying by the frequency offset of the corresponding slave device is obtained. In this way, multiple different slave devices are dispersed to different frequency points, avoiding problems such as interference caused by too many slave devices using the same frequency point. Multiple slave devices can also be randomly assigned to different frequency points. The slave devices can be directly associated with the frequency points, or different frequency offsets can be randomly assigned to the slave devices. Through random assignment, multiple different slave devices can also be dispersed to different frequency points. It should be noted that the method for obtaining the frequency offset provided in the embodiments of the present disclosure is not limited to the above examples, and any method that can achieve the assignment of different frequency points to different slave devices is covered by the present disclosure.

[0041] According to an exemplary embodiment, the communication frequency point used by the slave device when actively reporting data is different from the communication frequency point used when the master and slave devices are in the wake-up - response mode. The communication frequency points involved in the present disclosure at least include any one or any combination of the following items: The communication frequency point at which the host device sends wake-up data / slave device receives wake-up data in the wake-up - response mode (hereinafter simply referred to as the first communication frequency point) The communication frequency point at which the host device receives the response data / slave device sends the response data in the wake-up-response mode (hereinafter simply referred to as the second communication frequency point for ease of description). The communication frequency point at which the slave device actively reports data / the host device receives the data actively reported by the slave device (hereinafter simply referred to as the third communication frequency point for ease of description).

[0042] By setting , and other parameter values, the differential planning of the first communication frequency point and the third communication frequency point is realized.

[0043] When the host device receives the data actively reported by the slave device, it can also calculate the frequency offset of the frequency point used for receiving the data according to Equation 1. According to an exemplary embodiment, can be set to 8, that is, the active reporting of the slave device is realized through 8 frequency points or channels; is set to 1 MHz.

[0044] Step 102: Obtain the frequency offset according to the local identity information.

[0045] In this step, the slave device obtains the frequency offset to be used by the slave device subsequently according to the local identity information.

[0046] According to an exemplary embodiment, the identity information is the number of the slave device, and this number can be assigned and stored in the slave device and the host device during network formation, or can be assigned and stored in the host device and the slave device when the slave device accesses the network, or can be pre-configured in the host device and the slave device in advance. The numbers of different slave devices are unique in the same LoRa network and can be used to uniquely identify the slave device.

[0047] The method for the slave device to obtain its own frequency offset is the same as the method for the host device to obtain the frequency offset of the slave device, and will not be repeated here.

[0048] Step 103: Superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency point of the communication peer.

[0049] In the present disclosure, the communication base frequency is updated according to the actual application scenario. According to an exemplary embodiment, the host device can select a new communication base frequency and send the new communication base frequency to the slave device to instruct the slave device to update the communication base frequency. The host device can also detect the communication quality between the host device and the slave device, and based on the analysis result of the communication quality, determine whether it is necessary to select a new communication base frequency and instruct the slave device to update.

[0050] In this step, the host device calculates the communication frequency point used for data transmission with a certain slave device according to the following expression: FRE_ID = FR0 + frequency offset amount, Equation 2 In Equation 2, FRE_ID is the communication frequency point when the host device and the slave device perform data transmission; FR0 is the most recently updated communication base frequency, which can specifically be the communication base frequency that was successfully indicated to the slave device for replacement last time. The communication base frequency is the starting frequency point of the currently used available frequency range and provides a basis for the calculation of the communication frequency point.

[0051] For the first communication frequency point when the host device sends wake-up data / the slave device receives wake-up data in the wake-up-response mode, this first communication frequency point is calculated through Equation 1 and Equation 2.

[0052] For the second communication frequency point when the host device receives response data / the slave device sends response data in the wake-up-response mode, it can be obtained by calculating through Equation 1 and Equation 2; it can also be calculated according to the following expression: Second communication frequency point = First communication frequency point + response frequency offset, Equation 3 In Equation 3, the response frequency offset can be set to 0.1 MHz.

[0053] For the third communication frequency point when the slave device actively reports data / the host device receives the data actively reported by the slave device, the third communication frequency point and / or the frequency offset amount can be fixedly set in advance; it can also be calculated according to Equation 1 and Equation 2. According to an exemplary embodiment, the frequency offset amount of the third communication frequency point is calculated according to the following expression: Frequency offset amount = (ID % ) * Equation 4 In Equation 4, ID is the number of the slave device, which can be an integer with a minimum of 1 and a maximum of 9999; is the total number of available frequency points and / or uplink channels. For example, = 8 indicates that the available frequency range is divided into 8 frequency points or channels; is the frequency interval between adjacent frequency points or adjacent uplink channels. Generally, the frequency interval between adjacent frequency points or adjacent uplink channels is the same, and can be set to 1 MHz.

[0054] Step 104: Superimpose the frequency offset amount on the most recently updated communication base frequency to obtain the communication frequency point.

[0055] In this step, the slave device superimposes the frequency offset on the basis of the most recently updated communication base frequency to calculate the communication frequency used by the local device. The communication frequencies involved include the first communication frequency, the second communication frequency, and the third communication frequency. The specific calculation method is the same as the principle described in step 103 and will not be repeated here.

[0056] Step 105: Transmit data with the communication peer according to the communication frequency.

[0057] In this step, the host device transmits data with the slave device as the communication peer according to the calculated communication frequency.

[0058] Specifically, the wake-up data is sent to the slave device using the first communication frequency, the response data in response to the wake-up data is received from the slave device using the second communication frequency, and the data actively reported by the slave device is received using the third communication frequency.

[0059] The slave device transmits data with the host device according to the calculated communication frequency.

[0060] Specifically, the wake-up data sent by the host device is received using the first communication frequency, the response data in response to the wake-up data is sent to the host device using the second communication frequency, and the data is actively reported to the host device using the third communication frequency.

[0061] It should be noted that there is no strict timing relationship between step 101 and step 102 in this embodiment, nor is there a strict timing relationship between step 103 and step 104. The process of the host device determining the communication frequency is relatively independent of the process of the slave device determining the communication frequency, and can be calculated and determined in advance, or can be calculated and determined before data transmission is required.

[0062] For the time window or time slot resource for data transmission between the host device and the slave device, it can be configured according to factors such as application requirements and network conditions. The same communication frequency can be dedicated to a certain slave device or can be time-division multiplexed by multiple slave devices.

[0063] An exemplary embodiment of the present disclosure also provides a communication method based on LoRa spread spectrum technology. The process of updating the communication base frequency using this method is as Figure 2 shown, including: Step 201: Detect the signal quality of the connection with at least one communication peer.

[0064] In this step, the host device detects the signal quality of the connection with at least one slave device.

[0065] According to an exemplary implementation manner, the signal quality includes at least the received signal strength indication (RSSI) of the wireless connection with the communication peer and / or the communication success rate.

[0066] According to an exemplary embodiment, the signal quality further includes a weighted average of the signal quality, which is at least related to any one or any combination of the following basic parameters: RSSI, signal-to-noise ratio (SNR), packet error rate (PER), spreading factor (SF).

[0067] Each basic parameter has a corresponding weighting value. After comprehensively calculating these basic parameters based on the weighting, the weighted average of the signal quality is obtained.

[0068] Step 202: When the signal quality indicates the existence of interference, send a frequency point switching command carrying a new communication fundamental frequency to the communication peer.

[0069] This step is specifically as Figure 3 shown, and includes: Step 301: Generate an RSSI interference range and / or a communication success rate interference range according to the signal quality of the wireless connection with the at least one communication peer.

[0070] The host device records the signal quality during communication with the slave device, such as communication success rate data, RSSI signal quality data, etc. When the RSSI value is relatively high and / or the communication success rate is relatively low, by synthesizing the relevant weighting values of other devices, a conclusion is determined on whether to switch to other communication fundamental frequencies.

[0071] In this step, according to the signal quality S1, S2, S3,... of each slave device recorded by the host device, the signal quality of each slave device is analyzed and processed through the FFT spectrum analysis function to obtain the threshold RSSI_E of RSSI interference and the threshold q_E of the communication success rate in the frequency domain. The range greater than RSSI_E is used as the RSSI interference range, and the range less than q_E is used as the communication success rate interference range. Using the historical signal quality data obtained during the actual data transmission process as the basis for the determination criterion is more likely to detect sudden interference or faults and effectively ensure the reliability of the system.

[0072] When the signal quality further includes the weighted average of the signal quality, the weighted average of the signal quality in multiple transmission processes is analyzed and processed through the FFT spectrum analysis function to obtain the threshold of the weighted average of the signal quality, and the range less than the threshold of the weighted average of the signal quality is used as the interference range of the weighted average of the signal quality.

[0073] The current threshold is simultaneously used as the main evaluation basis for whether there is interference at the current communication frequency point, and the host device can reselect a new frequency point range according to the range of the threshold.

[0074] According to an exemplary embodiment, the host device detects the signal quality when sending wake-up data.

[0075] According to an exemplary embodiment, a time-domain preset value can be set as the time window for interference detection. Within the time-domain preset value, an RSSI interference range and / or a communication success rate interference range are generated based on the signal quality of the wireless connection with the at least one communication peer. Data collection and interference determination are performed within one time window. After the time window expires, the existing data is cleared, and the next round of detection and determination is started.

[0076] 302. Determine that there is interference when the RSSI of the wireless connection with at least one communication peer is within the RSSI interference range and / or the communication success rate is within the communication success rate interference range.

[0077] In this step, during the data transmission process between the host device and the slave device acting as the communication peer, the signal quality is detected, and a determination is made in combination with the RSSI interference range and / or the communication success rate range to find out whether there is interference, providing a basis for switching the communication base frequency.

[0078] The host device respectively records the RSSI, the total number of transmissions, and the number of successful transmissions when performing data transmission with each slave device. According to an exemplary embodiment, the host device records the RSSI, the total number of transmissions, and the number of successful transmissions when sending wake-up data to the slave device.

[0079] For a certain slave device, at least any one or any combination of the following contents is recorded: The total number of times (T_TIMES) the host device sends wake-up data or wake-up communication frames to the slave device, the number of successful communications (T_R_TIMES), the received signal quality RSSI, and the weighted average of the signal quality.

[0080] Based on the total number of transmissions and the number of successful transmissions, the communication success rate q can be calculated according to the following expression: q = T_R_TIMES / T_TIMES * 100%. Equation 5 When q < q_E, or RSSI > RSSI_E, or q < q_E and RSSI > RSSI_E, it is determined that there is interference. The condition for switching the communication base frequency can be further triggered to control the slave device to update the communication base frequency.

[0081] According to an exemplary embodiment, the determination of whether there is interference can be performed each time data transmission occurs (including scenarios such as the host device sending wake-up data, the slave device uploading response data, and the slave device actively reporting data), or it can be performed periodically, or it can be performed at a specified time point. For example, taking 0:00 every day as the time condition for triggering interference determination and updating the communication base frequency, it is determined whether to switch the communication frequency band according to the communication success rate and / or RSSI and / or signal quality weighting value.

[0082] The success rate q can be calculated according to the following expression: q = T_R_TIMES / T_TIMES * 100%. When q < q_E and RSSI > RSSI_E, the condition for triggering the frequency band switching has been met.

[0083] Step 303: Send the frequency band switching command to the communication peer, and carry the new communication base frequency in the frequency band switching command to instruct the communication peer to update the communication base frequency.

[0084] In this step, when the host device determines that there is interference, it sends a frequency band switching command to the communication peer. The new communication base frequency is carried in the frequency band switching command to notify the slave device to update the information of the locally protected communication base frequency according to the frequency band switching command, and use the updated communication base frequency for subsequent data transmission.

[0085] According to an exemplary embodiment, when the host device sends wake-up data, it sends the frequency band switching command along with the wake-up data frame.

[0086] According to an exemplary embodiment, the host device sends the frequency band switching command to the slave device in a pre-configured configuration information update frame.

[0087] Step 203: Receive the frequency band switching command sent by the communication peer, and update the local communication base frequency according to the frequency band switching command.

[0088] In this step, after receiving the frequency band switching command, the slave device extracts the information of the communication base frequency therein.

[0089] The slave device replaces the original communication base frequency with the new communication base frequency according to the extracted information of the communication base frequency. When performing subsequent data transmission, it uses the locally recently updated communication base frequency to calculate the communication frequency band.

[0090] In the embodiments of the present disclosure, by the host device monitoring interference and controlling the slave device to update the communication base frequency when it is determined that interference occurs, accurate and timely detection of the interference situation and effective processing are achieved.

[0091] An exemplary embodiment of the present disclosure further provides a communication method based on LoRa spread spectrum technology. When the host device updates the communication base frequency, it manages subsequent data transmission according to the result of whether the update is successful. The specific process is as follows Figure 4 shown, including: Step 401, detect the signal quality of the connection with at least one communication peer.

[0092] Step 402, when the signal quality indicates interference, send a frequency point switching command carrying a new communication base frequency to the communication peer.

[0093] The implementation principles of Step 401 and Step 402 are the same as those of Step 201 to Step 202, and will not be elaborated here.

[0094] Step 403, when there is no response from the communication peer, continue to use the original communication frequency point for data transmission.

[0095] According to an exemplary embodiment, after the host device sends a frequency point switching command to the slave device as the communication peer, if it does not receive a response from the slave device to the frequency point switching command, it is considered that the slave device has not updated the communication frequency point. Therefore, on the host device side, the original communication frequency point is still used as the communication frequency point for data transmission with the slave device.

[0096] According to an exemplary embodiment, after the host device sends a frequency point switching command to the slave device as the communication peer, it switches to the data reception mode to receive the data fed back by the slave device. When the data does not carry the execution result of the frequency point switching command, it is considered that the slave device has not responded to the frequency point switching command, and then it is judged that the slave device has not updated the communication frequency point. Therefore, on the host device side, the original communication frequency point is still used as the communication frequency point for data transmission with the slave device. The time window and frequency point used by the host device to switch to the reception mode can be pre-specified and configured, or generated according to a preset configuration method. For example, when the host device sends wake-up data, it carries a frequency point switching command in the wake-up data; correspondingly, when the slave device responds to the wake-up data and switches to the response channel to upload response data, it also uploads the response to the frequency point switching command.

[0097] In this step, based on the result of the failure of the communication base frequency update, the host device and the slave device still use the original communication base frequency to calculate the communication frequency point for data transmission.

[0098] After the communication base frequency update fails, the host device can continue to send a frequency point switching command to the slave device to instruct the slave device to update the communication base frequency and eliminate interference.

[0099] An exemplary embodiment of the present disclosure provides another communication method based on LoRa spread spectrum technology. When the host device updates the communication base frequency, it manages subsequent data transmission according to the result of whether the update is successful. The specific process is as follows Figure 5 as shown, including: Step 501, detect the signal quality of the connection with at least one communication peer.

[0100] Step 502, in the case where the signal quality indicates interference, send a frequency point switching command carrying a new communication base frequency to the communication peer.

[0101] The implementation principles of Step 501 and Step 502 are the same as those of Step 201 to Step 202, and will not be elaborated here.

[0102] Step 503, receive the frequency point switching command, and in the case where the local communication base frequency cannot be updated according to the frequency point switching command, feedback the update failure information to the communication peer.

[0103] In this step, after receiving the frequency point switching command, the slave device provides the new communication base frequency therein and updates the locally configured communication base frequency based on the new communication base frequency. In the case of update failure, feedback the update failure information to the host device.

[0104] According to an exemplary embodiment, after the host device sends a frequency point switching command to the slave device as a communication peer, it switches to the data reception mode to receive the data fed back by the slave device; correspondingly, after receiving the frequency point switching command, the slave device switches to the data transmission mode, and the update failure information indicating that the frequency point switching command execution fails is carried in the data sent by the slave device. The time window and frequency point used by the slave device to switch to the transmission mode can be pre-specified and configured, or can be generated according to a preset configuration method. For example, when the host device sends wake-up data, it carries a frequency point switching command in the wake-up data; correspondingly, when the slave device responds to the wake-up data and switches to the response channel to upload response data, it uploads the update failure information together.

[0105] According to an exemplary embodiment, the slave device actively reports data to the host device using the original communication frequency point, and carries the update failure information in the actively reported data. When the host device receives the data actively reported by the slave device, it obtains the update failure information and determines that the communication base frequency update of the slave device fails.

[0106] Step 504, continue to calculate the communication frequency point using the original communication base frequency.

[0107] In this step, based on the result of the communication base frequency update failure, the host device and the slave device still use the original communication base frequency to calculate the communication frequency point for data transmission.

[0108] After the communication base frequency update fails, the host device can continue to send a frequency point switching command to the slave device to instruct the slave device to update the communication base frequency and eliminate interference.

[0109] An exemplary embodiment of the present disclosure also provides a communication method based on LoRa spread spectrum technology. The process of managing data transmission when the communication base frequency fails using this method is as Figure 6 shown, including: Step 601, detect the signal quality of the connection with at least one communication peer.

[0110] Step 602, when the signal quality indicates the existence of interference, send a frequency point switching command carrying a new communication base frequency to the communication peer.

[0111] Step 603, receive the frequency point switching command sent by the communication peer, and update the local communication base frequency according to the frequency point switching command.

[0112] The implementation principles of steps 601 to 603 are the same as those of steps 201 to 203, and will not be elaborated here.

[0113] Step 604, when the communication peer fails to update the communication base frequency, still use the original communication base frequency as the most recently updated communication base frequency.

[0114] In this step, when the communication peer fails to update the communication base frequency, the host device still uses the original communication base frequency as the most recently updated communication base frequency, and calculates the communication frequency point used for data transmission with the slave device on this basis.

[0115] Step 605, when the local communication base frequency update fails, continue to use the original communication base frequency as the most recently updated communication base frequency.

[0116] In this step, when the slave device fails to update the local communication base frequency, it still calculates the communication frequency point using the original communication base frequency.

[0117] An exemplary embodiment of the present disclosure also provides a communication method based on LoRa spread spectrum technology. The process of data transmission using this method is as Figure 7 shown, including: Step 701, establish a downlink channel according to the communication frequency point and transmit wake-up data.

[0118] In this step, the host device establishes a downlink channel according to the communication frequency point and sends wake-up data to the slave device. Correspondingly, the slave device receives the wake-up data on this downlink channel.

[0119] Specifically, a downlink channel may be established based on the first communication frequency point.

[0120] Step 702: Establish an uplink channel according to the communication frequency point and transmit response data.

[0121] In this step, the slave device establishes an uplink channel according to the communication frequency point to send response data to the master device; correspondingly, the master device receives the response data on this uplink channel.

[0122] Specifically, an uplink channel may be established based on the second communication frequency point.

[0123] An exemplary embodiment of the present disclosure further provides a communication method based on LoRa spread spectrum technology. When using this method for data transmission, an uplink channel is established according to the communication frequency point to transmit actively reported data.

[0124] Specifically, the slave device establishes an uplink channel according to the communication frequency point to send actively reported data to the master device as its communication peer; the master device establishes an uplink channel according to the communication frequency point to receive the actively reported data of the slave device as its communication peer.

[0125] An exemplary embodiment of the present disclosure further provides a communication method based on LoRa spread spectrum technology, including a master device and at least one slave device. As Figure 8 shown, the master device uses two LoRa communication modules, namely an active data sending module and a passive device reported data receiving module.

[0126] Step 801: The master device imports the IDs of each slave device on site.

[0127] The ID of the slave device is an integer between 1 and 9999. Different slave devices have different IDs.

[0128] The master device uses two LoRa communication modules, one for actively sending data and the other for passively receiving device reported data.

[0129] Step 802: Calculate the communication frequency point for transmitting wake-up data according to the ID of the slave device and transmit the wake-up data.

[0130] In this step, when the master device performs active communication, it calculates the communication frequency point for sending the wake-up data frame according to the ID of the slave device as its communication peer.

[0131] The slave device calculates the communication frequency point for listening according to its own ID to receive the wake-up data frame.

[0132] The interval between communication frequency points is 0.4 MHz, and the available frequency range is from the starting frequency point to the ending frequency point. 40 communication frequency points are obtained by dividing the range from the starting frequency point to the ending frequency point at intervals of 0.4 MHz. According to the weighted algorithm for each communication and considering the communication situation of the device, the communication base frequency at the starting position can be changed. According to an exemplary embodiment, the communication base frequency is sent in each communication protocol frame for use as the communication frequency point when the slave device switches to listen for wake-up data.

[0133] When the host device sends wake-up data and the slave device listens for wake-up data, the current communication frequency point is calculated using the following formula, specifically the first communication frequency point: FRE_ID = (ID % 40) * 0.4 + FR0; Equation 5 Where FRE_ID is the first communication frequency point; ID is the ID of the slave device, with a minimum value of 1 and a maximum value of 9999; FR0 is the communication base frequency, which is sent by the host device through a control frame, occupies 2 bytes, has a hexadecimal data format, and the unit is MHz.

[0134] The host device retrieves the ID of the slave device that needs to send a downlink instruction according to the polling mechanism. Through the communication method of the SPI interface, at the communication frequency point FRE_ID calculated based on Equation 5, a downlink instruction is sent to the radio frequency chip to write the frequency register for configuring the communication frequency point used for wake-up data transmission.

[0135] The communication frequency point calculated by the slave device is the same as that of the host. The slave device wakes up. After waking up, it compares the ID of the slave device with the device ID carried in the wake-up data frame. If the IDs are the same, the slave device switches from the listening mode to the receiving mode, and at the same time configures the receiving frequency point as the second communication frequency point FRE_ID + 0.1 (MHz), and the host device side makes the same configuration.

[0136] After the host device sends the wake-up data, it switches to the second communication frequency point as the data sending frequency point, configures the communication frequency point used for sending as FRE_ID + 0.1 (MHz), and configures it as the data sending frequency point of the host device.

[0137] The host device waits for the slave device to respond to the command at FRE_ID + 0.1 (MHz), exits the communication instruction at this frequency point after timeout or receiving the response data, and the slave device switches to the listening mode after responding.

[0138] Step 803: When the host device actively sends data, it determines whether it is necessary to switch the communication frequency point.

[0139] When the host device sends wake-up data and receives the response from the slave device, control instructions are sent according to the ID of the slave device. After the slave device responds, the signal quality during the data transmission process is recorded, such as the average value of the signal quality weighting value, the RSSI signal quality parameter, etc., which is used to detect interference in the communication frequency point and trigger subsequent communication frequency point switching.

[0140] Step 804: When it is necessary to switch the communication frequency point, the host device notifies the slave device of the new communication base frequency.

[0141] The selection of the communication base frequency FR0 can refer to the spectrum analysis within the existing ID communication frequency band. The host device selects the spectrum with better signal quality and higher communication success rate within the communication frequency band through recording the spectrum communication quality of the slave device as the new communication base frequency for replacing the spectrum. Based on this, the communication frequency point of the slave device is replaced.

[0142] The host device needs to use the original communication frequency point to send a new frequency point switching command according to the communication protocol to notify the slave device to replace the new communication base frequency. If the communication base frequency of the slave device is updated successfully, the new communication frequency point will be used for communication during the next data transmission. If the communication base frequency switching is unsuccessful, the host device and the slave device still need to use the original communication frequency point to continue data transmission. According to an exemplary embodiment, the host device continues to use the existing communication frequency point to send a frequency point switching instruction to the slave device to quickly enable the slave device to receive the frequency point replacement instruction, and then uses the new communication frequency point for data communication.

[0143] Step 805: After the communication base frequency is updated, switch the communication frequency point to transmit wake-up data.

[0144] In this step, after the communication base frequency is updated, the subsequent data transmission between the host device and the slave device can be realized based on the recently updated communication base frequency.

[0145] Step 806: The slave device calculates the communication frequency point when actively reporting data according to its own ID.

[0146] In this step, when the slave device actively reports data, it needs to calculate the reported communication frequency point according to the following expression, specifically the third communication frequency point: FRE_UP = (ID%8)*1 + FRUP0 Formula 6 Where, FRE_UP is the third communication frequency point for the slave device to actively report data; ID is the ID of the slave device (the minimum value is 1, and the maximum value is 9999); FRUP0 is the starting communication frequency point for reporting. When the system is initially launched, the initial default value of this second communication frequency point can be set. When it is necessary to switch the communication frequency point used for actively reporting data, it is necessary for the communication module to issue an instruction separately and confirm. Otherwise, the starting frequency point of the reported data cannot be switched.

[0147] All the first communication frequency points of the slave device cannot be the same as the third communication frequency points. None of the eight third communication frequency points used for actively reporting data can be the same as the communication base frequency used by the first communication frequency points. That is, the eight third communication frequency points of FRUP0 according to 1 MHz cannot be the same as the first communication frequency points. According to an exemplary embodiment, when a conflict occurs between the first communication frequency points and the third communication frequency points, the communication base frequency of the third communication frequency points for actively reporting data is reselected.

[0148] Step 807: The host device polls and switches the channel for receiving the data actively reported by the slave device, and receives the data actively reported by the slave device after detecting the preamble data.

[0149] The data reporting module of the passive receiving device for receiving the reported data needs to perform scanning and switching of the third communication frequency points according to the ID polling method. The 1 MHz is used as the frequency hopping channel data, and there are a total of eight communication frequency points for actively reporting data. The initial third communication frequency points need to have different parameters from those of the first communication frequency points and are stored separately in the host device. The eight-frequency-point polling mechanism for the third communication frequency points takes into account that actively reporting data does not require sending wake-up data frames and will not cause false wake-up to other devices. At the same time, the slave device has a certain discrete processing mechanism for actively reporting data. Therefore, the configuration quantity of the third communication frequency points is small and can meet the normal working requirements of the system, saving frequency resources.

[0150] Step 808: The host device determines whether it is necessary to switch the communication frequency points for actively reporting data.

[0151] Step 809: When it is necessary to switch the communication frequency points for actively reporting data, the host device notifies the slave device to perform the switching of the communication frequency points.

[0152] An exemplary embodiment of the present disclosure further provides a communication method based on LoRa spread spectrum technology. The process of using this method to detect interference and switch communication frequency points based on the detection result is as Figure 9 shown and includes: Step 901: The host device records the communication times, communication success times, and RSSI of the slave device.

[0153] After sending the wake-up data, the host device switches the first communication frequency point to the second communication frequency point used for sending data, which is the same as the slave device switching to the receiving mode. The second communication frequency point is configured as FRE_ID + 0.1 (MHz) and is configured as the data sending frequency point of the slave device.

[0154] The host device waits for the slave device's response command at FRE_ID + 0.1 (MHz), exits the communication instruction of this second communication frequency point after timeout or receiving the response command, and the slave device switches to the listening mode after responding. The communication count T_TIMES under this ID of the slave device is recorded and incremented by 1. If the communication is successful, the communication success count T_R_TIMES is incremented by 1. When the communication is successful, the signal strength RSSI of this communication is recorded, and the weighted average value of the signal quality can also be further obtained according to parameters such as RSSI. Based on the above data related to the signal quality, the basis for communication frequency point switching / communication base frequency update is calculated.

[0155] The host device needs to record the weighted average value data of the signal quality of the slave device, and at the same time record the RSSI signal quality data. Based on the RSSI and / or communication success rate and / or weighted average value of the signal quality of one or more slave devices, it is calculated whether it is necessary to switch the communication base frequency to achieve the switching of the communication frequency point of the slave device.

[0156] Step 902, determine whether the time domain preset value is enabled.

[0157] The time domain preset value can be set as the time window for interference detection. Within the time domain preset value, the RSSI interference range and / or communication success rate interference range are generated according to the signal quality of the wireless connection with the at least one communication peer. Data collection and interference determination are performed within a time window. After the time window arrives, the existing data is cleared, and the next round of detection and determination is started.

[0158] In this step, when the time window of the time domain preset value is enabled, the analysis and judgment of the signal quality continue, otherwise the collected / stored data is cleared.

[0159] Step 903, determine whether the communication success rate is within the communication success rate interference range.

[0160] In this step, the communication success rate is calculated according to Equation 5, and then it is determined whether the communication success rate is within the communication success rate interference range, that is, whether q < q_E is satisfied. When q < q_E is satisfied, go to Step 1004; otherwise, interrupt the communication base frequency update process.

[0161] Step 904, determine whether the RSSI is within the RSSI interference range.

[0162] In this step, it is determined whether the value of RSSI is within the RSSI interference range, that is, whether RSSI > RSSI_E is satisfied. When > RSSI_E is satisfied, go to Step 1005; otherwise, interrupt the communication base frequency update process.

[0163] Step 905, send a frequency point switching command using the original communication frequency point.

[0164] When q < q_E and RSSI > RSSI_E, it is determined that the condition for triggering the handover of the communication frequency point / communication base frequency has been met.

[0165] When selecting a new communication frequency, spectral analysis within the existing available frequency range can be referred to. The host device selects the spectrum with better signal quality and higher communication success rate within the communication spectrum segment as the new communication base frequency for the communication of the replaced spectrum based on the record of the spectral communication quality of the slave device. The communication frequency point of the slave device is replaced based on the new communication base frequency.

[0166] In this step, the host device needs to send a frequency point switching command carrying the new communication base frequency using the original communication frequency point to notify the slave device to replace the new communication base frequency, so as to achieve the effect of replacing the communication frequency point. If the communication base frequency of the slave device is updated successfully, the new communication frequency point is used for communication during subsequent data transmission. If the communication frequency point handover / communication base frequency update is unsuccessful, the host device still needs to calculate the communication frequency point using the original communication base number and continue to send the frequency point switching instruction to the slave device. After the slave device receives the frequency point switching instruction and updates the communication base frequency, it uses the new communication frequency point for data communication.

[0167] An exemplary embodiment of the present disclosure provides a communication system based on LoRa spread spectrum technology. The structure of the system is as Figure 10 shown, including a first device 1001 and at least one second device 1002.

[0168] The first device 1001 is configured to respectively obtain the frequency offset of each of the second devices according to the identity information of the second device, superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency point of each of the second devices, and perform data transmission with each of the second devices 1002 according to the communication frequency point; The second device 1002 is configured to obtain the frequency offset according to the local identity information, superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency point, and perform data transmission with the first device 1001 according to the communication frequency point.

[0169] Further, the first device 1001 is further configured to detect the signal quality of the connection with the at least one second device 1002, and in the case where the signal quality indicates interference, send a frequency point switching command carrying a new communication base frequency to the at least one second device 1002 to instruct the second device 1102 to update the communication base frequency; The second device 1002 is further configured to receive the frequency point switching command sent by the first device 1101 and update the local communication base frequency according to the frequency point switching command.

[0170] Further, the first device 1001 is further configured to use the original communication base frequency as the most recently updated communication base frequency when the second device 1002 fails to update the communication base frequency. The second device 1002 is further configured to continue to use the original communication base frequency as the most recently updated communication base frequency when the update of the local communication base frequency fails.

[0171] The first device 1001 may specifically be a host device, and the second device 1102 may specifically be a slave device. The same network entity may be a host device or a slave device due to different network configurations.

[0172] Figure 11 FIG. is a block diagram of a device 1200 for communication based on LoRa spread spectrum technology according to an exemplary embodiment. For example, the device 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0173] Refer to Figure 11 , the device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, and a communication component 1116.

[0174] The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.

[0175] The memory 1104 is configured to store various types of data to support the operation of the device 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phone book data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0176] The power component 1106 provides power to the various components of the device 1100. The power component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1100.

[0177] The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0178] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC) that is configured to receive external audio signals when the device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further includes a speaker for outputting audio signals.

[0179] The I / O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0180] The sensor assembly 1114 includes one or more sensors for providing a status assessment of various aspects of the device 1100. For example, the sensor assembly 1114 can detect the on / off state of the device 1100, the relative positioning of components, such as the display and keypad of the device 1100. The sensor assembly 1114 can also detect a change in the position of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration / deceleration of the device 1100, and a change in the temperature of the device 1100. The sensor assembly 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1114 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0181] The communication component 1116 is configured to facilitate communication between the device 1100 and other devices in a wired or wireless manner. The device 1100 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0182] In an exemplary embodiment, the device 1100 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0183] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the above instructions can be executed by a processor 1120 of the device 1100 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0184] Figure 12FIG. 0 is a block diagram of an apparatus 1200 for communication based on LoRa spread spectrum technology shown in accordance with an exemplary embodiment. For example, apparatus 1200 may be provided as a server. Referring to Figure 12 , apparatus 1200 includes a processing component 1222 which further includes one or more processors, and memory resources represented by a memory 1232 for storing instructions executable by processing component 1222, such as an application program. The application programs stored in memory 1232 may include one or more modules each corresponding to a set of instructions. In addition, processing component 1222 is configured to execute instructions to perform the above-described method.

[0185] Apparatus 1200 may also include a power component 1226 configured to perform power management of apparatus 1200, a wired or wireless network interface 1250 configured to connect apparatus 1200 to a network, and an input / output (I / O) interface 1258. Apparatus 1200 may operate based on an operating system stored in memory 1232, such as Windows ServerTM, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0186] An exemplary embodiment of the present disclosure also provides a non-transitory computer-readable storage medium which, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a communication method based on LoRa spread spectrum technology, the method including: Obtaining a frequency offset of a communication peer according to identity information of the communication peer; Superimposing the frequency offset on a most recently updated communication base frequency to obtain a communication frequency of the communication peer; Performing data transmission with the communication peer according to the communication frequency.

[0187] An exemplary embodiment of the present disclosure also provides a non-transitory computer-readable storage medium which, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a communication method based on LoRa spread spectrum technology, the method including: Obtaining a frequency offset according to local identity information; Superimposing the frequency offset on a most recently updated communication base frequency to obtain a communication frequency; Performing data transmission with a communication peer according to the communication frequency.

[0188] Embodiments of the present disclosure provide a communication method and system based on LoRa spread spectrum technology. According to the identity information of the communication peer, the frequency offset of the communication peer is obtained, and then the frequency offset is superimposed on the most recently updated communication base frequency to obtain the communication frequency of the communication peer. Then, data transmission is performed with the communication peer according to the communication frequency. The communication base frequency is updated, and the communication frequency currently used by the device is obtained based on the identity information of the device on the basis of the latest communication base frequency. The frequency used for the device to perform frequency hopping transmission is flexibly configured, which solves the problems of low transmission efficiency and high maintenance cost caused by using a single frequency for data transmission, and realizes flexible and efficient data transmission management.

[0189] In application scenarios such as battery-powered industrial alarm detectors, the host device realizes automatic frequency adjustment and automatic switching of the communication frequencies of the master and slave devices based on the technical solution provided by the present disclosure. The signal interference problem is quickly and effectively solved. While improving the anti-interference ability of LoRa communication, the probability of false wake-up of devices that do not need to communicate is also reduced, and the battery usage time of the devices is extended.

[0190] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of both. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be construed as exceeding the scope protected by the embodiments of the present application.

[0191] In addition, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be understood as being advantageous compared to other aspects or designs. Instead, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to mean any arrangement in a natural inclusive arrangement. That is, if X applies A; X applies B; or X applies both A and B, then "X applies A or B" is satisfied in any of the foregoing instances. Additionally, unless otherwise specified or clear from the context referring to the singular form, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0192] Similarly, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. Specifically with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if not structurally equivalent to the disclosed structure. Additionally, although a particular feature of the present disclosure may have been disclosed with respect to only one of several implementations, such a feature may, as may be desired and advantageous for any given or particular application, be combined with one or more other features of the other implementations. Further, with respect to the terms "comprising," "having," "including," "containing," or variants thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "including."

[0193] Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0194] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A communication method based on LoRa spread spectrum technology, characterized in that: include: Acquire the frequency offset of the communication peer terminal according to the identity information of the communication peer terminal; The frequency offset is superimposed on the most recently updated communication base frequency to obtain the communication frequency of the communication peer end; Data is transmitted with the communication peer according to the communication frequency.

2. The communication method based on LoRa spread spectrum technology according to claim 1, characterized in that: The method further comprises: detecting a signal quality of a connection with at least one communication peer; In the case where the signal quality indicates that interference exists, a frequency switching command carrying a new communication base frequency is sent to the communication peer to instruct the communication peer to update the communication base frequency.

3. The communication method based on LoRa spread spectrum technology according to claim 2, characterized in that: The signal quality at least includes a received signal strength indication RSSI and / or a communication success rate of the wireless connection with the communication peer, and when the signal quality indicates that interference exists, the step of sending a frequency switching command carrying a new communication base frequency to the communication peer includes: Generate an RSSI interference range and / or a communication success rate interference range according to the signal quality of the wireless connection with the at least one communication peer; When the RSSI of at least one wireless connection with the communication peer is within the RSSI interference range and / or the communication success rate is within the communication success rate interference range, determining that interference exists; The frequency switching command is sent to the communication peer, wherein the frequency switching command carries a new communication base frequency.

4. The communication method based on LoRa spread spectrum technology according to claim 1, characterized in that: After the step of sending a frequency switching command carrying a new communication base frequency to the communication peer when the signal quality indicates that interference exists, the method further includes: In the case that the communication peer fails to update the communication baseband, the original communication baseband is still used as the most recently updated communication baseband.

5. A communication method based on LoRa spread spectrum technology, characterized in that: include: Obtain frequency offset based on local identity information; The frequency offset is superimposed on the most recently updated communication base frequency to obtain the communication frequency; Data is transmitted with the communication counterpart according to the communication frequency.

6. The communication method based on LoRa spread spectrum technology according to claim 5, characterized in that: The method further comprises: receiving a frequency switching command sent by the communication peer, wherein the frequency switching command carries a new communication base frequency; According to the frequency switching command, the local communication baseband is updated.

7. The communication method based on LoRa spread spectrum technology according to claim 5, characterized in that: After the step of updating the local communication baseband according to the frequency switching command, the method further includes: In the case of failure in updating the local communication baseband, the original communication baseband continues to be used as the most recently updated communication baseband.

8. A communication system based on LoRa spread spectrum technology, characterized in that: comprising a first device and at least one second device; The first device is configured to respectively obtain frequency offsets of each second device according to the identity information of the second device, superimpose the frequency offsets on the basis of the most recently updated communication base frequency, obtain the communication frequency of each second device, and perform data transmission with each second device according to the communication frequency; The second device is used to obtain the frequency offset according to local identity information, superimpose the frequency offset on the basis of the most recently updated communication base frequency to obtain the communication frequency, and perform data transmission with the first device according to the communication frequency.

9. The communication system based on LoRa spread spectrum technology according to claim 8, characterized in that: The first device is further configured to detect signal quality of a connection with the at least one second device, and, if the signal quality indicates interference, send a frequency switching command carrying a new communication base frequency to the at least one second device to instruct the second device to update the communication base frequency; The second device is further configured to receive a frequency switching command sent by the first device, and update a local communication baseband according to the frequency switching command.

10. The communication system based on LoRa spread spectrum technology according to claim 8, characterized in that: The first device is further configured to use the original communication base frequency as the most recently updated communication base frequency when the second device fails to update the communication base frequency; The second device is further configured to continue to use the original communication baseband as the most recently updated communication baseband when updating the local communication baseband fails.

Citation Information

Patent Citations

  • Communication frequency point dynamic switching method, Ad-Hoc network node, and unmanned plane remote control system

    CN106559152A

  • Wireless frequency hopping networking method based on round-robin scheduling

    CN113489511A

  • Multi-channel remote control communication method for insulation coating robot

    CN113909066A

  • Wireless continuous communication synchronization method and system based on time-frequency joint feedback correction

    CN119603761A

  • Transmitter, receiver, and method for chirp-modulated radio signals

    EP4293922A1