WO2016074220A1 - Data transmission method, wireless transmitting apparatus and wireless receiving apparatus - Google Patents

Data transmission method, wireless transmitting apparatus and wireless receiving apparatus Download PDF

Info

Publication number
WO2016074220A1
WO2016074220A1 PCT/CN2014/091117 CN2014091117W WO2016074220A1 WO 2016074220 A1 WO2016074220 A1 WO 2016074220A1 CN 2014091117 W CN2014091117 W CN 2014091117W WO 2016074220 A1 WO2016074220 A1 WO 2016074220A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitoring data
wireless
receiving device
wireless receiving
coding
Prior art date
Application number
PCT/CN2014/091117
Other languages
French (fr)
Chinese (zh)
Inventor
章昌焕
喻娅君
Original Assignee
武汉阿米特科技有限公司
阿米特无线(欧洲)公司
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 武汉阿米特科技有限公司, 阿米特无线(欧洲)公司 filed Critical 武汉阿米特科技有限公司
Publication of WO2016074220A1 publication Critical patent/WO2016074220A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/707Spread spectrum techniques using direct sequence modulation

Definitions

  • the present invention relates to the field of data transmission, and in particular, to a data transmission method, a wireless transmitting device, and a wireless receiving device.
  • a wireless transmitting device When wirelessly transmitting data, a wireless transmitting device is installed in the monitored scene, and a wireless receiving device is installed at a remote end, and the wireless transmitting device relies on a battery as a power source.
  • Wireless transmission methods such as zigbee or RF have limited transmission distances, affecting the application of online monitoring technology.
  • embodiments of the present invention provide a data transmission method, a wireless transmitting apparatus, and a wireless receiving apparatus.
  • the technical solution is as follows:
  • an embodiment of the present invention provides a data transmission method, which is applicable to a wireless transmitting apparatus, and the method includes:
  • the encoded monitoring data is transmitted to the wireless receiving device.
  • the sending the encoded monitoring data to the wireless receiving device includes:
  • Periodically detecting electromagnetic waves, and detecting a time interval of the electromagnetic waves is a first time length
  • Receiving an electromagnetic wave transmitted by the wireless receiving device receiving an instruction message of the electromagnetic wave transmission, where the command message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to measure the sensor
  • the monitoring data is sent to the wireless receiving device, and the padding field is used to send the command message for a duration equal to or greater than the first time length
  • the encoded monitoring data is transmitted to the wireless receiving device.
  • the sending the encoded monitoring data to the wireless receiving device includes:
  • Transmitting the encoded monitoring data to the wireless receiving device by using a real-time minimum power, where the real-time minimum power is an actual wireless signal strength and a transmitting power when the wireless transmitting device transmits the monitoring data encoded according to the previous frame. And the lowest wireless signal strength required by the wireless transmitting device to transmit data, wherein the actual wireless signal strength/transmit power the lowest wireless signal strength/the real-time minimum power.
  • the method further includes:
  • the period of sending the monitoring data is a second time length, and the second time length is greater than the first time length;
  • the encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is a value comparing the value of the monitoring data output by the sensor with a preset threshold range, and Generated when the value of the monitoring data exceeds the preset threshold range.
  • an embodiment of the present invention further provides a data transmission method, which is applicable to a wireless receiving apparatus, and the method includes:
  • the data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
  • an embodiment of the present invention further provides a wireless transmitting apparatus, where the apparatus includes:
  • a transceiver for communicating with a wireless receiving device
  • a processor configured to acquire monitoring data measured by the sensor; performing spread spectrum orthogonal coding and redundancy coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate;
  • the transceiver transmits the encoded monitoring data to the wireless receiving device.
  • the processor is configured to periodically detect an electromagnetic wave by using the transceiver, and detect a time interval of the electromagnetic wave as a first time length;
  • the processor is further configured to receive, by the transceiver, an instruction message of the electromagnetic wave transmission when the electromagnetic wave emitted by the wireless receiving device is detected, where the instruction message includes a padding field and a query field, and the query a field is configured to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, where the padding field is used to send the command message for a duration equal to or greater than the first time length;
  • the encoded monitoring data is transmitted to the wireless receiving device by the transceiver.
  • the transceiver In another implementation manner of the embodiment of the present invention, the transceiver,
  • the real-time minimum power is an actual wireless signal strength when the wireless transmitting device transmits the monitoring data encoded according to the previous frame.
  • the processor is further configured to periodically send the encoded monitoring data to the wireless receiving device by using the transceiver, and send the monitoring data.
  • the period of the second time is longer than the first time length; or
  • the encoded monitoring data is sent to the wireless receiving device by the transceiver, and the wake-up signal is a value comparing the monitored data output by the sensor with a preset threshold range And the size of the monitoring data is generated when the value of the monitoring data exceeds the preset threshold range.
  • an embodiment of the present invention further provides a wireless receiving apparatus, where the apparatus includes:
  • a transceiver for communicating with a wireless transmitting device
  • a processor configured to receive, by the transceiver, data sent by a wireless transmitting device
  • the data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
  • FIG. 1 is an application scenario diagram provided by an embodiment of the present invention
  • FIG. 2 is a flowchart of a data transmission method according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a data transmission method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of a wireless receiving apparatus according to Embodiment 7 of the present invention.
  • FIG. 9 is a schematic structural diagram of a wireless receiving apparatus according to Embodiment 8 of the present invention.
  • the scenario includes a wireless transmitting device 10, a wireless receiving device 20, a local machine 30, and a server 40.
  • the wireless transmitting device 10 and the wireless receiving device 20 are connected by wireless transmission, and the wireless receiving device 20 can pass through the local device 30.
  • the wireless receiving device 20 can also be directly connected to the server 40 by a wired connection with the server 40, wherein the wireless transmitting device 10 is provided with a sensor. See the following examples for specific solutions.
  • An embodiment of the present invention provides a data transmission method.
  • the method may be performed by a wireless transmitting apparatus, where the method includes:
  • Step 101 Obtain monitoring data measured by the sensor.
  • Step 102 Perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
  • the monitoring data may be firstly subjected to spread spectrum orthogonal coding, and then the spread spectrum orthogonally encoded monitoring data may be redundantly coded; or the monitoring data may be redundantly coded and then redundant.
  • the encoded monitoring data is subjected to spread spectrum orthogonal coding.
  • step 102 includes the following steps: first modulating the monitoring data into a digital signal; then performing code modulation on the digital signal using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
  • the digital signal is encoded and modulated by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, including:
  • the original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence
  • the pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
  • the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
  • the essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N.
  • the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N.
  • the baseband signal digital signal
  • the bandwidth is increased, and the transmission distance is further. .
  • the spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm.
  • the original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
  • the redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input.
  • the greater the redundancy coding rate the higher the efficiency.
  • More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy.
  • the remaining code ie 4/5 encoding.
  • the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate.
  • the system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication.
  • Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
  • the core idea of the spread spectrum orthogonal coding and redundant coding processing mechanism is to reduce the actual radio communication rate by applying these coding processing mechanisms, thereby greatly increasing the wireless transmission distance.
  • GFSK Gaussian Frequency Shift Keying
  • FSK Frequency Shift Keying
  • English Binary Keying
  • OOK On-Off Keying
  • the receiving sensitivity is up to -122dBm
  • the adjacent channel rejection ratio is less than 32dB
  • the open transmission distance is 700-800m.
  • the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the spread spectrum orthogonal coding and redundant coding are performed, although the communication speed The rate is partially sacrificed, but the RF communication distance and anti-interference ability are greatly improved.
  • monitoring and transmission for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); temperature and humidity inside densely populated homes; remote meter reading of gas meters and water meters; agriculture Monitoring and remote transmission of light, soil PH value, temperature and humidity, soil CO2 concentration, etc. in the greenhouse; on-line monitoring and transmission of temperature, current and voltage in the high-voltage switchgear.
  • Step 103 Send the encoded monitoring data to the wireless receiving device.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • An embodiment of the present invention provides a data transmission method.
  • the method may be performed by a wireless transmitting apparatus, where the method includes:
  • Step 201 Acquire monitoring data measured by the sensor.
  • the method may further include:
  • the wireless transmitting device Before acquiring the monitoring data measured by the sensor, the wireless transmitting device automatically detects and analyzes the type of the sensor, performs interface switching, and connects the sensor with the corresponding detecting circuit. Thereby, different sensors are connected with different detection circuits to complete acquisition of monitoring data. Specifically, the wireless transmitting device automatically detects and analyzes the type of the sensor, and: when the wireless transmitting device is powered on, the electronic switch switching sensor is controlled by a micro control unit (English: Micro Control Unit, MCU for short) in the wireless transmitting device. Connected to the circuit, through the corresponding detection mechanism to inform the MCU which interface is the current sensor. For example, the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor.
  • MCU Micro Control Unit
  • the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can pass the positive The exact interface is connected to the sensor.
  • the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
  • Step 202 Perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
  • the monitoring data may be first subjected to spread spectrum orthogonal coding, and then the spread spectrum orthogonally encoded monitoring data may be redundantly coded; or the monitoring data may be redundantly coded and then redundant.
  • the encoded monitoring data is subjected to spread spectrum orthogonal coding.
  • step 202 includes the following steps: first modulating the monitoring data into a digital signal; then performing code modulation on the digital signal using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
  • the digital signal is encoded and modulated by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, including:
  • the original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence
  • the pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
  • the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
  • the essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N.
  • the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N.
  • the baseband signal digital signal
  • the bandwidth is increased, and the transmission distance is further. .
  • the spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm.
  • the original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
  • the redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input.
  • the greater the redundancy coding rate the higher the efficiency.
  • More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy.
  • the remaining code ie 4/5 encoding.
  • the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate.
  • the system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication.
  • Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
  • the receiving sensitivity is up to -122dBm
  • the adjacent channel rejection ratio is less than 32dB
  • the open transmission distance is 700-800m.
  • the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment.
  • Transmission especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
  • Step 203 Send the encoded monitoring data to the wireless receiving device by using the real-time minimum power, and the real-time minimum power is the actual wireless signal strength, the transmitting power, and the wireless transmitting device sent by the wireless transmitting device according to the monitoring data encoded by the previous frame.
  • the lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information, and the lowest wireless signal strength may be an effective value obtained after a large number of simulation tests.
  • the wireless transmitting device In a general monitoring data acquisition scenario, although the location of the wireless transmitting device is fixed, the location of the wireless receiving device is not fixed, even when it is in motion (such as in a monitoring vehicle), so the wireless transmitting device and the wireless device
  • the distance between the receiving devices is actually unknown, so the distance can be calculated according to the actual wireless signal strength and the transmitting power when the monitoring data after the previous frame is transmitted, and then the transmission monitoring is calculated using the distance and the minimum wireless signal strength.
  • the real-time minimum power required for the data is transmitted in the transmission of the monitoring data after the next frame encoding, so that the power consumption of the wireless transmitting device can be reduced, so that the average current in the working state of the device is ⁇ 10 uA, single
  • the battery ensures that the wireless transmitter works for more than 3 years.
  • the first frame encoded monitoring data may be transmitted by using the preset power of the system, or may be transmitted by using the real-time minimum power calculated according to the last frame in the previous transmission.
  • the preset power is a default power set in advance according to the actual scene.
  • the sending the encoded monitoring data to the wireless receiving device in step 203 can be implemented in the following manner:
  • Step 1 periodically detecting the electromagnetic wave to confirm whether the wireless receiving device is currently transmitting the command message, and detecting the electromagnetic wave time interval is the first time length.
  • the time interval for detecting electromagnetic waves can be set according to actual needs, for example, set to 6S.
  • the wireless receiving device When the electromagnetic wave is detected, it may be determined whether the wireless receiving device is currently transmitting an instruction message according to the predetermined idle sequence code. For example, when the received electromagnetic wave carries 0XFF, it is confirmed that the electromagnetic wave is transmitted by the wireless receiving device.
  • Step 2 If an electromagnetic wave emitted by the wireless receiving device is detected, receiving an instruction message for transmitting the electromagnetic wave, the command message includes a filling field and a query field, and the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving The device, the padding field is used to cause the instruction message to be sent for a duration equal to or greater than the first length of time.
  • the wireless transmitting device and the wireless receiving device In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. Large current when receiving state High consumption. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
  • the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
  • the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits, and if the query field is sent alone, the instruction message is easily caused. The second is that, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device) Between the two tests), the padding field can increase the length of time required for the command message to be sent.
  • the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. Then, the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
  • the padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
  • the instruction message may also consist of a padding field and a setting field for modifying parameters on the wireless transmitting device, such as a first time length or the like.
  • Step 3 Send the encoded monitoring data to the wireless receiving device.
  • the monitoring data when the monitoring data is sent, the monitoring data can also be stored. In an extreme situation, if a single data transmission fails due to interference or abnormal power failure of the wireless receiving device, the wireless transmitting device will resume when the communication link is restored. The stored monitoring data is resent to the wireless receiving device, or a breakpoint is transmitted from the failed position to fully ensure the reliability of the entire monitoring data transmission.
  • the method may further include: monitoring the communication channel by using the frequency sweeping monitoring mode before the monitoring data is sent, and if there is the same frequency point interference signal, automatically hopping to the adjacent channel for monitoring data. send.
  • the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
  • the number of monitoring is performed.
  • the method may further include: periodically transmitting the encoded monitoring data to the wireless receiving device, the period of transmitting the monitoring data is a second time length, and the second time length is greater than the first time length; or
  • the encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is the value of the monitoring data output by the comparison sensor and the preset threshold range, and the value of the monitoring data exceeds a preset threshold range. produced. For example, if the temperature in the monitoring data is 80 degrees and the threshold range is set to not exceed 70 degrees, a wake-up signal is generated at this time, thereby transmitting the monitoring data to the wireless receiving device.
  • the second time length can also be set according to the actual scene, for example, 30 minutes or one hour.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • An embodiment of the present invention provides a data transmission method.
  • the method may be performed by a wireless receiving apparatus, where the method includes:
  • Step 301 Receive data sent by the wireless transmitting device.
  • the wireless receiving device may also send the received monitoring data to the server through a long-distance transmission method such as General Packet Radio Service (GPRS).
  • GPRS General Packet Radio Service
  • the monitoring data is transmitted to the server via GPRS when the distance is too long, so that the area that the server can cover is large enough.
  • Step 302 Decode the data sent by the wireless transmitting device by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate, to obtain monitoring data measured by the sensor.
  • the method may further include: sending an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, and the padding field is used.
  • the time period for causing the command message to be transmitted is equal to or greater than the time interval at which the wireless transmitting device detects the electromagnetic wave.
  • the wireless transmitting device and the wireless receiving device In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
  • the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
  • the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits. If the query field is sent alone, the instruction message is easily lost.
  • the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device twice) Between the detections, the padding field can increase the length of time required for the instruction message to be sent.
  • the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device.
  • the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
  • the padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
  • the instruction message may also consist of a padding field and a setting field for modifying parameters on the wireless transmitting device, such as a first time length or the like.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • the embodiment of the invention provides a wireless transmitting device.
  • the device includes:
  • a transceiver 402 configured to communicate with a wireless receiving device
  • the processor 403 is configured to acquire monitoring data measured by the sensor 401; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The encoded monitoring data is sent to the wireless receiving device.
  • the processor 403 may perform the spread spectrum orthogonal coding on the monitoring data, and then perform redundancy coding on the spread spectrum orthogonally encoded monitoring data.
  • the monitoring data may be redundantly coded and then redundant.
  • the encoded monitoring data is subjected to spread spectrum orthogonal coding.
  • the processor 403 can be configured to: first modulate the monitoring data into a digital signal; and then perform code modulation on the digital signal by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
  • the processor 403 can be implemented in the following manner by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
  • the processor 403 can be used to:
  • the original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence
  • the pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
  • the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
  • the essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N.
  • the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N.
  • the baseband signal digital signal
  • the bandwidth is increased, and the transmission distance is further. .
  • the spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm.
  • the original spreading sequence needs to be defined in the spreading sequence algorithm.
  • the current spreading factor is 6, the original spreading order
  • the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo-random code of length N.
  • the redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input.
  • the greater the redundancy coding rate the higher the efficiency.
  • More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy.
  • the remaining code ie 4/5 encoding.
  • the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate.
  • the system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication.
  • Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
  • GFSK, FSK and OOK are used for modulation.
  • the receiving sensitivity is up to -122dBm
  • the adjacent channel rejection ratio is less than 32dB
  • the open transmission distance is 700 ⁇ 800m.
  • the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment.
  • Transmission especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • An embodiment of the present invention provides a wireless transmitting apparatus.
  • the apparatus includes:
  • a transceiver 502 configured to communicate with a wireless receiving device
  • the processor 503 is configured to acquire monitoring data measured by the sensor 501; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The encoded monitoring data is sent to the wireless receiving device.
  • the processor 503 may perform the spread spectrum orthogonal coding on the monitoring data, and then perform redundancy coding on the spread spectrum orthogonally encoded monitoring data; or may perform redundancy coding on the monitoring data first, and then perform redundancy.
  • the encoded monitoring data is subjected to spread spectrum orthogonal coding.
  • the processor 503 can be configured to: first modulate the monitoring data into a digital signal; and then perform code modulation on the digital signal by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
  • the processor 503 can be implemented in the following manner by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
  • the processor 503 can be used to:
  • the original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence
  • the pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
  • the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
  • the essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N.
  • the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N.
  • the baseband signal digital signal
  • the bandwidth is increased, and the transmission distance is further. .
  • the spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm.
  • the original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
  • the redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input.
  • the greater the redundancy coding rate the higher the efficiency.
  • More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy.
  • the remaining code ie 4/5 encoding.
  • the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate.
  • the system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication.
  • Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
  • GFSK, FSK and OOK are used for modulation.
  • the receiving sensitivity is up to -122dBm
  • the adjacent channel rejection ratio is less than 32dB
  • the open transmission distance is 700 ⁇ 800m.
  • the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment.
  • Transmission especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
  • the processor 503 can be configured to periodically detect electromagnetic waves through the transceiver 502, and detect a time interval of the electromagnetic waves as a first time length;
  • the command message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, and the padding field is used to enable the command message to be sent for a duration equal to or longer than the first time length;
  • the monitoring data measured by the sensor is acquired, and the encoded monitoring data is transmitted to the wireless receiving device through the transceiver 502.
  • the time interval for detecting electromagnetic waves can be set according to actual needs, for example, set to 6S.
  • the wireless receiving device When the electromagnetic wave is detected, it may be determined whether the wireless receiving device is currently transmitting an instruction message according to the predetermined idle sequence code. For example, when the received electromagnetic wave carries 0XFF, it is confirmed that the electromagnetic wave is transmitted by the wireless receiving device.
  • the wireless transmitting device and the wireless receiving device In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
  • the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
  • the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits, and if the query field is sent alone, the instruction message is easily caused. The second is that, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device) Between the two tests), the padding field can increase the length of time required for the command message to be sent.
  • the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. Then, the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
  • the padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
  • the instruction message may also be composed of a padding field and a setting field, and the setting word The segment is used to modify parameters on the wireless transmitting device, such as the first length of time.
  • the processor 503 can automatically detect and analyze the type of the sensor, and perform interface switching, so that different sensors are connected with different detection circuits to complete the acquisition of the monitoring data.
  • the processor 503 can be implemented by using an MCU, that is, when the wireless transmitting device is powered on, the MCU in the wireless transmitting device controls the electronic switch to switch the circuit connected to the sensor, and the corresponding detecting mechanism is used to notify the MCU of the current sensor.
  • the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor.
  • the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can connect with the sensor through the correct interface.
  • the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
  • the transceiver 502 is configured to send the encoded monitoring data to the wireless receiving device by using the real-time minimum power, and the real-time minimum power is the actual wireless signal when the wireless transmitting device transmits the monitoring data according to the previous frame encoding.
  • the strength, the transmit power, and the minimum wireless signal strength required to transmit data by the wireless transmitting device, wherein the actual wireless signal strength/transmit power the lowest wireless signal strength / the real-time minimum power.
  • the lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information.
  • the wireless transmitting device In a general monitoring data acquisition scenario, although the location of the wireless transmitting device is fixed, the location of the wireless receiving device is not fixed, even when it is in motion (such as in a monitoring vehicle), so the wireless transmitting device and the wireless device
  • the distance between the receiving devices is actually unknown, so the distance can be calculated according to the actual wireless signal strength and the transmitting power when the monitoring data after the previous frame is transmitted, and then the transmission monitoring is calculated using the distance and the minimum wireless signal strength.
  • the real-time minimum power required for the data is transmitted in the transmission of the monitoring data after the next frame encoding, so that the power consumption of the wireless transmitting device can be reduced, so that the average current in the working state of the device is ⁇ 10 uA, single
  • the battery ensures that the wireless transmitter works for more than 3 years.
  • the first frame encoded monitoring data may be transmitted by using the preset power of the system, or may be transmitted by using the real-time minimum power calculated according to the last frame in the previous transmission.
  • the preset power is a default power set in advance according to the actual scene.
  • the monitoring data when the monitoring data is sent, the monitoring data can also be stored in the memory 504.
  • the wireless transmitting device recovers in the communication link.
  • the monitoring data stored in the memory 504 is retransmitted to the wireless receiving device, or the breakpoint is transmitted from the failure position to fully ensure the reliability of the entire monitoring data transmission.
  • the processor 503 is further configured to monitor the communication channel by using the frequency sweeping monitoring mode before the monitoring data is sent, and if there is the same frequency point interference signal, automatically hopping to the adjacent channel for monitoring data. Send.
  • the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
  • the processor 503 is further configured to periodically send the encoded monitoring data to the wireless receiving device by using the transceiver 502, and send the monitoring data to a second time length, where the second time length is greater than the first time length; or,
  • the encoded monitoring data is sent to the wireless receiving device through the transceiver 502.
  • the wake-up signal is the value of the monitoring data output by the comparison sensor and the preset threshold range, and the value of the monitoring data exceeds the preset.
  • the threshold range is generated when.
  • the second time length can also be set according to the actual scene, for example, 30 minutes or one hour.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • the embodiment of the present invention provides a wireless transmitting device.
  • the device may include one or more of the following components: a processor 601, a memory 602, a transceiver 603, a battery 604, a voltage monitoring unit 605, and a power management unit 606. , sensor 607, interface switching circuit 608 and other components. These components communicate over one or more buses.
  • a processor 601 a memory 602, a transceiver 603, a battery 604, a voltage monitoring unit 605, and a power management unit 606.
  • sensor 607 communicate over one or more buses.
  • the structure of the mobile terminal shown in the figure does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more or less than the illustration. Parts, or combine some parts, or different parts.
  • the memory 602 is used to store computer execution instructions, and the processor 601 is connected to the memory 602 via a bus.
  • the processor 601 executes a computer executed instruction stored in the memory 602 to enable the wireless transmitting device to execute the first embodiment. Or the data transmission method described in two.
  • the processor 601 is configured to acquire monitoring data measured by the sensor; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate; The encoded monitoring data is sent to the wireless receiving device
  • the processor 601 is further configured to periodically detect the electromagnetic wave, and the time interval of detecting the electromagnetic wave is a first time length;
  • Receiving an electromagnetic wave transmitted by the wireless receiving device receiving an instruction message of the electromagnetic wave transmission, the command message includes a filling field and a query field, and the query field is configured to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, filling The field is used to cause the instruction message to be sent for a duration equal to or greater than the first length of time;
  • the encoded monitoring data is transmitted to the wireless receiving device through the transceiver.
  • the processor 601 can automatically detect and analyze the type of the sensor when acquiring the monitoring data measured by the sensor.
  • the interface switching circuit 608 is configured to perform interface switching under the control of the processor 601, and connect different sensors to different detection circuits to Obtain the acquisition of monitoring data.
  • the processor 601 may be an MCU.
  • the MCU in the wireless transmitting device controls the circuit connected to the electronic switch switching sensor 607 in the interface switching circuit 608, and notifies the MCU through a corresponding detection mechanism. What interface is the current sensor? For example, the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor.
  • the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can connect with the sensor through the correct interface.
  • the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
  • the lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information.
  • the monitoring data may also be stored in the memory 602 when the monitoring data is transmitted.
  • the wireless transmitting device may resume when the communication link is restored.
  • the stored monitoring data is retransmitted to the wireless receiving device, or the resume transmission is performed from the failure position to fully ensure the reliability of the entire monitoring data transmission.
  • the processor 601 can also monitor the communication channel by using the frequency sweeping monitoring mode before the monitoring data is transmitted. If there is the same frequency point interference signal, the frequency hopping frequency is automatically hopped to the adjacent channel for the monitoring data transmission. .
  • the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
  • the processor 601 is configured to periodically send the encoded monitoring data to the wireless receiving device, and send the monitoring data to a second time length, where the second time length is greater than the first time length; or, when the wake-up signal is generated
  • the encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is generated when the value of the monitoring data output by the comparison sensor is different from the preset threshold range, and the value of the monitoring data exceeds a preset threshold range.
  • voltage monitoring unit 605 and power management unit 606 are used to monitor and manage battery 604, respectively.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • An embodiment of the present invention provides a wireless receiving apparatus.
  • the apparatus includes:
  • a transceiver 701 configured to communicate with a wireless transmitting device
  • the processor 702 is configured to receive, by using the transceiver 701, data sent by the wireless transmitting device.
  • the data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, and the monitoring data measured by the sensor is obtained.
  • the processor 702 is further configured to send, by using the transceiver 701, an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving.
  • the device, the padding field is used to cause the command message to be sent for a time period equal to or greater than a time interval at which the wireless transmitting device detects the electromagnetic wave.
  • the wireless transmitting device and the wireless receiving device In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
  • the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
  • the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits. If the query field is sent alone, the instruction message is easily lost.
  • the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device twice) Between the detections, the padding field can increase the length of time required for the instruction message to be sent.
  • the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device.
  • the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
  • the padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
  • the instruction message may also be composed of a padding field and a setting field, and the setting word The segment is used to modify parameters on the wireless transmitting device, such as the first length of time.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • the apparatus may include one or more of the following components: a processor 801, a memory 802, a transceiver 803, an input unit 804, a display unit 805, and a GPRS unit 806.
  • GPS Global Positioning System
  • These components communicate over one or more buses.
  • the structure of the mobile terminal shown in the figure does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more or less than the illustration. Parts, or combine some parts, or different parts.
  • the memory 802 is used to store computer execution instructions, and the processor 801 is connected to the memory 802 through a bus.
  • the processor 801 executes a computer executed instruction stored in the memory 802 to enable the wireless receiving device to execute the third embodiment.
  • the processor 801 is configured to receive, by using the transceiver 803, data sent by the wireless transmitting device.
  • the data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, and the monitoring data measured by the sensor is obtained.
  • the processor 801 is further configured to send, by using the receiver 803, an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving.
  • the device, the padding field is used to cause the command message to be sent for a time period equal to or greater than a time interval at which the wireless transmitting device detects the electromagnetic wave.
  • the input unit 804 is configured to acquire input information such as a user's button, voice, and the like to obtain an instruction message.
  • the display unit 805 displays the received monitoring data.
  • the GPRS unit 806 is configured to transmit the received monitoring data through the GPRS.
  • the input method is sent to the server.
  • the power failure detecting unit 812 is configured to detect whether the external power source is powered off.
  • the processor 801 can control the wireless receiving device to reduce power consumption, such as turning off the display unit 805, the GPRS unit 806, and Modules such as GPS unit 807.
  • the GPS unit 807 when the wireless receiving device is in motion, the GPS unit 807 can be used to perform satellite positioning on the wireless receiving device.
  • the charge management unit 809 and the power management unit 810 are used to manage the charging and use of the battery 808.
  • the external power interface 811 can be used to connect to an external power source.
  • the processor 801 controls the audible and visual alarm unit 813 to perform an alarm when the monitoring data exceeds the corresponding threshold, thereby alerting the staff.
  • communication interface 814 can be used to interface with a local machine to transmit monitoring data.
  • the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding
  • the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination
  • a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
  • the wireless transmitting device and the wireless receiving device provided by the foregoing embodiments only use the division of the foregoing functional modules when transmitting data.
  • the functions may be assigned different functions according to needs.
  • the module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the wireless transmitting apparatus and the wireless receiving apparatus provided by the foregoing embodiments are in the same concept as the data transmission method embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

