CN117082652B - Data transmission method and system based on LoRa ad hoc network same-frequency avoidance - Google Patents

Data transmission method and system based on LoRa ad hoc network same-frequency avoidance Download PDF

Info

Publication number
CN117082652B
CN117082652B CN202310993791.1A CN202310993791A CN117082652B CN 117082652 B CN117082652 B CN 117082652B CN 202310993791 A CN202310993791 A CN 202310993791A CN 117082652 B CN117082652 B CN 117082652B
Authority
CN
China
Prior art keywords
slave
radio frequency
time
preset
time range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310993791.1A
Other languages
Chinese (zh)
Other versions
CN117082652A (en
Inventor
王开华
孙广存
李宁
武翔洋
邢兴幸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongguancun Zhilian Safety Science Research Institute Co ltd
Original Assignee
Beijing Zhongguancun Zhilian Safety Science Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongguancun Zhilian Safety Science Research Institute Co ltd filed Critical Beijing Zhongguancun Zhilian Safety Science Research Institute Co ltd
Priority to CN202310993791.1A priority Critical patent/CN117082652B/en
Publication of CN117082652A publication Critical patent/CN117082652A/en
Application granted granted Critical
Publication of CN117082652B publication Critical patent/CN117082652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission method and a system based on the same frequency avoidance of a LoRa ad hoc network, which relate to the technical field of communication, and the method comprises the following steps: calibrating the offset moment of each slave in the LoRa ad hoc network; sequencing all the slaves according to the sequence of the offset moment to obtain a sequence; according to the sequence, the time range of each slave machine at the offset moment is configured so that each slave machine uploads data in the respective time range.

Description

Data transmission method and system based on LoRa ad hoc network same-frequency avoidance
Technical Field
The invention relates to the technical field of communication, in particular to a data transmission method and system based on the same-frequency avoidance of a LoRa (local area network) ad hoc network.
Background
The geological disaster has the characteristics of wide distribution, strong concealment, burstiness, strong destructiveness, large prevention difficulty and the like, and aims to solve the outstanding problems of insufficient technological content, weak capacity, poor transmission instantaneity, serious co-channel interference and the like of the current geological disaster monitoring and early warning technology, remarkably improve the disaster prevention and control capability, and furthest avoid and reduce the loss caused by the disaster.
The LoRa technology is a technology with high performance, long distance and low power consumption and supports large-scale networking, so that the LoRa technology is widely applied to the Internet of things technology, and a terminal gateway base station scheme becomes an ideal technical scheme for the development of the Internet of things technology, and therefore disaster monitoring and early warning work is often carried out through the combination of the Internet of things layout and big data analysis technical means at present.
However, the more devices of the lora ad hoc network in the same project, the wireless transmission is performed by adopting the same frequency point, so that the problem of co-channel interference exists, the more the lora devices, the more serious the co-channel interference, and the problem is solved by the following three modes at present:
1) Host polling mode: the host computer polls the numbers one by one, the principle is very simple, and the response is realized by a roll call mode. The polling mode has the advantages that the conflict between the devices is not easy to occur, the networking is stable, but the host polling time is long, and the networking mode is suitable for networking application with low time requirement.
2) The timing uploading mode of the slave machine comprises the following steps: the principle is that the host broadcasts and sends information to the slave, after receiving the information of the host, the slave synchronizes time, then the information is uploaded at regular time according to the set time, and the uploading time of the slave is set, so that the data is avoided to be uploaded at the same time, the aim of avoiding the same-frequency interference is achieved, and the problem of poor accuracy of regular reporting exists.
3) The slave machine actively uploads the data in a mode that: the networking mode of the lora module with the RSSI function is a relatively reliable active uploading mode. The transmission method is to detect the RSSI signal intensity in the environment when the slave needs to upload data, and if the RSSI intensity in the current environment is larger, the slave waits for the RSSI value to be smaller and then actively uploads. Whether the uploading is successful or not, the master is fed back to the slave, and whether the uploading needs to be re-uploaded or not is determined. However, this approach is not suitable for a lora module without RSSI, because the more frequently the slave is uploaded, the higher the probability of communication failure, i.e., co-channel interference.
Disclosure of Invention
The invention aims to solve the technical problems of the prior art, and particularly aims to solve the problems of poor timing reporting accuracy, common-frequency interference and the like, and particularly provides a data transmission method and system based on the common-frequency avoidance of a LoRa ad hoc network, wherein the method and system comprise the following steps:
1) In a first aspect, the invention provides a data transmission method based on the same-frequency avoidance of a LoRa ad hoc network, which comprises the following specific technical scheme:
Calibrating the offset moment of each slave in the LoRa ad hoc network;
sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
According to the sequence, configuring a time range in which the offset moment of each slave is located, so that each slave can upload data in the respective time range.
The data transmission method based on the LoRa ad hoc network co-frequency avoidance has the following beneficial effects:
the time accuracy of the timing reported data can be guaranteed, and the same-frequency interference problem is solved.
Based on the scheme, the data transmission method based on the same-frequency avoidance of the LoRa ad hoc network can be improved as follows.
Further, the method further comprises the following steps:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range according to the first preset frequency, obtaining a first judging result of each slave machine, and correcting the time range corresponding to the slave machine with the negative first judging result.
The beneficial effects of adopting the further scheme are as follows: the time range of the slave machine with time conflict, namely the time range in which the preset offset moment of the slave machine with the first judging result of no is positioned can be calibrated in real time, so that the time accuracy of the slave machine for reporting data at fixed time is further ensured.
Further, the method further comprises the following steps:
And according to the second preset frequency, respectively obtaining a second judging result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining the slave machine of which the second judging result is negative.
The beneficial effects of adopting the further scheme are as follows: the slave machine with the data actually uploading time not in the corresponding time range or the corrected time range can be used for timely processing.
Further, calibrating the offset time of any slave comprises:
The method comprises the steps of obtaining radio frequency signals sent by a radio frequency antenna of any slave machine under the control of a first preset radio frequency instruction, obtaining offset time of any slave machine based on the obtained radio frequency signals and a first standard radio frequency signal corresponding to the first preset radio frequency instruction by using a TDOA technology.
The beneficial effects of adopting the further scheme are as follows: the offset time of the factory configuration of the slave machine may have deviation, and the more accurate offset time of each slave machine is obtained through calibration, so that the time accuracy of the data is ensured.
Further, before obtaining the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency instruction, the method further comprises:
detecting a radio frequency circuit of any slave to obtain a detection result;
The method for acquiring the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency instruction comprises the following steps:
when the detection result is normal, acquiring a radio frequency signal sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction.
The beneficial effects of adopting the further scheme are as follows: the occurrence of the condition of inaccurate offset moment caused by abnormal operation of the radio frequency circuit is prevented.
2) In a second aspect, the invention also provides a data transmission system based on the same-frequency avoidance of the LoRa ad hoc network, which has the following specific technical scheme:
The system comprises a calibration module, a sequencing module and a configuration uploading module;
The calibration module is used for: calibrating the offset moment of each slave in the LoRa ad hoc network;
The sequencing module is used for: sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
the configuration uploading module is used for: according to the sequence, configuring a time range in which the offset moment of each slave is located, so that each slave can upload data in the respective time range.
Further, still include first monitoring module, first monitoring module is used for:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range according to the first preset frequency, obtaining a first judging result of each slave machine, and correcting the time range corresponding to the slave machine with the negative first judging result.
Further, still include the second monitoring module, the second monitoring module is used for:
And according to the second preset frequency, respectively obtaining a second judging result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining the slave machine of which the second judging result is negative.
Further, the calibration module is specifically configured to:
The method comprises the steps of obtaining radio frequency signals sent by a radio frequency antenna of any slave machine under the control of a first preset radio frequency instruction, obtaining offset time of any slave machine based on the obtained radio frequency signals and a first standard radio frequency signal corresponding to the first preset radio frequency instruction by using a TDOA technology.
Further, still include radio frequency circuit detection module, radio frequency circuit detection module is used for: detecting a radio frequency circuit of any slave to obtain a detection result;
the calibration module is specifically used for: when the detection result is normal, acquiring a radio frequency signal sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction.
It should be noted that, the technical solutions of the second aspect and the corresponding possible implementation manners of the present invention may refer to the technical effects of the first aspect and the corresponding possible implementation manners of the first aspect, which are not described herein.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings in which:
Fig. 1 is a schematic flow chart of a data transmission method based on the same-frequency avoidance of a LoRa ad hoc network in an embodiment of the present invention;
FIG. 2 is a flow chart for calibrating a preset offset time of a slave machine with a time conflict;
FIG. 3 is a flow chart of obtaining offset time of a slave;
FIG. 4 is a schematic diagram of a detection process of a radio frequency circuit of a slave;
Fig. 5 is a schematic structural diagram of a data transmission system based on the same-frequency avoidance of the LoRa ad hoc network according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the data transmission method based on the same-frequency avoidance of the LoRa ad hoc network in the embodiment of the invention includes the following steps:
S1, calibrating offset time of each slave in the LoRa ad hoc network.
The LoRa ad hoc network comprises a plurality of slaves and gateway hosts, the gateway hosts are in communication connection with each slave based on the LoRa, the slaves can be MEMS acceleration sensors and GNSS sensors, other data acquisition devices and/or data sensors can be used as the slaves according to actual conditions, and data of the slaves can be set according to the actual conditions.
In another embodiment, communication connection can be realized between every two slaves through LoRa, and a standby gateway host is arranged, so that when the gateway host has abnormal working conditions, the standby gateway host is in communication connection with each slave, and normal operation of data transmission can be ensured.
S2, sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
wherein, the execution body of S2 is a server or a gateway host in the LoRa ad hoc network, and in another embodiment:
1) When the execution subject of S2 is a server, the server acquires and records the ID number, the data transmission/reception time, the factory offset time configuration, the signal value, and other data of each slave.
2) When the execution main body of the S2 is the gateway host, the gateway host acquires and records the ID number, the data receiving and transmitting time, the factory offset time configuration, the signal value and other data of each slave.
S3, configuring a time range in which the offset time of each slave is located according to the sequence, so that each slave uploads data in the respective time range, wherein:
1) S3, configuring an execution main body of a time range where the offset moment of each slave is located as a server or a gateway host in the LoRa ad hoc network according to the sequence;
2) S3, the specific implementation process of uploading the data by each slave machine in the respective time range is as follows:
① When the execution subject of the time range in which the offset time of each slave is located is configured as a server according to the sequence, the server controls each slave to upload data to the server in the respective time range.
② When the execution main body of the time range of the offset moment of each slave machine is configured as the gateway main body according to the sequence, the gateway main body in the LoRa ad hoc network controls each slave machine to upload data to the gateway main body in the respective time range, and the gateway main body uploads the received data.
③ When the execution main body of the time range of each slave machine, which is positioned at the offset moment, is configured as the gateway main body in the server or the LoRa ad hoc network according to the sequence, the time range of each slave machine, which is positioned at the offset moment, is respectively sent to each slave machine, and each slave machine actively uploads data to the gateway main body in the server or the LoRa ad hoc network according to the respective time range.
When the slave is a MEMS acceleration sensor and a GNSS sensor, the data uploaded to the server or the gateway host in the LoRa ad hoc network is the data acquired by the MEMS acceleration sensor and the data acquired by the GNSS sensor, and when the slave is other data acquisition devices and/or data sensors, the data uploaded to the server or the gateway host in the LoRa ad hoc network is the data acquired by the other data acquisition devices and/or data sensors.
3) S3, configuring a time range in which the offset moment of each slave is positioned according to the sequence, wherein the specific process is as follows:
The time range in which the offset time of any slave is located is as follows: for example, a total of 5 slaves are recorded as a first slave, a second slave, a third slave, a fourth slave and a fifth slave in the sequence from front to back, where the offset time of the first slave is T1, the offset time of the second slave is T2, the offset time of the third slave is T3, the offset time of the fourth slave is T4, and the offset time of the fifth slave is T5, and when configured, the time range in which the offset time of the first slave is T1 to T1+t, the time range in which the offset time of the second slave is T2 to T2+t, the time range in which the offset time of the third slave is T3 to T3+t, the time range in which the offset time of the fourth slave is T4 to T4+t, the offset time of the fifth slave is T5, and the time range in which the offset time of the fifth slave is T5 is t=1, may be set as the actual time range in which the actual time ranges t=1.
In the prior art, a first slave can only transmit data at time T1, a second slave can only transmit data at time T2, a third slave can only transmit data at time T3, a fourth slave can only transmit data at time T4, and a fifth slave can only transmit data at time T5.
Optionally, in the above technical solution, the method further includes:
s4, judging whether the actual data uploading time of each slave machine is in a corresponding time range or not according to the first preset frequency, obtaining a first judging result of each slave machine, correcting the time range corresponding to the slave machine with the negative first judging result, and carrying out real-time calibration on the time range where the slave machine with the time conflict, namely the slave machine with the negative first judging result, is located at the preset offset moment, so that the time accuracy of the slave machine for reporting data at fixed time is further ensured.
As shown in fig. 2, S4 specifically includes S40 to S41, specifically:
s40, determining the slave machine with time conflict:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range, obtaining a first judging result of each slave machine, determining the slave machine with the negative first judging result as the slave machine with the time conflict, namely comparing the actual data uploading time of each slave machine with the corresponding time range, and if the actual data uploading time of any slave machine is not in the corresponding time range, the slave machine is the slave machine with the time conflict, and correcting the corresponding time range of the slave machine.
S41, correction:
Determining a first slave machine with time conflict according to the sequence from front to back, and correcting the time range of the offset moment of the first slave machine with time conflict as follows: the time period from the offset time of the first slave machine with time conflict to the time range of the first slave machine with time conflict is delayed by a second preset time period, and the time range of each slave machine with time conflict after the offset time of the first slave machine with time conflict is delayed by the second preset time period, for example, the second slave machine is the slave machine with time conflict, and then the corresponding time range of the second slave machine is corrected as follows: t2 to t2+T+t, correcting the time range corresponding to the third slave to be: t3 to t3+T+t, correcting the time range corresponding to the fourth slave to be: t4 to t4+T+t, correcting the time range corresponding to the fifth slave to be: t5 to t5+t+t, where T is a second preset duration, and the specific value of T may be set according to the actual situation, for example, t=1 second, where T and T may be equal or unequal, and may be set according to the actual situation.
2) The execution body of S4 may be a server or a gateway host in the LoRa ad hoc network, and the specific implementation process of S4 is as follows:
① When the execution subject of S4 is a server, and when each slave directly uploads data to the server, the server directly obtains the actual uploading time of the data of each slave, and then determines and corrects the time range in which the offset time of the slave having time conflict is located.
② When the execution body of the S4 is a server and each slave directly uploads data to the gateway host, the server acquires the actual data uploading time of each slave from the gateway host or the gateway host actively reports the actual data uploading time of each slave to the server, and then the time range of the offset moment of the slave with time conflict is determined and corrected.
③ When the execution body of the S4 is the gateway host, and when each slave directly uploads data to the gateway host, the gateway host directly obtains the actual uploading time of the data of each slave, and then the time range of the offset moment of the slave with time conflict is determined and corrected.
④ When the execution body of the S4 is the gateway host, and when each slave directly uploads data to the server, the gateway host acquires the actual data uploading time of each slave from the server or the server actively reports the actual data uploading time of each slave to the gateway host, and then the time range of the offset moment of the slave with time conflict is determined and corrected.
3) The first preset frequency is: and executing the process of judging whether the actual data uploading time of each slave is in the corresponding time range or not at intervals of a first preset time length respectively to obtain a first judging result of each slave, wherein the first preset time length can be set according to the actual situation, for example, the first preset time length is 1min or 2min and the like.
Optionally, in the above technical solution, the method further includes:
s5, according to a second preset frequency, respectively obtaining a second judging result of each slave machine whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining the slave machine of which the second judging result is negative, specifically:
1) The execution body of S5 may be a server or a gateway host in the LoRa ad hoc network, then: and respectively obtaining a second judging result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, wherein the second judging result comprises the following steps of:
① When the execution subject of S5 is a server, and when each slave directly uploads data to the server, the server directly obtains the actual data uploading time of each slave, and then, respectively obtaining a second judgment result of each slave if the actual data uploading time of each slave is within a corresponding time range or a corrected time range.
② When the execution main body of the S5 is a server, and when each slave machine directly uploads data to the gateway host, the server acquires the actual data uploading time of each slave machine from the gateway host or the gateway host actively reports the actual data uploading time of each slave machine to the server, and then, whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range is respectively judged, so as to obtain a second judgment result of each slave machine.
③ And when the execution main body of the S5 is the gateway host, and when each slave directly uploads the data to the gateway host, the gateway host directly obtains the actual data uploading time of each slave, and then, whether the actual data uploading time of each slave is in a corresponding time range or a corrected time range is respectively judged to obtain a second judgment result of each slave.
④ When the execution main body of the S5 is the gateway host, and when each slave directly uploads data to the server, the gateway host acquires the actual data uploading time of each slave from the server or the server actively reports the actual data uploading time of each slave to the gateway host, and then, whether the actual data uploading time of each slave is in a corresponding time range or a corrected time range is respectively judged, so as to obtain a second judgment result of each slave.
2) The second preset frequency is: executing the second preset time interval to obtain a second judging result of each slave machine if the actual data uploading time of each slave machine is in the corresponding time range or the corrected time range, wherein the second preset time interval can be set according to the actual situation, for example, the second preset time interval is 1h, 8h or 24h, and the like, and generally, the second preset time interval is longer than the first preset time interval.
3) After determining that the second determination result is no, the time range may be corrected in a manner of referring to S40 to S41, specifically:
according to the sequence from front to back, determining the slave machine with the first and second judging results as no, and correcting the current time range of the offset moment of the slave machine with the first and second judging results as no as follows: the time period from the offset time of the slave machine with no first second judging result to the time of the current time range of the slave machine with no first second judging result is delayed by a third preset time period, the time range of each slave machine with no first second judging result after the offset time of the slave machine is delayed by the third preset time period, and the third preset time period can be 1 second or can be set according to actual conditions.
In another embodiment, the slave machine whose second determination result is no may be directly replaced with a new slave machine. In this embodiment, the slaves whose actual data uploading time is not in the corresponding time range or the corrected time range can be timely processed.
Optionally, in the above technical solution, in S1, calibrating the offset time of any slave includes:
S10, acquiring a radio frequency signal sent by a radio frequency antenna of any slave under the control of a first preset radio frequency instruction, and acquiring the offset moment of any slave by using a TDOA technology based on the acquired radio frequency signal and a first standard radio frequency signal corresponding to the first preset radio frequency instruction. The offset time of the factory configuration of the slave machine may have deviation, and the more accurate offset time of each slave machine is obtained through calibration, so that the time accuracy of the data is ensured. As shown in fig. 3, the method specifically includes:
S100, determining a first standard radio frequency signal, specifically:
And controlling the slave machine which is verified to be free of abnormality to send out a radio frequency signal by using a first preset radio frequency emission instruction, taking the radio frequency chip as a first standard radio frequency signal corresponding to the first preset radio frequency instruction, and recording by using a frequency spectrograph, wherein the first preset radio frequency emission instruction can be set according to actual conditions.
S101, acquiring a radio frequency signal sent by a radio frequency antenna of any slave in the LoRa ad hoc network under the control of a first preset radio frequency instruction, and specifically:
And (3) using the same first preset radio frequency emission instruction in the S100 to control the radio frequency antenna of any slave in the LoRa ad hoc network to emit radio frequency signals, and using a spectrometer to record.
S102, obtaining the offset moment of the slave machine by using a TDOA technology based on the acquired radio frequency signal and a first standard radio frequency signal corresponding to a first preset radio frequency instruction.
S103, executing S101-S102 on each of the remaining slaves in the LoRa ad hoc network to obtain offset time of each slave.
Optionally, in S10, before acquiring the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency instruction, the method further includes:
S010, detecting the radio frequency circuit of any slave to obtain a detection result, as shown in FIG. 4, specifically including:
S0100, determining a second standard radio frequency signal corresponding to a second preset radio frequency instruction, specifically:
and controlling the slave machine which is verified to be free of abnormality to send out a radio frequency signal by using a second preset radio frequency emission instruction, taking the radio frequency chip as a second standard radio frequency signal corresponding to the second preset radio frequency instruction, and recording by using a frequency spectrograph, wherein the second preset radio frequency emission instruction can be set according to actual conditions.
The second preset radio frequency transmitting instruction and the first preset radio frequency transmitting instruction may be the same or different.
S0101, replace radio frequency antenna:
Replacing the radio frequency antenna of any slave in the LoRa ad hoc network with the radio frequency antenna which is verified to be free of abnormality;
S0102, detection:
And controlling the slave machine processed by the S0101 to send out radio frequency signals according to the same second preset radio frequency transmission instruction in the S0100, and recording by using a spectrometer.
S0103, judging whether the abnormal state exists:
Calculating the similarity between the second standard radio frequency signal and the radio frequency signal obtained in the S0102, and if the similarity is lower than a preset similarity threshold, considering that the radio frequency circuit of the slave has abnormality, namely, the obtained detection result is: if the radio frequency circuit of the slave is abnormal and the similarity is not lower than the preset similarity threshold, the radio frequency circuit of the slave is considered to be normal, and the obtained detection result is: the radio frequency circuit of the slave is normal.
S0104, executing S0101-S0103 on each of the remaining slaves in the LoRa ad hoc network to obtain a detection result of the radio frequency circuit of each of the slaves.
In another embodiment, a vector network analyzer is used to detect each slave in the LoRa ad hoc network, and a detection result of the radio frequency circuit of each slave is obtained.
In S10, acquiring a radio frequency signal sent by a radio frequency antenna of any slave under the control of a first preset radio frequency instruction, including:
When the detection result is normal, the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency instruction is obtained, and the occurrence of inaccurate offset moment caused by abnormal operation of the radio frequency circuit can be prevented.
The specific technical scheme in the data transmission method based on the LoRa ad hoc network common-frequency avoidance can consider the common-frequency intelligent avoidance algorithm, and the common-frequency interference problem is solved by using the principle that the master and the slave interact and stagger the uploading time.
In another embodiment, the method comprises:
1. the slave machine leaves the factory and automatically calibrates, configures the uploading offset moment and the uploading period, and calibrates the method:
A. And (3) detecting antenna signals of the used tools by using a standard metering instrument (vector network analyzer), determining that the antenna output signals of the instrument are accurate, fixing the test distance and fixing the wireless emission test tools, testing all the terminal equipment to be tested by accessing the tools once, and receiving and recording the fixed output signals through a spectrum analyzer.
B, recording wireless output signals output by all test terminals by using a standard metering instrument (spectrometer), importing equipment ID numbers and equipment test results into a calibration tool, and performing algorithm calibration by applying a TDOA technology, wherein the calibration rule is as follows: comparing the signal with a standard value T, and if the signal is larger than the standard value T, carrying out algorithm automatic calibration on the signal of the test equipment sequentially through an algorithm, wherein the signal is T+1S;
2. The host computer and the slave computer interactively intelligently change the offset moment through the RSSI signal strength to upload data, the RSSI is used for describing the received signal quality, the smaller the numerical value is, the better the signal is, the RSS signal value changes along with the change of the channel environment, the values of each time are possibly different, and the internal algorithm judges the wireless transmission arrival time difference of the intelligent adjusting equipment periodically through real-time data recording;
Common-frequency intelligent avoidance algorithm:
1) Accessing a node;
2) Recording and storing the number of nodes, and recording the ID, the secret key, the offset time, the data, the RSSI, the factory calibration value and the like to a gateway host;
3) The gateway host automatically classifies the list according to the ID, and automatically sorts the factory calibration value and the offset time of the node equipment;
4) After uploading data, the node equipment automatically corrects and synchronizes according to the ID matching offset time, RSSI and factory calibration value;
5) The gateway monitors the uploading time of each node ID in real time, and the time conflict equipment is automatically matched and calibrated according to T+1S;
6) The gateway host performs data synchronization on the equipment every 24 hours, intelligently judges and automatically configures wireless transmission arrival time difference, and achieves same-frequency intelligent avoidance.
In the above embodiments, although steps S1, S2, etc. are numbered, only specific embodiments of the present invention are given, and those skilled in the art may adjust the execution sequence of S1, S2, etc. according to the actual situation, which is also within the scope of the present invention, and it is understood that some embodiments may include some or all of the above embodiments.
As shown in fig. 5, a data transmission system 200 based on the same-frequency avoidance of a LoRa ad hoc network in the embodiment of the present invention includes a calibration module 201, a sequencing module 202 and a configuration uploading module 203;
The calibration module 201 is used for: calibrating the offset moment of each slave in the LoRa ad hoc network;
the ranking module 202 is configured to: sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
The configuration uploading module 203 is configured to: according to the sequence, configuring a time range in which the offset moment of each slave is located, so that each slave can upload data in the respective time range.
The sorting module 202 and the configuration uploading module 203 are servers or gateway hosts in the LoRa ad hoc network.
Optionally, in the above technical solution, the system further includes a first monitoring module, where the first monitoring module is configured to:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range according to the first preset frequency, obtaining a first judging result of each slave machine, and correcting the time range corresponding to the slave machine with the negative first judging result.
Optionally, in the above technical solution, the system further includes a second monitoring module, where the second monitoring module is configured to:
And according to the second preset frequency, respectively obtaining a second judging result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining the slave machine of which the second judging result is negative.
Optionally, in the above technical solution, the calibration module 201 is specifically configured to:
The method comprises the steps of obtaining radio frequency signals sent by a radio frequency antenna of any slave machine under the control of a first preset radio frequency instruction, obtaining offset time of any slave machine based on the obtained radio frequency signals and a first standard radio frequency signal corresponding to the first preset radio frequency instruction by using a TDOA technology.
Optionally, in the above technical solution, the device further includes a radio frequency circuit detection module, where the radio frequency circuit detection module is configured to: detecting a radio frequency circuit of any slave to obtain a detection result;
The calibration module 201 is specifically configured to: when the detection result is normal, acquiring a radio frequency signal sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction.
It should be noted that, the beneficial effects of the data transmission system based on the same-frequency avoidance of the LoRa ad hoc network provided in the foregoing embodiment are the same as the beneficial effects of the data transmission method based on the same-frequency avoidance of the LoRa ad hoc network, and are not described herein again. In addition, when the system provided in the above embodiment implements the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the system is divided into different functional modules according to practical situations, so as to implement all or part of the functions described above. In addition, the system and method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
As shown in fig. 6, in an embodiment of the present invention, a computer device 300 includes a processor 320, where the processor 320 is coupled to a memory 310, and at least one computer program 330 is stored in the memory 310, and the at least one computer program 330 is loaded and executed by the processor 320, so that the computer device 300 implements any one of the above data transmission methods based on the LoRa ad hoc network co-channel avoidance, specifically:
The computer device 300 may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, where the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the computer device 300 implements a data transmission method based on the same-frequency back-off of the LoRa ad hoc network provided in the foregoing embodiment. Of course, the computer device 300 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The embodiment of the invention provides a computer readable storage medium, at least one computer program is stored in the computer readable storage medium, and the at least one computer program is loaded and executed by a processor, so that the computer realizes a data transmission method based on the same-frequency avoidance of the LoRa ad hoc network.
Alternatively, the computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a compact disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer equipment reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer equipment executes any one of the data transmission methods based on the LoRa ad hoc network common-frequency avoidance.
It should be noted that the terms "first," "second," and the like in the description and in the claims are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. The order of use of similar objects may be interchanged where appropriate such that embodiments of the application described herein may be implemented in other sequences than those illustrated or otherwise described.
Those skilled in the art will appreciate that the present invention may be embodied as a system, method or computer program product, and that the disclosure may therefore be embodied in the form of: either entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or entirely software, or a combination of hardware and software, referred to herein generally as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media, which contain computer-readable program code.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (8)

