WO2012119394A1 - Wireless communication system and wakeup method thereof - Google Patents

Wireless communication system and wakeup method thereof Download PDF

Info

Publication number
WO2012119394A1
WO2012119394A1 PCT/CN2011/078471 CN2011078471W WO2012119394A1 WO 2012119394 A1 WO2012119394 A1 WO 2012119394A1 CN 2011078471 W CN2011078471 W CN 2011078471W WO 2012119394 A1 WO2012119394 A1 WO 2012119394A1
Authority
WO
WIPO (PCT)
Prior art keywords
wake
slave device
pseudo
period
random sequence
Prior art date
Application number
PCT/CN2011/078471
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 WO2012119394A1 publication Critical patent/WO2012119394A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and more particularly to a wireless communication system and a wake-up method thereof. Background technique
  • Micro-power (short-range) wireless communication technology began to appear at the end of the last century. After more than ten years of development, it has been widely used in industrial control, home intelligence, wireless remote control, security alarm, environmental monitoring, intelligent meter reading, toxic and harmful gas monitoring, Logistics, RFID and other fields. In recent years, the Internet of Things has become a new growth point for future economic development after the financial crisis. And short-range wireless communication technology will be more developed in the Internet of Things (especially sensor network:) applications.
  • the concept of the Internet of Things is almost accompanied by a low-carbon economy.
  • short-range wireless digital communication technology must conform to the development trend of low-carbon and low-energy, and develop toward low-power and micro-power consumption.
  • battery-powered products are becoming more and more demanding, and power consumption requirements are more demanding.
  • any protocol consisting of more than two wireless transceivers one of the devices actually has little time to transmit or receive.
  • the communication device does not operate in transmission and does not operate in reception, it is put into a sleep state, which can greatly reduce the average power consumption. Because of the current consumption in the sleep state, only micro-ampere, or even a few microamps.
  • the current when the wireless communication device transmits is several tens of milliamperes or more, and the receiving current is also between ten to several tens of milliamps. Therefore, in a communication system that introduces a sleep mechanism, the longer the sleep time, the lower the average power consumption.
  • the timed wake-up communication method is all wireless communication devices participating in the communication, and according to a certain timing cycle, or the timing of the next communication is agreed upon each communication, when the time is up, the plurality of devices participating in the communication simultaneously enter the working state from the sleep state. , the method of entering sleep after completing communication.
  • the timing of the timing wake-up communication method is shown in Figure 1.
  • T can be a constant or a variable.
  • T is a variable, every communication, all devices participating in the communication must agree on the time interval T of the next communication.
  • t is the working time. At some point during this working time, if only one device is in the transmitting state, the other devices are in the receiving state. Obviously, the larger the ratio of T/t, the smaller the average power consumption.
  • the shortcomings of the timed wake-up communication method are:
  • the signal strength wake-up method is to use the signal strength RSSI received by the receiver at a certain time, and determine whether the system generates communication demand within a certain period of time through the set threshold. If yes, the device The method of entering the working state from the sleep state, this method is also called the analog wake-up method. Its timing diagram is shown in
  • the device has a master-slave relationship
  • the device that initiates the communication is the master device (only one:)
  • the other devices are slave devices (one or more:).
  • the master and slave devices are fixed.
  • the definition of master and slave devices can be dynamic.
  • a device may be a master device or a slave device at a certain moment.
  • the main device workflow of the signal strength wake-up method is as follows: When there is communication demand, the master device first sends a wake-up signal with a duration of T s , which may be a carrier wave or a modulated signal. T s ⁇ T + t. After the master device sends the wake-up signal, it assumes that the other slave devices are woken up, immediately enters the normal communication, and exchanges data with the slave device for a duration of T e . After the data exchange is completed, the slave device goes to sleep. For a slave device that fails communication, the master device needs to initiate an error handling mechanism for processing.
  • T s which may be a carrier wave or a modulated signal.
  • the slave device wake-up method has the following workflow: According to the fixed period ⁇ +t, it alternates to sleep-received-received-received-received state. During time T, the slave device is dormant. During time t, the slave is in the receive state but does not receive data and only measures the value of RSSI. t is the window of the signal strength wake-up method. Since the different slave devices are not synchronized, the phase of the window is different.
  • the RSSI measurement is below the preset threshold, it means that there is no communication request and the slave goes to sleep. If the RSSI measurement value is higher than or equal to the preset threshold value, it indicates that the master device sends a communication request, and the slave device does not enter the sleep state temporarily, and continues to be in the receiving state, and the waiting time is T w .
  • the value of 1 ⁇ of different slave devices is different. During 1 ⁇ , the slave device is still in the receiving state, but cannot communicate normally, and the energy during this period is wasted.
  • the slave device After the waiting period of T w , the slave device receives the command or data of the master device and completes the established transceiver process T a , and then enters the sleep state. If the command or data sent by the master device is not received due to interference or the like, it indicates that the communication fails, and the slave device is waiting for time T. After ut , it goes to sleep again (slave 3 in Figure 2).
  • the advantage of the signal strength wake-up method is that t can take a relatively small value. In the current technical case, the t value takes 2 ⁇ 4ms. Another advantage is that the implementation is relatively simple, but its shortcomings are many, mainly:
  • a wireless transceiver device in the system When a wireless transceiver device in the system has communication requirements, it first transmits a number of shortest data packets. When the receiver periodically receives one packet of data, it considers that there is a communication request at this time, and does not enter sleep temporarily. It is the communication process waiting to enter the next step. This method is the shortest packet wake-up method. This method also has a master-slave relationship. The master device is repeatedly sent the shortest data packet, and the slave device is awakened by the shortest data packet.
  • the data packet is generally composed of bit synchronization, frame synchronization, data and terminator.
  • the structure diagram is shown in Figure 4.
  • the bit synchronization code takes the value 1010101010... ...or 01010101..., its function is mainly to enable the receiver's bit synchronization extraction circuit to be reliably locked, and then to generate synchronization by subsequent inertia, which is commonly referred to as training code.
  • the purpose of frame synchronization is to let the receiver compare the frame sync by scanning to find the starting position of the data portion.
  • the receiver has a bit shift register that shifts once for each bit of data, and puts the newly received data to the lowest bit, and then compares it with a fixed frame sync constant. Synchronous, otherwise continue to receive the next bit and compare.
  • Data is a valid part of a communication transmission and consists of multiple bytes.
  • the data also contains the length of the data.
  • the data also contains redundant parts of the FEC.
  • the terminator represents the end of a packet of data.
  • the shortest packet is the packet with the shortest total length in the case of reliable communication.
  • the length of the synchronization is determined by hardware. Different hardware circuits or different integrated circuits require different number of bit synchronizations to be transmitted, generally between 4 and 16 bytes, which is assumed to be 8 bytes.
  • the frame synchronization is generally 16, 24 or 32 bits. The longer the probability of erroneous synchronization, the lower the frequency, generally 32 bits.
  • the data portion can be 0 bytes or 1 to 3 bytes. If there is no data (0 bytes:), it is impossible to wake up the packet or carry some wake-up parameters or commands. In general, the data part preferably has 1 byte.
  • the terminator may not exist in the shortest packet, and may take 1 byte or 2 bytes. Then the total length of the shortest packet is (in bits)
  • the system using the shortest packet wake-up method, the workflow and the signal strength wake-up method are basically the same, as shown in Figure 3, the slave device also works in sleep-received one-sleep-received alternate state, but the duration of its reception must be twice
  • the sending time of the shortest packet in a packet is 2t or more. 2t is the window of the shortest data packet wake-up method. If the baud rate is 19200bps, the window duration should be 12ms. At this time, if the sleep time T is longer, the average power consumption is smaller.
  • the shortest packet wake-up method has overcome most of the shortcomings of the signal strength wake-up method. If the shortest data packet carries a certain amount of information, the slave device can also be put to sleep during the period of 1 ⁇ , thereby further reducing power consumption.
  • the shortcoming of the shortest packet wake-up method is that the window duration must be 2t or more to ensure that the slave device is reliably woken up. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a wake-up method for all the wireless communication devices involved in the above-mentioned communication in the prior art that must be synchronized in time, have poor anti-interference ability, and have a long receiving window time to make power consumption large. There is no need to synchronize all communication devices in time, strong anti-interference ability, and short receiving window time to make power consumption low.
  • the technical solution adopted by the present invention to solve the technical problem is to construct a wake-up method for waking up at least one slave device when the master device has a communication requirement, and the wake-up method includes:
  • the master device converts the pseudo-random sequence code into a wake-up bit stream by coding when there is a communication requirement, and then Modulating the wake-up bitstream into a wireless modulated signal, and continuously transmitting the wireless modulated signal to at least one slave device for a preset duration, the preset time being greater than or equal to a sleep period of the slave device And the sum of the detection periods, the sum of the sleep period and the detection period constitutes a sleep wake-up period; each slave device receives the wireless modulated signal during the sounding period, and demodulates the wireless modulated signal into a wake-up bit stream, and then The wake-up bit stream is sampled and decoded, and it is determined whether to wake up the slave device according to the decoding result.
  • the pseudo random sequence code is an M sequence.
  • the pseudo-random sequence code is pre-stored or generated by a pseudo-random generator.
  • the master device performs the process of converting the pseudo random sequence code into a wake-up bit stream by encoding, and the method further includes: scrambling the pseudo-random sequence code or the bit stream;
  • the method further includes: descrambling the pseudo-random sequence code in the process of sampling and decoding the wake-up bitstream by the device.
  • the step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
  • the master device inverts the pseudo random sequence code or the wake-up bit stream in the process of encoding or modulation
  • the step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
  • the slave device calculates the waiting time according to the position of the decoded pseudo-random sequence code in a pseudo-random sequence period, and continues to maintain the sleep state when the waiting time has not arrived; Upon arrival, the slave device is woken up.
  • the code is a non-return to zero code, a return-to-zero code, or a Manchester code.
  • the modulation is amplitude shift keying, frequency shift keying or phase shift keying.
  • the present invention also contemplates a wireless communication system including a master device and at least one slave device, the master device comprising:
  • a coding unit configured to encode a pseudo-random sequence code into a wake-up bitstream when there is a communication requirement
  • a modulating unit configured to modulate the wake-up bitstream into a wireless modulated signal
  • a sending unit configured to continuously send the wireless modulation signal to at least one slave device for a preset duration, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, The sum of the sleep period and the detection period constitutes a complete sleep wake-up period;
  • Each slave device includes:
  • a receiving unit configured to receive the wireless modulated signal during a sounding period
  • a demodulation unit configured to demodulate the wireless modulated signal into a wake-up bitstream
  • a decoding unit configured to sample and decode the wake-up bitstream
  • a wake-up control unit configured to determine, according to the decoding result, whether to wake up the slave device.
  • FIG. 4 is a structural diagram of a data packet in a third wake-up method in the prior art
  • FIG. 5 is a flowchart of Embodiment 1 of a wake-up method according to the present invention.
  • FIG. 6 is a structural diagram of Embodiment 1 of a linear feedback shift register in a master device of the present invention
  • FIG. 7 is a structural diagram of Embodiment 1 of a linear feedback shift register in a slave device of the present invention
  • FIG. 8 is a first embodiment of a wake-up method according to the present invention
  • Figure 9 is a logic diagram of a first embodiment of the wireless communication system of the present invention. detailed description
  • the waking method is used to wake up at least one slave device when the master device has a communication requirement, and specifically includes the following steps:
  • Step S100 The master device converts the pseudo-random sequence code into a wake-up bit stream by coding when there is a communication requirement, and then modulates the wake-up bit stream into a wireless modulated signal, and to the at least one slave device within a preset duration. And continuously transmitting the wireless modulation signal, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, and a sum of the sleep period and the detection period constitutes a sleep wake-up period;
  • Step S200 Each slave device receives the wireless modulation signal during a sounding period, and demodulates the wireless modulation signal into a wake-up bit stream, and then samples and decodes the wake-up bit stream, and determines according to the decoding result. Whether to wake up the slave device.
  • the pseudo-random sequence code is preferably an M-sequence (longest sequence), and of course other sequences that meet the requirements may be selected.
  • M-sequence longest sequence
  • the use of the M sequence results in a better performance, and the present invention can also be implemented using other sequences, and is also within the scope of the present invention.
  • the pseudo-random sequence code may be pre-stored or may be generated by a pseudo-random generator.
  • the M-sequence generator is usually implemented by a linear feedback shift register (LFSR), which generates a set of pseudo-random sequences with the longest period.
  • LFSR linear feedback shift register
  • Figure 6 is a structural diagram of a linear feedback shift register (n-order M-sequence pseudo-random generator), in the figure ao, ⁇ ... ⁇ The initial values cannot all be 0.
  • Figure 6 can also be expressed as an equation:
  • the order and characteristic polynomial of the LFSR in the master device are the same as the order and characteristic polynomial of the LFSR in the slave device, respectively, to ensure the editing of the LFSR of the master-slave device.
  • Decoding polynomial matching in order to output a continuous 0, which is recognized by the receiver, wakes up from the sleep state, and solves the identification problem. If a random code is generated due to noise, substituting into (2.2.1-3), the probability of continuous output 0 decreases as the order increases.
  • the probability that the decoder continuously outputs multiple zeros due to noise is almost zero, thus solving the problem of noise interference (false wake-up:).
  • the workflow of the master device is explained:
  • the pseudo-random sequence code is encoded into a wake-up bit stream, and then the wake-up bit stream is modulated into a wireless modulated signal for a preset duration!
  • the wireless modulation signal is continuously transmitted to at least one slave device, and the pseudo random sequence code is generated by an LFSR pseudo-random generator.
  • the LFSR needs to be initialized before starting, but not all 0s.
  • the master device After the master device sends the wake-up bit stream, it assumes that other slave devices are woken up, immediately enters normal communication, and performs data exchange with the slave device for a duration of T e . After the data exchange is completed, the slave device goes to sleep. For a slave device that fails communication, such as slave device 3, the master device needs to initiate an error handling mechanism for processing.
  • Step 1 The slave device operates at a fixed period ⁇ +t, alternately works on sleep, receives one sleep, and receives one. status. During the time T, the slave device is dormant, does not receive any data, and the sleep current is extremely low, reaching several microamps or less;
  • Step 2 During time t, the slave device is in the probing state and starts the decoder. Each time a bit of data is received, 1 bit is output. A counter is started at the same time. When the output bit is 1, the counter is cleared. When the output bit is 0, the counter is incremented by 1. During the received time t, when the value of the counter is always less than the set threshold value M, it means that no wake-up signal is received, the slave device goes to sleep, and the step U is repeated.
  • Step 3 When the value of the counter is greater than or equal to the threshold within the received time t, it indicates that the wake-up signal is received, and the slave device enters the waiting for a valid communication state, and the waiting time is T w . Between T ⁇ J3 ⁇ 4, the slave device is still receiving, but cannot communicate normally, and the energy during this period is wasted. If an inverse increase, according to the pseudo-random sequence code decoding position in a pseudo-random sequence period, calculate a value for the waiting time T w, it is also possible to enter the device from the waiting time T ⁇ between J3 ⁇ 4 In the sleep state, the wakeup signal is sent on the master device! At the end, the slave device wakes up by timing, which further saves energy;
  • Step 4 Waiting time 1 ⁇ After the arrival, the master and slave devices can perform the scheduled normal communication. After the communication ends, the slave device proceeds to step 1. If there is a problem such as a communication error, the error processing flow is entered.
  • the slave device when it receives the wake-up bit stream, it generally requires the master device to first transmit a string of bit synchronization codes, and the slave device calibrates the time reference and the clock frequency according to the serial bit synchronization code.
  • the pseudo-random sequence transmitted by the master device within a length of code length, the number of 0s and the number of ones are substantially equal, and there is no longer continuous 0 or continuous 1 case, which can be used as a bit. Synchronous use, but the effect is slightly worse than sending a regular 010101010 ⁇ 0101 code. If the bit-synchronous separation circuit is required to transmit a higher quality bit-synchronous training code in the receiving circuit of the slave device, then Manchester code can be used to solve this problem, enabling the receiver to separate higher-quality bit synchronization.
  • This time which is the window time t of the present invention, does not need to be doubled, and the value may be slightly longer, such as 5.8 Ms or 6 Ms, which is twice the window time of the minimum packet wake-up method. That is to say, the timing is started from the time when the device is switched from sleep to reception. If the wake-up signal is not detected within 5.8Ms, it goes to sleep again.
  • Some receivers' synchronous separation circuits are more efficient, and the bit synchronization can be separated within 3 ⁇ 4 bytes, then the t value can be controlled within 4Ms.
  • the method further includes: scrambling the pseudo-random sequence code or the bit stream; correspondingly, the slave device is in the pair
  • the method further includes: descrambling the pseudo-random sequence code.
  • the master device negates the pseudo-random sequence code or the wake-up bitstream in the encoding or modulation step.
  • the step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
  • the code mentioned may be a non-return-to-zero code NRZ, a return-to-zero code RZ, a Manchester code, etc., especially a Manchester code, which is more advantageous for synchronous separation circuits of multiple slave devices. Or a synchronous separation mechanism that quickly and accurately separates the synchronized clock of the received bit stream.
  • the modulation mentioned can be in any binary or multi-modulation mode, such as amplitude shift keying ASK, frequency shift keying FSK or phase shift keying PSK, etc., or other modulation methods that will wake up the bit stream (baseband signal) directly. Or Ground modulation to any carrier frequency.
  • the wireless communication system includes a master device 100 and a slave device 200. It should be noted that although this embodiment only shows one slave device, The present invention is not limited to the number of slave devices, it being understood that the logical structure of the other slave devices is the same as the logical structure of the slave device 200.
  • the master device 100 includes a coding unit 110, a modulation unit 120, and a transmitting unit 130, which are sequentially connected
  • the slave device 200 includes a receiving unit 210, a demodulating unit 220, a decoding unit 230, and a wake-up control unit that are sequentially connected in sequence. 240.
  • the encoding unit 110 is configured to encode the pseudo random sequence code into a wake-up bit stream when there is a communication requirement;
  • the modulating unit 120 is configured to modulate the wake-up bit stream into a wireless modulated signal;
  • the transmitting unit 130 is configured to And transmitting, by the at least one slave device, the wireless modulation signal continuously for a preset duration, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, where the sleep period and the detection period are And constitute a complete sleep wake-up cycle.
  • the receiving unit 210 is configured to receive the wireless modulated signal during a sounding period; the demodulating unit 220 is configured to demodulate the wireless modulated signal into a wake-up bitstream; and the decoding unit 230 is configured to The bit stream is sampled and decoded; the wake-up control unit 240 is configured to determine whether to wake up the slave device according to the decoding result. It is explained here that each step in the preferred embodiment of the wake-up method has a corresponding functional module in the wireless communication system, which will not be described herein.
  • the roles of the master device and the slave device can be interchanged, which device initiates communication, and which device is a slave device, and its identity is not a constant layer.
  • the master device may or may not have a receiving unit, i.e., the master device may be a simplex (transmit only), half duplex, or full duplex device.
  • the slave device may or may not have a transmit unit, but must have a receive unit, ie the slave device can be a simplex (receive only), half-duplex or full-duplex device.