Disclosed are a data transmission method, a wireless transmitting apparatus and a wireless receiving apparatus, which belong to the field of data transmission. The method comprises: acquiring monitoring data measured by a sensor; adopting a pre-determined spectrum spreading factor, a spectrum spreading sequence algorithm and a redundant coding rate to perform orthogonal spectrum spreading coding and redundant coding on the monitoring data; and sending the coded monitoring data to the wireless receiving apparatus. In the present invention, by way of performing orthogonal spectrum spreading coding and redundant coding on monitoring data, and after performing a combined coding mode of the orthogonal spectrum spreading coding and the redundant coding on the monitoring data, much redundant information is added to the monitoring data, thereby greatly enhancing the communication reliability of a channel, the sensitivity of signal reception and the link stability, and a communication distance being greatly prolonged, which is applicable to the long-distance transmission of a small amount of data.

Description

数据传输方法、无线发射装置及无线接收装置Data transmission method, wireless transmitting device and wireless receiving device 技术领域Technical field
本发明涉及数据传输领域,特别涉及一种数据传输方法、无线发射装置及无线接收装置。The present invention relates to the field of data transmission, and in particular, to a data transmission method, a wireless transmitting device, and a wireless receiving device.
背景技术Background technique
随着科技的发展和进步,人们在越来越多的场景中应用在线监测技术实现采集量的获取。例如,集装箱、冷藏车、医药箱、冰柜、大型冻库等的温度监测,煤气表、水表的远程抄表,农业大棚内光照、土壤PH值、土壤CO2浓度及温湿度监测,电力高压开关柜内温度、电流和电压的监测。With the development and advancement of technology, people use online monitoring technology to obtain acquisition volume in more and more scenes. For example, temperature monitoring of containers, refrigerated trucks, medicine cabinets, freezers, large freezers, remote meter reading of gas meters and water meters, illumination of agricultural greenhouses, soil pH, soil CO 2 concentration and temperature and humidity monitoring, high-voltage switch Monitoring of temperature, current and voltage in the cabinet.
为了获取这些采集量,通常是在被监测场景中安装相应的传感器,然后将传感器获得的采集量输出到上位机。但在很多场景中,由于受环境或成本限制,可能不方便进行布线。因此在这些环境,只能通过采用zigbee或射频(英文:Radio Frequency,简称RF)等无线方式来实现数据(采集量)传输。In order to obtain these acquisition quantities, it is common to install a corresponding sensor in the monitored scene, and then output the collected amount obtained by the sensor to the upper computer. However, in many scenarios, it may be inconvenient to route due to environmental or cost constraints. Therefore, in these environments, data (acquisition volume) transmission can only be achieved by using a wireless method such as zigbee or radio frequency (English: Radio Frequency, RF for short).
在采用无线方式进行数据传输时,在被监测场景中安装无线发射装置,在远端安装无线接收装置,无线发射装置依靠电池作为电源。When wirelessly transmitting data, a wireless transmitting device is installed in the monitored scene, and a wireless receiving device is installed at a remote end, and the wireless transmitting device relies on a battery as a power source.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
zigbee或RF等无线传输方式传输距离有限,影响在线监测技术的应用。Wireless transmission methods such as zigbee or RF have limited transmission distances, affecting the application of online monitoring technology.
发明内容Summary of the invention
为了解决现有技术的问题,本发明实施例提供了一种数据传输方法、无线发射装置及无线接收装置。所述技术方案如下:In order to solve the problems of the prior art, embodiments of the present invention provide a data transmission method, a wireless transmitting apparatus, and a wireless receiving apparatus. The technical solution is as follows:
一方面,本发明实施例提供了一种数据传输方法,适用于无线发射装置,所述方法包括:In one aspect, an embodiment of the present invention provides a data transmission method, which is applicable to a wireless transmitting apparatus, and the method includes:
获取传感器测得的监测数据;Obtaining monitoring data measured by the sensor;
采用预定的扩频因子、扩频序列算法和冗余编码率对所述监测数据进行扩频正交编码和冗余编码;Performing spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate;
将编码后的所述监测数据发送给所述无线接收装置。 The encoded monitoring data is transmitted to the wireless receiving device.
在本发明实施例的一种实现方式中,所述将编码后的所述监测数据发送给所述无线接收装置,包括:In an implementation manner of the embodiment of the present invention, the sending the encoded monitoring data to the wireless receiving device includes:
周期性地检测电磁波,检测所述电磁波的时间间隔为第一时间长度;Periodically detecting electromagnetic waves, and detecting a time interval of the electromagnetic waves is a first time length;
若检测到有所述无线接收装置发射的电磁波,则接收所述电磁波传输的指令消息,所述指令消息包括填充字段和查询字段,所述查询字段用于请求所述无线发射装置将传感器测得的监测数据发送给所述无线接收装置,所述填充字段用于使所述指令消息发送所用时长等于或者大于所述第一时间长度;Receiving an electromagnetic wave transmitted by the wireless receiving device, receiving an instruction message of the electromagnetic wave transmission, where the command message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to measure the sensor The monitoring data is sent to the wireless receiving device, and the padding field is used to send the command message for a duration equal to or greater than the first time length;
将编码后的所述监测数据发送给所述无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device.
在本发明实施例的另一种实现方式中,所述将编码后的所述监测数据发送给所述无线接收装置,包括:In another implementation manner of the embodiment of the present invention, the sending the encoded monitoring data to the wireless receiving device includes:
采用实时最低功率将编码后的所述监测数据发送给所述无线接收装置,所述实时最低功率是所述无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及所述无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。Transmitting the encoded monitoring data to the wireless receiving device by using a real-time minimum power, where the real-time minimum power is an actual wireless signal strength and a transmitting power when the wireless transmitting device transmits the monitoring data encoded according to the previous frame. And the lowest wireless signal strength required by the wireless transmitting device to transmit data, wherein the actual wireless signal strength/transmit power=the lowest wireless signal strength/the real-time minimum power.
在本发明实施例的另一种实现方式中,所述方法还包括:In another implementation manner of the embodiment of the present invention, the method further includes:
周期性地将编码后的所述监测数据发送给所述无线接收装置,发送所述监测数据的周期为第二时间长度,所述第二时间长度大于所述第一时间长度;或者,And periodically transmitting the encoded monitoring data to the wireless receiving device, the period of sending the monitoring data is a second time length, and the second time length is greater than the first time length; or
当产生唤醒信号时,将编码后的所述监测数据发送给所述无线接收装置,所述唤醒信号是比较所述传感器输出的所述监测数据的值与预设的阈值范围的大小,且所述监测数据的值超出所述预设的阈值范围时产生的。When the wake-up signal is generated, the encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is a value comparing the value of the monitoring data output by the sensor with a preset threshold range, and Generated when the value of the monitoring data exceeds the preset threshold range.
另一方面,本发明实施例还提供了一种数据传输方法,适用于无线接收装置,所述方法包括:On the other hand, an embodiment of the present invention further provides a data transmission method, which is applicable to a wireless receiving apparatus, and the method includes:
接收无线发射装置发送的数据;Receiving data transmitted by the wireless transmitting device;
采用预定的扩频因子、扩频序列算法和冗余编码率对所述无线发射装置发送的数据进行解码,得到传感器测得的监测数据。 The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
另一方面,本发明实施例还提供了一种无线发射装置,所述装置包括:In another aspect, an embodiment of the present invention further provides a wireless transmitting apparatus, where the apparatus includes:
传感器;sensor;
收发器,用于与无线接收装置通信;a transceiver for communicating with a wireless receiving device;
处理器,用于获取所述传感器测得的监测数据;采用预定的扩频因子、扩频序列算法和冗余编码率对所述监测数据进行扩频正交编码和冗余编码;通过所述收发器将编码后的所述监测数据发送给所述无线接收装置。a processor, configured to acquire monitoring data measured by the sensor; performing spread spectrum orthogonal coding and redundancy coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The transceiver transmits the encoded monitoring data to the wireless receiving device.
在本发明实施例的一种实现方式中,所述处理器,用于通过所述收发器周期性地检测电磁波,检测所述电磁波的时间间隔为第一时间长度;In an implementation manner of the embodiment of the present invention, the processor is configured to periodically detect an electromagnetic wave by using the transceiver, and detect a time interval of the electromagnetic wave as a first time length;
所述处理器,还用于当检测到有所述无线接收装置发射的电磁波时,通过所述收发器接收所述电磁波传输的指令消息,所述指令消息包括填充字段和查询字段,所述查询字段用于请求所述无线发射装置将所述传感器测得的监测数据发送给所述无线接收装置,所述填充字段用于使所述指令消息发送所用时长等于或者大于所述第一时间长度;The processor is further configured to receive, by the transceiver, an instruction message of the electromagnetic wave transmission when the electromagnetic wave emitted by the wireless receiving device is detected, where the instruction message includes a padding field and a query field, and the query a field is configured to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, where the padding field is used to send the command message for a duration equal to or greater than the first time length;
通过所述收发器将编码后的所述监测数据发送给所述无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device by the transceiver.
在本发明实施例的另一种实现方式中,所述收发器,In another implementation manner of the embodiment of the present invention, the transceiver,
用于采用实时最低功率将编码后的所述监测数据发送给所述无线接收装置,所述实时最低功率是所述无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及所述无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。And transmitting, by using the real-time minimum power, the encoded monitoring data to the wireless receiving device, where the real-time lowest power is an actual wireless signal strength when the wireless transmitting device transmits the monitoring data encoded according to the previous frame, The transmit power and the minimum wireless signal strength required by the wireless transmitting device to transmit data are calculated, wherein the actual wireless signal strength/transmit power = the lowest wireless signal strength / the real-time minimum power.
在本发明实施例的另一种实现方式中,所述处理器,还用于周期性地通过所述收发器将编码后的所述监测数据发送给所述无线接收装置,发送所述监测数据的周期为第二时间长度,所述第二时间长度大于所述第一时间长度;或者,In another implementation manner of the embodiment of the present invention, the processor is further configured to periodically send the encoded monitoring data to the wireless receiving device by using the transceiver, and send the monitoring data. The period of the second time is longer than the first time length; or
当产生唤醒信号时,通过所述收发器将编码后的所述监测数据发送给所述无线接收装置,所述唤醒信号是比较所述传感器输出的所述监测数据的值与预设的阈值范围的大小,且所述监测数据的值超出所述预设的阈值范围时产生的。When the wake-up signal is generated, the encoded monitoring data is sent to the wireless receiving device by the transceiver, and the wake-up signal is a value comparing the monitored data output by the sensor with a preset threshold range And the size of the monitoring data is generated when the value of the monitoring data exceeds the preset threshold range.
另一方面,本发明实施例还提供了一种无线接收装置,所述装置包括: In another aspect, an embodiment of the present invention further provides a wireless receiving apparatus, where the apparatus includes:
收发器,用于与无线发射装置通信;a transceiver for communicating with a wireless transmitting device;
处理器,用于通过所述收发器接收无线发射装置发送的数据;a processor, configured to receive, by the transceiver, data sent by a wireless transmitting device;
采用预定的扩频因子、扩频序列算法和冗余编码率对所述无线发射装置发送的数据进行解码,得到传感器测得的监测数据。The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present invention are:
通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。Through the spread spectrum orthogonal coding and redundant coding of the monitoring data, after the monitoring data is combined by the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the communication reliability and signal of the channel are greatly enhanced. Receive sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供的应用场景图;FIG. 1 is an application scenario diagram provided by an embodiment of the present invention;
图2是本发明实施例一提供的数据传输方法流程图;2 is a flowchart of a data transmission method according to Embodiment 1 of the present invention;
图3是本发明实施例二提供的数据传输方法流程图;3 is a flowchart of a data transmission method according to Embodiment 2 of the present invention;
图4是本发明实施例三提供的数据传输方法流程图;4 is a flowchart of a data transmission method according to Embodiment 3 of the present invention;
图5是本发明实施例四提供的无线发射装置的结构示意图;FIG. 5 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 4 of the present invention; FIG.
图6是本发明实施例五提供的无线发射装置的结构示意图;6 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 5 of the present invention;
图7是本发明实施例六提供的无线发射装置的结构示意图;FIG. 7 is a schematic structural diagram of a wireless transmitting apparatus according to Embodiment 6 of the present invention; FIG.
图8是本发明实施例七提供的无线接收装置的结构示意图;FIG. 8 is a schematic structural diagram of a wireless receiving apparatus according to Embodiment 7 of the present invention; FIG.
图9是本发明实施例八提供的无线接收装置的结构示意图;。FIG. 9 is a schematic structural diagram of a wireless receiving apparatus according to Embodiment 8 of the present invention; FIG.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
为了便于实施例的描述,下面先简单介绍一下本发明实施例的应用场 景。参见图1,该场景包括无线发射装置10、无线接收装置20、本地机30及服务器40,其中无线发射装置10和无线接收装置20通过无线传输方式连接,无线接收装置20既可以通过本地机30与服务器40有线连接,无线接收装置20也可以直接与服务器40无线连接,其中无线发射装置10内设有传感器。具体方案见下述实施例。In order to facilitate the description of the embodiments, the application field of the embodiment of the present invention will be briefly described below. view. Referring to FIG. 1, the scenario includes a wireless transmitting device 10, a wireless receiving device 20, a local machine 30, and a server 40. The wireless transmitting device 10 and the wireless receiving device 20 are connected by wireless transmission, and the wireless receiving device 20 can pass through the local device 30. The wireless receiving device 20 can also be directly connected to the server 40 by a wired connection with the server 40, wherein the wireless transmitting device 10 is provided with a sensor. See the following examples for specific solutions.
实施例一Embodiment 1
本发明实施例提供了一种数据传输方法,参见图2,该方法可以由无线发射装置执行,该方法包括:An embodiment of the present invention provides a data transmission method. Referring to FIG. 2, the method may be performed by a wireless transmitting apparatus, where the method includes:
步骤101:获取传感器测得的监测数据。Step 101: Obtain monitoring data measured by the sensor.
步骤102:采用预定的扩频因子、扩频序列算法和冗余编码率对监测数据进行扩频正交编码和冗余编码。Step 102: Perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
具体地,步骤102中既可先对监测数据进行扩频正交编码,然后对扩频正交编码后的监测数据进行冗余编码;也可以先对监测数据进行冗余编码,然后对冗余编码后的监测数据进行扩频正交编码。Specifically, in step 102, the monitoring data may be firstly subjected to spread spectrum orthogonal coding, and then the spread spectrum orthogonally encoded monitoring data may be redundantly coded; or the monitoring data may be redundantly coded and then redundant. The encoded monitoring data is subjected to spread spectrum orthogonal coding.
具体地,步骤102包括以下过程:先将监测数据调制成数字信号;然后对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制以展宽信号的频谱。然后在后续步骤中,再将展宽后的信号调制成射频信号发送出去。而在无线接收装置一侧收到射频信号后,先变频至中频,然后由预定的与无线发射装置一侧相同的扩频因子、扩频序列算法和冗余编码率去解扩,再经解调即可恢复成原始的监测数据输出。Specifically, step 102 includes the following steps: first modulating the monitoring data into a digital signal; then performing code modulation on the digital signal using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
其中,对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制,包括:Wherein, the digital signal is encoded and modulated by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, including:
将原始扩频序列按扩频因子进行扩频,扩频序列算法包括原始扩频序列;The original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence;
将扩频后的序列与数字信号(基带信号)相乘,得到伪随机码序列;Multiplying the spread sequence with a digital signal (baseband signal) to obtain a pseudo random code sequence;
采用上述冗余编码率对伪随机码序列进行冗余编码,得到编码调制信号。The pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
也即是说,编码调制包括扩频正交编码和冗余编码两个部分,下面就对扩频正交编码和冗余编码进行详细说明: That is to say, the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
扩频正交编码的本质是一种(N,m)编码,即m位信息码(监测数据)由长为N的伪随机码来代表。M位信息码有M=2m个状态,统称为M进制扩频系统,M进制扩频系统需要M条长为N的相互正交的伪随机码ci,i=0,1,2,3,……,M-1来代表m位信息码的M个状态,M条长为N的伪随机码与m位信息码的M个状态是一一对应关系。在实际实现过程中,将扩频序列与基带信号(数字信号)相乘(即做模二加运算)得到长为N的伪随机码,基带信号扩频之后带宽得到了增加,传输距离更远。The essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N. The M-bit information code has M=2 m states, collectively referred to as an M-ary spread spectrum system, and the M-ary spread spectrum system requires M mutually orthogonal pseudo-random codes c i , i=0, 1, 2, 3, ..., M-1 represents M states of the m-bit information code, and M pseudo-random codes of length N and the M states of the m-bit information code have a one-to-one correspondence. In the actual implementation process, the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N. After the baseband signal is spread, the bandwidth is increased, and the transmission distance is further. .
扩频序列可以由预定的扩频因子和扩频序列算法计算得到。其中扩频序列算法中需要定义原始扩频序列。例如,当前的扩频因子为6,原始扩频序列为1111,则将原始扩频序列按扩频因子每1比特扩展为64比特,然后与基带信号相乘,输出最终的长为N的伪随机码。The spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm. The original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
冗余编码实际上是对输入的数据进行编码率处理,例如冗余编码率为4/6即输入4个码时输出6个码。冗余编码率越大,效率越高。当信道质量比较差的时候,需要增加更多的冗余信息来保证无线接收装置能够正确解调信号,更多的冗余信息意味着低的编码率,最低是1个码需要增加1个冗余码,即4/5编码。当信道质量好的时候,需要很少的冗余校验位就能解调,就可以提高编码率了。系统可以根据信道的变化选择合适的编码率,这样可以使得信道质量好的用户获得更高的速率,提高通信的稳定性。冗余编码通过选择合适的编码率,增加冗余信息,例如将1101编码为11101111,增强了信道的通信可靠性,使得传输距离更远。The redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input. The greater the redundancy coding rate, the higher the efficiency. When the channel quality is relatively poor, more redundant information needs to be added to ensure that the wireless receiving device can correctly demodulate the signal. More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy. The remaining code, ie 4/5 encoding. When the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate. The system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication. Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
扩频正交编码和冗余编码处理机制的核心思想为,通过施加这些编码处理机制,降低射频实际通信速率,从而大幅提升无线传输距离。The core idea of the spread spectrum orthogonal coding and redundant coding processing mechanism is to reduce the actual radio communication rate by applying these coding processing mechanisms, thereby greatly increasing the wireless transmission distance.
在传统的RF射频技术,多采用高斯频移键控(英文:Gauss Frequency Shift Keying,简称:GFSK)、频移键控(英文:Frequency Shift Keying,简称:FSK)以及二进制启闭键控(英文:On-Off Keying,简称:OOK)等方式调制,接收灵敏度最高为-122dBm,相邻信道抑制比小于32dB,基于10mW峰值射频发射功率时,空旷传输距离达到700~800m。In the traditional RF technology, Gaussian Frequency Shift Keying (GFSK), Frequency Shift Keying (FSK) and Binary Keying (English) are used. : On-Off Keying, abbreviated as: OOK), the receiving sensitivity is up to -122dBm, the adjacent channel rejection ratio is less than 32dB, and based on the 10mW peak RF transmit power, the open transmission distance is 700-800m.
而同时进行扩频正交编码和冗余编码后,可使得射频的接收灵敏度达到-148dBm,相邻信道抑制比达到69dB,基于10mW峰值射频发送功率时,空旷传输距离达到3km。可见,进行扩频正交编码和冗余编码后虽然通信速 率有部分牺牲,但射频通信距离和抗干扰能力均大幅提升,这些参数决定了它可实现复杂环境下的小数据量远距离无线数据传输,特别适合于某些复杂场所内的采集量(监测数据)监测及传输,例如:封闭物体内部(集装箱,冷藏车,医药箱,冰柜,大型冷库)的温湿度监测及传输;密集小区家庭内部的温湿度;煤气表、水表的远程抄表;农业大棚内光照、土壤PH值、温湿度、土壤CO2浓度等的监测及远程传输;电力高压开关柜内温度、电流、电压的在线监测及传输等。At the same time, the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the spread spectrum orthogonal coding and redundant coding are performed, although the communication speed The rate is partially sacrificed, but the RF communication distance and anti-interference ability are greatly improved. These parameters determine that it can realize small data volume long-distance wireless data transmission in complex environments, especially suitable for collection in some complex places (monitoring Data) monitoring and transmission, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); temperature and humidity inside densely populated homes; remote meter reading of gas meters and water meters; agriculture Monitoring and remote transmission of light, soil PH value, temperature and humidity, soil CO2 concentration, etc. in the greenhouse; on-line monitoring and transmission of temperature, current and voltage in the high-voltage switchgear.
步骤103:将编码后的监测数据发送给无线接收装置。Step 103: Send the encoded monitoring data to the wireless receiving device.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例二Embodiment 2
本发明实施例提供了一种数据传输方法,参见图3,该方法可以由无线发射装置执行,该方法包括:An embodiment of the present invention provides a data transmission method. Referring to FIG. 3, the method may be performed by a wireless transmitting apparatus, where the method includes:
步骤201:获取传感器测得的监测数据。Step 201: Acquire monitoring data measured by the sensor.
进一步地,该方法还可以包括:Further, the method may further include:
在获取传感器测得的监测数据前,无线发射装置自动检测和分析传感器的类型,进行接口切换,使传感器与对应的检测电路连接。从而实现不同的传感器与不同的检测电路连接,以完成监测数据的获取。具体地,无线发射装置自动检测和分析传感器的类型包括:在无线发射装置上电初始化时,通过无线发射装置内的微控制单元(英文:Micro Control Unit,简称:MCU)控制电子开关切换传感器所连电路,通过相应的检测机制来通知MCU当前传感器为何种接口。例如,MCU控制电子开关将传感器与一小电阻进行串联,同时在小电阻两端测量压降,如压降较小,则基本可以判断传感器为4~20mA电流环接口传感器;反之,如压降较大,则可初步判断传感器为电压接口传感器或RS485接口传感器,其中,当检测电压达到5V时,可认为传感器是RS485接口传感器,否则可认为传感器是电压接口传感器。检测出了相应的传感器类型后,再进行相应的检测电路切换,使得MCU可通过正 确的接口与传感器进行连接。Before acquiring the monitoring data measured by the sensor, the wireless transmitting device automatically detects and analyzes the type of the sensor, performs interface switching, and connects the sensor with the corresponding detecting circuit. Thereby, different sensors are connected with different detection circuits to complete acquisition of monitoring data. Specifically, the wireless transmitting device automatically detects and analyzes the type of the sensor, and: when the wireless transmitting device is powered on, the electronic switch switching sensor is controlled by a micro control unit (English: Micro Control Unit, MCU for short) in the wireless transmitting device. Connected to the circuit, through the corresponding detection mechanism to inform the MCU which interface is the current sensor. For example, the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor. If the voltage drop is small, the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can pass the positive The exact interface is connected to the sensor.
通过该技术方案的应用,使得无线发射装置可兼容市场上多种主流接口传感器,以实现不同种类的监测数据采集。Through the application of the technical solution, the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
步骤202:采用预定的扩频因子、扩频序列算法和冗余编码率对监测数据进行扩频正交编码和冗余编码。Step 202: Perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate.
具体地,步骤202中既可先对监测数据进行扩频正交编码,然后对扩频正交编码后的监测数据进行冗余编码;也可以先对监测数据进行冗余编码,然后对冗余编码后的监测数据进行扩频正交编码。Specifically, in step 202, the monitoring data may be first subjected to spread spectrum orthogonal coding, and then the spread spectrum orthogonally encoded monitoring data may be redundantly coded; or the monitoring data may be redundantly coded and then redundant. The encoded monitoring data is subjected to spread spectrum orthogonal coding.
其中,具体地,步骤202包括以下过程:先将监测数据调制成数字信号;然后对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制以展宽信号的频谱。然后在后续步骤中,再将展宽后的信号调制成射频信号发送出去。而在无线接收装置一侧收到射频信号后,先变频至中频,然后由预定的与无线发射装置一侧相同的扩频因子、扩频序列算法和冗余编码率去解扩,再经解调即可恢复成原始的监测数据输出。Specifically, step 202 includes the following steps: first modulating the monitoring data into a digital signal; then performing code modulation on the digital signal using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
其中,对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制,包括:Wherein, the digital signal is encoded and modulated by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, including:
将原始扩频序列按扩频因子进行扩频,扩频序列算法包括原始扩频序列;The original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence;
将扩频后的序列与数字信号(基带信号)相乘,得到伪随机码序列;Multiplying the spread sequence with a digital signal (baseband signal) to obtain a pseudo random code sequence;
采用上述冗余编码率对伪随机码序列进行冗余编码,得到编码调制信号。The pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
也即是说,编码调制包括扩频正交编码和冗余编码两个部分,下面就对扩频正交编码和冗余编码进行详细说明:That is to say, the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
扩频正交编码的本质是一种(N,m)编码,即m位信息码(监测数据)由长为N的伪随机码来代表。M位信息码有M=2m个状态,统称为M进制扩频系统,M进制扩频系统需要M条长为N的相互正交的伪随机码ci,i=0,1,2,3,……,M-1来代表m位信息码的M个状态,M条长为N的伪随机码与m位信息码的M个状态是一一对应关系。在实际实现过程中,将扩频序列与基带信号(数字信号)相乘(即做模二加运算)得到长为N的伪随机码,基带信号扩频之后带宽得到了增加,传输距离更远。 The essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N. The M-bit information code has M=2 m states, collectively referred to as an M-ary spread spectrum system, and the M-ary spread spectrum system requires M mutually orthogonal pseudo-random codes c i , i=0, 1, 2, 3, ..., M-1 represents M states of the m-bit information code, and M pseudo-random codes of length N and the M states of the m-bit information code have a one-to-one correspondence. In the actual implementation process, the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N. After the baseband signal is spread, the bandwidth is increased, and the transmission distance is further. .
扩频序列可以由预定的扩频因子和扩频序列算法计算得到。其中扩频序列算法中需要定义原始扩频序列。例如,当前的扩频因子为6,原始扩频序列为1111,则将原始扩频序列按扩频因子每1比特扩展为64比特,然后与基带信号相乘,输出最终的长为N的伪随机码。The spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm. The original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
冗余编码实际上是对输入的数据进行编码率处理,例如冗余编码率为4/6即输入4个码时输出6个码。冗余编码率越大,效率越高。当信道质量比较差的时候,需要增加更多的冗余信息来保证无线接收装置能够正确解调信号,更多的冗余信息意味着低的编码率,最低是1个码需要增加1个冗余码,即4/5编码。当信道质量好的时候,需要很少的冗余校验位就能解调,就可以提高编码率了。系统可以根据信道的变化选择合适的编码率,这样可以使得信道质量好的用户获得更高的速率,提高通信的稳定性。冗余编码通过选择合适的编码率,增加冗余信息,例如将1101编码为11101111,增强了信道的通信可靠性,使得传输距离更远。The redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input. The greater the redundancy coding rate, the higher the efficiency. When the channel quality is relatively poor, more redundant information needs to be added to ensure that the wireless receiving device can correctly demodulate the signal. More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy. The remaining code, ie 4/5 encoding. When the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate. The system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication. Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
在传统的RF射频技术,多采用GFSK、FSK以及OOK方式调制,接收灵敏度最高为-122dBm,相邻信道抑制比小于32dB,基于10mW峰值射频发射功率时,空旷传输距离达到700~800m。In the traditional RF radio technology, GFSK, FSK and OOK modulation are adopted, the receiving sensitivity is up to -122dBm, the adjacent channel rejection ratio is less than 32dB, and based on the 10mW peak RF transmission power, the open transmission distance is 700-800m.
而同时进行扩频正交编码和冗余编码后,可使得射频的接收灵敏度达到-148dBm,相邻信道抑制比达到69dB,基于10mW峰值射频发送功率时,空旷传输距离达到3km。可见,进行扩频正交编码和冗余编码后虽然通信速率有部分牺牲,但射频通信距离和抗干扰能力均大幅提升,这些参数决定了它可实现复杂环境下的小数据量远距离无线数据传输,特别适合于某些复杂场所内的采集量(监测数据)监测及传输,例如:封闭物体内部(集装箱,冷藏车,医药箱,冰柜,大型冷库)的温湿度监测及传输;密集小区家庭内部的温湿度;煤气表、水表的远程抄表;农业大棚内光照、土壤PH值、温湿度、土壤CO2浓度等的监测及远程传输;电力高压开关柜内温度、电流、电压的在线监测及传输等。At the same time, the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment. Transmission, especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
步骤203:采用实时最低功率将编码后的监测数据发送给无线接收装置,实时最低功率是无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实 时最低功率。Step 203: Send the encoded monitoring data to the wireless receiving device by using the real-time minimum power, and the real-time minimum power is the actual wireless signal strength, the transmitting power, and the wireless transmitting device sent by the wireless transmitting device according to the monitoring data encoded by the previous frame. The minimum wireless signal strength required for the data is calculated, where the actual wireless signal strength / transmit power = the lowest wireless signal strength / real Minimum power.
其中,最低无线信号强度是指无线发射装置发送信息所需要的最低的信号强度,该最低无线信号强度可以是根据大量模拟测试之后得出的有效值。The lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information, and the lowest wireless signal strength may be an effective value obtained after a large number of simulation tests.
在一般的监测数据采集场景中,无线发射装置的位置虽然固定,但是无线接收装置的位置是不固定的,甚至是处在移动中(如设置在监测车辆中)的,因此无线发射装置与无线接收装置的间的距离其实是未知的,所以可以通过在发送前一帧编码后的监测数据时,根据实际无线信号强度和发射功率计算出距离,然后采用距离和最低无线信号强度计算出发送监测数据所需实时最低功率,在下一帧编码后的监测数据的发送中采用该实时最低功率进行发送,从而可以降低无线发射装置的功耗,使得设备的工作状态下的平均电流<10uA,单颗电池可保证无线发射装置工作大于3年。In a general monitoring data acquisition scenario, although the location of the wireless transmitting device is fixed, the location of the wireless receiving device is not fixed, even when it is in motion (such as in a monitoring vehicle), so the wireless transmitting device and the wireless device The distance between the receiving devices is actually unknown, so the distance can be calculated according to the actual wireless signal strength and the transmitting power when the monitoring data after the previous frame is transmitted, and then the transmission monitoring is calculated using the distance and the minimum wireless signal strength. The real-time minimum power required for the data is transmitted in the transmission of the monitoring data after the next frame encoding, so that the power consumption of the wireless transmitting device can be reduced, so that the average current in the working state of the device is <10 uA, single The battery ensures that the wireless transmitter works for more than 3 years.
其中,当在每次发送监测数据时,第一帧编码后的监测数据既可采用系统预设的功率发送,也可以采用前一次发送时根据最后一帧算出的实时最低功率发送。其中,预设的功率是根据实际场景事先设定的缺省功率。When the monitoring data is sent each time, the first frame encoded monitoring data may be transmitted by using the preset power of the system, or may be transmitted by using the real-time minimum power calculated according to the last frame in the previous transmission. The preset power is a default power set in advance according to the actual scene.
在本实施例中,步骤203中将编码后的监测数据发送给无线接收装置可以采用以下方式实现:In this embodiment, the sending the encoded monitoring data to the wireless receiving device in step 203 can be implemented in the following manner:
步骤一、周期性地检测电磁波,以确认无线接收装置当前是否在发送指令消息,检测电磁波的时间间隔为第一时间长度。Step 1: periodically detecting the electromagnetic wave to confirm whether the wireless receiving device is currently transmitting the command message, and detecting the electromagnetic wave time interval is the first time length.
其中,检测电磁波的时间间隔可以根据实际需要进行设置,例如设置为6S。The time interval for detecting electromagnetic waves can be set according to actual needs, for example, set to 6S.
在检测电磁波时,可以根据预定的空闲序列码确定无线接收装置当前是否在发送指令消息,例如当接收到的电磁波中携带有0XFF时,确认该电磁波是无线接收装置发送的。When the electromagnetic wave is detected, it may be determined whether the wireless receiving device is currently transmitting an instruction message according to the predetermined idle sequence code. For example, when the received electromagnetic wave carries 0XFF, it is confirmed that the electromagnetic wave is transmitted by the wireless receiving device.
步骤二、若检测到有无线接收装置发射的电磁波,则接收电磁波传输的指令消息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于第一时间长度。Step 2: If an electromagnetic wave emitted by the wireless receiving device is detected, receiving an instruction message for transmitting the electromagnetic wave, the command message includes a filling field and a query field, and the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving The device, the padding field is used to cause the instruction message to be sent for a duration equal to or greater than the first length of time.
通常情况下,如果想实现双向无线通信,则需要无线发射装置和无线接收装置同时处于无线接收状态,当有数据需要发送时即切换到射频发送状态,但是当无线发射装置和无线接收装置处于无线接收状态时电流较大,功 耗较高。对于无线接收装置而言,由于其可以采用外接电源供电,不需要担心功耗高的问题,但是对于无线发射装置而言,由于是采用电池供电,所以需要减少其处于无线接收状态的时间,以减小功耗。In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. Large current when receiving state High consumption. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
因此,在本实施例中,无线发射装置采用周期性地方式检测电磁波,以进行指令消息的接收,从而减少了处于无线接收状态的时间,降低了功耗。Therefore, in the present embodiment, the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
另外,无线接收装置发送的指令消息由填充字段和查询字段组成,其中填充字段有两个作用:其一是,由于查询字段太短可能只有几个比特,如果单单发送查询字段,容易造成指令消息的丢失;其二是,由于无线发射装置是周期性进行指令消息的接收,如果指令消息过短,可能会造成指令消息没法被无线发射装置接收到(如发送指令消息的时间处于无线发射装置两次检测之间),而通过填充字段可以增加指令消息发送需要的时长,当该时长等于或大于无线发射装置检测电磁波的时间间隔时,发送该指令消息的电磁波肯定会被无线发射装置监测到,则无线接收装置发送的指令消息肯定会被接收到,且由于无线接收装置是采用的外接电源,因此完全不必考虑功耗的问题。In addition, the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits, and if the query field is sent alone, the instruction message is easily caused. The second is that, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device) Between the two tests), the padding field can increase the length of time required for the command message to be sent. When the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. Then, the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
其中,填充字段可用无意义的比特段填充,如一连串的0;而查询字段可以用4位比特表示,如1010。The padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
在其他实施例中,指令消息还可以由填充字段和设定字段组成,设定字段用于修改无线发射装置上的参数,如第一时间长度等。In other embodiments, the instruction message may also consist of a padding field and a setting field for modifying parameters on the wireless transmitting device, such as a first time length or the like.
步骤三、将编码后的监测数据发送给无线接收装置。Step 3: Send the encoded monitoring data to the wireless receiving device.
另外,在发送监测数据时还可以将该监测数据存储起来,在极端状况下,如若由于干扰或无线接收装置异常掉电导致单次数据发送失败,无线发射装置会在通信链路恢复时,将存储的监测数据重新发送给无线接收装置,或者从失败位置开始处进行断点续传,以充分保证整个监测数据传输的可靠性。In addition, when the monitoring data is sent, the monitoring data can also be stored. In an extreme situation, if a single data transmission fails due to interference or abnormal power failure of the wireless receiving device, the wireless transmitting device will resume when the communication link is restored. The stored monitoring data is resent to the wireless receiving device, or a breakpoint is transmitted from the failed position to fully ensure the reliability of the entire monitoring data transmission.
为了减少上述重传的情况发送,该方法还可以包括:在监测数据发送前采用扫频监听方式监听通信信道,如有相同频点干扰信号时,则自动跳频到相邻信道进行监测数据的发送。除此之外,同时软件上也采用了防碰撞自动规避算法,使得通信链路能保持稳定可靠,以保证整个监测数据传输的可靠性。In order to reduce the transmission of the above retransmission, the method may further include: monitoring the communication channel by using the frequency sweeping monitoring mode before the monitoring data is sent, and if there is the same frequency point interference signal, automatically hopping to the adjacent channel for monitoring data. send. In addition, the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
进一步地,除了当接收到无线接收装置发送的指令消息时,进行监测数 据的发送外,该方法还可以包括:周期性地将编码后的监测数据发送给无线接收装置,发送监测数据的周期为第二时间长度,第二时间长度大于第一时间长度;或者,Further, in addition to receiving the instruction message sent by the wireless receiving device, the number of monitoring is performed. The method may further include: periodically transmitting the encoded monitoring data to the wireless receiving device, the period of transmitting the monitoring data is a second time length, and the second time length is greater than the first time length; or
当产生唤醒信号时,将编码后的监测数据发送给无线接收装置,唤醒信号是比较传感器输出的监测数据的值与预设的阈值范围的大小,且监测数据的值超出预设的阈值范围时产生的。如,监测数据中温度为80度,而设置的阈值范围为不超过70度,则此时会产生唤醒信号,从而将该监测数据发送至无线接收装置。When the wake-up signal is generated, the encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is the value of the monitoring data output by the comparison sensor and the preset threshold range, and the value of the monitoring data exceeds a preset threshold range. produced. For example, if the temperature in the monitoring data is 80 degrees and the threshold range is set to not exceed 70 degrees, a wake-up signal is generated at this time, thereby transmitting the monitoring data to the wireless receiving device.
其中,第二时间长度也可以根据实际场景设置,例如30分钟或一个小时。The second time length can also be set according to the actual scene, for example, 30 minutes or one hour.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例三Embodiment 3
本发明实施例提供了一种数据传输方法,参见图4,该方法可以由无线接收装置执行,该方法包括:An embodiment of the present invention provides a data transmission method. Referring to FIG. 4, the method may be performed by a wireless receiving apparatus, where the method includes:
步骤301:接收无线发射装置发送的数据。Step 301: Receive data sent by the wireless transmitting device.
无线接收装置还可以将接收到的监测数据通过通用分组无线服务技术(英文:General Packet Radio Service,简称:GPRS)等远距离传输方式发送给服务器。The wireless receiving device may also send the received monitoring data to the server through a long-distance transmission method such as General Packet Radio Service (GPRS).
由于RF的传输距离限制,在距离过远时通过GPRS将监测数据发送给服务器,可使得服务器可以覆盖的区域足够大。Due to the transmission distance limitation of the RF, the monitoring data is transmitted to the server via GPRS when the distance is too long, so that the area that the server can cover is large enough.
步骤302:采用预定的扩频因子、扩频序列算法和冗余编码率对无线发射装置发送的数据进行解码,得到传感器测得的监测数据。Step 302: Decode the data sent by the wireless transmitting device by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate, to obtain monitoring data measured by the sensor.
进一步地,该方法还可以包括:向无线发射装置发送指令消息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于无线发射装置检测电磁波的时间间隔。 Further, the method may further include: sending an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, and the padding field is used. The time period for causing the command message to be transmitted is equal to or greater than the time interval at which the wireless transmitting device detects the electromagnetic wave.
通常情况下,如果想实现双向无线通信,则需要无线发射装置和无线接收装置同时处于无线接收状态,当有数据需要发送时即切换到射频发送状态,但是当无线发射装置和无线接收装置处于无线接收状态时电流较大,功耗较高。对于无线接收装置而言,由于其可以采用外接电源供电,不需要担心功耗高的问题,但是对于无线发射装置而言,由于是采用电池供电,所以需要减少其处于无线接收状态的时间,以减小功耗。因此,在本实施例中,无线发射装置采用周期性地方式检测电磁波,以进行指令消息的接收,从而减少了处于无线接收状态的时间,降低了功耗。无线接收装置发送的指令消息由填充字段和查询字段组成,其中填充字段有两个作用:其一是,由于查询字段太短可能只有几个比特,如果单单发送查询字段,容易造成指令消息的丢失;其二是,由于无线发射装置是周期性进行指令消息的接收,如果指令消息过短,可能会造成指令消息没法被无线发射装置接收到(如发送指令消息的时间处于无线发射装置两次检测之间),而通过填充字段可以增加指令消息发送需要的时长,当该时长等于或大于无线发射装置检测电磁波的时间间隔时,发送该指令消息的电磁波肯定会被无线发射装置监测到,则无线接收装置发送的指令消息肯定会被接收到,且由于无线接收装置是采用的外接电源,因此完全不必考虑功耗的问题。In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption. Therefore, in the present embodiment, the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption. The instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits. If the query field is sent alone, the instruction message is easily lost. Second, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device twice) Between the detections, the padding field can increase the length of time required for the instruction message to be sent. When the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. The command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
其中,填充字段可用无意义的比特段填充,如一连串的0;而查询字段可以用4位比特表示,如1010。The padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
在其他实施例中,指令消息还可以由填充字段和设定字段组成,设定字段用于修改无线发射装置上的参数,如第一时间长度等。In other embodiments, the instruction message may also consist of a padding field and a setting field for modifying parameters on the wireless transmitting device, such as a first time length or the like.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例四Embodiment 4
本发明实施例提供了一种无线发射装置,参见图5,该装置包括:The embodiment of the invention provides a wireless transmitting device. Referring to FIG. 5, the device includes:
传感器401; Sensor 401;
收发器402,用于与无线接收装置通信; a transceiver 402, configured to communicate with a wireless receiving device;
处理器403,用于获取传感器401测得的监测数据;采用预定的扩频因子、扩频序列算法和冗余编码率对监测数据进行扩频正交编码和冗余编码;通过收发器402将编码后的监测数据发送给无线接收装置。The processor 403 is configured to acquire monitoring data measured by the sensor 401; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The encoded monitoring data is sent to the wireless receiving device.
具体地,处理器403既可先对监测数据进行扩频正交编码,然后对扩频正交编码后的监测数据进行冗余编码;也可以先对监测数据进行冗余编码,然后对冗余编码后的监测数据进行扩频正交编码。Specifically, the processor 403 may perform the spread spectrum orthogonal coding on the monitoring data, and then perform redundancy coding on the spread spectrum orthogonally encoded monitoring data. The monitoring data may be redundantly coded and then redundant. The encoded monitoring data is subjected to spread spectrum orthogonal coding.
其中,处理器403可以用于:先将监测数据调制成数字信号;然后对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制以展宽信号的频谱。然后在后续步骤中,再将展宽后的信号调制成射频信号发送出去。而在无线接收装置一侧收到射频信号后,先变频至中频,然后由预定的与无线发射装置一侧相同的扩频因子、扩频序列算法和冗余编码率去解扩,再经解调即可恢复成原始的监测数据输出。The processor 403 can be configured to: first modulate the monitoring data into a digital signal; and then perform code modulation on the digital signal by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
其中,对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制,处理器403可以采用下述方式实现,即处理器403可用于:The processor 403 can be implemented in the following manner by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate. The processor 403 can be used to:
将原始扩频序列按扩频因子进行扩频,扩频序列算法包括原始扩频序列;The original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence;
将扩频后的序列与数字信号(基带信号)相乘,得到伪随机码序列;Multiplying the spread sequence with a digital signal (baseband signal) to obtain a pseudo random code sequence;
采用上述冗余编码率对伪随机码序列进行冗余编码,得到编码调制信号。The pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
也即是说,编码调制包括扩频正交编码和冗余编码两个部分,下面就对扩频正交编码和冗余编码进行详细说明:That is to say, the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
扩频正交编码的本质是一种(N,m)编码,即m位信息码(监测数据)由长为N的伪随机码来代表。M位信息码有M=2m个状态,统称为M进制扩频系统,M进制扩频系统需要M条长为N的相互正交的伪随机码ci,i=0,1,2,3,……,M-1来代表m位信息码的M个状态,M条长为N的伪随机码与m位信息码的M个状态是一一对应关系。在实际实现过程中,将扩频序列与基带信号(数字信号)相乘(即做模二加运算)得到长为N的伪随机码,基带信号扩频之后带宽得到了增加,传输距离更远。The essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N. The M-bit information code has M=2 m states, collectively referred to as an M-ary spread spectrum system, and the M-ary spread spectrum system requires M mutually orthogonal pseudo-random codes c i , i=0, 1, 2, 3, ..., M-1 represents M states of the m-bit information code, and M pseudo-random codes of length N and the M states of the m-bit information code have a one-to-one correspondence. In the actual implementation process, the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N. After the baseband signal is spread, the bandwidth is increased, and the transmission distance is further. .
扩频序列可以由预定的扩频因子和扩频序列算法计算得到。其中扩频序列算法中需要定义原始扩频序列。例如,当前的扩频因子为6,原始扩频序 列为1111,则将原始扩频序列按扩频因子每1比特扩展为64比特,然后与基带信号相乘,输出最终的长为N的伪随机码。The spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm. The original spreading sequence needs to be defined in the spreading sequence algorithm. For example, the current spreading factor is 6, the original spreading order When the column is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo-random code of length N.
冗余编码实际上是对输入的数据进行编码率处理,例如冗余编码率为4/6即输入4个码时输出6个码。冗余编码率越大,效率越高。当信道质量比较差的时候,需要增加更多的冗余信息来保证无线接收装置能够正确解调信号,更多的冗余信息意味着低的编码率,最低是1个码需要增加1个冗余码,即4/5编码。当信道质量好的时候,需要很少的冗余校验位就能解调,就可以提高编码率了。系统可以根据信道的变化选择合适的编码率,这样可以使得信道质量好的用户获得更高的速率,提高通信的稳定性。冗余编码通过选择合适的编码率,增加冗余信息,例如将1101编码为11101111,增强了信道的通信可靠性,使得传输距离更远。The redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input. The greater the redundancy coding rate, the higher the efficiency. When the channel quality is relatively poor, more redundant information needs to be added to ensure that the wireless receiving device can correctly demodulate the signal. More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy. The remaining code, ie 4/5 encoding. When the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate. The system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication. Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
在传统的RF射频技术,多采用GFSK、FSK以及OOK等方式调制,接收灵敏度最高为-122dBm,相邻信道抑制比小于32dB,基于10mW峰值射频发射功率时,空旷传输距离达到700~800m。In the traditional RF radio frequency technology, GFSK, FSK and OOK are used for modulation. The receiving sensitivity is up to -122dBm, the adjacent channel rejection ratio is less than 32dB, and based on the 10mW peak RF transmitting power, the open transmission distance is 700~800m.
而同时进行扩频正交编码和冗余编码后,可使得射频的接收灵敏度达到-148dBm,相邻信道抑制比达到69dB,基于10mW峰值射频发送功率时,空旷传输距离达到3km。可见,进行扩频正交编码和冗余编码后虽然通信速率有部分牺牲,但射频通信距离和抗干扰能力均大幅提升,这些参数决定了它可实现复杂环境下的小数据量远距离无线数据传输,特别适合于某些复杂场所内的采集量(监测数据)监测及传输,例如:封闭物体内部(集装箱,冷藏车,医药箱,冰柜,大型冷库)的温湿度监测及传输;密集小区家庭内部的温湿度;煤气表、水表的远程抄表;农业大棚内光照、土壤PH值、温湿度、土壤CO2浓度等的监测及远程传输;电力高压开关柜内温度、电流、电压的在线监测及传输等。At the same time, the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment. Transmission, especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例五 Embodiment 5
本发明实施例提供了一种无线发射装置,参见图6,该装置包括:An embodiment of the present invention provides a wireless transmitting apparatus. Referring to FIG. 6, the apparatus includes:
传感器501; Sensor 501;
收发器502,用于与无线接收装置通信;a transceiver 502, configured to communicate with a wireless receiving device;
处理器503,用于获取传感器501测得的监测数据;采用预定的扩频因子、扩频序列算法和冗余编码率对监测数据进行扩频正交编码和冗余编码;通过收发器502将编码后的监测数据发送给无线接收装置。The processor 503 is configured to acquire monitoring data measured by the sensor 501; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The encoded monitoring data is sent to the wireless receiving device.
具体地,处理器503既可先对监测数据进行扩频正交编码,然后对扩频正交编码后的监测数据进行冗余编码;也可以先对监测数据进行冗余编码,然后对冗余编码后的监测数据进行扩频正交编码。Specifically, the processor 503 may perform the spread spectrum orthogonal coding on the monitoring data, and then perform redundancy coding on the spread spectrum orthogonally encoded monitoring data; or may perform redundancy coding on the monitoring data first, and then perform redundancy. The encoded monitoring data is subjected to spread spectrum orthogonal coding.
其中,处理器503可以用于:先将监测数据调制成数字信号;然后对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制以展宽信号的频谱。然后在后续步骤中,再将展宽后的信号调制成射频信号发送出去。而在无线接收装置一侧收到射频信号后,先变频至中频,然后由预定的与无线发射装置一侧相同的扩频因子、扩频序列算法和冗余编码率去解扩,再经解调即可恢复成原始的监测数据输出。The processor 503 can be configured to: first modulate the monitoring data into a digital signal; and then perform code modulation on the digital signal by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate to broaden the spectrum of the signal. Then in the subsequent steps, the spread signal is modulated into a radio frequency signal for transmission. After receiving the radio frequency signal on the side of the wireless receiving device, the frequency is first converted to the intermediate frequency, and then despread by the same spreading factor, spreading sequence algorithm and redundant coding rate as the predetermined side of the wireless transmitting device, and then solved. The tone can be restored to the original monitoring data output.
其中,对上述数字信号采用预定的扩频因子、扩频序列算法和冗余编码率进行编码调制,处理器503可以采用下述方式实现,即处理器503可用于:The processor 503 can be implemented in the following manner by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate. The processor 503 can be used to:
将原始扩频序列按扩频因子进行扩频,扩频序列算法包括原始扩频序列;The original spreading sequence is spread by a spreading factor, and the spreading sequence algorithm includes an original spreading sequence;
将扩频后的序列与数字信号(基带信号)相乘,得到伪随机码序列;Multiplying the spread sequence with a digital signal (baseband signal) to obtain a pseudo random code sequence;
采用上述冗余编码率对伪随机码序列进行冗余编码,得到编码调制信号。The pseudo random code sequence is redundantly coded by using the above redundant coding rate to obtain a coded modulated signal.
也即是说,编码调制包括扩频正交编码和冗余编码两个部分,下面就对扩频正交编码和冗余编码进行详细说明:That is to say, the code modulation includes two parts of spread spectrum orthogonal coding and redundant coding, and the following describes the spread spectrum orthogonal coding and the redundancy coding in detail:
扩频正交编码的本质是一种(N,m)编码,即m位信息码(监测数据)由长为N的伪随机码来代表。M位信息码有M=2m个状态,统称为M进制扩频系统,M进制扩频系统需要M条长为N的相互正交的伪随机码ci,i=0,1,2,3,……,M-1来代表m位信息码的M个状态,M条长为N的伪随机码与m位信息码的M个状态是一一对应关系。在实际实现过程中,将扩频序列与基带信号(数字信号)相乘(即做模二加运算)得到长为N的伪随 机码,基带信号扩频之后带宽得到了增加,传输距离更远。The essence of spread-spectrum orthogonal coding is an (N, m) coding, that is, an m-bit information code (monitoring data) is represented by a pseudo-random code of length N. The M-bit information code has M=2 m states, collectively referred to as an M-ary spread spectrum system, and the M-ary spread spectrum system requires M mutually orthogonal pseudo-random codes c i , i=0, 1, 2, 3, ..., M-1 represents M states of the m-bit information code, and M pseudo-random codes of length N and the M states of the m-bit information code have a one-to-one correspondence. In the actual implementation process, the spread spectrum sequence is multiplied by the baseband signal (digital signal) (that is, the modulo two-addition operation) to obtain a pseudo-random code of length N. After the baseband signal is spread, the bandwidth is increased, and the transmission distance is further. .
扩频序列可以由预定的扩频因子和扩频序列算法计算得到。其中扩频序列算法中需要定义原始扩频序列。例如,当前的扩频因子为6,原始扩频序列为1111,则将原始扩频序列按扩频因子每1比特扩展为64比特,然后与基带信号相乘,输出最终的长为N的伪随机码。The spreading sequence can be calculated by a predetermined spreading factor and spreading sequence algorithm. The original spreading sequence needs to be defined in the spreading sequence algorithm. For example, if the current spreading factor is 6, and the original spreading sequence is 1111, the original spreading sequence is expanded to 64 bits per bit by the spreading factor, and then multiplied by the baseband signal to output a final pseudo of length N. random code.
冗余编码实际上是对输入的数据进行编码率处理,例如冗余编码率为4/6即输入4个码时输出6个码。冗余编码率越大,效率越高。当信道质量比较差的时候,需要增加更多的冗余信息来保证无线接收装置能够正确解调信号,更多的冗余信息意味着低的编码率,最低是1个码需要增加1个冗余码,即4/5编码。当信道质量好的时候,需要很少的冗余校验位就能解调,就可以提高编码率了。系统可以根据信道的变化选择合适的编码率,这样可以使得信道质量好的用户获得更高的速率,提高通信的稳定性。冗余编码通过选择合适的编码率,增加冗余信息,例如将1101编码为11101111,增强了信道的通信可靠性,使得传输距离更远。The redundant coding actually performs coding rate processing on the input data, for example, the redundancy coding rate is 4/6, that is, 6 codes are output when 4 codes are input. The greater the redundancy coding rate, the higher the efficiency. When the channel quality is relatively poor, more redundant information needs to be added to ensure that the wireless receiving device can correctly demodulate the signal. More redundant information means a lower coding rate, and at least one code needs to be increased by one redundancy. The remaining code, ie 4/5 encoding. When the channel quality is good, it requires a small number of redundant check bits to demodulate, which can increase the coding rate. The system can select an appropriate coding rate according to the change of the channel, so that the user with good channel quality can obtain a higher rate and improve the stability of the communication. Redundancy coding increases the redundant information by selecting an appropriate coding rate, for example, encoding 1101 to 11101111, which enhances the communication reliability of the channel and makes the transmission distance farther.
在传统的RF射频技术,多采用GFSK、FSK以及OOK等方式调制,接收灵敏度最高为-122dBm,相邻信道抑制比小于32dB,基于10mW峰值射频发射功率时,空旷传输距离达到700~800m。In the traditional RF radio frequency technology, GFSK, FSK and OOK are used for modulation. The receiving sensitivity is up to -122dBm, the adjacent channel rejection ratio is less than 32dB, and based on the 10mW peak RF transmitting power, the open transmission distance is 700~800m.
而同时进行扩频正交编码和冗余编码后,可使得射频的接收灵敏度达到-148dBm,相邻信道抑制比达到69dB,基于10mW峰值射频发送功率时,空旷传输距离达到3km。可见,进行扩频正交编码和冗余编码后虽然通信速率有部分牺牲,但射频通信距离和抗干扰能力均大幅提升,这些参数决定了它可实现复杂环境下的小数据量远距离无线数据传输,特别适合于某些复杂场所内的采集量(监测数据)监测及传输,例如:封闭物体内部(集装箱,冷藏车,医药箱,冰柜,大型冷库)的温湿度监测及传输;密集小区家庭内部的温湿度;煤气表、水表的远程抄表;农业大棚内光照、土壤PH值、温湿度、土壤CO2浓度等的监测及远程传输;电力高压开关柜内温度、电流、电压的在线监测及传输等。At the same time, the spread spectrum orthogonal coding and the redundancy coding can make the receiving sensitivity of the radio frequency reach -148dBm, the adjacent channel rejection ratio reaches 69dB, and the airborne transmission distance reaches 3km based on the peak radio frequency transmission power of 10mW. It can be seen that although the communication rate is partially sacrificed after the spread spectrum orthogonal coding and the redundant coding, the radio frequency communication distance and the anti-interference ability are greatly improved, and these parameters determine that it can realize small data amount long-distance wireless data in a complicated environment. Transmission, especially suitable for monitoring and transmission of collected quantities (monitoring data) in certain complex places, for example: temperature and humidity monitoring and transmission inside closed objects (containers, refrigerated trucks, medicine cabinets, freezers, large cold storages); dense community families Internal temperature and humidity; remote meter reading of gas meter and water meter; monitoring and remote transmission of light in agricultural greenhouse, pH value of soil, temperature and humidity, soil CO2 concentration; on-line monitoring of temperature, current and voltage in high voltage switchgear Transmission, etc.
在本实施例中,处理器503,可以用于通过收发器502周期性地检测电磁波,检测电磁波的时间间隔为第一时间长度;In this embodiment, the processor 503 can be configured to periodically detect electromagnetic waves through the transceiver 502, and detect a time interval of the electromagnetic waves as a first time length;
当检测到有无线接收装置发射的电磁波时,接收电磁波传输的指令消 息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于第一时间长度;获取传感器测得的监测数据,并通过收发器502将编码后的监测数据发送给无线接收装置。When an electromagnetic wave emitted by the wireless receiving device is detected, the command for receiving the electromagnetic wave transmission is cancelled. The command message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, and the padding field is used to enable the command message to be sent for a duration equal to or longer than the first time length; The monitoring data measured by the sensor is acquired, and the encoded monitoring data is transmitted to the wireless receiving device through the transceiver 502.
其中,检测电磁波的时间间隔可以根据实际需要进行设置,例如设置为6S。The time interval for detecting electromagnetic waves can be set according to actual needs, for example, set to 6S.
在检测电磁波时,可以根据预定的空闲序列码确定无线接收装置当前是否在发送指令消息,例如当接收到的电磁波中携带有0XFF时,确认该电磁波是无线接收装置发送的。When the electromagnetic wave is detected, it may be determined whether the wireless receiving device is currently transmitting an instruction message according to the predetermined idle sequence code. For example, when the received electromagnetic wave carries 0XFF, it is confirmed that the electromagnetic wave is transmitted by the wireless receiving device.
通常情况下,如果想实现双向无线通信,则需要无线发射装置和无线接收装置同时处于无线接收状态,当有数据需要发送时即切换到射频发送状态,但是当无线发射装置和无线接收装置处于无线接收状态时电流较大,功耗较高。对于无线接收装置而言,由于其可以采用外接电源供电,不需要担心功耗高的问题,但是对于无线发射装置而言,由于是采用电池供电,所以需要减少其处于无线接收状态的时间,以减小功耗。In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption.
因此,在本实施例中,无线发射装置采用周期性地方式检测电磁波,以进行指令消息的接收,从而减少了处于无线接收状态的时间,降低了功耗。Therefore, in the present embodiment, the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption.
另外,无线接收装置发送的指令消息由填充字段和查询字段组成,其中填充字段有两个作用:其一是,由于查询字段太短可能只有几个比特,如果单单发送查询字段,容易造成指令消息的丢失;其二是,由于无线发射装置是周期性进行指令消息的接收,如果指令消息过短,可能会造成指令消息没法被无线发射装置接收到(如发送指令消息的时间处于无线发射装置两次检测之间),而通过填充字段可以增加指令消息发送需要的时长,当该时长等于或大于无线发射装置检测电磁波的时间间隔时,发送该指令消息的电磁波肯定会被无线发射装置监测到,则无线接收装置发送的指令消息肯定会被接收到,且由于无线接收装置是采用的外接电源,因此完全不必考虑功耗的问题。In addition, the instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits, and if the query field is sent alone, the instruction message is easily caused. The second is that, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device) Between the two tests), the padding field can increase the length of time required for the command message to be sent. When the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. Then, the command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
其中,填充字段可用无意义的比特段填充,如一连串的0;而查询字段可以用4位比特表示,如1010。The padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
在其他实施例中,指令消息还可以由填充字段和设定字段组成,设定字 段用于修改无线发射装置上的参数,如第一时间长度等。In other embodiments, the instruction message may also be composed of a padding field and a setting field, and the setting word The segment is used to modify parameters on the wireless transmitting device, such as the first length of time.
处理器503在获取传感器测得的监测数据时,可自动检测和分析传感器的类型,进行接口切换,从而实现不同的传感器与不同的检测电路连接,以完成监测数据的获取。具体地,处理器503可以采用MCU实现,即在无线发射装置上电初始化时,通过无线发射装置内的MCU控制电子开关切换传感器所连电路,通过相应的检测机制来通知MCU当前传感器为何种接口。例如,MCU控制电子开关将传感器与一小电阻进行串联,同时在小电阻两端测量压降,如压降较小,则基本可以判断传感器为4~20mA电流环接口传感器;反之,如压降较大,则可初步判断传感器为电压接口传感器或RS485接口传感器,其中,当检测电压达到5V时,可认为传感器是RS485接口传感器,否则可认为传感器是电压接口传感器。检测出了相应的传感器类型后,再进行相应的检测电路切换,使得MCU可通过正确的接口与传感器进行连接。When acquiring the monitoring data measured by the sensor, the processor 503 can automatically detect and analyze the type of the sensor, and perform interface switching, so that different sensors are connected with different detection circuits to complete the acquisition of the monitoring data. Specifically, the processor 503 can be implemented by using an MCU, that is, when the wireless transmitting device is powered on, the MCU in the wireless transmitting device controls the electronic switch to switch the circuit connected to the sensor, and the corresponding detecting mechanism is used to notify the MCU of the current sensor. . For example, the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor. If the voltage drop is small, the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can connect with the sensor through the correct interface.
通过该技术方案的应用,使得无线发射装置可兼容市场上多种主流接口传感器,以实现不同种类的监测数据采集。Through the application of the technical solution, the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
在本实施例中,收发器502,用于采用实时最低功率将编码后的监测数据发送给无线接收装置,实时最低功率是无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。In this embodiment, the transceiver 502 is configured to send the encoded monitoring data to the wireless receiving device by using the real-time minimum power, and the real-time minimum power is the actual wireless signal when the wireless transmitting device transmits the monitoring data according to the previous frame encoding. The strength, the transmit power, and the minimum wireless signal strength required to transmit data by the wireless transmitting device, wherein the actual wireless signal strength/transmit power = the lowest wireless signal strength / the real-time minimum power.
其中,最低无线信号强度是指无线发射装置发送信息所需要的最低的信号强度。The lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information.
在一般的监测数据采集场景中,无线发射装置的位置虽然固定,但是无线接收装置的位置是不固定的,甚至是处在移动中(如设置在监测车辆中)的,因此无线发射装置与无线接收装置的间的距离其实是未知的,所以可以通过在发送前一帧编码后的监测数据时,根据实际无线信号强度和发射功率计算出距离,然后采用距离和最低无线信号强度计算出发送监测数据所需实时最低功率,在下一帧编码后的监测数据的发送中采用该实时最低功率进行发送,从而可以降低无线发射装置的功耗,使得设备的工作状态下的平均电流<10uA,单颗电池可保证无线发射装置工作大于3年。 In a general monitoring data acquisition scenario, although the location of the wireless transmitting device is fixed, the location of the wireless receiving device is not fixed, even when it is in motion (such as in a monitoring vehicle), so the wireless transmitting device and the wireless device The distance between the receiving devices is actually unknown, so the distance can be calculated according to the actual wireless signal strength and the transmitting power when the monitoring data after the previous frame is transmitted, and then the transmission monitoring is calculated using the distance and the minimum wireless signal strength. The real-time minimum power required for the data is transmitted in the transmission of the monitoring data after the next frame encoding, so that the power consumption of the wireless transmitting device can be reduced, so that the average current in the working state of the device is <10 uA, single The battery ensures that the wireless transmitter works for more than 3 years.
其中,当在每次发送监测数据时,第一帧编码后的监测数据既可采用系统预设的功率发送,也可以采用前一次发送时根据最后一帧算出的实时最低功率发送。其中,预设的功率是根据实际场景事先设定的缺省功率。When the monitoring data is sent each time, the first frame encoded monitoring data may be transmitted by using the preset power of the system, or may be transmitted by using the real-time minimum power calculated according to the last frame in the previous transmission. The preset power is a default power set in advance according to the actual scene.
另外,在发送监测数据时还可以将该监测数据存储在存储器504中,在极端状况下,如若由于干扰或无线接收装置异常掉电导致单次数据发送失败,无线发射装置会在通信链路恢复时,将存储在存储器504中的监测数据重新发送给无线接收装置,或者从失败位置开始处进行断点续传,以充分保证整个监测数据传输的可靠性。In addition, when the monitoring data is sent, the monitoring data can also be stored in the memory 504. In an extreme situation, if a single data transmission fails due to interference or abnormal power failure of the wireless receiving device, the wireless transmitting device recovers in the communication link. At this time, the monitoring data stored in the memory 504 is retransmitted to the wireless receiving device, or the breakpoint is transmitted from the failure position to fully ensure the reliability of the entire monitoring data transmission.
为了减少上述重传的情况发送,处理器503,还用于在监测数据发送前采用扫频监听方式监听通信信道,如有相同频点干扰信号时,则自动跳频到相邻信道进行监测数据的发送。除此之外,同时软件上也采用了防碰撞自动规避算法,使得通信链路能保持稳定可靠,以保证整个监测数据传输的可靠性。In order to reduce the transmission of the above retransmission, the processor 503 is further configured to monitor the communication channel by using the frequency sweeping monitoring mode before the monitoring data is sent, and if there is the same frequency point interference signal, automatically hopping to the adjacent channel for monitoring data. Send. In addition, the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
进一步地,处理器503,还用于周期性地将编码后的监测数据通过收发器502发送给无线接收装置,发送监测数据的周期为第二时间长度,第二时间长度大于第一时间长度;或者,Further, the processor 503 is further configured to periodically send the encoded monitoring data to the wireless receiving device by using the transceiver 502, and send the monitoring data to a second time length, where the second time length is greater than the first time length; or,
当产生唤醒信号时,通过收发器502将编码后的监测数据发送给无线接收装置,唤醒信号是比较传感器输出的监测数据的值与预设的阈值范围的大小,且监测数据的值超出预设的阈值范围时产生的。When the wake-up signal is generated, the encoded monitoring data is sent to the wireless receiving device through the transceiver 502. The wake-up signal is the value of the monitoring data output by the comparison sensor and the preset threshold range, and the value of the monitoring data exceeds the preset. The threshold range is generated when.
其中,第二时间长度也可以根据实际场景设置,例如30分钟或一个小时。The second time length can also be set according to the actual scene, for example, 30 minutes or one hour.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例六Embodiment 6
本发明实施例提供了一种无线发射装置,参见图7,该装置可以包括以下一个或多个组件:处理器601、存储器602、收发器603、电池604、电压监测单元605、电源管理单元606、传感器607、接口切换电路608等组件。 这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图中示出的移动终端的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The embodiment of the present invention provides a wireless transmitting device. Referring to FIG. 7, the device may include one or more of the following components: a processor 601, a memory 602, a transceiver 603, a battery 604, a voltage monitoring unit 605, and a power management unit 606. , sensor 607, interface switching circuit 608 and other components. These components communicate over one or more buses. It will be understood by those skilled in the art that the structure of the mobile terminal shown in the figure does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more or less than the illustration. Parts, or combine some parts, or different parts.
其中,存储器602用于存储计算机执行指令,处理器601与存储器602通过总线连接,当无线发射装置运行时,处理器601执行存储器602存储的计算机执行指令,以使无线发射装置执行如实施例一或二所述的数据传输方法。The memory 602 is used to store computer execution instructions, and the processor 601 is connected to the memory 602 via a bus. When the wireless transmitting device is in operation, the processor 601 executes a computer executed instruction stored in the memory 602 to enable the wireless transmitting device to execute the first embodiment. Or the data transmission method described in two.
具体地,处理器601用于获取传感器测得的监测数据;采用预定的扩频因子、扩频序列算法和冗余编码率对监测数据进行扩频正交编码和冗余编码;通过收发器将编码后的监测数据发送给无线接收装置Specifically, the processor 601 is configured to acquire monitoring data measured by the sensor; perform spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundant coding rate; The encoded monitoring data is sent to the wireless receiving device
进一步地,处理器601还可以用于周期性地检测电磁波,检测电磁波的时间间隔为第一时间长度;Further, the processor 601 is further configured to periodically detect the electromagnetic wave, and the time interval of detecting the electromagnetic wave is a first time length;
若检测到有无线接收装置发射的电磁波,则接收电磁波传输的指令消息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于第一时间长度;Receiving an electromagnetic wave transmitted by the wireless receiving device, receiving an instruction message of the electromagnetic wave transmission, the command message includes a filling field and a query field, and the query field is configured to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, filling The field is used to cause the instruction message to be sent for a duration equal to or greater than the first length of time;
通过收发器将编码后的监测数据发送给无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device through the transceiver.
在获取传感器测得的监测数据时,处理器601可自动检测和分析传感器的类型,接口切换电路608用于在处理器601控制下进行接口切换,将不同的传感器与不同的检测电路连接,以完成监测数据的获取。具体地,处理器601可以是MCU,在无线发射装置上电初始化时,通过无线发射装置内的MCU控制接口切换电路608中的电子开关切换传感器607所连电路,通过相应的检测机制来通知MCU当前传感器为何种接口。例如,MCU控制电子开关将传感器与一小电阻进行串联,同时在小电阻两端测量压降,如压降较小,则基本可以判断传感器为4~20mA电流环接口传感器;反之,如压降较大,则可初步判断传感器为电压接口传感器或RS485接口传感器,其中,当检测电压达到5V时,可认为传感器是RS485接口传感器,否则可认为传感器是电压接口传感器。检测出了相应的传感器类型后,再进行相应的检测电路切换,使得MCU可通过正确的接口与传感器进行连接。 The processor 601 can automatically detect and analyze the type of the sensor when acquiring the monitoring data measured by the sensor. The interface switching circuit 608 is configured to perform interface switching under the control of the processor 601, and connect different sensors to different detection circuits to Obtain the acquisition of monitoring data. Specifically, the processor 601 may be an MCU. When the wireless transmitting device is powered on, the MCU in the wireless transmitting device controls the circuit connected to the electronic switch switching sensor 607 in the interface switching circuit 608, and notifies the MCU through a corresponding detection mechanism. What interface is the current sensor? For example, the MCU controls the electronic switch to connect the sensor in series with a small resistor, and measures the voltage drop across the small resistor. If the voltage drop is small, the sensor can be judged to be a 4-20 mA current loop interface sensor; otherwise, such as a voltage drop. Larger, it can be initially judged that the sensor is a voltage interface sensor or an RS485 interface sensor. When the detection voltage reaches 5V, the sensor can be considered as an RS485 interface sensor, otherwise the sensor can be considered as a voltage interface sensor. After detecting the corresponding sensor type, the corresponding detection circuit is switched, so that the MCU can connect with the sensor through the correct interface.
通过该技术方案的应用,使得无线发射装置可兼容市场上多种主流接口传感器,以实现不同种类的监测数据采集。Through the application of the technical solution, the wireless transmitting device can be compatible with various mainstream interface sensors on the market to realize different types of monitoring data collection.
具体地,收发器603可用于采用实时最低功率将编码后的监测数据发送给无线接收装置,实时最低功率是无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。Specifically, the transceiver 603 can be configured to send the encoded monitoring data to the wireless receiving device by using the real-time minimum power, and the real-time minimum power is the actual wireless signal strength and the transmitting power when the wireless transmitting device sends the monitoring data according to the previous frame encoding. And the minimum wireless signal strength required for the wireless transmitting device to transmit data, wherein the actual wireless signal strength/transmitting power=the lowest wireless signal strength/the real-time minimum power.
其中,最低无线信号强度是指无线发射装置发送信息所需要的最低的信号强度。The lowest wireless signal strength refers to the lowest signal strength required by the wireless transmitting device to transmit information.
在发送监测数据时还可以将该监测数据存储在存储器602中,在极端状况下,如若由于干扰或无线接收装置异常掉电导致单次数据发送失败,无线发射装置会在通信链路恢复时,将存储的监测数据重新发送给无线接收装置,或者从失败位置开始处进行断点续传,以充分保证整个监测数据传输的可靠性。The monitoring data may also be stored in the memory 602 when the monitoring data is transmitted. In an extreme situation, if a single data transmission fails due to interference or abnormal power failure of the wireless receiving device, the wireless transmitting device may resume when the communication link is restored. The stored monitoring data is retransmitted to the wireless receiving device, or the resume transmission is performed from the failure position to fully ensure the reliability of the entire monitoring data transmission.
为了减少上述重传的情况发送,处理器601还可以在监测数据发送前采用扫频监听方式监听通信信道,如有相同频点干扰信号时,则自动跳频到相邻信道进行监测数据的发送。除此之外,同时软件上也采用了防碰撞自动规避算法,使得通信链路能保持稳定可靠,以保证整个监测数据传输的可靠性。In order to reduce the transmission of the above retransmission, the processor 601 can also monitor the communication channel by using the frequency sweeping monitoring mode before the monitoring data is transmitted. If there is the same frequency point interference signal, the frequency hopping frequency is automatically hopped to the adjacent channel for the monitoring data transmission. . In addition, the anti-collision automatic avoidance algorithm is also adopted in the software, so that the communication link can be kept stable and reliable, so as to ensure the reliability of the entire monitoring data transmission.
进一步地,处理器601可用于周期性地将编码后的监测数据发送给无线接收装置,发送监测数据的周期为第二时间长度,第二时间长度大于第一时间长度;或者,当产生唤醒信号时,将编码后的监测数据发送给无线接收装置,唤醒信号是比较传感器输出的监测数据的值与预设的阈值范围的大小,且监测数据的值超出预设的阈值范围时产生的。Further, the processor 601 is configured to periodically send the encoded monitoring data to the wireless receiving device, and send the monitoring data to a second time length, where the second time length is greater than the first time length; or, when the wake-up signal is generated The encoded monitoring data is sent to the wireless receiving device, and the wake-up signal is generated when the value of the monitoring data output by the comparison sensor is different from the preset threshold range, and the value of the monitoring data exceeds a preset threshold range.
另外,电压监测单元605和电源管理单元606分别用于对电池604进行监测和管理。In addition, voltage monitoring unit 605 and power management unit 606 are used to monitor and manage battery 604, respectively.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。 In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例七Example 7
本发明实施例提供了一种无线接收装置,参见图8,该装置包括:An embodiment of the present invention provides a wireless receiving apparatus. Referring to FIG. 8, the apparatus includes:
收发器701,用于与无线发射装置通信;a transceiver 701, configured to communicate with a wireless transmitting device;
处理器702,用于通过收发器701接收无线发射装置发送的数据;The processor 702 is configured to receive, by using the transceiver 701, data sent by the wireless transmitting device.
采用预定的扩频因子、扩频序列算法和冗余编码率对无线发射装置发送的数据进行解码,得到传感器测得的监测数据。The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, and the monitoring data measured by the sensor is obtained.
进一步地,处理器702还可以用于通过收发器701向无线发射装置发送指令消息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于无线发射装置检测电磁波的时间间隔。Further, the processor 702 is further configured to send, by using the transceiver 701, an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving. The device, the padding field is used to cause the command message to be sent for a time period equal to or greater than a time interval at which the wireless transmitting device detects the electromagnetic wave.
通常情况下,如果想实现双向无线通信,则需要无线发射装置和无线接收装置同时处于无线接收状态,当有数据需要发送时即切换到射频发送状态,但是当无线发射装置和无线接收装置处于无线接收状态时电流较大,功耗较高。对于无线接收装置而言,由于其可以采用外接电源供电,不需要担心功耗高的问题,但是对于无线发射装置而言,由于是采用电池供电,所以需要减少其处于无线接收状态的时间,以减小功耗。因此,在本实施例中,无线发射装置采用周期性地方式检测电磁波,以进行指令消息的接收,从而减少了处于无线接收状态的时间,降低了功耗。无线接收装置发送的指令消息由填充字段和查询字段组成,其中填充字段有两个作用:其一是,由于查询字段太短可能只有几个比特,如果单单发送查询字段,容易造成指令消息的丢失;其二是,由于无线发射装置是周期性进行指令消息的接收,如果指令消息过短,可能会造成指令消息没法被无线发射装置接收到(如发送指令消息的时间处于无线发射装置两次检测之间),而通过填充字段可以增加指令消息发送需要的时长,当该时长等于或大于无线发射装置检测电磁波的时间间隔时,发送该指令消息的电磁波肯定会被无线发射装置监测到,则无线接收装置发送的指令消息肯定会被接收到,且由于无线接收装置是采用的外接电源,因此完全不必考虑功耗的问题。In general, if you want to implement two-way wireless communication, you need the wireless transmitting device and the wireless receiving device to be in the wireless receiving state at the same time. When there is data to be transmitted, it will switch to the radio frequency transmitting state, but when the wireless transmitting device and the wireless receiving device are in the wireless state. The current is large in the receiving state and the power consumption is high. For the wireless receiving device, since it can be powered by an external power source, there is no need to worry about high power consumption. However, for the wireless transmitting device, since it is powered by a battery, it is necessary to reduce the time in which it is in the wireless receiving state. Reduce power consumption. Therefore, in the present embodiment, the wireless transmitting apparatus detects the electromagnetic wave in a periodic manner to receive the command message, thereby reducing the time in the wireless receiving state and reducing the power consumption. The instruction message sent by the wireless receiving device is composed of a padding field and a query field, wherein the padding field has two functions: one is that since the query field is too short, there may be only a few bits. If the query field is sent alone, the instruction message is easily lost. Second, because the wireless transmitting device periodically receives the command message, if the command message is too short, the command message may not be received by the wireless transmitting device (for example, the time when the command message is sent is in the wireless transmitting device twice) Between the detections, the padding field can increase the length of time required for the instruction message to be sent. When the duration is equal to or greater than the time interval during which the wireless transmitting device detects the electromagnetic wave, the electromagnetic wave transmitting the command message is surely monitored by the wireless transmitting device. The command message sent by the wireless receiving device will definitely be received, and since the wireless receiving device is an external power source, there is no need to consider the power consumption problem.
其中,填充字段可用无意义的比特段填充,如一连串的0;而查询字段可以用4位比特表示,如1010。The padding field may be filled with meaningless bit segments, such as a series of 0s; and the query field may be represented by 4 bits, such as 1010.
在其他实施例中,指令消息还可以由填充字段和设定字段组成,设定字 段用于修改无线发射装置上的参数,如第一时间长度等。In other embodiments, the instruction message may also be composed of a padding field and a setting field, and the setting word The segment is used to modify parameters on the wireless transmitting device, such as the first length of time.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
实施例八Example eight
本发明实施例提供了一种无线接收装置,参见图9,该装置可以包括以下一个或多个组件:处理器801、存储器802、收发器803、输入单元804、显示单元805、GPRS单元806、全球定位系统(英文:Global Positioning System,简称:GPS)单元807、电池808、充电管理单元809、电源管理单元810、外接电源接口811、掉电检测单元812、声光报警单元813、通信接口814等组件。这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图中示出的移动终端的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。An embodiment of the present invention provides a wireless receiving apparatus. Referring to FIG. 9, the apparatus may include one or more of the following components: a processor 801, a memory 802, a transceiver 803, an input unit 804, a display unit 805, and a GPRS unit 806. Global Positioning System (GPS) unit 807, battery 808, charging management unit 809, power management unit 810, external power supply interface 811, power failure detection unit 812, sound and light alarm unit 813, communication interface 814 And other components. These components communicate over one or more buses. It will be understood by those skilled in the art that the structure of the mobile terminal shown in the figure does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more or less than the illustration. Parts, or combine some parts, or different parts.
其中,存储器802用于存储计算机执行指令,处理器801与存储器802通过总线连接,当无线接收装置运行时,处理器801执行存储器802存储的计算机执行指令,以使无线接收装置执行如实施例三所述的数据传输方法。The memory 802 is used to store computer execution instructions, and the processor 801 is connected to the memory 802 through a bus. When the wireless receiving device is in operation, the processor 801 executes a computer executed instruction stored in the memory 802 to enable the wireless receiving device to execute the third embodiment. The data transmission method described.
具体地,处理器801用于通过收发器803接收无线发射装置发送的数据;Specifically, the processor 801 is configured to receive, by using the transceiver 803, data sent by the wireless transmitting device.
采用预定的扩频因子、扩频序列算法和冗余编码率对无线发射装置发送的数据进行解码,得到传感器测得的监测数据。The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate, and the monitoring data measured by the sensor is obtained.
进一步地,处理器801还可以用于通过收器803向无线发射装置发送指令消息,指令消息包括填充字段和查询字段,查询字段用于请求无线发射装置将传感器测得的监测数据发送给无线接收装置,填充字段用于使指令消息发送所用时长等于或者大于无线发射装置检测电磁波的时间间隔。Further, the processor 801 is further configured to send, by using the receiver 803, an instruction message to the wireless transmitting apparatus, where the instruction message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving. The device, the padding field is used to cause the command message to be sent for a time period equal to or greater than a time interval at which the wireless transmitting device detects the electromagnetic wave.
在本实施例中,输入单元804用于获取用户按键、语音等输入信息,以得到指令消息。In this embodiment, the input unit 804 is configured to acquire input information such as a user's button, voice, and the like to obtain an instruction message.
在本实施例中,显示单元805显示接收到的监测数据。In the present embodiment, the display unit 805 displays the received monitoring data.
在本实施例中,GPRS单元806用于将接收到的监测数据通过GPRS传 输方式发送给服务器。In this embodiment, the GPRS unit 806 is configured to transmit the received monitoring data through the GPRS. The input method is sent to the server.
在本实施例中,掉电检测单元812用于检测到外接电源是否断电,当外接电源断电时,处理器801可以控制无线接收装置降低功耗,例如关闭显示单元805、GPRS单元806和GPS单元807等模块。In this embodiment, the power failure detecting unit 812 is configured to detect whether the external power source is powered off. When the external power source is powered off, the processor 801 can control the wireless receiving device to reduce power consumption, such as turning off the display unit 805, the GPRS unit 806, and Modules such as GPS unit 807.
在本实施例中,当无线接收装置处于移动中时,GPS单元807可用于对无线接收装置进行卫星定位。In this embodiment, when the wireless receiving device is in motion, the GPS unit 807 can be used to perform satellite positioning on the wireless receiving device.
在本实施例中,充电管理单元809和电源管理单元810用于对电池808的充电和使用进行管理。In the present embodiment, the charge management unit 809 and the power management unit 810 are used to manage the charging and use of the battery 808.
在本实施例中,外接电源接口811可用于与外接电源连接。In this embodiment, the external power interface 811 can be used to connect to an external power source.
在本实施例中,处理器801在监测数据超过相应阈值时控制声光报警单元813进行报警,从而提醒工作人员。In this embodiment, the processor 801 controls the audible and visual alarm unit 813 to perform an alarm when the monitoring data exceeds the corresponding threshold, thereby alerting the staff.
在本实施例中,通信接口814可用于与本地机进行连接,以传输监测数据。In this embodiment, communication interface 814 can be used to interface with a local machine to transmit monitoring data.
本发明实施例通过对监测数据进行扩频正交编码和冗余编码,监测数据经过扩频正交编码和冗余编码组合的编码方式后,增加了很多冗余信息,大大增强了信道的通信可靠性、信号接收灵敏度和链路稳定,从而将通信距离大大延长,适用于小数据量远距离传输。In the embodiment of the present invention, after the monitoring data is subjected to spread spectrum orthogonal coding and redundant coding, and the monitoring data is subjected to the coding method of the spread spectrum orthogonal coding and the redundant coding combination, a lot of redundant information is added, and the channel communication is greatly enhanced. Reliability, signal receiving sensitivity and link stability, thus greatly extending the communication distance, suitable for small data transmission over long distances.
需要说明的是:上述实施例提供的无线发射装置和无线接收装置在传输数据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的无线发射装置和无线接收装置与数据传输方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the wireless transmitting device and the wireless receiving device provided by the foregoing embodiments only use the division of the foregoing functional modules when transmitting data. In actual applications, the functions may be assigned different functions according to needs. The module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the wireless transmitting apparatus and the wireless receiving apparatus provided by the foregoing embodiments are in the same concept as the data transmission method embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明 的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (10)

  1. 一种数据传输方法,其特征在于,适用于无线发射装置,所述方法包括:A data transmission method is characterized in that it is applicable to a wireless transmitting device, and the method includes:
    获取传感器测得的监测数据;Obtaining monitoring data measured by the sensor;
    采用预定的扩频因子、扩频序列算法和冗余编码率对所述监测数据进行扩频正交编码和冗余编码;Performing spread spectrum orthogonal coding and redundant coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate;
    将编码后的所述监测数据发送给所述无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device.
  2. 根据权利要求1所述的方法,其特征在于,所述将编码后的所述监测数据发送给所述无线接收装置,包括:The method according to claim 1, wherein the transmitting the encoded monitoring data to the wireless receiving device comprises:
    周期性地检测电磁波,检测所述电磁波的时间间隔为第一时间长度;Periodically detecting electromagnetic waves, and detecting a time interval of the electromagnetic waves is a first time length;
    若检测到有所述无线接收装置发射的电磁波,则接收所述电磁波传输的指令消息,所述指令消息包括填充字段和查询字段,所述查询字段用于请求所述无线发射装置将传感器测得的监测数据发送给所述无线接收装置,所述填充字段用于使所述指令消息发送所用时长等于或者大于所述第一时间长度;Receiving an electromagnetic wave transmitted by the wireless receiving device, receiving an instruction message of the electromagnetic wave transmission, where the command message includes a padding field and a query field, where the query field is used to request the wireless transmitting device to measure the sensor The monitoring data is sent to the wireless receiving device, and the padding field is used to send the command message for a duration equal to or greater than the first time length;
    将编码后的所述监测数据发送给所述无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述将编码后的所述监测数据发送给所述无线接收装置,包括:The method according to claim 1 or 2, wherein the transmitting the encoded monitoring data to the wireless receiving device comprises:
    采用实时最低功率将编码后的所述监测数据发送给所述无线接收装置,所述实时最低功率是所述无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及所述无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。Transmitting the encoded monitoring data to the wireless receiving device by using a real-time minimum power, where the real-time minimum power is an actual wireless signal strength and a transmitting power when the wireless transmitting device transmits the monitoring data encoded according to the previous frame. And the lowest wireless signal strength required by the wireless transmitting device to transmit data, wherein the actual wireless signal strength/transmit power=the lowest wireless signal strength/the real-time minimum power.
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    周期性地将编码后的所述监测数据发送给所述无线接收装置,发送所述监测数据的周期为第二时间长度,所述第二时间长度大于所述第一时间长度;或者,And periodically transmitting the encoded monitoring data to the wireless receiving device, the period of sending the monitoring data is a second time length, and the second time length is greater than the first time length; or
    当产生唤醒信号时,将编码后的所述监测数据发送给所述无线接收装置,所述唤醒信号是比较所述传感器输出的所述监测数据的值与预设的阈值 范围的大小,且所述监测数据的值超出所述预设的阈值范围时产生的。Transmitting the encoded monitoring data to the wireless receiving device when the wake-up signal is generated, the wake-up signal is comparing a value of the monitoring data output by the sensor with a preset threshold The size of the range, and the value of the monitoring data is generated when the value of the preset threshold is exceeded.
  5. 一种数据传输方法,其特征在于,适用于无线接收装置,所述方法包括:A data transmission method is characterized in that it is applicable to a wireless receiving device, and the method includes:
    接收无线发射装置发送的数据;Receiving data transmitted by the wireless transmitting device;
    采用预定的扩频因子、扩频序列算法和冗余编码率对所述无线发射装置发送的数据进行解码,得到传感器测得的监测数据。The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
  6. 一种无线发射装置,其特征在于,所述装置包括:A wireless transmitting device, characterized in that the device comprises:
    传感器;sensor;
    收发器,用于与无线接收装置通信;a transceiver for communicating with a wireless receiving device;
    处理器,用于获取所述传感器测得的监测数据;采用预定的扩频因子、扩频序列算法和冗余编码率对所述监测数据进行扩频正交编码和冗余编码;通过所述收发器将编码后的所述监测数据发送给所述无线接收装置。a processor, configured to acquire monitoring data measured by the sensor; performing spread spectrum orthogonal coding and redundancy coding on the monitoring data by using a predetermined spreading factor, a spreading sequence algorithm, and a redundancy coding rate; The transceiver transmits the encoded monitoring data to the wireless receiving device.
  7. 根据权利要求6所述的装置,其特征在于,所述处理器,用于通过所述收发器周期性地检测电磁波,检测所述电磁波的时间间隔为第一时间长度;The apparatus according to claim 6, wherein the processor is configured to periodically detect an electromagnetic wave by the transceiver, and detect a time interval of the electromagnetic wave as a first time length;
    所述处理器,还用于当检测到有所述无线接收装置发射的电磁波时,通过所述收发器接收所述电磁波传输的指令消息,所述指令消息包括填充字段和查询字段,所述查询字段用于请求所述无线发射装置将所述传感器测得的监测数据发送给所述无线接收装置,所述填充字段用于使所述指令消息发送所用时长等于或者大于所述第一时间长度;The processor is further configured to receive, by the transceiver, an instruction message of the electromagnetic wave transmission when the electromagnetic wave emitted by the wireless receiving device is detected, where the instruction message includes a padding field and a query field, and the query a field is configured to request the wireless transmitting device to send the monitoring data measured by the sensor to the wireless receiving device, where the padding field is used to send the command message for a duration equal to or greater than the first time length;
    通过所述收发器将编码后的所述监测数据发送给所述无线接收装置。The encoded monitoring data is transmitted to the wireless receiving device by the transceiver.
  8. 根据权利要求6或7所述的装置,其特征在于,所述收发器,The apparatus according to claim 6 or 7, wherein said transceiver,
    用于采用实时最低功率将编码后的所述监测数据发送给所述无线接收装置,所述实时最低功率是所述无线发射装置根据前一帧编码后的监测数据发送时的实际无线信号强度、发射功率以及所述无线发射装置发送数据所需的最低无线信号强度计算出的,其中,实际无线信号强度/发射功率=最低无线信号强度/实时最低功率。And transmitting, by using the real-time minimum power, the encoded monitoring data to the wireless receiving device, where the real-time lowest power is an actual wireless signal strength when the wireless transmitting device transmits the monitoring data encoded according to the previous frame, The transmit power and the minimum wireless signal strength required by the wireless transmitting device to transmit data are calculated, wherein the actual wireless signal strength/transmit power = the lowest wireless signal strength / the real-time minimum power.
  9. 根据权利要求6或7所述的装置,其特征在于,所述处理器,还用 于周期性地通过所述收发器将编码后的所述监测数据发送给所述无线接收装置,发送所述监测数据的周期为第二时间长度,所述第二时间长度大于所述第一时间长度;或者,The apparatus according to claim 6 or 7, wherein said processor is further used Transmitting, by the transceiver, the encoded monitoring data to the wireless receiving device, the period of sending the monitoring data is a second time length, and the second time length is greater than the first time Length; or,
    当产生唤醒信号时,通过所述收发器将编码后的所述监测数据发送给所述无线接收装置,所述唤醒信号是比较所述传感器输出的所述监测数据的值与预设的阈值范围的大小,且所述监测数据的值超出所述预设的阈值范围时产生的。When the wake-up signal is generated, the encoded monitoring data is sent to the wireless receiving device by the transceiver, and the wake-up signal is a value comparing the monitored data output by the sensor with a preset threshold range And the size of the monitoring data is generated when the value of the monitoring data exceeds the preset threshold range.
  10. 一种无线接收装置,其特征在于,所述装置包括:A wireless receiving device, characterized in that the device comprises:
    收发器,用于与无线发射装置通信;a transceiver for communicating with a wireless transmitting device;
    处理器,用于通过所述收发器接收无线发射装置发送的数据;a processor, configured to receive, by the transceiver, data sent by a wireless transmitting device;
    采用预定的扩频因子、扩频序列算法和冗余编码率对所述无线发射装置发送的数据进行解码,得到传感器测得的监测数据。 The data transmitted by the wireless transmitting device is decoded by using a predetermined spreading factor, a spreading sequence algorithm and a redundant coding rate to obtain monitoring data measured by the sensor.