1. The data transmission method based on the same-frequency avoidance of the LoRa ad hoc network is characterized by comprising the following steps of:
Calibrating the offset moment of each slave in the LoRa ad hoc network;
sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
According to the sequence, configuring a time range in which the offset time of each slave is located, so that each slave uploads data in the respective time range, wherein the time range in which the offset time of any slave is located is as follows: the time period from the offset time of the slave to the time of the delay of the first preset duration;
calibrating the offset moment of any slave comprises the following steps:
acquiring a radio frequency signal sent by a radio frequency antenna of any slave under the control of a first preset radio frequency instruction, and acquiring the offset moment of any slave by using a TDOA technology based on the acquired radio frequency signal and a first standard radio frequency signal corresponding to the first preset radio frequency instruction.
2. The data transmission method based on the same-frequency avoidance of the LoRa ad hoc network according to claim 1, further comprising:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range according to the first preset frequency, obtaining a first judging result of each slave machine, and correcting the time range corresponding to the slave machine with the negative first judging result.
3. The data transmission method based on the same-frequency avoidance of the LoRa ad hoc network according to claim 2, further comprising:
And according to a second preset frequency, obtaining a second judgment result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining that the second judgment result is a slave machine with no second judgment result, wherein the second preset frequency is smaller than the first preset frequency.
4. The method for transmitting data based on the same frequency avoidance of the LoRa ad hoc network according to claim 1, wherein before obtaining the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency command, further comprises:
Detecting the radio frequency circuit of any slave to obtain a detection result;
The method for acquiring the radio frequency signal sent by the radio frequency antenna of any slave under the control of the first preset radio frequency instruction comprises the following steps:
And when the detection result is normal, acquiring a radio frequency signal sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction.
5. The data transmission system based on the LoRa ad hoc network common-frequency avoidance is characterized by comprising a calibration module, a sequencing module and a configuration uploading module;
The calibration module is used for: calibrating the offset moment of each slave in the LoRa ad hoc network;
The sequencing module is used for: sequencing all the slaves according to the sequence of the offset moment to obtain a sequence;
The configuration uploading module is used for: according to the sequence, configuring a time range in which the offset time of each slave is located, so that each slave uploads data in the respective time range, wherein the time range in which the offset time of any slave is located is as follows: the time period from the offset time of the slave to the time of the delay of the first preset duration;
The calibration module is specifically used for:
Acquiring radio frequency signals sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction, and acquiring offset time of any slave by using a TDOA technology based on the acquired radio frequency signals and a first standard radio frequency signal corresponding to the first preset radio frequency instruction.
6. The data transmission system based on the same-frequency avoidance of the LoRa ad hoc network according to claim 5, further comprising a first monitoring module, wherein the first monitoring module is configured to:
And respectively judging whether the actual data uploading time of each slave machine is in a corresponding time range according to the first preset frequency, obtaining a first judging result of each slave machine, and correcting the time range corresponding to the slave machine with the negative first judging result.
7. The data transmission system based on the same-frequency avoidance of the LoRa ad hoc network according to claim 6, further comprising a second monitoring module, wherein the second monitoring module is configured to:
And according to a second preset frequency, obtaining a second judgment result of each slave machine according to whether the actual data uploading time of each slave machine is in a corresponding time range or a corrected time range, and determining that the second judgment result is a slave machine with no second judgment result, wherein the second preset frequency is smaller than the first preset frequency.
8. The data transmission system based on the same frequency avoidance of the LoRa ad hoc network according to claim 5, further comprising a radio frequency circuit detection module, wherein the radio frequency circuit detection module is configured to: detecting the radio frequency circuit of any slave to obtain a detection result;
The calibration module is specifically used for: and when the detection result is normal, acquiring a radio frequency signal sent by the radio frequency antenna of any slave under the control of a first preset radio frequency instruction.
CN202310993791.1A 2023-08-08 2023-08-08 Data transmission method and system based on LoRa ad hoc network same-frequency avoidance Active CN117082652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310993791.1A CN117082652B (en) 2023-08-08 2023-08-08 Data transmission method and system based on LoRa ad hoc network same-frequency avoidance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310993791.1A CN117082652B (en) 2023-08-08 2023-08-08 Data transmission method and system based on LoRa ad hoc network same-frequency avoidance

