Wireless sensor network transmitter, transceiver and state control method
By combining repeated encoding modules and frequency synthesizers, the signal transmission process of the wireless sensor network is simplified, the problems of high power consumption and high equipment complexity are solved, and a low-power and miniaturized wireless sensor design is achieved.
Patent Information
- Application Number
- CN202510518778.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-09-09
AI Technical Summary
Existing wireless sensor network technologies have problems with high power consumption and high equipment complexity in power sensing services, especially the requirements for low power consumption and device size are not met.
A combination of a repetitive coding module, a frequency synthesizer, and a control switch is used to encode the power sensing digital signal through the repetitive coding module to generate a coded digital signal to control the switch state, thereby controlling the transmission of the radio frequency signal, simplifying the signal modulation process, omitting the digital-to-analog converter, and reducing power consumption.
The hardware structure of wireless sensors is simplified, the power consumption and size of the equipment are reduced, the hardware implementation overhead is reduced, and the communication efficiency is improved.
Smart Images

Figure CN120614013A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power sensor technology, and in particular to a wireless sensor network transmitter, a transceiver and a state control method. Background Art
[0002] With the continuous advancement of the Energy Internet, power grids are placing higher demands on the depth, breadth, and density of information perception, leading to explosive growth in demand for sensors and sensor networks. Currently, sensor network technologies, exemplified by low-power wireless communications, offer advantages such as massive connectivity and low costs. However, they also face challenges such as diverse technical systems, significant differences in network protocols, and non-uniform interface specifications. When directly applied to power grids, communication speeds, transmission distances, and module power consumption often fall short of the power sensing requirements.
[0003] Because sensor modules lack continuous wired power supply, they are primarily battery-powered in field applications. Furthermore, the space required for sensor installation is limited, placing high demands on low power consumption and device size. Currently, commonly used wireless sensor network technologies include LoRa (Long Range Radio), short-range and low-rate wireless communications such as ZigBee, BLE (Bluetooth Low Energy), and WiFi (Wireless Fidelity). Among these physical layer technologies, WiFi uses OFDM (Orthogonal Frequency Division Multiplexing) modulation, which consumes significant power. While LoRa / ZigBee / BLE utilize single-carrier technology, the physical layer links utilize multiple data processing modules, resulting in increased device complexity and the continued issue of high power consumption. Summary of the Invention
[0004] In order to overcome the problems of high power consumption and high equipment complexity in the above-mentioned communication mode of the wireless sensor network, the present invention provides a wireless sensor network transmitter, a transceiver and a state control method.
[0005] In one aspect, the present invention provides a wireless sensor network transmitter, comprising: a repetitive coding module, a frequency synthesizer, and a control switch, wherein the repetitive coding module and the frequency synthesizer are electrically connected to the control switch respectively;
[0006] The repetitive encoding module is used to encode the received power sensor digital signal to obtain a corresponding encoded digital signal;
[0007] The frequency synthesizer is used to generate a corresponding radio frequency signal based on a preset center frequency;
[0008] The control switch is used to switch its own switch state based on the received encoded digital signal, and control the transmission of the radio frequency signal through the switch state.
[0009] Optionally, the repetitive encoding module includes a repetition submodule and a puncturing submodule;
[0010] The repeating submodule is configured to repeat each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit;
[0011] The puncturing submodule is used to set some bits in the coding block corresponding to each bit to 0 to obtain the coding result corresponding to each bit.
[0012] Optionally, the part of bits is the first KL bits of the corresponding coding block or the last KL bits of the corresponding coding block;
[0013] Among them, K is the number of repeated encoding times, and L is the effective bit length.
[0014] On the other hand, the present invention also provides a wireless sensor network transceiver, comprising: a transmitter and a receiver as described in any one of the above items; the receiver is used to receive an analog signal to be transmitted in a wireless channel and restore the analog signal to be transmitted to a corresponding digital signal.
[0015] Optionally, the receiver includes: a mixer, a demodulator, and a sliding average module electrically connected in sequence, wherein the mixer is electrically connected to the frequency synthesizer;
[0016] The mixer is configured to down-convert the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer to obtain a corresponding intermediate frequency analog signal;
[0017] The demodulator is used to perform envelope detection on the intermediate frequency analog signal to extract envelope information;
[0018] The sliding average module is used to perform sliding average processing on the envelope information based on the number of repeated encoding times to obtain a digital signal corresponding to the analog signal to be transmitted.
[0019] Optionally, the sliding window size of the sliding average processing is determined based on the number of repeated encoding times.
[0020] Optionally, the receiver further includes a frame synchronization module, and the frame synchronization module is electrically connected to the sliding average module;
[0021] The frame synchronization module is used to determine corresponding valid data based on the starting position of the data frame of the digital signal corresponding to the analog signal to be transmitted.
[0022] Optionally, the transceiver further includes a control unit, which is electrically connected to the frame synchronization module and the repetition encoding module respectively;
[0023] The control unit is used to receive the power sensing digital signal transmitted by the external device and forward the power sensing digital signal to the repetition encoding module; and is also used to receive the valid data transmitted by the frame synchronization module and transmit the valid data to the external device.
[0024] On the other hand, the present invention further provides a communication method for a wireless sensor network transceiver, which is applied to any of the above transceivers, and the method comprises:
[0025] Encoding the received power sensor digital signal to obtain a corresponding encoded digital signal;
[0026] Generate a corresponding radio frequency signal based on a preset center frequency;
[0027] The switch state of the control switch is switched based on the received coded digital signal, and the transmission of the radio frequency signal is controlled by the switch state.
[0028] Optionally, encoding the received power sensor digital signal to obtain a corresponding encoded digital signal includes:
[0029] Repeating each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit;
[0030] Position some bits in the coding block corresponding to each bit to 0 to obtain the coding result corresponding to each bit;
[0031] The encoding result of each bit is arranged according to the bit sequence of the power sensing digital signal to obtain a corresponding encoded digital signal.
[0032] Optionally, the part of bits is the first KL bits of the corresponding coding block or the last KL bits of the corresponding coding block;
[0033] Where K is the number of repetition codes, and L is the effective bit length at the sending end.
[0034] Optionally, in the process of encoding the received power sensor digital signal to obtain a corresponding encoded digital signal, the process further includes:
[0035] An analog signal to be transmitted is received in a wireless channel and is converted back into a corresponding digital signal.
[0036] Optionally, restoring the analog signal to be transmitted into a corresponding digital signal includes:
[0037] Down-converting the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer to obtain a corresponding intermediate frequency analog signal;
[0038] Performing envelope detection on the intermediate frequency analog signal to extract envelope information;
[0039] The envelope information is subjected to sliding average processing based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted.
[0040] Optionally, the sliding window size of the sliding average processing is determined based on the number of repeated encoding times.
[0041] Optionally, after performing sliding average processing on the envelope information based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted, the method further includes:
[0042] Determining corresponding valid data based on a data frame start position of a digital signal corresponding to the analog signal to be transmitted;
[0043] The useful data is transmitted to an external device.
[0044] On the other hand, the present invention further provides a communication method for a wireless sensor network transceiver, which is applied to any of the above transceivers, and the method comprises:
[0045] Determining current communication quality based on data transmission and reception conditions of the transceiver during wireless communication and current channel quality;
[0046] The number of repetitive encoding times of the transceiver is adjusted based on the current communication quality to adjust the communication rate.
[0047] Optionally, after adjusting the number of repetitive encoding times of the transceiver based on the current communication quality, the method further includes:
[0048] If the number of repetition encoding times of the transceiver reaches the minimum limit of the number of repetition encoding times and the current communication quality meets the communication requirements, the effective bit length of the transceiver is gradually reduced until the communication quality meets the minimum communication requirements, and the process of reducing the effective bit length is stopped.
[0049] On the other hand, the present invention further provides a state control method for a wireless sensor network transceiver, which is applied to any of the above transceivers, and the method comprises:
[0050] Based on the received state configuration instruction, control the transceiver to enter a corresponding working state;
[0051] In each working state, if the transceiver completes a corresponding state operation of a data packet or fails to complete the corresponding state operation of a data packet within a specified operation time, controlling the transceiver to enter a standby state;
[0052] If the transceiver does not enter the corresponding working state within the specified state transition time, controlling the transceiver to enter the sleep state;
[0053] Wherein, the transmitter and the receiver are both turned off in the standby state and the sleep state.
[0054] Optionally, before controlling the transceiver to enter a corresponding working state based on the received state configuration instruction, the method further includes:
[0055] The transceiver enters a standby state after being powered on, and if the state configuration instruction is not received within a specified instruction reception time, controls the transceiver to enter a dormant state;
[0056] In the sleep state, if a sleep exit configuration instruction is received, the transceiver is controlled to enter the standby state.
[0057] Optionally, the working state includes a sending state and a receiving state; in the sending state, the receiver is turned off; in the receiving state, the transmitter is turned off.
[0058] Optionally, the transceiver includes a control unit, and the control unit includes a state machine and an instruction monitoring module;
[0059] In the dormant state, other functional modules in the control unit except the state machine and the instruction detection module are turned off.
[0060] On the other hand, the present invention further provides a readable storage medium having an execution program stored thereon, and when the execution program is executed, any one of the methods described above is implemented.
[0061] Compared with the prior art, the present invention has the following beneficial effects:
[0062] The present invention provides a wireless sensor network transmitter. A repeated encoding module encodes a received power sensor digital signal to obtain a corresponding encoded digital signal. The bit numbers in the encoded digital signal are used to switch the on / off state of a control switch. The on / off state of the control switch is then used to control whether a radio frequency signal generated by a frequency synthesizer is transmitted. By converting the power sensor digital signal into the on / off state of the control switch, the transmission process of the radio frequency signal is controlled. This omits the digital-to-analogue converter (DAC) in a traditional transmitter, simplifying the hardware structure and the data processing process, thereby effectively reducing transmission power consumption. Furthermore, the transmitter designed by the present invention only requires three components: a repeated encoding module, a frequency synthesizer, and a control switch. This greatly simplifies the sensor wireless communication structure, reduces hardware implementation overhead, and reduces sensor size and cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is a structural block diagram of a wireless sensor network transmitter of the present invention;
[0064] Figure 2 This is a structural block diagram of a repetitive encoding module in a wireless sensor network transmitter of the present invention;
[0065] Figure 3 This is a structural block diagram of a wireless sensor network transceiver of the present invention;
[0066] Figure 4 The figure is a schematic diagram of the state control process of a wireless sensor network transceiver of the present invention. DETAILED DESCRIPTION
[0067] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0068] Example 1
[0069] The present invention provides a wireless sensor network transmitter, the structure of which is as follows: Figure 1 As shown, it includes: a repetitive coding module 110, a frequency synthesizer 120 and a control switch 130, wherein the repetitive coding module 110 and the frequency synthesizer 120 are electrically connected to the control switch 130 respectively;
[0070] The repetitive encoding module 110 is used to encode the received power sensor digital signal to obtain a corresponding encoded digital signal;
[0071] The frequency synthesizer 120 is used to generate a corresponding radio frequency signal based on a preset center frequency;
[0072] The control switch 130 is configured to switch a switch state of the control switch based on the received encoded digital signal, and control the transmission of the radio frequency signal through the switch state.
[0073] In this example embodiment, the wireless sensor network can be applied to the power system and serve as a wireless sensor network for the power system to perform power sensing services. For example, the wireless sensor network can be used to monitor the status of key lines in the power grid and identify faults. The transmitter is arranged at the physical layer of the communication network and can send the digital signal to be sent (such as the power sensor digital signal) from the external device to the wireless channel (data link layer). Specifically, the repetitive encoding module encodes the received power sensor digital signal to obtain a corresponding encoded digital signal; the frequency synthesizer generates a corresponding radio frequency signal based on a preset center frequency; the control switch switches its own switch state based on the received encoded digital signal, and controls the transmission of the radio frequency signal through the switch state. In fact, the coded digital signal obtained after the coding process is a digital signal with a bit of "0" or "1". The bit can be set to "0" to correspond to the "off" state of the control switch, and correspondingly, the bit is "1" to correspond to the "on" state of the control switch, thereby directly controlling the switch state through the coded digital signal, and then controlling the transmission of the radio frequency signal (analog signal). It can be seen that the signal transmission process does not require a digital-to-analog converter, avoiding the complex signal modulation process and digital-to-analog conversion process in the traditional method, which can greatly simplify the sensor communication structure, reduce hardware implementation overhead, and reduce sensor size and cost. The low-power wireless sensor network transmitter proposed in the present invention only includes three modules: a repeated coding module, a frequency synthesizer, and a control switch. It does not require a digital-to-analog converter, which can effectively simplify the transmitter structure and reduce device power consumption.
[0074] In one example implementation, Figure 2 As shown, the repetitive encoding module 110 includes a repetition submodule 111 and a puncturing submodule 112;
[0075] The repetition submodule 111 is configured to repeat each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit;
[0076] The puncturing submodule 112 is configured to set some bits in the coding block corresponding to each bit to 0 to obtain a coding result corresponding to each bit.
[0077] In this exemplary embodiment, the input data (power sensing digital signal) from the external device first enters the repetitive encoding module, whose structure is as follows: Figure 2As shown, it includes two sub-modules: a repeating sub-module 111 and a punching sub-module 112. The repeating sub-module 111 repeats each bit of the input data K (K is an integer) times to obtain an encoded block corresponding to each bit; the punching sub-module 112 sets part of the consecutive bit positions of the encoded block corresponding to each bit obtained after repetition to 0 to obtain an encoded result corresponding to each bit. The final encoded result is formed by arranging the encoded results corresponding to each bit in the original bit order. Exemplarily, the part of the bit positions is the first K - L bit positions or the last K - L bit positions of the corresponding encoded block; where K is the number of repeated encodings and L is the length of the effective bit positions. This example can adjust the wireless communication rate and transmission duration by configuring the parameters K and L.
[0078] For example, let the first bit input to the repeating encoding module be b1, repeat it K times, and set the last K - L (L is an integer and 0 < L ≤ K) numbers to zero, then:
[0079] The output corresponding to the repeating sub-module is: {b
[0081] , 1K , c , 11 , 1L , 1K ,
[0080] , 1L ,
[0084] ,
[0083] ,
[0082] , , , 11 , 12 , 1K , c , 1L+1 , ، 1K ، 1L+1 ، ، ,b 12 ,...,b 1K},b 11 =...=b 1K =b1;
[0080] The output corresponding to the punching sub-module is: {b 11 ,b [[ID=?]] 12 ,...,b 1K},b 11 =...=b [[ID=?]] 1L =b1,b 1L+1 =...=b 1K =0。 <0?000191>Where b 1K is the result of the Kth repetition operation of the first bit b1, b 1L is the result of the Lth repetition operation of the first bit b1, b 1L+1 is the result of the (L + 1)th repetition operation of the first bit b1. The operation of the second bit input repeats that of the first bit, and so on. The radio frequency signal generated by the frequency synthesizer is a sine signal, that is:
[0082] f(t) = sin(2πf c t)(1)
[0083] Where f(t) is the output signal of the frequency synthesizer, f c is the center frequency, and t is the time. [[ID=?]]
[0084] It should be noted that there are some tags in the original text that seem to be incorrect or incomplete in the provided translation content (such as the repeated "?"). You can double-check and correct them according to the actual situation.The repeatedly encoded data is used as a control signal to switch the control switch. If the data is bit "1", the switch is opened and the sinusoidal signal generated by the frequency synthesizer is output; if it is bit "0", the switch is closed and no signal is output, that is:
[0085]
[0086] Among them, p(t) is the output of the control switch module, b i is the i-th bit output by the repetition encoding module.
[0087] In some embodiments, the transmitter also includes a control unit, which is used to receive data input from an external device. The input data enters a repetitive coding module with a coding rate of 1 / K for coding processing to improve the reliability of communication; the encoded data is used as a control signal to switch the control switch to output or not output the sinusoidal signal generated by the frequency synthesizer; the output of the control switch is then amplified by signal power and can finally be sent to the wireless channel.
[0088] Example 2
[0089] Based on the same inventive concept, the present invention also provides a wireless sensor network transceiver, such as Figure 3 As shown, it includes: the transmitter 310 and the receiver 320 described in any one of Example 1; the receiver 320 is used to receive the analog signal to be transmitted in the wireless channel and restore the analog signal to be transmitted into a corresponding digital signal.
[0090] In this example implementation, the transmitter in Example 1 is deployed in the transceiver of the wireless sensor network as a transmitting end, and the receiver is adaptively configured or designed, which can also simplify the hardware structure of the wireless sensor network transceiver and reduce the communication power consumption of the transceiver.
[0091] In one example implementation, Figure 3 As shown, the receiver 320 includes: a mixer 321, a demodulator (such as an envelope detector 322) and a sliding average module 323 electrically connected in sequence, and the mixer 321 is electrically connected to the frequency synthesizer 312;
[0092] The mixer 321 is configured to down-convert the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer 312 to obtain a corresponding intermediate frequency analog signal;
[0093] The demodulator (such as the envelope detector 322) is used to perform envelope detection on the intermediate frequency analog signal to extract envelope information;
[0094] The sliding average module 323 is configured to perform sliding average processing on the envelope information based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted.
[0095] In this exemplary embodiment, mixer 321 receives the RF signal transmitted by frequency synthesizer 312 and, based on the RF signal, down-converts the analog signal (high-frequency signal) to be transmitted from the received wireless channel into an intermediate frequency (IF) signal. Envelope detector 322 extracts envelope information from the IF signal output by mixer 321. Sliding average module 323 performs a sliding average on the envelope information. To adapt the receiver to the transmitter, the sliding window size for the sliding average is determined based on the number of repetition codes. For example, the sliding window size for the sliding average is K.
[0096] Exemplarily, the sliding average module calculates the sliding average of the envelope information as follows:
[0097]
[0098] Among them, s(k) is the k-th output data of the sliding average module, r(j) is the j-th data of the envelope information, and K is the sliding window size, that is, the number of repetition encodings at the sending end.
[0099] In the receiver, the high-frequency signal in the wireless channel is converted into an intermediate-frequency signal through down-conversion and envelope detection, and the envelope information is extracted. Finally, the signal is smoothed by sliding average to obtain the corresponding digital signal.
[0100] In one example implementation, Figure 3 As shown, the receiver 320 also includes a frame synchronization module 324, which is electrically connected to the sliding average module 323; the frame synchronization module 324 is used to determine the corresponding valid data based on the starting position of the data frame of the digital signal corresponding to the analog signal to be transmitted.
[0101] In this exemplary embodiment, the output of sliding average module 323 enters frame synchronization module 324, which locates the starting position of the data frame, determines valid data based on the starting position of the data frame, and sends the valid data to the external device. The frame synchronization module reduces the amount of data transmitted, further reducing power consumption.
[0102] In one example implementation, Figure 3 As shown, the transceiver further includes a control unit 330, and the control unit 330 is electrically connected to the frame synchronization module 324 and the repetition encoding module 311 respectively;
[0103] The control unit 330 is used to receive the power sensing digital signal transmitted by the external device and forward the power sensing digital signal to the repetition encoding module 311; and is also used to receive the valid data transmitted by the frame synchronization module 324 and transmit the valid data to the external device.
[0104] In this example embodiment, the control unit 330 is primarily used to control the data transmission process of the transmitter and the data reception and restoration process of the receiver. In the transmission link, the control unit 330 is used to receive the power sensing digital signal transmitted by the external device and forward it to the repetition encoding module 311, which is used to change the switch state of the control switch 313. In the reception link, the control unit 330 is used to receive the valid data transmitted by the frame synchronization module and send this valid data to an external device (such as a controller of a sensor module), so that the external device can perform data analysis based on the received valid data or control the sensor to perform detection.
[0105] Current energy and power development faces the challenges of ensuring safe and reliable supply and accelerating the transition to a clean, low-carbon economy. With the large-scale integration of new energy and power electronics into the power grid, the new power system's source, grid, and load have undergone profound changes, presenting a complex hybrid of AC and DC. Smart sensor technology is a crucial component of the new power system, deploying more smart sensors on grid equipment to achieve more accurate and detailed monitoring of the grid environment and equipment status. Currently, power sensors have achieved a significant scale of application in power transmission and transformation. Through the widespread deployment of a variety of sensors and smart terminals, including micro-meteorological, temperature, tower, tilt, icing, dancing, sag, windage, partial discharge, dielectric loss, insulation, leakage current, vibration, and pressure, they enable the collection of information on the status of primary electrical equipment, the environment, and other auxiliary information.
[0106] Currently, commonly used wireless sensor network technologies include LoRa, ZigBee, BLE, WiFi, and NB-IoT. LoRa offers a long communication range and a large number of connected devices, but a low communication rate. ZigBee and BLE offer higher communication rates, but a shorter communication range and a smaller number of connected devices. WiFi offers a higher communication rate, but a shorter communication range and a smaller number of connected devices. NB-IoT uses narrowband modulation technology, requiring a base station for communication, and may not provide full signal coverage in some scenarios. Among these physical layer technologies, WiFi uses OFDM modulation, which consumes a lot of power. LoRa, ZigBee, and BLE utilize single-carrier technology, but the physical layer links utilize more data processing modules, leaving room for power reduction.
[0107] The wireless sensor network transceiver of the present invention primarily includes modules such as a control unit, a repetition coder, a frequency synthesizer, a control switch, a mixer, a demodulator (envelope detection), a sliding average, and a frame synchronization module. The control unit is responsible for controlling and coordinating the various internal modules and for data exchange with an external processor. The repetition coder, frequency synthesizer, and control switch form the transmission link, which transmits data from the processor after signal processing. The mixer, demodulator, sliding average, and frame synchronization modules form the receiving link, which collects radio frequency signals and parses them to extract the correct data. The transceiver proposed in the present invention can implement low-power wireless sensor network communication processes. Its simple device structure can greatly simplify the sensor communication structure, reduce hardware implementation overhead, and lower sensor size and cost. The low-power wireless sensor network transmitter proposed in the present invention contains only three modules: a repetition coder, a frequency synthesizer, and a control switch. It does not require a digital-to-analog converter, effectively simplifying the transmitter structure and reducing power consumption. Correspondingly, the low-power wireless sensor network receiver proposed in the present invention contains only four modules: a mixer, a demodulator, a sliding average, and a frame synchronization module. It does not require an analog-to-digital converter, effectively simplifying the receiver structure and reducing power consumption.
[0108] Example 3
[0109] Based on the same inventive concept, the present invention further provides a communication method for a wireless sensor network transceiver, which is applied to the transceiver as described in any one of Embodiment 2, and the method includes:
[0110] Encoding the received power sensor digital signal to obtain a corresponding encoded digital signal;
[0111] Generate a corresponding radio frequency signal based on a preset center frequency;
[0112] The switch state of the control switch is switched based on the received coded digital signal, and the transmission of the radio frequency signal is controlled by the switch state.
[0113] In a possible implementation, encoding the received power sensor digital signal to obtain a corresponding encoded digital signal includes:
[0114] Repeating each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit;
[0115] Position some bits in the coding block corresponding to each bit to 0 to obtain the coding result corresponding to each bit;
[0116] The encoding result of each bit is arranged according to the bit sequence of the power sensing digital signal to obtain a corresponding encoded digital signal.
[0117] In a possible implementation manner, the part of bits is the first KL bits of the corresponding coding block or the last KL bits of the corresponding coding block;
[0118] Where K is the number of repetition codes, and L is the effective bit length at the sending end.
[0119] In a possible implementation, the process of encoding the received power sensor digital signal to obtain a corresponding encoded digital signal further includes:
[0120] An analog signal to be transmitted is received in a wireless channel and is converted back into a corresponding digital signal.
[0121] In a possible implementation manner, restoring the analog signal to be transmitted into a corresponding digital signal includes:
[0122] Down-converting the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer to obtain a corresponding intermediate frequency analog signal;
[0123] Performing envelope detection on the intermediate frequency analog signal to extract envelope information;
[0124] The envelope information is subjected to sliding average processing based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted.
[0125] In a possible implementation, the sliding window size of the sliding average processing is determined based on the number of repeated encoding times.
[0126] In a possible implementation, after performing sliding average processing on the envelope information based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted, the method further includes:
[0127] Determining corresponding valid data based on a data frame start position of a digital signal corresponding to the analog signal to be transmitted;
[0128] The useful data is transmitted to an external device.
[0129] Example 4
[0130] Based on the same inventive concept, the present invention further provides a communication method for a wireless sensor network transceiver, which is applied to the transceiver as described in any one of Embodiment 2, and the method includes:
[0131] Determining current communication quality based on data transmission and reception conditions of the transceiver during wireless communication and current channel quality;
[0132] The number of repetitive encoding times of the transceiver is adjusted based on the current communication quality to adjust the communication rate.
[0133] In this example embodiment, the data transmission and reception status refers to a communication indicator that can reflect the communication quality. For example, the data transmission and reception status can include data packet loss rate, communication success rate, packet error rate, etc. The current channel quality can be characterized by indicators such as signal-to-noise ratio and bit error rate. The current communication quality is determined by combining various data transmission and reception status indicators and channel quality indicators. For example, the communication quality indicator can be determined by weighted fusion of multiple indicators, and the communication quality is determined based on the communication quality indicator. The number of repetition codes of the transceiver is adjusted based on the current communication quality to adjust the communication rate. Exemplarily, when the current communication quality is poor (e.g., the current communication quality indicator is less than a preset threshold), the number of repetition codes K can be increased to reduce the communication rate and ensure communication reliability; when the current communication quality is good (the current communication quality indicator is greater than or equal to the preset threshold), the number of repetition codes K can be decreased to increase the communication rate.
[0134] In an example implementation, after adjusting the number of repetition encoding times of the transceiver based on the current communication quality, the method further includes:
[0135] If the number of repetition encoding times of the transceiver reaches the minimum limit of the number of repetition encoding times and the current communication quality meets the communication requirements, the effective bit length of the transceiver is gradually reduced until the communication quality meets the minimum communication requirements, and the process of reducing the effective bit length is stopped.
[0136] In this example embodiment, when the number of repetitions K equals the minimum limit for repetitions, and if the current communication quality still meets the communication requirements, the effective bit length L can be tentatively reduced until the communication quality reaches the minimum communication requirement, at which point the effective bit length reduction process is stopped. If the channel environment changes, K and L can be readjusted to balance communication reliability and communication rate.
[0137] The present invention can adjust the communication rate and the sending duration by configuring or adjusting the parameters K and L.
[0138] Example 5
[0139] Based on the same inventive concept, the present invention further provides a state control method for a wireless sensor network transceiver, which is applied to the transceiver as described in any one of Embodiment 2, and the method includes:
[0140] Based on the received state configuration instruction, control the transceiver to enter a corresponding working state;
[0141] In each working state, if the transceiver completes a corresponding state operation of a data packet or fails to complete the corresponding state operation of a data packet within a specified operation time, controlling the transceiver to enter a standby state;
[0142] If the transceiver does not enter the corresponding working state within the specified state transition time, controlling the transceiver to enter the sleep state;
[0143] Wherein, the transmitter and the receiver are both turned off in the standby state and the sleep state.
[0144] In this example embodiment, the state configuration instruction can be generated based on user-configured parameters or automatically generated by the transceiver based on actual conditions. The state configuration instruction is used to indicate the current operating state to be entered. The operating states of the transceiver include the transmitting state and the receiving state. If the state configuration instruction is a transmitting state configuration instruction, the transceiver is controlled to enter the transmitting state (TX mode). In the transmitting state, if the transceiver completes the transmission of a data packet or fails to complete the transmission of a data packet within a specified operating time, the transceiver is controlled to enter the standby state (STA mode). If the state configuration instruction is a receiving state configuration instruction, the transceiver is controlled to enter the receiving state (RX mode). In the receiving state, if the transceiver completes the reception of a data packet or fails to complete the reception of a data packet within a specified operating time, the transceiver is controlled to enter the standby state (STA mode). The specified operating time can be the maximum time set for sending or receiving data packets. If the corresponding operating state is not entered within a certain period of time after receiving the state configuration instruction (such as a pre-configured maximum state transition time, i.e., the specified state transition time), the transceiver is controlled to enter the internal sleep state (SLEEP mode). In the standby and sleep states, the transmitter and receiver of the entire transceiver are turned off. That is, the repetitive coding module, frequency synthesizer and control switch in the transmitter are turned off, and the mixer, demodulator, sliding average module and frame synchronization module in the receiver are turned off. By controlling the maximum time of state operation and state transfer, the power consumption of each operation is reduced, avoiding infinite loop execution due to inability to enter the corresponding state or complete the corresponding operation, and reducing the overall power consumption of the transceiver.
[0145] In an example implementation, before controlling the transceiver to enter a corresponding working state based on the received state configuration instruction, the method further includes:
[0146] The transceiver enters a standby state after being powered on, and if the state configuration instruction is not received within a specified instruction reception time, controls the transceiver to enter a dormant state;
[0147] In the sleep state, if a sleep exit configuration instruction is received, the transceiver is controlled to enter the standby state.
[0148] In this example embodiment, after powering on, the transceiver first enters the standby state, or STA mode. To reduce power consumption, if the state configuration command is not received within a specified command reception time, the transceiver is controlled to enter SLEEP mode. If a sleep exit configuration command is received while in SLEEP mode, the command is used to reawaken the device and control the transceiver to enter STA mode.
[0149] In one example embodiment, the operating state includes a transmitting state and a receiving state; in the transmitting state, the receiver is turned off; in the receiving state, the transmitter is turned off. In other words, when the transceiver is in one operating mode, it will turn off the functional modules corresponding to other operating modes to reduce power consumption.
[0150] In one example embodiment, the transceiver includes a control unit, the control unit including a state machine and an instruction monitoring module;
[0151] In the dormant state, other functional modules in the control unit except the state machine and the instruction detection module are turned off.
[0152] In this example embodiment, the transceiver's control unit includes a state machine and a command monitoring module. The state machine is used to manage and control program or system state changes, making the system's behavior in different states easier to understand and maintain. The command monitoring module is used to monitor configuration commands from external devices and control the state machine's switching between different operating modes. In the sleep state, the repetitive encoding module, frequency synthesizer, control switch, mixer, demodulator, sliding average, frame synchronization, and other modules are shut down. In the control unit, the state machine and command monitoring functions remain operational, while all other functional submodules are shut down to minimize device power consumption.
[0153] The present invention proposes a state control method for a transceiver, which shuts down specific functional modules in different working modes to ensure the normal operation of the system while reducing overall power consumption. Figure 4 As shown, there are four working modes: STA, SLEEP, TX mode, and RX mode.
[0154] (1) STA mode: After powering on, the device enters STA mode. In this mode, no data transmission or reception is performed. If a processor configuration instruction is received, the device enters TX or RX mode. If no processor configuration instruction is received within the specified time, the device enters sleep mode. In this mode, the transmitter's repetition code, frequency synthesizer, and control switch are disabled, as are the receiver's mixer, demodulator, sliding average, and frame synchronization modules.
[0155] (2) TX mode: In STA mode, after receiving the configuration instruction from the processor to send a data packet, it enters TX mode and performs the data packet sending operation in this mode. In this mode, if the data packet is sent once, it enters STA mode. If the data packet is not sent within the specified operation time, it also enters STA mode. In this mode, all modules of the receiver are turned off.
[0156] (3) RX mode: In STA mode, after receiving the configuration instruction from the processor to receive data packets, it enters RX mode and performs data packet reception operations in this mode. In this mode, if a data packet is received once, it enters STA mode. If no data packet is received within the specified operation time, it also enters STA mode. In this mode, the transmitter's repetitive encoding, control switch and other modules are turned off.
[0157] (4) SLEEP mode: In STA mode, if the TX or RX mode is not entered within the specified time, the system enters SLEEP mode. After entering this mode, the system enters the sleep state. In this mode, if the processor receives an instruction to exit the sleep state, the system enters STA mode. In this mode, the repetition coding, frequency synthesizer, control switch, mixer, demodulator, sliding average, frame synchronization and other modules are turned off. In the control unit, the state machine and instruction monitoring functions remain working, and other functional sub-modules are turned off.
[0158] The present invention proposes a state machine control method, including four working modes: STA, SLEEP, TX, and RX. Specific functional modules are turned off in different working modes to ensure normal operation of the system while reducing overall power consumption. The mode is simple and switching between modes is flexible. At the same time, specific functional modules are turned off in different working modes to ensure normal operation of the system while reducing overall power consumption.
[0159] Example 6
[0160] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory). The electronic device readable storage medium is a memory device in the electronic device for storing programs and data. It is understandable that the storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The storage medium provides a storage space that stores the terminal's operating system. In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor. These instructions can be one or more execution programs (including program code). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage. The processor loads and executes one or more instructions stored in the storage medium to implement the steps of the communication and state control method of a wireless sensor network transceiver in the above embodiment.
[0161] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0162] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0163] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit its scope of protection. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art may still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the scope of protection of the pending claims.
Claims
1. A wireless sensor network transmitter, characterized in that: include: a repetitive coding module, a frequency synthesizer, and a control switch, wherein the repetitive coding module and the frequency synthesizer are electrically connected to the control switch respectively; The repetitive encoding module is used to encode the received power sensor digital signal to obtain a corresponding encoded digital signal; The frequency synthesizer is used to generate a corresponding radio frequency signal based on a preset center frequency; The control switch is used to switch its own switch state based on the received encoded digital signal, and control the transmission of the radio frequency signal through the switch state.
2. The transmitter according to claim 1, wherein The repetitive coding module includes a repetitive submodule and a puncturing submodule; The repeating submodule is configured to repeat each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit; The puncturing submodule is used to set some bits in the coding block corresponding to each bit to 0 to obtain the coding result corresponding to each bit.
3. The transmitter according to claim 2, characterized in that The part of bits is the first KL bits of the corresponding coding block or the last KL bits of the corresponding coding block; Among them, K is the number of repeated encoding times, and L is the effective bit length.
4. A wireless sensor network transceiver, characterized in that: include: The transmitter and receiver according to any one of claims 1 to 3; the receiver is used to receive an analog signal to be transmitted in a wireless channel and restore the analog signal to be transmitted to a corresponding digital signal.
5. The transceiver according to claim 4, wherein: The receiver comprises: a mixer, a demodulator and a sliding average module electrically connected in sequence, wherein the mixer is electrically connected to the frequency synthesizer; The mixer is configured to down-convert the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer to obtain a corresponding intermediate frequency analog signal; The demodulator is used to perform envelope detection on the intermediate frequency analog signal to extract envelope information; The sliding average module is used to perform sliding average processing on the envelope information based on the number of repeated encoding times to obtain a digital signal corresponding to the analog signal to be transmitted. The transceiver according to claim 5 , wherein: The sliding window size of the sliding average process is determined based on the number of repeated encoding times.
7. The transceiver according to claim 5, wherein: The receiver further includes a frame synchronization module, wherein the frame synchronization module is electrically connected to the sliding average module; The frame synchronization module is used to determine corresponding valid data based on the starting position of the data frame of the digital signal corresponding to the analog signal to be transmitted.
8. The transceiver according to claim 5, wherein: The transceiver further includes a control unit, which is electrically connected to the frame synchronization module and the repetition encoding module respectively; The control unit is used to receive the power sensing digital signal transmitted by the external device and forward the power sensing digital signal to the repetition encoding module; and is also used to receive the valid data transmitted by the frame synchronization module and transmit the valid data to the external device.
9. A communication method for a wireless sensor network transceiver, characterized in that: Applied to the transceiver according to any one of claims 4 to 8, the method comprises: Encoding the received power sensor digital signal to obtain a corresponding encoded digital signal; Generate a corresponding radio frequency signal based on a preset center frequency; The switch state of the control switch is switched based on the received coded digital signal, and the transmission of the radio frequency signal is controlled by the switch state.
10. The method according to claim 9, characterized in that The encoding process of the received power sensor digital signal to obtain a corresponding encoded digital signal includes: Repeating each bit of the power sensor digital signal multiple times based on a preset number of repetition encoding times to obtain a coding block corresponding to each bit; Position some bits in the coding block corresponding to each bit to 0 to obtain the coding result corresponding to each bit; The encoding result of each bit is arranged according to the bit sequence of the power sensing digital signal to obtain a corresponding encoded digital signal.
11. The method according to claim 10, characterized in that The part of bits is the first KL bits of the corresponding coding block or the last KL bits of the corresponding coding block; Where K is the number of repetition codes, and L is the effective bit length at the sending end.
12. The method according to claim 9, characterized in that The process of encoding the received power sensor digital signal to obtain a corresponding encoded digital signal also includes: An analog signal to be transmitted is received in a wireless channel and is converted back into a corresponding digital signal.
13. The method according to claim 12, characterized in that The step of restoring the analog signal to be transmitted into a corresponding digital signal includes: Down-converting the analog signal to be transmitted based on the received radio frequency signal sent by the frequency synthesizer to obtain a corresponding intermediate frequency analog signal; Performing envelope detection on the intermediate frequency analog signal to extract envelope information; The envelope information is subjected to sliding average processing based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted.
14. The method according to claim 13, characterized in that The sliding window size of the sliding average process is determined based on the number of repeated encoding times.
15. The method according to claim 13, characterized in that After performing sliding average processing on the envelope information based on the number of repetition encoding times to obtain a digital signal corresponding to the analog signal to be transmitted, the method further includes: Determining corresponding valid data based on a data frame start position of a digital signal corresponding to the analog signal to be transmitted; The useful data is transmitted to an external device.
16. A communication method for a wireless sensor network transceiver, characterized in that: Applied to the transceiver according to any one of claims 4 to 8, the method comprises: Determining current communication quality based on data transmission and reception conditions of the transceiver during wireless communication and current channel quality; The number of repetitive encoding times of the transceiver is adjusted based on the current communication quality to adjust the communication rate.
17. The method according to claim 16, characterized in that After adjusting the number of repetitive encoding times of the transceiver based on the current communication quality, the method further includes: If the number of repetition encoding times of the transceiver reaches the minimum limit of the number of repetition encoding times and the current communication quality meets the communication requirements, the effective bit length of the transceiver is gradually reduced until the communication quality meets the minimum communication requirements, and the process of reducing the effective bit length is stopped.
18. A method for controlling the state of a wireless sensor network transceiver, characterized in that: Applied to the transceiver according to any one of claims 4 to 8, the method comprises: Based on the received state configuration instruction, control the transceiver to enter a corresponding working state; In each working state, if the transceiver completes a corresponding state operation of a data packet or fails to complete the corresponding state operation of a data packet within a specified operation time, controlling the transceiver to enter a standby state; If the transceiver does not enter the corresponding working state within the specified state transition time, controlling the transceiver to enter the sleep state; Wherein, the transmitter and the receiver are both turned off in the standby state and the sleep state.
19. The method according to claim 18, characterized in that Before controlling the transceiver to enter a corresponding working state based on the received state configuration instruction, the method further includes: The transceiver enters a standby state after being powered on, and if the state configuration instruction is not received within a specified instruction reception time, controls the transceiver to enter a dormant state; In the sleep state, if a sleep exit configuration instruction is received, the transceiver is controlled to enter the standby state.
20. The method according to claim 18, wherein The working state includes a sending state and a receiving state; in the sending state, the receiver is turned off; in the receiving state, the transmitter is turned off.
21. The method according to claim 19, wherein The transceiver includes a control unit, and the control unit includes a state machine and an instruction monitoring module; In the dormant state, other functional modules in the control unit except the state machine and the instruction detection module are turned off.