PCT/CN2014/091117 2014-11-12 2014-11-14 Data transmission method, wireless transmitting apparatus and wireless receiving apparatus WO2016074220A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410637126.XA CN104484986A (en) 2014-11-12 2014-11-12 Data transmission method, wireless transmitting device and wireless receiving device
CN201410637126.X 2014-11-12

Publications (1)

Publication Number Publication Date
WO2016074220A1 true WO2016074220A1 (en) 2016-05-19

Family

ID=52759526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091117 WO2016074220A1 (en) 2014-11-12 2014-11-14 Data transmission method, wireless transmitting apparatus and wireless receiving apparatus

Country Status (2)

Country Link
CN (1) CN104484986A (en)
WO (1) WO2016074220A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263187A (en) * 2015-09-15 2016-01-20 齐鲁工业大学 Method for adjusting intensity of wirelessly-emitted signals in fuzzy self-adaptive manner
CN105788207A (en) * 2016-02-29 2016-07-20 成都秦川科技发展有限公司 Wireless data transmission method and device
CN106255169B (en) * 2016-07-20 2020-09-01 南京矽力微电子技术有限公司 Node equipment, data packet forwarding method and grid network system applying same
CN106297250A (en) * 2016-10-10 2017-01-04 普天智能照明研究院有限公司 A kind of remote family data acquisition system and energy consumption acquisition system
CN107579805A (en) * 2017-08-14 2018-01-12 杭州电子科技大学 A kind of data acquisition treatment method based on dynamic quantization

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020067269A1 (en) * 1996-01-17 2002-06-06 Cadell Theodore C. Spread spectrum telemetry of physiological signals
CN101667333A (en) * 2009-09-15 2010-03-10 深圳市安普盛科技有限公司 Method and device for wirelessly reading a meter
CN103269235A (en) * 2013-04-28 2013-08-28 国家电网公司 Spread spectrum microwave transmission system of remote anemometer tower
CN103944725A (en) * 2014-04-23 2014-07-23 江苏物联网研究发展中心 Key generation, certification and data transmission method based on physiological features

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7813322B2 (en) * 2003-02-19 2010-10-12 Qualcomm Incorporated Efficient automatic repeat request methods and apparatus
CN100428698C (en) * 2005-01-18 2008-10-22 华为技术有限公司 Method of testing transmission performance of HSDPA channel
US20070076784A1 (en) * 2005-07-07 2007-04-05 Zhou Fei F Techniques to improve redundancy for multi-carrier wireless systems
JP5105834B2 (en) * 2006-11-17 2012-12-26 キヤノン株式会社 CONTROL DEVICE AND ITS CONTROL METHOD, COMMUNICATION DEVICE AND ITS CONTROL METHOD, COMMUNICATION SYSTEM, AND PROGRAM
CN101425219A (en) * 2007-10-29 2009-05-06 吉林市曼博科技有限公司 Intelligent telemetering electric meter based on wireless sensor network
CN101729089B (en) * 2008-10-23 2013-07-10 弥亚微电子(上海)有限公司 Transmitter and receiver of communication system and synchronization method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020067269A1 (en) * 1996-01-17 2002-06-06 Cadell Theodore C. Spread spectrum telemetry of physiological signals
CN101667333A (en) * 2009-09-15 2010-03-10 深圳市安普盛科技有限公司 Method and device for wirelessly reading a meter
CN103269235A (en) * 2013-04-28 2013-08-28 国家电网公司 Spread spectrum microwave transmission system of remote anemometer tower
CN103944725A (en) * 2014-04-23 2014-07-23 江苏物联网研究发展中心 Key generation, certification and data transmission method based on physiological features

Also Published As

Publication number Publication date
CN104484986A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2016074220A1 (en) Data transmission method, wireless transmitting apparatus and wireless receiving apparatus
CN102625423B (en) Wireless communication system and wake up method thereof
CA2264796C (en) Automatic meter reading data communication system
US5451938A (en) RF meter reading system
US7786893B2 (en) Battery saving two-way communication circuit and system and method for automatic meter reading
JP2001308899A (en) Overall broadband wireless communication network
US20140270799A1 (en) Method and system for camera enabled error detection
US20010034223A1 (en) Method and system for providing location dependent and personal identification information to a public safety answering point
Cohn et al. SNUPI: sensor nodes utilizing powerline infrastructure
CN102196042B (en) Internet of things (IOT) application-oriented multimedia acquisition transmission terminal and implementation method thereof
CN102354443A (en) Wireless infrared (IR) remote control device and operating method thereof
CN109035670A (en) A kind of fire alarm system and its address coding method
CN101986765A (en) Singlechip-based low-power consumption networking positioning instrument
CN107690753B (en) Low power ultra-wideband transmitter
CN105577277B (en) A kind of information transmitting apparatus
CN207096721U (en) A kind of blue Tooth remote controller
CN103188046A (en) Hierarchical modulation and demodulation apparatus and method
Popoola et al. Design of improved IR protocol for LED indoor positioning system
Hokazono et al. Iotorch: Reliable led-to-camera communication against inter-frame gaps and frame drops
CN111385014A (en) Data receiving and sending method and device for satellite communication, gateway and terminal
CN105488995A (en) Smart-phone-based Bluetooth-to-infrared meter recording device
RU2009125022A (en) DEVICE AND METHOD FOR MANAGING CONFIGURATION AND MANAGEMENT OF EQUIPMENT MAINTENANCE
JP2008011048A (en) Wireless transmission apparatus, wireless receiving apparatus, and wireless transmitter-receiver
CN104464029A (en) Single-chip microcomputer infrared remote-control code lock
JP2015026874A (en) Radio communication system, master radio device and slave radio device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14905702

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14905702

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30/10/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14905702

Country of ref document: EP

Kind code of ref document: A1