Publications (2)

Publication Number Publication Date
CN117082652A CN117082652A (en) 2023-11-17
CN117082652B true CN117082652B (en) 2024-05-07

Family

ID=88708953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310993791.1A Active CN117082652B (en) 2023-08-08 2023-08-08 Data transmission method and system based on LoRa ad hoc network same-frequency avoidance

Country Status (1)

Country Link
CN (1) CN117082652B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188452A (en) * 2020-11-10 2021-01-05 厦门骐俊物联科技股份有限公司 Communication time slot allocation method and LoRa networking system
KR20220170639A (en) * 2021-06-23 2022-12-30 주식회사 블루텍 MEDIA ACCESS CONTROL METHOD FOR LoRa-BASED PRIVATE NETWORK OPERATION
CN116133006A (en) * 2022-12-28 2023-05-16 山东亚华电子股份有限公司 Wireless communication data packet loss processing method, device and medium
CN116390217A (en) * 2023-04-03 2023-07-04 山东浪潮科学研究院有限公司 LoRa equipment ad hoc network system based on self-adaptive time synchronization scheme
CN116405552A (en) * 2023-04-19 2023-07-07 杭州粒合信息科技有限公司 Segmented pushing method and system in low-power-consumption network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200026508A (en) * 2018-09-03 2020-03-11 현대자동차주식회사 Network apparatus for designing collision avoidance and Method for controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188452A (en) * 2020-11-10 2021-01-05 厦门骐俊物联科技股份有限公司 Communication time slot allocation method and LoRa networking system
KR20220170639A (en) * 2021-06-23 2022-12-30 주식회사 블루텍 MEDIA ACCESS CONTROL METHOD FOR LoRa-BASED PRIVATE NETWORK OPERATION
CN116133006A (en) * 2022-12-28 2023-05-16 山东亚华电子股份有限公司 Wireless communication data packet loss processing method, device and medium
CN116390217A (en) * 2023-04-03 2023-07-04 山东浪潮科学研究院有限公司 LoRa equipment ad hoc network system based on self-adaptive time synchronization scheme
CN116405552A (en) * 2023-04-19 2023-07-07 杭州粒合信息科技有限公司 Segmented pushing method and system in low-power-consumption network