Landscapes

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

Abstract

The present invention relates to a wireless communication system and a wakeup method thereof; the wakeup method comprises: a master device for converting pseudo random sequence code into a wakeup bit stream through coding when there is communication demands, modulating the wakeup bit stream into a wireless modulation signal, and sending the wireless modulation signal continuously to at least one slave device within a preset time duration, the preset time duration is longer than or equal to the sum of the dormant period and the detection period of the slave device; each slave device receiving the wireless modulation signal within the detection period, and demodulating the wireless modulation signal into the wakeup bit stream, then sampling and decoding the wakeup bit stream, and determining whether to wake up the slave device according to the decoding results. By implementing the technical solution of the present invention, the wireless communication devices involved in communication require no chronological synchronization; anti-interference ability is strong, solving the problem of identification and wrong wakeups, and enhances reliability; and the detection period of the slave device is shortened, decreasing the receiving a window time of the slave device, lowering the power consumption of the communication system.

Description

一种无线通信系统及其唤醒方法 技术领域  Wireless communication system and wake-up method thereof
本发明涉及通信技术领域,更具体地说,涉及一种无线通信系统及其唤醒 方法。 背景技术  The present invention relates to the field of communications technologies, and more particularly to a wireless communication system and a wake-up method thereof. Background technique
微功率 (短距离)无线通信技术在上世纪末开始出现, 经过十几年的发展, 已经广泛应用于工业控制、 家庭智能、 无线遥控、 安防报警、 环境监测、 智能 抄表、 有毒有害气体监测、 物流、 RFID等领域。 近年来, 国内国际上又将物 联网作为金融危机后, 未来经济发展新的增长点。而短距离无线通信技术, 将 在物联网 (尤其是传感网:)应用中得到更大的发展。  Micro-power (short-range) wireless communication technology began to appear at the end of the last century. After more than ten years of development, it has been widely used in industrial control, home intelligence, wireless remote control, security alarm, environmental monitoring, intelligent meter reading, toxic and harmful gas monitoring, Logistics, RFID and other fields. In recent years, the Internet of Things has become a new growth point for future economic development after the financial crisis. And short-range wireless communication technology will be more developed in the Internet of Things (especially sensor network:) applications.
物联网概念几乎是伴随着低碳经济同时到来的。作为物联网的主要通信方 式之一的短距离无线数字通信技术, 必然要顺应低碳、低能耗的发展潮流, 向 低功耗、 微功耗方向发展。 另外, 随着移动通信设备应用越来越广, 电池供电 的产品也越来越多, 对功耗的要求更加苛刻。  The concept of the Internet of Things is almost accompanied by a low-carbon economy. As one of the main communication methods of the Internet of Things, short-range wireless digital communication technology must conform to the development trend of low-carbon and low-energy, and develop toward low-power and micro-power consumption. In addition, as mobile communication devices become more widely used, battery-powered products are becoming more and more demanding, and power consumption requirements are more demanding.
那么,如何降低无线通信设备的总体功耗? 显然,只降低发射机的发射功 率, 或者只降低接收机的电流消耗是不现实的。 这种方法的效果不但不明显, 而且会带来通信质量下降的恶劣后果。 只有采用空闲时通信设备休眠的方式, 才能大大地降低通信设备的平均功耗, 达到降耗的目的。 同时, 用电池供电的 设备, 可以数倍甚至数千倍地延长电池的使用寿命。  So how do you reduce the overall power consumption of wireless communication devices? Obviously, it is unrealistic to only reduce the transmitter's transmit power, or just reduce the receiver's current consumption. The effect of this method is not only inconspicuous, but also has the adverse consequences of reduced communication quality. Only when the communication device sleeps in idle state can the average power consumption of the communication device be greatly reduced, and the purpose of reducing consumption is achieved. At the same time, battery-powered devices can extend battery life by several or even thousands of times.
对于由两个以上无线收发设备组成的任何结构、任何协议的半双工无线通 信系统或网络, 其中的某一个设备真正工作于发射或接收的时间是很少的。当 通信设备不工作于发射, 也不工作于接收时, 使其进入休眠状态, 则可大大降 低平均功耗。 因为休眠状态的电流消耗, 只有微安级, 甚至几个微安。 而无线 通信设备发射时的电流是数十毫安以上, 接收电流也在十几到数十毫安之间。 因此, 引入休眠机制的通信系统, 休眠时间越长, 则平均能耗越低。 当某个或某组无线通信设备处于休眠状态时,其不接收也不发射,处于非 工作状态, 但是, 当其它通信设备需要和其进行通信时, 通信是不会成功的。 这样, 就需要一套流程或方法, 使处于休眠状态的无线通信设备, 在其它设备 需要和它进行通信时, 能感知并完成通信, 即将处于休眠状态的无线通信设备 唤醒, 当前, 将无线通信设备从休眠状态下唤醒的方法有多种, 描述如下: 一、 定时唤醒通信法 For a half-duplex wireless communication system or network of any structure, any protocol consisting of more than two wireless transceivers, one of the devices actually has little time to transmit or receive. When the communication device does not operate in transmission and does not operate in reception, it is put into a sleep state, which can greatly reduce the average power consumption. Because of the current consumption in the sleep state, only micro-ampere, or even a few microamps. The current when the wireless communication device transmits is several tens of milliamperes or more, and the receiving current is also between ten to several tens of milliamps. Therefore, in a communication system that introduces a sleep mechanism, the longer the sleep time, the lower the average power consumption. When a certain group or group of wireless communication devices are in a sleep state, they are not received or transmitted, and are in a non-working state, but communication is not successful when other communication devices need to communicate with them. In this way, a process or method is needed to enable the wireless communication device in a dormant state to sense and complete communication when other devices need to communicate with it, and wake up the wireless communication device that is in a dormant state. Currently, wireless communication will be performed. There are several ways to wake up the device from sleep state, as described below: 1. Timing wake-up communication method
定时唤醒通信法是参与通信的所有无线通信设备, 按照一定的定时周期, 或每次通信时约定下次通信的定时时间, 定时时间到, 则参与通信的多个设备 同时从休眠状态进入工作状态, 完成通信后再进入休眠的方法。定时唤醒通信 法的工作时序如图 1所示。  The timed wake-up communication method is all wireless communication devices participating in the communication, and according to a certain timing cycle, or the timing of the next communication is agreed upon each communication, when the time is up, the plurality of devices participating in the communication simultaneously enter the working state from the sleep state. , the method of entering sleep after completing communication. The timing of the timing wake-up communication method is shown in Figure 1.
图 1中 T可以是常数, 也可以是变量。 当 T是变量时, 每次通信, 所有 参与通信的设备, 必须约定下次通信的时间间隔 T。 t是工作时间, 在这个工 作时间内的某一时刻, 当且仅当只能有一个设备处于发射状态, 其它设备处于 接收状态。 很显然, T/t的比值越大, 平均功耗就越小。  In Figure 1, T can be a constant or a variable. When T is a variable, every communication, all devices participating in the communication must agree on the time interval T of the next communication. t is the working time. At some point during this working time, if only one device is in the transmitting state, the other devices are in the receiving state. Obviously, the larger the ratio of T/t, the smaller the average power consumption.
定时唤醒通信法的缺点有:  The shortcomings of the timed wake-up communication method are:
1 ) 参与通信的所有无线通信设备, 必须在时间上同步, 则对时钟的要求 较高;  1) All wireless communication devices participating in the communication must be synchronized in time, and the clock requirements are higher;
2 ) 初始同步需要较长的时间和复杂的流程;  2) Initial synchronization takes a long time and complicated process;
3 ) 不同无线通信设备的时钟, 由于存在误差, 会产生漂移, 需要一套校 准机制进行校准;  3) The clocks of different wireless communication devices will drift due to errors, and a calibration mechanism is needed for calibration;
4) 休眠时间越长, 时钟漂移越大, 一旦漂移过大或其它原因导致设备脱 离同步, 重新同步需要花费很大的代价, 因为而脱离同步的设备, 就脱离了系 统;  4) The longer the sleep time, the greater the clock drift. Once the drift is too large or the device is disconnected from synchronization, the resynchronization takes a lot of cost, because the device that is out of sync is out of the system;
5 ) 通信实时性和灵活性不强, 如果某设备有突发的通信需要, 而其它设 备仍在休眠, 则不能在短时间内完成通信, 只能等待定时时间到。  5) Communication real-time and flexibility is not strong. If a device has sudden communication needs and other devices are still sleeping, communication cannot be completed in a short time, and only waiting for the time to arrive.
二、 信号强度唤醒法  Second, the signal strength wake-up method
信号强度唤醒法是利用接收机在某一时刻接收到的信号强度 RSSI, 通过 设定的门限, 判断系统在某一时间段内, 是否产生通信需求, 如果是, 则设备 从休眠状态进入工作状态的方法, 这种方法又叫做模拟唤醒法。其时序图如图The signal strength wake-up method is to use the signal strength RSSI received by the receiver at a certain time, and determine whether the system generates communication demand within a certain period of time through the set threshold. If yes, the device The method of entering the working state from the sleep state, this method is also called the analog wake-up method. Its timing diagram is shown in
2所示。 2 is shown.
使用信号强度唤醒法的系统中, 设备有主从之分,发起通信的设备是主设 备 (只能有一个:), 其它设备是从设备 (一个或多个:)。 在大部分应用中, 主从设 备是固定的。但在一些比较复杂的系统中, 主从设备的定义可以是动态的, 某 个设备在某一时刻, 可能是主设备, 也可能是从设备。  In a system that uses the signal strength wake-up method, the device has a master-slave relationship, the device that initiates the communication is the master device (only one:), and the other devices are slave devices (one or more:). In most applications, the master and slave devices are fixed. However, in some more complex systems, the definition of master and slave devices can be dynamic. A device may be a master device or a slave device at a certain moment.
信号强度唤醒法的主设备工作流程如下:主设备在有通信需求时,首先发 送持续时间为 Ts的唤醒信号, 该信号可以是载波, 也可以是调制信号。 Ts ^ T + t。主设备发送完唤醒信号后, 其假设其它的从设备都被唤醒, 马上进入正常 通信, 和从设备进行数据交换, 持续时间为 Te。 数据交换完毕, 从设备进入 休眠。 对于通信失败的从设备, 主设备需要启动差错处理机制进行处理。 The main device workflow of the signal strength wake-up method is as follows: When there is communication demand, the master device first sends a wake-up signal with a duration of T s , which may be a carrier wave or a modulated signal. T s ^ T + t. After the master device sends the wake-up signal, it assumes that the other slave devices are woken up, immediately enters the normal communication, and exchanges data with the slave device for a duration of T e . After the data exchange is completed, the slave device goes to sleep. For a slave device that fails communication, the master device needs to initiate an error handling mechanism for processing.
信号强度唤醒法的从设备工作流程如下: 按照固定的周期 Τ+t, 交替工作 于休眠一接收一休眠一接收的状态。 在时间 T内, 从设备是休眠的。 在时间 t 内, 从设备处于接收状态, 但并不接收数据, 只测量 RSSI的值。 t是信号强 度唤醒法的窗口, 不同的从设备由于没有同步, 其窗口的相位是不同的。  The slave device wake-up method has the following workflow: According to the fixed period Τ+t, it alternates to sleep-received-received-received-received state. During time T, the slave device is dormant. During time t, the slave is in the receive state but does not receive data and only measures the value of RSSI. t is the window of the signal strength wake-up method. Since the different slave devices are not synchronized, the phase of the window is different.
如果 RSSI测量值低于预置的门限, 则表示没有任何通信请求, 从设备进 入休眠。 如果 RSSI测量值高于或等于预置的门限值, 则表示有主设备发出通 信请求, 从设备暂时不进入休眠, 继续处于接收状态, 等待时间为 Tw。 不同 从设备的 1^值是不一样的。在1^期间, 从设备仍处于接收状态, 但不能正常 通信, 这期间的能量是浪费掉的。 If the RSSI measurement is below the preset threshold, it means that there is no communication request and the slave goes to sleep. If the RSSI measurement value is higher than or equal to the preset threshold value, it indicates that the master device sends a communication request, and the slave device does not enter the sleep state temporarily, and continues to be in the receiving state, and the waiting time is T w . The value of 1^ of different slave devices is different. During 1^, the slave device is still in the receiving state, but cannot communicate normally, and the energy during this period is wasted.
Tw等待期过后, 从设备收到主设备的命令或数据并完成既定的收发流程 Ta后, 又进入休眠状态。如果因为干扰等原因, 没有收到主设备发来的命令或 数据, 则表明本次通信失败, 从设备在等待时间 T。ut后, 又进入休眠 (图 2中 的从设备 3)。 After the waiting period of T w , the slave device receives the command or data of the master device and completes the established transceiver process T a , and then enters the sleep state. If the command or data sent by the master device is not received due to interference or the like, it indicates that the communication fails, and the slave device is waiting for time T. After ut , it goes to sleep again (slave 3 in Figure 2).
信号强度唤醒法的优点是 t可以取比较小的值, 目前的技术情况下, t值 取 2~4ms。 另外的优点是实现比较简单, 但其缺点很多, 主要有:  The advantage of the signal strength wake-up method is that t can take a relatively small value. In the current technical case, the t value takes 2~4ms. Another advantage is that the implementation is relatively simple, but its shortcomings are many, mainly:
1 ) 抗干扰能力差, 尤其是同频和邻频干扰对其影响是致命的, 持续的干 扰会对从设备产生连续的误唤醒, 从而导致能量的无谓消耗; 2 ) 不能区分信号发送者的身份, 所以会轻易地被其它系统无意或恶意唤 醒, 导致能量无谓的消耗, 系统的可靠性下降; 1) The anti-interference ability is poor, especially the influence of the same frequency and adjacent frequency interference is fatal, and the continuous interference will cause continuous false wake-up to the slave device, resulting in unnecessary consumption of energy; 2) It is impossible to distinguish the identity of the sender of the signal, so it will be easily inadvertently or maliciously awakened by other systems, resulting in unnecessary consumption of energy and a decrease in system reliability;
3 )缩短通信距离, 当 RSSI信号比较弱时, 从设备的接收机测试 RSSI信 号时, 干扰和噪声能量会占比较大的比重, 导致 RSSI测量值的可信度下降, 所以必须设置较高的门限才能减少误唤醒, 提高可靠性。设置高门限会导致通 信距离缩短。 比如接收机的灵敏度为 -120DBm, 但门限必须设置为 -112DBm, 则通信距离相应缩短;  3) Shorten the communication distance. When the RSSI signal is weak, when the RSSI signal is tested by the receiver of the device, the interference and noise energy will account for a large proportion, and the reliability of the RSSI measurement value will decrease, so it must be set higher. Thresholds can reduce false wake-ups and improve reliability. Setting a high threshold will result in a shorter communication distance. For example, the sensitivity of the receiver is -120DBm, but the threshold must be set to -112DBm, the communication distance is shortened accordingly;
4) 突发干扰和噪声产生的误唤醒, 随环境不同而不同, 随时间不同也不 同 (比如太阳黑子的活动:), 则找到一个合理的门限值比较困难, 计算和评估误 唤醒消耗的能量也非常困难。  4) The sudden wake-up of sudden interference and noise varies from environment to environment and varies with time (such as sunspot activity:), it is difficult to find a reasonable threshold, calculate and evaluate the false wake-up consumption. Energy is also very difficult.
三、 最短数据包唤醒法  Third, the shortest packet wake-up method
系统中某无线收发设备有通信需求时,先重复发送若干个最短数据包,接 收机在定时探测时, 只要正确收到其中一包数据, 就认为此时有通信请求, 暂 时不进入休眠, 而是等待进入下一步的通信流程, 这种方法就是最短数据包唤 醒法。 该方法也有主从之分, 反复发送最短数据包的是主设备, 被最短数据包 唤醒的是从设备。  When a wireless transceiver device in the system has communication requirements, it first transmits a number of shortest data packets. When the receiver periodically receives one packet of data, it considers that there is a communication request at this time, and does not enter sleep temporarily. It is the communication process waiting to enter the next step. This method is the shortest packet wake-up method. This method also has a master-slave relationship. The master device is repeatedly sent the shortest data packet, and the slave device is awakened by the shortest data packet.
通常, 无线数据通信中, 数据包一般由位同步, 帧同步, 数据和结束符 4 部分组成, 其结构示意图如图 4所示, 在 NRZ编码系统中, 位同步码取值为 1010101010......或者 01010101......, 其作用主要是让接收机的位同步提取电 路能可靠锁定, 然后靠惰性对后续的码元产生同步, 即通常所说的训练码。  Generally, in wireless data communication, the data packet is generally composed of bit synchronization, frame synchronization, data and terminator. The structure diagram is shown in Figure 4. In the NRZ coding system, the bit synchronization code takes the value 1010101010... ...or 01010101..., its function is mainly to enable the receiver's bit synchronization extraction circuit to be reliably locked, and then to generate synchronization by subsequent inertia, which is commonly referred to as training code.
帧同步的作用是,让接收机通过扫描比较帧同步,找到数据部分的起始位 置。 接收机有一个若干位的移位寄存器, 每收到一个比特的数据就移位一次, 并将新收到的数据放到最低位, 然后与一个固定的帧同步常数进行比较,相等 则表示已经同步上, 否则继续接收下一比特并比较。  The purpose of frame synchronization is to let the receiver compare the frame sync by scanning to find the starting position of the data portion. The receiver has a bit shift register that shifts once for each bit of data, and puts the newly received data to the lowest bit, and then compares it with a fixed frame sync constant. Synchronous, otherwise continue to receive the next bit and compare.
数据是通信传输的有效部分,由多个字节组成。数据中还包含有数据长度, Data is a valid part of a communication transmission and consists of multiple bytes. The data also contains the length of the data.
CRC校验等信息,如果采取了 FEC纠错算法,数据中还包含 FEC的冗余部分。 For information such as CRC check, if the FEC error correction algorithm is adopted, the data also contains redundant parts of the FEC.
结束符代表一包数据的结束。  The terminator represents the end of a packet of data.
最短数据包就是在保证可靠通信的情况下, 总长度最短的数据包。其中位 同步的长度是由硬件决定的, 不同的硬件电路或不同的集成电路, 要求发送的 位同步个数也不同, 一般在 4~16个字节之间, 这里假设为 8个字节。 帧同步 一般为 16、 24或 32比特, 越长则误同步的概率越低, 一般取 32比特。 数据 部分可以是 0字节, 也可以是 1~3字节。 如果没有数据 (0字节:), 则无法分组 唤醒或携带一些唤醒参数或命令, 一般情况下, 数据部分最好有 1字节。 结束 符在最短数据包中可以不存在, 也可以取 1个字节或 2个字节。则最短数据包 总长度为 (按比特计算 The shortest packet is the packet with the shortest total length in the case of reliable communication. One of them The length of the synchronization is determined by hardware. Different hardware circuits or different integrated circuits require different number of bit synchronizations to be transmitted, generally between 4 and 16 bytes, which is assumed to be 8 bytes. The frame synchronization is generally 16, 24 or 32 bits. The longer the probability of erroneous synchronization, the lower the frequency, generally 32 bits. The data portion can be 0 bytes or 1 to 3 bytes. If there is no data (0 bytes:), it is impossible to wake up the packet or carry some wake-up parameters or commands. In general, the data part preferably has 1 byte. The terminator may not exist in the shortest packet, and may take 1 byte or 2 bytes. Then the total length of the shortest packet is (in bits)
8*8 + 32 + 2*8 = 112bits  8*8 + 32 + 2*8 = 112bits
如果按照 19200bps, 则传输的时间 t为:  If you follow 19200bps, the time t transmitted is:
t = 112/19200 ~ 5.8ms  t = 112/19200 ~ 5.8ms
采用最短数据包唤醒法的系统,工作流程和信号强度唤醒法基本一致,如 图 3所示, 从设备也工作于休眠一接收一休眠一接收的交替状态,但其接收的 持续时间必须两倍于一包最短数据包的发送时间, 即大于等于 2t。 2t是最短数 据包唤醒法的窗口, 如果波特率为 19200bps, 则窗口时长应为 12ms。 这时, 如果休眠时间 T越长, 则平均功耗越小。  The system using the shortest packet wake-up method, the workflow and the signal strength wake-up method are basically the same, as shown in Figure 3, the slave device also works in sleep-received one-sleep-received alternate state, but the duration of its reception must be twice The sending time of the shortest packet in a packet is 2t or more. 2t is the window of the shortest data packet wake-up method. If the baud rate is 19200bps, the window duration should be 12ms. At this time, if the sleep time T is longer, the average power consumption is smaller.
最短数据包唤醒法, 已经克服了信号强度唤醒法的大部分缺点。如果最短 数据包中再携带一定的信息, 则也可以在 1^期间让从设备处于休眠状态, 从 而更进一步降低功耗。 最短数据包唤醒法的缺点是, 窗口时长必须是 2t以上, 才能保证从设备被可靠唤醒。 发明内容  The shortest packet wake-up method has overcome most of the shortcomings of the signal strength wake-up method. If the shortest data packet carries a certain amount of information, the slave device can also be put to sleep during the period of 1^, thereby further reducing power consumption. The shortcoming of the shortest packet wake-up method is that the window duration must be 2t or more to ensure that the slave device is reliably woken up. Summary of the invention
本发明要解决的技术问题在于,针对现有技术的上述参与通信的所有无线 通信设备必须在时间上同步、抗干扰能力差、接收窗口时间长从而使功耗大的 缺陷,提供一种唤醒方法,无需使所有通信设备在时间上同步、抗干扰能力强、 接收窗口时间短从而使功耗低。  The technical problem to be solved by the present invention is to provide a wake-up method for all the wireless communication devices involved in the above-mentioned communication in the prior art that must be synchronized in time, have poor anti-interference ability, and have a long receiving window time to make power consumption large. There is no need to synchronize all communication devices in time, strong anti-interference ability, and short receiving window time to make power consumption low.
本发明解决其技术问题所采用的技术方案是:构造一种唤醒方法,用于在 主设备有通信需求时唤醒至少一个从设备, 该唤醒方法包括:  The technical solution adopted by the present invention to solve the technical problem is to construct a wake-up method for waking up at least one slave device when the master device has a communication requirement, and the wake-up method includes:
主设备在有通信需求时将伪随机序列码通过编码变换为唤醒比特流,然后 将所述唤醒比特流调制成无线调制信号, 并在预设的持续时间内, 向至少一个 从设备连续发送所述无线调制信号,所述预设的时间大于或等于所述从设备的 休眠期和探测期之和, 所述休眠期和探测期之和构成一个休眠唤醒周期; 每个从设备在探测期接收所述无线调制信号,并将所述无线调制信号解调 成唤醒比特流, 然后对所述唤醒比特流进行采样和译码, 并根据译码结果判断 是否唤醒该从设备。 The master device converts the pseudo-random sequence code into a wake-up bit stream by coding when there is a communication requirement, and then Modulating the wake-up bitstream into a wireless modulated signal, and continuously transmitting the wireless modulated signal to at least one slave device for a preset duration, the preset time being greater than or equal to a sleep period of the slave device And the sum of the detection periods, the sum of the sleep period and the detection period constitutes a sleep wake-up period; each slave device receives the wireless modulated signal during the sounding period, and demodulates the wireless modulated signal into a wake-up bit stream, and then The wake-up bit stream is sampled and decoded, and it is determined whether to wake up the slave device according to the decoding result.
在本发明所述的唤醒方法中, 所述伪随机序列码为 M序列。  In the awake method of the present invention, the pseudo random sequence code is an M sequence.
在本发明所述的唤醒方法中,所述伪随机序列码是预先存储的或由伪随机 发生器产生。  In the wake-up method of the present invention, the pseudo-random sequence code is pre-stored or generated by a pseudo-random generator.
在本发明所述的唤醒方法中,  In the wake-up method of the present invention,
主设备在将伪随机序列码通过编码变换为唤醒比特流过程中,该方法还包 括: 对所述伪随机序列码或比特流进行加扰;  The master device performs the process of converting the pseudo random sequence code into a wake-up bit stream by encoding, and the method further includes: scrambling the pseudo-random sequence code or the bit stream;
从设备在对所述唤醒比特流进行采样和译码的过程中,该方法还包括:对 所述伪随机序列码进行解扰。  The method further includes: descrambling the pseudo-random sequence code in the process of sampling and decoding the wake-up bitstream by the device.
在本发明所述的唤醒方法中,从设备根据译码结果判断是否唤醒该从设备 的步骤包括:  In the awake method of the present invention, the step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
对译码后连续输出 0的个数进行计数;  Counting the number of consecutive output 0 after decoding;
判断连续输出 0的个数是否超过预设的限值, 若是, 则唤醒该从设备; 若 否, 则继续保持休眠状态。  It is judged whether the number of consecutive output 0 exceeds a preset limit, and if so, the slave device is woken up; if not, the sleep state is continued.
在本发明所述的唤醒方法中,主设备在进行编码或调制的环节中,对伪随 机序列码或唤醒比特流取反;  In the wake-up method of the present invention, the master device inverts the pseudo random sequence code or the wake-up bit stream in the process of encoding or modulation;
从设备根据译码结果判断是否唤醒该从设备的步骤包括:  The step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
对译码后连续输出 1的个数进行计数;  Counting the number of consecutive outputs 1 after decoding;
判断连续输出 1的个数是否超过预设的限值, 若是, 则唤醒该从设备; 若 否, 则继续保持休眠状态。  It is determined whether the number of consecutive outputs 1 exceeds a preset limit, and if so, the slave device is woken up; if not, the sleep state is continued.
在本发明所述的唤醒方法中,从设备根据译码后的的伪随机序列码在一个 伪随机序列周期中的位置计算等待时间,在等待时间未到达时, 继续保持休眠 状态; 在等待时间到达时, 则唤醒该从设备。 在本发明所述的唤醒方法中,所述编码为不归零码、归零码或曼切斯特编 码。 In the wake-up method of the present invention, the slave device calculates the waiting time according to the position of the decoded pseudo-random sequence code in a pseudo-random sequence period, and continues to maintain the sleep state when the waiting time has not arrived; Upon arrival, the slave device is woken up. In the wake-up method of the present invention, the code is a non-return to zero code, a return-to-zero code, or a Manchester code.
在本发明所述的唤醒方法中, 所述调制为幅移键控、 频移键控或相移键 控。  In the wake-up method of the present invention, the modulation is amplitude shift keying, frequency shift keying or phase shift keying.
本发明还构造一种无线通信系统,包括主设备和至少一个从设备,所述主 设备包括:  The present invention also contemplates a wireless communication system including a master device and at least one slave device, the master device comprising:
编码单元, 用于在有通信需求时将伪随机序列码编码成唤醒比特流; 调制单元, 用于将所述唤醒比特流调制成无线调制信号;  a coding unit, configured to encode a pseudo-random sequence code into a wake-up bitstream when there is a communication requirement; and a modulating unit, configured to modulate the wake-up bitstream into a wireless modulated signal;
发送单元,用于在预设的持续时间内, 向至少一个从设备连续发送所述无 线调制信号, 所述预设的时间大于或等于所述从设备的休眠期和探测期之和, 所述休眠期和探测期之和构成一个完整的休眠唤醒周期;  a sending unit, configured to continuously send the wireless modulation signal to at least one slave device for a preset duration, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, The sum of the sleep period and the detection period constitutes a complete sleep wake-up period;
每个从设备均包括:  Each slave device includes:
接收单元, 用于在探测期接收所述无线调制信号;  a receiving unit, configured to receive the wireless modulated signal during a sounding period;
解调单元, 用于将所述无线调制信号解调成唤醒比特流;  a demodulation unit, configured to demodulate the wireless modulated signal into a wake-up bitstream;
译码单元, 用于对所述唤醒比特流进行采样和译码;  a decoding unit, configured to sample and decode the wake-up bitstream;
唤醒控制单元, 用于根据译码结果判断是否唤醒该从设备。  And a wake-up control unit, configured to determine, according to the decoding result, whether to wake up the slave device.
实施本发明的技术方案, 具有以下有益效果:  The technical solution of the present invention has the following beneficial effects:
1. 参与通信的无线通信设备间无需在时间上同步;  1. There is no need to synchronize in time between wireless communication devices participating in communication;
2. 抗干扰能力强, 解决了身份识别和误唤醒的问题, 提高了可靠性; 2. Strong anti-interference ability, solve the problem of identification and false wake-up, and improve reliability;
3. 可缩短从设备的探测期, 减少从设备接收窗口时间, 降低了通信系统 的功耗。 附图说明 3. It can shorten the detection period of the slave device, reduce the receiving window time from the device, and reduce the power consumption of the communication system. DRAWINGS
下面将结合附图及实施例对本发明作进一步说明, 附图中:  The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图 1是现有技术的第一种唤醒方法的工作时序图;  1 is a timing chart of the operation of the first wake-up method of the prior art;
图 2是现有技术的第二种唤醒方法的工作时序图;  2 is a timing chart of operation of a second wake-up method of the prior art;
图 3是现有技术的第三种唤醒方法的工作时序图;  3 is a timing chart of the operation of the third wake-up method of the prior art;
图 4是现有技术的第三种唤醒方法中数据包的结构图; 图 5是本发明唤醒方法实施例一流程图; 4 is a structural diagram of a data packet in a third wake-up method in the prior art; FIG. 5 is a flowchart of Embodiment 1 of a wake-up method according to the present invention; FIG.
图 6是本发明主设备中线性反馈移位寄存器实施例一的结构图; 图 7是本发明从设备中线性反馈移位寄存器实施例一的结构图; 图 8是本发明唤醒方法实施例一的工作时序图;  6 is a structural diagram of Embodiment 1 of a linear feedback shift register in a master device of the present invention; FIG. 7 is a structural diagram of Embodiment 1 of a linear feedback shift register in a slave device of the present invention; FIG. 8 is a first embodiment of a wake-up method according to the present invention; Working sequence diagram
图 9是本发明无线通信系统实施例一的逻辑图。 具体实施方式  Figure 9 is a logic diagram of a first embodiment of the wireless communication system of the present invention. detailed description
如图 5所示,在本发明的唤醒方法实施例一流程图中,该唤醒方法用于在 主设备有通信需求时唤醒至少一个从设备, 具体包括以下步骤:  As shown in FIG. 5, in the flowchart of Embodiment 1 of the awake method of the present invention, the waking method is used to wake up at least one slave device when the master device has a communication requirement, and specifically includes the following steps:
步骤 S100. 主设备在有通信需求时将伪随机序列码通过编码变换为唤醒 比特流,然后将所述唤醒比特流调制成无线调制信号,并在预设的持续时间内, 向至少一个从设备连续发送所述无线调制信号,所述预设的时间大于或等于所 述从设备的休眠期和探测期之和,所述休眠期和探测期之和构成一个休眠唤醒 周期;  Step S100. The master device converts the pseudo-random sequence code into a wake-up bit stream by coding when there is a communication requirement, and then modulates the wake-up bit stream into a wireless modulated signal, and to the at least one slave device within a preset duration. And continuously transmitting the wireless modulation signal, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, and a sum of the sleep period and the detection period constitutes a sleep wake-up period;
步骤 S200. 每个从设备在探测期接收所述无线调制信号, 并将所述无线 调制信号解调成唤醒比特流, 然后对所述唤醒比特流进行采样和译码, 并根据 译码结果判断是否唤醒该从设备。  Step S200. Each slave device receives the wireless modulation signal during a sounding period, and demodulates the wireless modulation signal into a wake-up bit stream, and then samples and decodes the wake-up bit stream, and determines according to the decoding result. Whether to wake up the slave device.
伪随机序列码优选 M序列(最长序列),当然也可选其它符合要求的序列。 选用 M序列会得到一个较好的性能, 采用其它序列也可以实现本发明, 也属 于本发明的范畴之内。  The pseudo-random sequence code is preferably an M-sequence (longest sequence), and of course other sequences that meet the requirements may be selected. The use of the M sequence results in a better performance, and the present invention can also be implemented using other sequences, and is also within the scope of the present invention.
在步骤 S100中, 伪随机序列码可以是预先存储的, 也可由伪随机发生器 产生, 下面说明伪随机序列的基本原理:  In step S100, the pseudo-random sequence code may be pre-stored or may be generated by a pseudo-random generator. The following describes the basic principle of the pseudo-random sequence:
M序列发生器通常是用线性反馈移位寄存器 (LFSR) 来实现的, 它可产 生周期最长的一组伪随机序列, 通常用特征多项式来表示 LFSR的结构, 如果 特征多项式是本原多项式, 则产生的序列就是 M序列, 特征多项式表示如下: f(x) = c0+CiX+c2x2+...+ cnxn (2.2.1-1) The M-sequence generator is usually implemented by a linear feedback shift register (LFSR), which generates a set of pseudo-random sequences with the longest period. The characteristic polynomial is usually used to represent the structure of the LFSR. If the characteristic polynomial is a primitive polynomial, The resulting sequence is the M sequence, and the characteristic polynomial is expressed as follows: f(x) = c 0 +CiX+c 2 x 2 +...+ c n x n (2.2.1-1)
式中: n为 LFSR的阶, n阶二进制线性 m序列的最大周期为 N=2n-1。 图 6为 线性反馈移位寄存器 (n阶 M序列伪随机发生器) 的结构图, 图中 ao,^...^的 初始值不能全部为 0。 图 6也可用方程表示为: Where: n is the order of the LFSR, and the maximum period of the n-order binary linear m-sequence is N=2 n -1. Figure 6 is a structural diagram of a linear feedback shift register (n-order M-sequence pseudo-random generator), in the figure ao, ^...^ The initial values cannot all be 0. Figure 6 can also be expressed as an equation:
¾ = Ci i ® ο2¾-2 © ... © cn-iai ® cna0 (2.2.1-2) 3⁄4 = Ci i ® ο 2 3⁄4 -2 © ... © c n- iai ® c n a 0 (2.2.1-2)
式 (2.2.1-2)中 @表示模 2加或异或,将该式右边部分全部移到左边,得到一 个新的方程为:  In the formula (2.2.1-2), @ denotes the modulo 2 plus or XOR, and the right part of the formula is moved to the left, and a new equation is obtained:
an ® cian-i ® c2an-2 © ... ® cn-iai ® cnao = 0 (2.2.1-3) a n ® cia n- i ® c 2 a n-2 © ... ® c n- iai ® c n ao = 0 (2.2.1-3)
如图 7所示, 根据式 (2.2.1-3), 我们可以得到一个新的带输入的线性反馈移 位寄存器。 当该式和式 (2.2.1-2)中 Ci的值相同时, 该移位寄存器可以作为伪随 机发生器的译码电路, 其初始值可以为任何值。 当输入 n个值, 将寄存器中的 所有初始值移除以后, 其输出恒为 0。 As shown in Figure 7, we can get a new linear feedback shift register with input according to equation (2.2.1-3). When the values of Ci in the equation (2.2.1-2) are the same, the shift register can be used as a decoding circuit of the pseudo-random generator, and the initial value can be any value. When n values are entered and all initial values in the register are removed, their output is always zero.
下面结合图 8说明本发明唤醒方法, 首先说明的是, 主设备中的 LFSR的阶 数、 特征多项式分别与从设备中的 LFSR的阶数、 特征多项式相同, 以保证主 从设备的 LFSR的编 /解码多项式匹配, 才能输出连续的 0, 从而被接收机识别, 从休眠状态中唤醒, 解决了身份识别问题。假如因为噪声产生了随机码, 代入 式 (2.2.1-3), 连续输出 0的概率随阶数增加而成级数下降。 当 LFSR的阶数足够 高, 又要求连续输出 0的个数足够多时, 因为噪声而让解码器连续输出多个 0 的概率几乎为 0, 这样就解决了噪声干扰 (误唤醒:)的问题。  The wake-up method of the present invention will be described below with reference to FIG. 8. First, the order and characteristic polynomial of the LFSR in the master device are the same as the order and characteristic polynomial of the LFSR in the slave device, respectively, to ensure the editing of the LFSR of the master-slave device. / Decoding polynomial matching, in order to output a continuous 0, which is recognized by the receiver, wakes up from the sleep state, and solves the identification problem. If a random code is generated due to noise, substituting into (2.2.1-3), the probability of continuous output 0 decreases as the order increases. When the order of the LFSR is sufficiently high and the number of consecutive outputs 0 is required to be sufficient, the probability that the decoder continuously outputs multiple zeros due to noise is almost zero, thus solving the problem of noise interference (false wake-up:).
如图 8所示, 下面分别说明主设备和从设备的工作流程:  As shown in Figure 8, the following describes the workflow of the master device and the slave device:
首先说明主设备的工作流程: 主设备在有通信需求时,将伪随机序列码通 过编码变换为唤醒比特流, 然后将所述唤醒比特流调制成无线调制信号, 并在 预设的持续时间!内, 向至少一个从设备连续发送所述无线调制信号, 该伪随 机序列码由 LFSR伪随机发生器产生。 LFSR在启动前需要初始化, 但不能全为 0。 持续发送的时间! ^ Τ + t, 其中 T为休眠期, t为探测期, 休眠期和探测期 之和构成一个休眠唤醒周期。主设备发送完唤醒比特流后, 其假设其它的从设 备都被唤醒, 马上进入正常通信, 和从设备进行数据交换, 持续时间为 Te。 数 据交换完毕, 从设备进入休眠。 对于通信失败的从设备, 如从设备 3, 主设备 需要启动差错处理机制进行处理。 First, the workflow of the master device is explained: When the master device has communication requirements, the pseudo-random sequence code is encoded into a wake-up bit stream, and then the wake-up bit stream is modulated into a wireless modulated signal for a preset duration! The wireless modulation signal is continuously transmitted to at least one slave device, and the pseudo random sequence code is generated by an LFSR pseudo-random generator. The LFSR needs to be initialized before starting, but not all 0s. The time of continuous delivery! ^ Τ + t, where T is the dormant period, t is the probing period, and the sum of the dormant period and the probing period constitutes a dormant wake-up period. After the master device sends the wake-up bit stream, it assumes that other slave devices are woken up, immediately enters normal communication, and performs data exchange with the slave device for a duration of T e . After the data exchange is completed, the slave device goes to sleep. For a slave device that fails communication, such as slave device 3, the master device needs to initiate an error handling mechanism for processing.
下面说明每个从设备的工作流程:  The workflow for each slave is described below:
步骤 1.从设备按照固定的周期 Τ+t, 交替工作于休眠一接收一休眠一接收 的状态。 在时间 T内, 从设备是休眠的, 不接收任何数据, 休眠电流极低, 达 到数微安以下; Step 1. The slave device operates at a fixed period Τ+t, alternately works on sleep, receives one sleep, and receives one. status. During the time T, the slave device is dormant, does not receive any data, and the sleep current is extremely low, reaching several microamps or less;
步骤 2.在时间 t内,从设备处于探测状态并启动解码器,每收到一个比特的 数据, 则输出 1个比特。 同时启动一个计数器, 当输出的比特为 1时, 清零该计 数器。 当输出的比特为 0时, 则计数器加 1。 在接收的时间 t内, 计数器的值始 终小于设定的门限值 M时, 表示没有收到唤醒信号, 从设备进入休眠, 重复步 骤 U  Step 2. During time t, the slave device is in the probing state and starts the decoder. Each time a bit of data is received, 1 bit is output. A counter is started at the same time. When the output bit is 1, the counter is cleared. When the output bit is 0, the counter is incremented by 1. During the received time t, when the value of the counter is always less than the set threshold value M, it means that no wake-up signal is received, the slave device goes to sleep, and the step U is repeated.
步骤 3.在接收的时间 t内,计数器的值大于等于门限时, 则表示收到唤醒信 号, 从设备进入等待有效通信状态, 等待时间为 Tw。 在 T\J¾间, 从设备仍处 于接收状态, 但不能正常通信, 这期间的能量是浪费掉的。如果增加一个逆运 算, 根据译码后的的伪随机序列码在一个伪随机序列周期中的位置, 可以计算 出等待时间 Tw的值, 则可以使从设备在等待时间 T\J¾间也进入休眠状态, 在 主设备发送唤醒信号!结束时, 从设备通过定时来唤醒, 这样又可进一步节省 能量; Step 3. When the value of the counter is greater than or equal to the threshold within the received time t, it indicates that the wake-up signal is received, and the slave device enters the waiting for a valid communication state, and the waiting time is T w . Between T\J3⁄4, the slave device is still receiving, but cannot communicate normally, and the energy during this period is wasted. If an inverse increase, according to the pseudo-random sequence code decoding position in a pseudo-random sequence period, calculate a value for the waiting time T w, it is also possible to enter the device from the waiting time T \ between J¾ In the sleep state, the wakeup signal is sent on the master device! At the end, the slave device wakes up by timing, which further saves energy;
步骤 4.等待时间 1^到达后, 主从设备即可进行预定的正常通信, 通信结束 后, 从设备进入步骤 1。 如果发生通信出错的等问题, 则进入错误处理流程。  Step 4. Waiting time 1^ After the arrival, the master and slave devices can perform the scheduled normal communication. After the communication ends, the slave device proceeds to step 1. If there is a problem such as a communication error, the error processing flow is entered.
需要特别说明是, 从设备在接收唤醒比特流时, 一般要求主设备首先发送 一串位同步码, 从设备根据串位同步码校准时间基准和时钟频率。 由于本发明 中, 主设备发送的伪随机序列, 在一段码长内, 0的个数和 1的个数基本相等, 而且不会出现较长的连续 0或连续 1的情况, 其可以作为位同步使用, 只是效果 稍差于发送有规律的 01010101010···0101码。 如果从设备的接收电路中, 位同 步分离电路要求发送较高质量的位同步训练码,则可采用曼切斯特编码解决这 个问题, 使接收机能分离出较高质量的位同步。  It should be specially stated that when the slave device receives the wake-up bit stream, it generally requires the master device to first transmit a string of bit synchronization codes, and the slave device calibrates the time reference and the clock frequency according to the serial bit synchronization code. In the present invention, the pseudo-random sequence transmitted by the master device, within a length of code length, the number of 0s and the number of ones are substantially equal, and there is no longer continuous 0 or continuous 1 case, which can be used as a bit. Synchronous use, but the effect is slightly worse than sending a regular 01010101010···0101 code. If the bit-synchronous separation circuit is required to transmit a higher quality bit-synchronous training code in the receiving circuit of the slave device, then Manchester code can be used to solve this problem, enabling the receiver to separate higher-quality bit synchronization.
下面举例说明该唤醒方法, 这里以波特率 19200bps为例, 计算采用本发明 的系统中, 窗口 (探测期) t的取值。 假设采用阶 n=20的 LFSR, 其多项式最好 选用本原多项式。则主设备在发送唤醒信号时,首先初始化每个寄存器的值 (不 能全部为 0), 然后根据 19200bps的同步时钟, 将 LFSR产生的序列码, 经过调 制以后依次发射, 持续时间为 Ts。 Ts的取值根据对功耗的要求和其它要求综合 确定。 从设备从休眠到接收状态, 一般要等待 8个字节的时间, 接收机的同步 分离机制, 才能分离出稳定的位同步。 同时, 开始向 LFSR解码器输入接收到 的正确码元, 当移位输入 n个比特后 (此处 n=20), 解码器的每一位寄存器都被 接收到的正确数据刷新, 旧的不正确的数据被移出。 这时, LFSR开始输出 0, 当连续输出 M个 0后 (M可以等于 n, 也可以稍大于, 或稍小于 n, 不同应用中决 定, 此处采用 M=n), 就找到了唤醒信号。 则从唤醒到找到唤醒信号花费的时 间为: The wake-up method is exemplified below. Here, the value of the window (probing period) t in the system using the present invention is calculated by taking the baud rate of 19200 bps as an example. Assuming a LFSR of order n = 20, the polynomial is preferably a primitive polynomial. Then, when the master device sends the wake-up signal, first initialize the value of each register (not all 0), and then according to the 19200 bps synchronous clock, the sequence code generated by the LFSR is modulated and sequentially transmitted for a duration of T s . The value of T s is based on the requirements for power consumption and other requirements. Ok. From the device to the sleep state, the slave device generally waits for 8 bytes of time, and the receiver's synchronous separation mechanism can separate stable bit synchronization. At the same time, start to input the correct symbol received to the LFSR decoder. After shifting input n bits (here n = 20), each register of the decoder is received with the correct data refresh, the old one is not The correct data was removed. At this time, the LFSR starts to output 0. When M 0s are continuously output (M can be equal to n, or can be slightly larger than, or slightly smaller than n, determined in different applications, here M=n), the wake-up signal is found. The time it takes from wake-up to find the wake-up signal is:
t = (8*8+n+M)/19200 = (8*8+20+20)/19200 = 5.4Ms  t = (8*8+n+M)/19200 = (8*8+20+20)/19200 = 5.4Ms
这个时间, 就是本发明的窗口时间 t, 不需要加倍, 取值稍长一点就可以, 比 如 5.8Ms或 6Ms, 这比最小数据包唤醒法的窗口时间小了一倍。 就是说, 从设 备由休眠到接收的转换时刻开始计时, 如果 5.8Ms内没有扫描到唤醒信号, 则 又进入休眠。 有些接收机的同步分离电路比较高效, 在 3~4个字节内即可分离 出位同步, 则 t值可以控制在 4Ms以内。 比美国 TI Texas InstruMent)公司生产的 CC1100或与 CC1100的射频兼容的系列芯片。 This time, which is the window time t of the present invention, does not need to be doubled, and the value may be slightly longer, such as 5.8 Ms or 6 Ms, which is twice the window time of the minimum packet wake-up method. That is to say, the timing is started from the time when the device is switched from sleep to reception. If the wake-up signal is not detected within 5.8Ms, it goes to sleep again. Some receivers' synchronous separation circuits are more efficient, and the bit synchronization can be separated within 3~4 bytes, then the t value can be controlled within 4Ms. A series of chips compatible with the CC1100 or RF-compatible with the CC1100, produced by TI Texas InstruMent.
优选地,主设备在将伪随机序列码通过编码变换为唤醒比特流过程中,该 方法还包括: 对所述伪随机序列码或比特流进行加扰; 与此相对应地, 从设备 在对所述唤醒比特流进行采样和译码的过程中, 该方法还包括:对所述伪随机 序列码进行解扰。  Preferably, in the process of converting the pseudo random sequence code into a wake-up bit stream, the method further includes: scrambling the pseudo-random sequence code or the bit stream; correspondingly, the slave device is in the pair In the process of sampling and decoding the wake-up bitstream, the method further includes: descrambling the pseudo-random sequence code.
在一个替代方案中,主设备在进行编码或调制的环节中,对伪随机序列码 或唤醒比特流取反。相应地, 从设备根据译码结果判断是否唤醒该从设备的步 骤包括:  In an alternative, the master device negates the pseudo-random sequence code or the wake-up bitstream in the encoding or modulation step. Correspondingly, the step of determining, by the device, whether to wake up the slave device according to the decoding result includes:
对译码后连续输出 1的个数进行计数;判断连续输出 1的个数是否超过预 设的限值, 若是, 则唤醒该从设备; 若否, 则继续保持休眠状态。  Counting the number of consecutive outputs 1 after decoding; determining whether the number of consecutive outputs 1 exceeds a preset limit, and if so, waking up the slave; if not, continuing to remain in a sleep state.
在上述实施例中, 所提及的编码可为不归零码 NRZ、 归零码 RZ、 曼切斯 特编码等, 尤其是曼切斯特编码, 更有利于多个从设备的同步分离电路或同步 分离机制, 快速和准确地分离出接收到的比特流的同步时钟。所提及的调制可 以采用任何二进制或多进制调制方式, 比如幅移键控 ASK、频移键控 FSK或 相移键控 PSK等, 或其它调制方式, 将唤醒比特流 (基带信号) 直接或间 接地调制到任何载频上。 In the above embodiment, the code mentioned may be a non-return-to-zero code NRZ, a return-to-zero code RZ, a Manchester code, etc., especially a Manchester code, which is more advantageous for synchronous separation circuits of multiple slave devices. Or a synchronous separation mechanism that quickly and accurately separates the synchronized clock of the received bit stream. The modulation mentioned can be in any binary or multi-modulation mode, such as amplitude shift keying ASK, frequency shift keying FSK or phase shift keying PSK, etc., or other modulation methods that will wake up the bit stream (baseband signal) directly. Or Ground modulation to any carrier frequency.
在图 9示出的本发明无线通信系统实施例一的逻辑图中,该无线通信系统 包括主设备 100和从设备 200, 应当说明的是, 虽然本实施例仅示出了一个从 设备, 但本发明并不限定从设备的数量, 应当理解, 其它从设备的逻辑结构与 从设备 200的逻辑结构相同。在该无线通信系统中, 主设备 100包括依次相连 的编码单元 110、 调制单元 120和发送单元 130, 从设备 200包括依次相连的 接收单元 210、 解调单元 220、 译码单元 230和唤醒控制单元 240。 在主设备 100中,编码单元 110用于在有通信需求时将伪随机序列码编码成唤醒比特流; 调制单元 120用于将所述唤醒比特流调制成无线调制信号;发送单元 130用于 在预设的持续时间内, 向至少一个从设备连续发送所述无线调制信号,所述预 设的时间大于或等于所述从设备的休眠期和探测期之和,所述休眠期和探测期 之和构成一个完整的休眠唤醒周期。在从设备 200中, 接收单元 210用于在探 测期接收所述无线调制信号;解调单元 220用于将所述无线调制信号解调成唤 醒比特流; 译码单元 230用于对所述唤醒比特流进行采样和译码; 唤醒控制单 元 240用于根据译码结果判断是否唤醒该从设备。在此说明的是, 唤醒方法的 优选实施例中的各个步骤均在无线通信系统中有对应的功能模块,在此不做赘 述。  In the logic diagram of the first embodiment of the wireless communication system of the present invention shown in FIG. 9, the wireless communication system includes a master device 100 and a slave device 200. It should be noted that although this embodiment only shows one slave device, The present invention is not limited to the number of slave devices, it being understood that the logical structure of the other slave devices is the same as the logical structure of the slave device 200. In the wireless communication system, the master device 100 includes a coding unit 110, a modulation unit 120, and a transmitting unit 130, which are sequentially connected, and the slave device 200 includes a receiving unit 210, a demodulating unit 220, a decoding unit 230, and a wake-up control unit that are sequentially connected in sequence. 240. In the master device 100, the encoding unit 110 is configured to encode the pseudo random sequence code into a wake-up bit stream when there is a communication requirement; the modulating unit 120 is configured to modulate the wake-up bit stream into a wireless modulated signal; and the transmitting unit 130 is configured to And transmitting, by the at least one slave device, the wireless modulation signal continuously for a preset duration, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, where the sleep period and the detection period are And constitute a complete sleep wake-up cycle. In the slave device 200, the receiving unit 210 is configured to receive the wireless modulated signal during a sounding period; the demodulating unit 220 is configured to demodulate the wireless modulated signal into a wake-up bitstream; and the decoding unit 230 is configured to The bit stream is sampled and decoded; the wake-up control unit 240 is configured to determine whether to wake up the slave device according to the decoding result. It is explained here that each step in the preferred embodiment of the wake-up method has a corresponding functional module in the wireless communication system, which will not be described herein.
需要说明的是,在本发明的通信系统中,主设备和从设备的角色可以互换, 哪个设备发起通信, 哪个设备就是从设备, 其身份并不是一层不变的。 另外, 主设备可以有接收单元, 也可以没有, 即主设备可以为单工 (仅发射)、 半双 工或全双工设备。 从设备可以有发射单元, 也可以没有, 但必须有接收单元, 即从设备可以为单工 (仅接收)、 半双工或全双工设备。  It should be noted that, in the communication system of the present invention, the roles of the master device and the slave device can be interchanged, which device initiates communication, and which device is a slave device, and its identity is not a constant layer. In addition, the master device may or may not have a receiving unit, i.e., the master device may be a simplex (transmit only), half duplex, or full duplex device. The slave device may or may not have a transmit unit, but must have a receive unit, ie the slave device can be a simplex (receive only), half-duplex or full-duplex device.
本发明的实现, 可以采用的方法很多。 比如普通的硬件逻辑电路、 PAL、 GAL,CPLD等可编程器件、 FPGA现场可编程门阵列, 也可以采用软件编程等 等。 当通信速率较低, 单片机的处理能力足够的情况下, 优先采用软件实现, 以降低成本并得到更好的灵活性。当通信速率较高时, 则需要采用硬件电路的 方法实现。但无论采用何种方法, 都属于本发明保护的范围之内。发明人已经 采用美国 TI(Texas InstruMent)公司生产的射频器件 CI 100E, 配合美国 ATMEL 公司生产的微处理器 Mega48, 完整地实现了上述功能。 There are many methods that can be employed to implement the present invention. For example, ordinary hardware logic circuits, PAL, GAL, CPLD and other programmable devices, FPGA field programmable gate arrays, software programming, and the like can also be used. When the communication speed is low and the processing power of the MCU is sufficient, the software implementation is preferred to reduce costs and achieve better flexibility. When the communication rate is high, it needs to be implemented by a hardware circuit. However, no matter which method is adopted, it is within the scope of protection of the present invention. The inventor has adopted the RF device CI 100E produced by Texas Instruments (Texas InstruMent), and cooperates with ATMEL of the United States. The company's microprocessor Mega48 fully implements the above functions.
实施本发明的技术方案, 带来的有益效果有:  The beneficial effects of implementing the technical solution of the present invention are as follows:
1.相比最小数据包唤醒法, 由于窗口时间 (探测期) 大概减少了一半, 因 此, 降低了通信系统的功耗, 使电池供电的无线通信设备, 电池使用时间 加长;  1. Compared with the minimum packet wake-up method, since the window time (probing period) is reduced by about half, the power consumption of the communication system is reduced, and the battery-powered wireless communication device is prolonged;
2.提高了通信系统的可靠性, 在休眠的低功耗情况下, 能被可靠唤醒; 2. Improve the reliability of the communication system, and can be reliably awakened in the case of low power consumption of sleep;
3.在唤醒时, 能识别身份, 避免误唤醒; 3. When waking up, identify the identity and avoid false wake-up;
4.保密性好, 只要采用足够高的阶数, 采用的多项式较难被还原。  4. The confidentiality is good. As long as the order is high enough, the polynomial used is difficult to be restored.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领 域的技术人员来说, 本发明可以有各种更改和变化。凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的权利要求范 围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the appended claims.

Claims

权 利 要 求 Rights request
1、 一种唤醒方法, 用于在主设备有通信需求时唤醒至少一个从设备, 其 特征在于, 该唤醒方法包括: A wake-up method for waking up at least one slave device when the master device has a communication requirement, wherein the wake-up method includes:
主设备在有通信需求时将伪随机序列码通过编码变换为唤醒比特流,然后 将所述唤醒比特流调制成无线调制信号, 并在预设的持续时间内, 向至少一个 从设备连续发送所述无线调制信号,所述预设的时间大于或等于所述从设备的 休眠期和探测期之和, 所述休眠期和探测期之和构成一个休眠唤醒周期; 每个从设备在探测期接收所述无线调制信号,并将所述无线调制信号解调 成唤醒比特流, 然后对所述唤醒比特流进行采样和译码, 并根据译码结果判断 是否唤醒该从设备。  The master device converts the pseudo-random sequence code into a wake-up bit stream by coding when there is a communication requirement, and then modulates the wake-up bit stream into a wireless modulated signal, and continuously transmits to the at least one slave device within a preset duration. The wireless modulation signal, the preset time is greater than or equal to the sum of the sleep period and the detection period of the slave device, and the sum of the sleep period and the detection period constitutes a sleep wake-up period; each slave device receives during the sounding period The wirelessly modulating the signal, and demodulating the wireless modulated signal into a wake-up bitstream, then sampling and decoding the wake-up bitstream, and determining whether to wake up the slave device according to the decoding result.
2、 根据权利要求 1所述的唤醒方法, 其特征在于, 所述伪随机序列码为 M序列。  2. The wake-up method according to claim 1, wherein the pseudo-random sequence code is an M-sequence.
3、 根据权利要求 1所述的唤醒方法, 其特征在于, 所述伪随机序列码是 预先存储的或由伪随机发生器产生。  3. The wake-up method according to claim 1, wherein the pseudo-random sequence code is pre-stored or generated by a pseudo-random generator.
4、 根据权利要求 1所述的唤醒方法, 其特征在于,  4. The wake-up method according to claim 1, wherein:
主设备在将伪随机序列码通过编码变换为唤醒比特流过程中,该方法还包 括: 对所述伪随机序列码或比特流进行加扰;  The master device performs the process of converting the pseudo random sequence code into a wake-up bit stream by encoding, and the method further includes: scrambling the pseudo-random sequence code or the bit stream;
从设备在对所述唤醒比特流进行采样和译码的过程中,该方法还包括:对 所述伪随机序列码进行解扰。  The method further includes: descrambling the pseudo-random sequence code in the process of sampling and decoding the wake-up bitstream by the device.
5、 根据权利要求 1至 4任一项所述的唤醒方法, 其特征在于, 从设备根 据译码结果判断是否唤醒该从设备的步骤包括:  The awake method according to any one of claims 1 to 4, wherein the step of determining, by the device, whether to wake up the slave device according to the decoding result comprises:
对译码后连续输出 0的个数进行计数;  Counting the number of consecutive output 0 after decoding;
判断连续输出 0的个数是否超过预设的限值, 若是, 则唤醒该从设备; 若 否, 则继续保持休眠状态。  It is judged whether the number of consecutive output 0 exceeds a preset limit, and if so, the slave device is woken up; if not, the sleep state is continued.
6、 根据权利要求 1-4任一项所述的唤醒方法, 其特征在于, 主设备在进 行编码或调制的环节中, 对伪随机序列码或唤醒比特流取反;  The awake method according to any one of claims 1 to 4, wherein the master device inverts the pseudo-random sequence code or the wake-up bit stream in the process of encoding or modulating;
从设备根据译码结果判断是否唤醒该从设备的步骤包括: 对译码后连续输出 1的个数进行计数; The step of determining, by the device, whether to wake up the slave device according to the decoding result includes: Counting the number of consecutive output 1 after decoding;
判断连续输出 1的个数是否超过预设的限值, 若是, 则唤醒该从设备; 若 否, 则继续保持休眠状态。  It is determined whether the number of consecutive outputs 1 exceeds a preset limit, and if so, the slave device is woken up; if not, the sleep state is continued.
7、 根据权利要求 1所述的唤醒方法, 其特征在于, 从设备根据译码后的 的伪随机序列码在一个伪随机序列周期中的位置计算等待时间,在等待时间未 到达时, 继续保持休眠状态; 在等待时间到达时, 则唤醒该从设备。  7. The wake-up method according to claim 1, wherein the slave device calculates the waiting time according to the position of the decoded pseudo-random sequence code in a pseudo-random sequence period, and continues to hold when the waiting time is not reached. Sleep state; wakes up the slave when the wait time arrives.
8、根据权利要求 1所述的唤醒方法, 其特征在于, 所述编码为不归零码、 归零码或曼切斯特编码。  The wake-up method according to claim 1, wherein the encoding is a non-return to zero code, a return-to-zero code, or a Manchester code.
9、根据权利要求 1所述的唤醒方法,其特征在于,所述调制为幅移键控、 频移键控或相移键控。  The wake-up method according to claim 1, wherein the modulation is amplitude shift keying, frequency shift keying or phase shift keying.
10、 一种无线通信系统, 包括主设备和至少一个从设备, 其特征在于, 所 述主设备包括:  10. A wireless communication system, comprising a master device and at least one slave device, wherein the master device comprises:
编码单元, 用于在有通信需求时将伪随机序列码编码成唤醒比特流; 调制单元, 用于将所述唤醒比特流调制成无线调制信号;  a coding unit, configured to encode a pseudo-random sequence code into a wake-up bitstream when there is a communication requirement; and a modulating unit, configured to modulate the wake-up bitstream into a wireless modulated signal;
发送单元,用于在预设的持续时间内, 向至少一个从设备连续发送所述无 线调制信号, 所述预设的时间大于或等于所述从设备的休眠期和探测期之和, 所述休眠期和探测期之和构成一个完整的休眠唤醒周期;  a sending unit, configured to continuously send the wireless modulation signal to at least one slave device for a preset duration, where the preset time is greater than or equal to a sum of a sleep period and a detection period of the slave device, The sum of the sleep period and the detection period constitutes a complete sleep wake-up period;
每个从设备均包括:  Each slave device includes:
接收单元, 用于在探测期接收所述无线调制信号;  a receiving unit, configured to receive the wireless modulated signal during a sounding period;
解调单元, 用于将所述无线调制信号解调成唤醒比特流;  a demodulation unit, configured to demodulate the wireless modulated signal into a wake-up bitstream;
译码单元, 用于对所述唤醒比特流进行采样和译码;  a decoding unit, configured to sample and decode the wake-up bitstream;
唤醒控制单元, 用于根据译码结果判断是否唤醒该从设备。  And a wake-up control unit, configured to determine, according to the decoding result, whether to wake up the slave device.
PCT/CN2011/078471 2011-03-10 2011-08-16 Wireless communication system and wakeup method thereof WO2012119394A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110057291.4 2011-03-10
CN201110057291.4A CN102625423B (en) 2011-03-10 2011-03-10 Wireless communication system and wake up method thereof

Publications (1)

Publication Number Publication Date
WO2012119394A1 true WO2012119394A1 (en) 2012-09-13

Family

ID=46565056

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078471 WO2012119394A1 (en) 2011-03-10 2011-08-16 Wireless communication system and wakeup method thereof

Country Status (2)

Country Link
CN (1) CN102625423B (en)
WO (1) WO2012119394A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689320A (en) * 2020-12-25 2021-04-20 杭州当贝网络科技有限公司 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
CN112866926A (en) * 2021-01-07 2021-05-28 凯联医疗科技(上海)有限公司 Method for improving reliability of Bluetooth connection in Bluetooth time-sharing broadcast

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833829B (en) * 2012-08-17 2016-05-25 广州海格天立通信息技术有限公司 Standby wakeup method based on tdma system
US9313741B2 (en) * 2012-12-29 2016-04-12 Intel Corporation Methods and arrangements to coordinate communications in a wireless network
WO2014153061A2 (en) * 2013-03-14 2014-09-25 Psikick, Inc. Methods and apparatus for wireless communication via a predefined sequence of a change of a characteristic of a wireless signal
CN103684736A (en) * 2013-11-21 2014-03-26 国网上海市电力公司 Clock synchronization method for high-speed communication
US9788288B2 (en) * 2014-01-13 2017-10-10 Qualcomm Incorporated Systems and methods for reducing power consumption in wireless communication
JP6465555B2 (en) 2014-03-25 2019-02-06 キヤノン株式会社 Imaging apparatus, electronic device, camera system, control method, and program
CN106488460B (en) * 2015-08-28 2020-06-23 苏州恩泽迅扬节能科技有限公司 Wireless communication method, and corresponding master device, slave device and wireless communication system
CN106208417B (en) * 2016-08-26 2020-06-30 无锡市瀚为科技有限公司 Wireless charging system and method for rapidly identifying number of wireless charging receiving terminals
CN107689149A (en) * 2016-11-17 2018-02-13 深圳市华奥通通信技术有限公司 A kind of meter register method and kilowatt meter reading-out system
CN108076476B (en) * 2016-11-18 2020-11-06 华为技术有限公司 Method and device for transmitting data
WO2018145363A1 (en) * 2017-02-08 2018-08-16 华为技术有限公司 Method and device for waking up device
CN108574952B (en) * 2017-03-13 2023-09-01 中兴通讯股份有限公司 Communication method, device and equipment
CN107690095B (en) * 2017-04-07 2020-10-23 深圳市华奥通通信技术有限公司 Meter reading system and meter reading method based on low-power transmission
WO2018187932A1 (en) * 2017-04-11 2018-10-18 深圳市傲科微创有限公司 Optical communication method and optical communication system
CN107249210B (en) * 2017-06-26 2023-06-09 欧普照明股份有限公司 Wireless device communication method and system
CN107770852B (en) * 2017-09-19 2021-07-27 联发科技(新加坡)私人有限公司 Wireless communication method, communication device and device with storage function
CN107526603B (en) * 2017-09-20 2021-01-08 深圳天珑无线科技有限公司 Application awakening method and device
CN107918596B (en) * 2017-11-14 2023-09-05 上海坤锐电子科技有限公司 SOC chip and radio frequency signal processing method
CN108650119A (en) * 2018-04-24 2018-10-12 烽火通信科技股份有限公司 A kind of method and system of Remote configuration terminal device
CN108649979A (en) * 2018-05-10 2018-10-12 上海纳恩汽车技术有限公司 A method of reducing wireless receiver power consumption
CN110557809B (en) * 2018-06-04 2021-06-11 电信科学技术研究院有限公司 Method for determining receiver configuration information, terminal and network equipment
CN109039971B (en) * 2018-08-20 2021-03-05 深圳市银河风云网络系统股份有限公司 Data sending method and device
CN109068381A (en) * 2018-10-10 2018-12-21 深圳市国电科技通信有限公司 A kind of low-power consumption awakening method of combination detection and scheduling mechanism
EP3959851A1 (en) * 2019-04-23 2022-03-02 Telefonaktiebolaget Lm Ericsson (Publ) Network entities, methods, appartuses and communications networks for authenticating an event
FR3100628B1 (en) * 2019-09-10 2023-04-14 St Microelectronics Grenoble 2 CAN bus communication
CN112073151B (en) * 2020-09-07 2023-02-17 中电科思仪科技股份有限公司 Telemetry PCM decoding and frame synchronization method based on FPGA
CN117915442A (en) * 2023-12-22 2024-04-19 嘉齐半导体(深圳)有限公司 Method, equipment and system for reducing false wake-up power consumption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483908A (en) * 2009-02-18 2009-07-15 王翥 Wireless sensor network node
CN101689891A (en) * 2006-10-13 2010-03-31 Lg电子株式会社 Method for managing the power in the wireless network
CN101711052A (en) * 2009-11-03 2010-05-19 深圳和而泰智能控制股份有限公司 Method for reducing stand-by power consumption of wireless transceiver system and system thereof
CN101841899A (en) * 2010-04-29 2010-09-22 上海福宇龙汽车科技有限公司 Power supply management method for PKE system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025279A1 (en) * 2006-07-31 2008-01-31 Motorola, Inc. Synchronization of multi-system wakeup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689891A (en) * 2006-10-13 2010-03-31 Lg电子株式会社 Method for managing the power in the wireless network
CN101483908A (en) * 2009-02-18 2009-07-15 王翥 Wireless sensor network node
CN101711052A (en) * 2009-11-03 2010-05-19 深圳和而泰智能控制股份有限公司 Method for reducing stand-by power consumption of wireless transceiver system and system thereof
CN101841899A (en) * 2010-04-29 2010-09-22 上海福宇龙汽车科技有限公司 Power supply management method for PKE system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689320A (en) * 2020-12-25 2021-04-20 杭州当贝网络科技有限公司 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
CN112689320B (en) * 2020-12-25 2023-04-11 杭州当贝网络科技有限公司 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
CN112866926A (en) * 2021-01-07 2021-05-28 凯联医疗科技(上海)有限公司 Method for improving reliability of Bluetooth connection in Bluetooth time-sharing broadcast

Also Published As

Publication number Publication date
CN102625423B (en) 2015-06-03
CN102625423A (en) 2012-08-01

Similar Documents

Publication Publication Date Title
WO2012119394A1 (en) Wireless communication system and wakeup method thereof
US9451543B2 (en) Wireless communication method for transmitting message to slave devices from master devices
CN103428830A (en) Wireless communication system and method
TWI656804B (en) Wireless communication method and wireless communication device
CN105337744A (en) Highly-low-power-consumption two-stage awaking receiving machine system having consumption user-defined awaking sequence
CN101843150B (en) Radio communication device, terminal, system, and program
EP1770667B1 (en) Method for synchronizing devices in wireless networks
WO2018126612A1 (en) Method and device for transmitting and receiving wake-up frame
CA2877416C (en) Transmitting data within a mesh network
CN101180807A (en) Communications method and apparatus
CN104994496A (en) Physical layer secure transmission method based on distributed spatial modulation
CN108023846A (en) Detect method, circuit, equipment and the computer program product of fsk modulated signal
Blobel et al. An architecture for sender-based addressing for selective sensor network wake-up receivers
JP2015177284A (en) Radio device and program to be executed therein
WO2013104116A1 (en) System and method for wireless communication
Karvonen et al. Energy efficient IR-UWB WBAN using a generic wake-up radio based MAC protocol
CN105959979B (en) Frame length system adaptive recognition method in wireless sensor network based on MAC protocol
Wang et al. PRComm: Anti-interference cross-technology communication based on pseudo-random sequence
US11652651B1 (en) Energy efficient ethernet (EEE) link recovery from low SNR
CN112083442A (en) BPL (Business Process language) long wave data modulation design method based on additional modulation pulse
Sujaya et al. PHY-DTR: An efficient PHY based digital transceiver for body coupled communication using IEEE 802.3 on FPGA platform
KR100867542B1 (en) System for wireless communicatiom using beacon
Torrisi et al. Low-power circuits and energy-aware protocols for connecting batteryless sensors
CN108900236A (en) satellite communication method and terminal, relay station and communication system
US20200076929A1 (en) Method for transmitting information

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: 11860374

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 OF 170114

122 Ep: pct application non-entry in european phase

Ref document number: 11860374

Country of ref document: EP

Kind code of ref document: A1