0 Introduction
A wireless sensor network is a type of RGS system (remote ground sensor system). It is a detection system that uses multiple sensors as comprehensive intelligence collection components, performs data fusion, encoding, and other processing, and then sends it to the command center. After processing and restoration, it is displayed on the monitoring platform. It integrates sensor technology, image detection technology, vibration detection technology, sound detection technology, wireless communication technology, digital coding compression technology, information fusion technology, and computer technology. It is a comprehensive technology integrated by a variety of high-tech technologies. The wireless multi-sensor network system is mainly composed of the following parts:
(1) System front-end sensors and GPS module - signal acquisition part: mainly composed of detection units and GPS modules composed of image, sound, vibration and infrared sensors, responsible for completing battlefield information monitoring tasks.
(2) Information transmission part: mainly responsible for compressing and encoding the collected information and conducting long-distance wireless transmission.
(3) Command center measurement and control platform: mainly completes the remote control and signal reception tasks of the monitoring unit, and integrates and analyzes the various information collected. The processing results are provided to the command center personnel so that they can grasp the battlefield situation in a timely and accurate manner and make corresponding decisions.
This paper mainly discusses the hardware design and software programming ideas of image transmission systems in wireless sensor networks.
1 Transmitter modem hardware circuit design and working principle
The modem hardware circuits are actually different on the transmitter and receiver sides because of the different tasks they need to accomplish. The schematic diagram of the transmitter modem circuit is shown in Figure 1.
The system uses a +5 V power supply converted from the radio station's battery. MSM7512 B uses a dedicated 3.579 545 MHz crystal. Since it has an internal grounding capacitor, no external compensation components are required; the microcontroller uses a crystal with a frequency of 11.059 2 MHz, mainly to obtain an accurate baud rate when setting the baud rate, which can effectively avoid the accumulated error caused by the timer operation. The external compensation components are two 30 pF capacitors. In order to prevent erroneous operation when the microcontroller program is running, the microcontroller EA/VPP terminal (pin 31) should be set to a high level to ensure that the microcontroller accesses the internal program memory. Since the modem chip MSM7512B and the microcontroller W77E58 both support TTL levels, the first serial communication port TXD and RXD of the microcontroller can be directly connected to the XD and RD of the MSM75125B; the microcontroller's P1.0 and P1.1 are connected respectively:
MOD2 and MOD1 of MSM7512B switch between sending and receiving according to the communication requirements to control the working state of the modem chip; P1.4 controls the switching of the receiving/transmitting state of the radio station (PTT).
AO and AI of MSM75125B are connected to the transmitter/receiver of the radio station through the interface circuit. The display circuit for external monitoring of the system is composed of light-emitting diodes and resistors. The red light-emitting diode D1 is the power indicator. If it is on, it means that the system initialization process is correct; the yellow light-emitting diode D2 is the correct transmission indicator. It should flash once every time the system completes a data transmission task correctly; D3 is the carrier detection indicator. If it is on, it means that the modem has detected a valid carrier signal in the channel; D4 is the data transmission indicator. It starts to flash when the system sends data until the data is sent. If the front-end sensor has data to be transmitted, a falling edge pulse is generated to trigger the external interrupt INTO (P3.2) of the microcontroller. After the microcontroller responds to the interrupt, the 8-bit parallel data from the front is read in from the P2 port (P2.0~P2.5). Since the P2 port has a pull-up resistor inside, it can be driven by TTL or MOS circuits when used as an input port, instead of adding an external pull-up resistor. The serial communication port 2 of W77E58 can be reserved as a system expansion port.
2 Interface circuit between receiving modem and microcontroller
The use and control of the modem circuit of the receiving side and the modem circuit of the battlefield sensor side in the single-chip microcomputer and the modulation and demodulation chip are the same. The difference is that the second serial port of the single-chip microcomputer is connected to the RS 232C port of the computer through the level conversion circuit to transmit the received digital signal to the microcomputer. The interface circuit of the receiving side modem and the single-chip microcomputer is shown in Figure 2. The function of the light-emitting diode display circuit is also not exactly the same. D1~D8 is the display of received data, which can display the correctly received data in the form of binary numbers, D9 is the power supply indicator of the system, D10 is the correct transmission indicator, D11 is the carrier detection indicator, and D12 is the data transmission indicator.
3 Design of the interface circuit between modem and PC
The interface between the modem and the PC is actually the interface circuit between the single-chip microcomputer W77E58 in the modem and the PC. W77E58 supports TTL level, while the microcomputer serial communication port RS 232C supports EIA level. Therefore, when realizing serial communication between them, a level conversion circuit must be designed to meet their respective needs.
The level conversion circuit is the interface circuit between the command center modem and the microcomputer. It is also a component of the data wireless transmission system hardware circuit (command center side). Its working process is as follows: the digital signal demodulated by the modem is processed by the single-chip microcomputer, and then transmitted from the serial communication port 2 of W77E58, through the level conversion chip MAX232, the RS 232C port (DB9) of the PC and the UART inside the microcomputer, and finally transmitted to the CPU and displayed on the monitoring platform. The circuit schematic is shown in Figure 3.
4. Software Design for Wireless Image Transmission
The program is divided into five parts, three main programs: sender MCU program, receiver MCU program and microcomputer receiving program; two subprograms: error handling subprogram and sending delay subprogram.
The communication between the sender and receiver and the MCU and PC is done by software "handshake" signal. All communication "handshake" signals are #0AAH, the response signal is #00H after correct reception, and the response is #0FFH if the reception is wrong.
When there is no data to be transmitted on the sensor side, the MSM7512B is programmed to work in power saving mode through the microcontroller's programming control. At this time, the power consumption of the modem chip (excluding W77E58) is only 0.1 mW, which can maximize the battery life.
The logic control relationship between the single-chip microcomputer and MSM7512B is: P1.0→MOD2, P1.1→MOD1, P1.5→AOG, and P1.4→radio station PTT. The single-chip microcomputer controls MSM7512B and the radio station to perform receiving and transmitting conversion. When the front-end sensor has data transmission, a falling edge pulse signal is generated to start the program of the entire system. After the data transmission is completed, the system returns to the initial state. The P1.5 port of the single-chip microcomputer controls the output level of the MSM7512B.
Set the two serial ports of the microcontroller to work in serial port working mode 1; timer T1 works in mode 2 (automatically reloads initial value) and acts as a baud rate generator. By adjusting the initial value of T1, it is used to select three rates: 1200 b/s, 600 b/s and 300 b/s; timer T2 works in mode 1 and acts as a timer to design and arrange delays.
In the process of system design, in order to reduce the influence of low sensitivity of radio station and poor channel quality and error, the sender needs to send 5 consecutive "handshake" contact signals. The receiver will confirm that it is a valid contact and respond after receiving the correct contact signal twice in a row. Otherwise, it will be considered as an interference signal and will not respond. This can not only reduce the possibility of missed reports caused by various reasons that the receiver program does not start running, but also ensure that the receiver does not operate incorrectly due to interference signals, reducing the probability of false reports. In addition, considering the various delay times required for the radio station's transceiver conversion and the modulation and demodulation chip's transceiver conversion, a delay time is specially arranged when designing the program. After a lot of experiments, a more appropriate delay time is obtained, that is, no matter which party is communicating, after switching from the receiving state to the transmitting state, a delay of 70 ms is first made, because if the time is too short, the system cannot work normally, and if it is too long, it may affect the data transmission rate and reduce the timeliness of data transmission. The program flow chart of the system data transmitter and receiver microcontroller is shown in Figure 4.
5 Conclusion
Through understanding the performance characteristics of the MSM7512B modem chip, the actual circuit of the transmitter and receiver modems is designed. Then, after briefly introducing the performance characteristics of the single-chip microcomputer W77E58 with dual serial port functions, the hardware circuit diagram of the serial communication between the receiving single-chip microcomputer and the PC of the data wireless transmission system is given, and the design process of the Mod-dem and radio interface circuit is described. Finally, the characteristics of the single-chip microcomputer software of the entire system are described. The design schematic diagram of the wireless sensor network data wireless transmission system is given as a whole.
Wireless sensor networks involve sensor technology, network communication technology, wireless transmission technology, embedded computing technology, microelectronics manufacturing technology, software programming technology and other fields. They are interdisciplinary in nature and have broad application prospects in military, civil defense, environment, ecology, agriculture, health, family and other fields. In special fields such as space exploration and disaster relief, the sensor network industry has unique technical advantages.
Previous article:Application of sensor automatic identification device in air conditioning energy saving
Next article:Design and implementation of IP sensor based on IEEE1451 standard
Recommended ReadingLatest update time:2024-11-16 20:24
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Want to get better service? TE customer service said: "I can"
- Is the '*' symbol in Verilog considered a multiplier?
- 【Qinheng RISC-V core CH582】Evaluation summary
- Cache Coherence
- Draw a process flow chart for the production of a DC regulated power supply.
- Problems with batch modification of silk screen printing on PCB
- Keep up with the latest news in 2018: fast charging and wireless charging, Bluetooth and smart home and GaN
- Application of LOTO oscilloscope with VI curve tester in circuit board maintenance
- About PCB board to make a set of playing cards
- [Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] 1. Unboxing + Data Collection + Development Environment Construction + Lighting