Also Published As

Publication number Publication date
CN117082652A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
US9014021B2 (en) Correlating data from multiple spectrum monitors
US20200310898A1 (en) Information processing method and information processing apparatus
US20130336131A1 (en) Rtt based ranging system and method
CN106714189B (en) Method and device for analyzing cell over coverage
US20170054612A1 (en) Trouble detecting apparatus and system
WO2018023951A1 (en) Cell signal interference processing method and device
JP2017503450A (en) Cell interference investigation method and system, and network manager
US11099041B2 (en) Information processing device and information processing method
CN113207146B (en) Wireless communication network quality monitoring system and method
CN117082652B (en) Data transmission method and system based on LoRa ad hoc network same-frequency avoidance
Karjee et al. Data accuracy model for distributed clustering algorithm based on spatial data correlation in wireless sensor networks
US11652682B2 (en) Operations management apparatus, operations management system, and operations management method
WO2020119748A1 (en) Method and device for establishing and locating fingerprint database, server and storage medium
CN114125913B (en) Distributed pico-base station interference positioning method and system
CN113259022B (en) Monitoring method, unit, system and storage medium for receiving and sending sharing unit
CN112333819B (en) Equipment positioning method and device, computer equipment and storage medium
US11356874B2 (en) Detecting network devices without joining a network
CN115118357A (en) Fault detection method and device for transceiving component and storage medium
US20200083918A1 (en) Interference detection apparatus
CN112491486A (en) Interference detection system of wireless communication equipment
CN114422412A (en) Equipment detection method and device and communication equipment
CN117318847B (en) Frequency shifting device testing method, system, device and medium
CN115856948A (en) Detection system and method based on multi-channel GPS/Beidou signals
CN110312225B (en) Wireless sensor hardware device
CN108064079B (en) Clock synchronization method and base station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant